Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ALE v0.6 differences in start state #291

Open
JesseFarebro opened this issue Jan 11, 2020 · 1 comment
Open

ALE v0.6 differences in start state #291

JesseFarebro opened this issue Jan 11, 2020 · 1 comment

Comments

@JesseFarebro
Copy link
Collaborator

There was an issue raised (openai/gym#1777) which describes differences between v0.5.2 and v0.6.0 of the ALE. I traced some of the issues to this commit 7bff96b#diff-d9d868097a7403416e6ef352d95dc4feR178 which changes how StellaEnvironment::softReset works.

The RESET action is called m_num_reset times which leads to a different starting state for the agent. Perhaps this was intended behaviour in StellaEnvironment::reset but has ill-intended consequences in StellaEnvironment::softReset.

For example, here are the starting states for Ms. Pacman in ALE v0.5.2 and v0.6.0. Note if you emulate one RESET action then we get the v0.5.2 starting state.

Ms. Pacman, ALE v0.5.2

frame-v0 5 2

Ms. Pacman, ALE v0.6.0

frame-v0 6 0

You can see the subtle changes between these two frames (e.g., the colour of ghosts in jail).

I haven't looked into why we repetitively call RESET. Should this be something that is investigated further? It wouldn't seem that this should affect asymptotic performance.

@mgbellemare
Copy link
Contributor

I wouldn't expect this to be a big driver of performance, no. The ALE determinism has always been brittle at best -- going through saveState/loadState should provide a more robust way to reproducibility. Thanks for flagging this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants