ELVIA analysis of: Sliding Puzzles Gym: A Scalable Benchmark for State Representation in Visual Reinforcement Learning — Problem 2: Terminal flag leaks across reset and creates false puzzle success
Original paper: Bryan L. M. de Oliveira; Luana G. B. Martins; Bruno Brandão; Murilo L. da Luz; Telma Woerle de Lima Soares; Luckeciano C. Melo. Sliding Puzzles Gym: A Scalable Benchmark for State Representation in Visual Reinforcement Learning. Proceedings of the 42nd International Conference on Machine Learning, vol. 267, 2025. https://proceedings.mlr.press/v267/de-oliveira25a.html
Source version: Published ICML 2025 proceedings PDF (PMLR 267)
Source location: sources/0284/r01/sliding_puzzles/env.py lines158-164,229-278,330-337; consumers utils.py323-343,379-398 andspgym.py63-105
Question: What does the recorded analysis establish about “Terminal flag leaks across reset and creates false puzzle success”?
Bounded finding:
Demonstrated false success in released benchmark; downstream logging/evaluation consume flag. Core released success/outcome semantics invalid; historical frequency and tableeffects NeedsEvidence.
Recorded check:
The environment retains a prior episode’s terminal flag through reset and reuses it on an invalid action. This violates the benchmark’s basic success semantics.
The file `r01/sliding_puzzles/env.py` initializes the cached flag only in its constructor (lines 158–164), setting `last_terminated` to `False`. Valid actions recompute reward and termination, but lines 229–234 reuse `self.last_terminated` on invalid actions. Lines 236–242 store the result and set `info["is_success"]=terminated`. The reset method, lines 249–278, resets the step counter and puzzle state without resetting that cached terminal flag.
Use the default blank value \(-1\) and the states \[A=\begin{bmatrix}1&2&3\\4&5&6\\7&-1&8\end{bmatrix},
\quad
G=\begin{bmatrix}1&2&3\\4&5&6\\7&8&-1\end{bmatrix},
\quad
B=\begin{bmatrix}1&2&3\\4&5&6\\-1&7&8\end{bmatrix}.\] Starting at \(A\), action 2 moves the blank right and produces \(G\). The goal test sets `last_terminated=True`. Reset to \(B\). This state passes the release’s explicit-state validation, is solvable, and has positive probability under its ordinary fast shuffle. It is two valid moves from \(G\), as the independent graph calculation confirms.
Now take action 0, whose blank displacement is downward. Since the blank is already in the bottom row, this action is invalid. The code leaves the state equal to \(B\) and returns \[\text{reward}=-1,\qquad
\text{terminated}=\texttt{True},\qquad
\text{is\_success}=\texttt{True}.\] No puzzle was solved in the new episode. The negative reward does not correct the false success flag.
The PPO/SAC utility `r02/ppo_sac/src/utils.py`, lines 323–343 and 379–398, consumes terminal success flags for rolling statistics, early stopping and evaluation. Dreamer’s adapter, `r02/dreamerv3/embodied/envs/spgym.py`, lines 63–105, passes them into terminal observations and `log_success`. Thus this is a demonstrated defect in the released benchmark’s core outcome, assessed Major.
A valid first action after reset recalculates termination and clears the stale flag when the new puzzle remains unsolved. The finding therefore does not imply every episode is affected. A shuffle that happens to generate the solved state also executes a valid move, which can clear the cache; the explicit non-goal \(B\) avoids that branch. No empirical frequency or historical score inflation is inferred.
Resetting episode-specific cached fields and making invalid-action termination depend on the current state would repair this trace. The source was not modified and a patched environment was not executed. The saved check validates the independent state transitions and statically confirms that reset does not assign `last_terminated`; it does not import or run the author environment.
Case-wide limitations:
- P1 — Central sample-efficiency results are incompatible — Counterevidence: Which table is authoritative is unresolved. Different historical runs could explain discrepancies if documented. Larger-pool scaling and eventual solution length are distinct outcomes and not refuted.
- P2 — Terminal flag leaks across reset and creates false puzzle success — Counterevidence: Validfirstmove recomputesflag; accidentallysolvedshufflealsoexecutesvalidmove. Not everyepisode affected. Negative reward does not fixmeasurement. Historicalexecutionversionunbound.
- P3 — Dreamer success count uses the wrong denominator — Counterevidence: PaperTable7 lists16envs whereascurrentpreset64, reinforcingunboundhistoricalversion. No rawlogs/tableaggregation provepublishedscoresusedthisfieldunmodified.
- Limitations: No author-code execution or empiricaltrainingreplication.
- Limitations: Current sourceversions notcertified historical;rawSPGymlogs/checkpoints/aggregationinputs missing.
- Limitations: Externalproofs andlatercorrections notverified.
- Limitations: SeparateOpenReviewattachmentdiscovery403; embeddedappendixavailable.
- Unresolved claim: Run-levelversion/configurationandtracesunavailable; no revisedrankingscomputed.
- Unresolved claim: Mainp8says tested; Appendixp23saysOODnotcomputed; Table13noOODcolumns.
- Unresolved claim: 37displayedmeansgiver=-.7729793020026258,p_iid2.063e-8; mainreports-.81,1.1e-13. Exactpairedinputs/analysisunit/censoringunavailable; qualitativeassociationretained.
- Unresolved claim: 10Mentrieswithlowfinalsuccess;4x4PPO24.46Mdespitegeneral10Mcap;fractionvaluesinpercentagecolumnsrequireaggregationprovenance.
- Missing materials: HistoricalSPGymversions/configurations/traces/checkpoints/tableinputs
- Missing materials: DreamerOODrecordsandexactcorrelationinputs
- Missing materials: SeparateOpenReviewattachmentifany
- Missing materials: Later-correctionandexternalproofcomparison
- Work not performed: author-codeexecution
- Work not performed: training
- Work not performed: empiricalreproduction
- Work not performed: humanreview
- Work not performed: post-batchacceptance
- The original report's complete scope, counterevidence and unresolved questions are retained below.
- This import checks publication format and identity; it does not repeat scientific review.
- Independent human scientific review is pending; author adoption has not been requested.
Source problem ID: p2
Source report index: 2
Original source excerpts (verbatim):
Since meaningful generalization evaluation requires agents that first achieve competent in-distribution performance, we primarily focus our OOD analysis on smaller pool sizes (i.e., 1, 5, and 10) where most methods successfully learn the task.
Source: Published ICML 2025 proceedings PDF (PMLR 267)
Locator: PDF p. 7
Source PDF SHA-256: 8f8daef0f2022b21859d8eed3184028e0ae07055c6e55f7f463b39f6c9cf6fbb
Review status: Independent review pending
Case: icml2025-0284-sliding-puzzles-gym-a-scalable-benchmark-for-state-representation
Revision: 1
Record created: 2026-10-26T04:21:21.357774+00:00
Permalink: https://elvia-atlas.org/atlas/cases/icml2025-0284-sliding-puzzles-gym-a-scalable-benchmark-for-state-representation.html#problem-2
Versioned public record: https://elvia-atlas.org/atlas/evidence/icml2025-0284-sliding-puzzles-gym-a-scalable-benchmark-for-state-representation/records/icml2025-0284-sliding-puzzles-gym-a-scalable-benchmark-for-state-representation.r1.json
Canonical record SHA-256: 775ef43e4b3beea1e1ca6d0118b8bd4c7e5964e780f00b82ae11b4dd8dcdd6f9
The page follows the latest revision; the versioned record identifies this snapshot.