Safety-Polarized and Prioritized Reinforcement Learning
ELVIA analysis
Independent review pending
Theorem 4.4’s stated conditions do not ensure its advertised optimal convergence. A finite MDP with a fixed stationary behavior policy satisfies every printed condition, yet the learned greedy policy remains suboptimal forever. This is a Major finding. The exact reachability iteration remains supportable. Additional local issues concern released importance-weight broadcasting, numerical interpretations, the Circle safety specification, and a reproduction command. Historical experiment effects and full repairs are distinguished from the demonstrated results. Scientific adjudication remains pending.
Problem 1. Global step-size assumptions do not imply sampled optimal convergence
MajorEvidence and reasoning
Problem statement
Inspection subject recorded in the report
Global step sum diverges, square is finite and beta tends to zero. Total step weight at is only1/16. All safety values remain0; masks are full and -gap condition is vacuous. in[] invariant; ()<= while ()>= on every sample path. True values are4/3, at and2/3 at y.
Finite states ,y with two actions deterministic alternation under both; concentrated at unsafe set empty (allowed). Reward r()= all others zero. Fixed stationary uniform independent behavior; all four pairs have limiting frequency almost surely. ()= and others zero; no zero- initialization requirement. beta_()=1/(n+).
Proof
Theorem 4.4, pp. 4–5, asserts convergence of the sampled reachability and updates, and of the learned policy to a MaxSafe optimum. It assumes infinite visitation of every state-action pair, global conditions and a positive mask tolerance smaller than half the gap to unsafe actions. These conditions do not ensure sufficient cumulative learning at each updated coordinate.
Parameters and verification of every condition. Take two states and two actions at each. Both actions alternate the states deterministically: Set and set all other rewards and all costs to zero. Use the fixed stationary behavior policy with independent draws. Each of the four state-action pairs is visited infinitely often almost surely, in fact with limiting frequency
For set the deterministic global step sizes They lie in tend to zero, and satisfy both printed sum conditions: the odd subsequence has divergent harmonic sum, while the sum of squares is But all visits to occur at even times, and Initialize and every other -value at zero. The theorem specifies zero initialization for not for
All policies are safest with unsafe probability zero, so the stated availability of many safest policies holds. The empty unsafe set is allowed by Every remains zero and every learned mask is the entire action set. The gap condition () is satisfied vacuously because there are no excluded actions, for any Thus the update reduces exactly to the printed -learning update without a masking complication.
The interval is invariant for every -value, since rewards are in and each target is at most Therefore, on every sample path, For all targets are nonnegative. The product over the times when is actually updated is no smaller than the product over all even times, so The last inequality follows first for finite products of numbers in and then by a limit. Consequently the learned greedy policy strictly prefers forever.
That policy earns zero reward. A safest policy choosing at instead earns The true optimal action values are and Hence both claimed value convergence and claimed policy optimality fail. ◻
This counterexample uses a stationary behavior policy, deterministic step sizes, bounded initialization, and the exact safety mask. It does not depend on nonstationary exploration, rare state visitation, approximation error, or terminal-state interpretation. The step sequence is not nonincreasing, but monotonicity is not a printed assumption; even the stated diminishing-to-zero property holds.
Appendix B.4, pp. 14–16, applies a synchronous vector stochastic-approximation lemma to a coordinate update, then invokes classical -learning convergence. The missing local learning condition invalidates that inference. A necessary repair is, for each An appropriate per-visit schedule would exclude this counterexample. A full repair also requires a valid asynchronous argument identifying the reachability limit; that complete theorem is not certified here.
The independent check independently evaluated the bounds and ran a reviewer-owned 2000-step illustration with seed It produced and with all four coordinates visited – times. This finite computation illustrates the exact proof; it does not replace the infinite-time argument or reproduce author experiments. Evidence: `check.py`/`calc.json`, original pages 4–5/14– and their selected renders. The invalid guarantee is a central advertised contribution, supporting Major regardless of the potential simplicity of a repair.
Possible revision
Require per-pair divergent cumulative step sizes and appropriate asynchronous convergence assumptions/proof. This necessary repair excludes the example; full general SA-REF repair is not verified.
Problem 2. Classic-control importance weighting broadcasts over the batch
MinorEvidence and reasoning
Problem statement
Inspection subject recorded in the report
Broadcast multiplication yields(B,B), loss * rather than For actual loss15/64 versus11/64; gradients() versus(). Static shapes and primary PyTorch documentation checked; scalar arithmetic independently executed.
Safety residuals have shape(B,); sampled weights have shape(B), with and nonconstant valid weights. Example current values(), targets() yield residuals() in admissible bounds.
Proof
Section 5.2, Eq. (20)–(21), and Algorithm 1 prescribe transition-specific importance weights. The preserved classic-control SP2/SP3 implementations broadcast those weights across the batch instead.
In `utils_classic_control.py`, lines and – weights have shape In `replay_buffer.py`, lines – and – actions/costs/terminal flags are columns of shape and weights retain shape Consequently gathered safety residuals have shape in `algos/sp2dqn.py`, lines – and `algos/sp3dqn.py`, lines – Their multiplication broadcasts to under the documented semantics [torch]: For admissible safety residuals and weights these are respectively and The residual gradients are instead of For example, current safety values and targets realize those residuals within With exponent sampling probabilities in ratio yield the stated normalized weight ratio; priorities need not equal the current residuals after network updates.
The error removes sample-specific correction while retaining prioritized sampling and a common batch multiplier. The optional SP3 weighted loss has the same shape problem. Reshaping weights to or squeezing residuals to restores the intended local algebra.
Counterevidence limits the scope: `agents/sp_perdqn.py`, lines 184/189/191, squeezes highway residuals to and applies weights correctly. Published ACC/Circle runs are not bound to this exact code/configuration. No benchmark impact or historical repair is established. The calculation used reviewer-owned scalar arithmetic; PyTorch was absent in the checked execution runtimes, so no tensor-library execution is claimed. Evidence: hash-bound source excerpts in `code.json`, `calc.json`, and the primary broadcasting documentation.
Possible revision
Reshape weights to(B,) or squeeze residuals to(B); local algebra verified, no full author training or empirical repair.
Problem 3. Numerical summaries and blanket dominance contradict the tables
MinorEvidence and reasoning
Problem statement
Inspection subject recorded in the report
Table1 proposed row means support not prose Table4 has TwoWay favors PER(), Merge favors SPOM(). TwoWay reward10.124/10.520 is below SafeQ10.636; SPOM Roundabout crash.167 exceeds SafeQ.090.
Compare printed conditions and means; no statistical-significance inference from small differences.
Proof
Section 6.2, p. 8, and Appendix C.3.1, p. 20, give overall SWU scores for SPOM_PER/SPOM. Tables 1/4 instead give and The p. 8 prose also interchanges the TwoWay and Merge winners, and p. 20 claims both methods beat SafeQ in both reward and crash rate across all tasks.
Averaging the six displayed Table 1 cells gives and consistent with its rounded overall scores. Table 1 favors SPOM_PER in TwoWay ( versus ), but SPOM in Merge ( versus ). Table 5 directly contradicts blanket metric-wise dominance: TwoWay rewards are and versus SafeQ’s while Roundabout crash rate for SPOM is versus SafeQ’s
These are local interpretation/reporting errors, not evidence of fabrication or failure of the overall SWU ranking. The tables retain first and second overall places for the proposed methods. Importantly, the Table 1 versus Table 4 Roundabout change is not itself a contradiction: SWU uses the smallest crash rate among included comparators. Adding RESPO changes that reference from approximately to rescaling the scores by about Evidence: `calc.json`, original pages 7–8/20– and their renders.
Possible revision
Use table-supported summaries and explicit reward/safety tradeoffs. No corrected raw aggregate or significance claim.
Problem 4. Circle unsafe-set inequality reverses the stated safety classification
MinorEvidence and reasoning
Problem statement
Inspection subject recorded in the report
Printed labels unsafe and safe; released cost/termination uses >
intended constraint is to remain inside the two walls.
Proof
Appendix C.1, p. 18, says the robot must stay inside but defines and gives the ordinary motion reward only outside
At the printed formula labels an interior state unsafe; at it labels an exterior state safe. This reverses the essential safety-cost classification and terminal/reward interpretation if the displayed MDP is implemented literally.
The released `envs/circle.py`, lines – uses for crash/cost, consistent with the prose. Thus the corrected set is for that environment, including the safe boundary. The source is counterevidence against an inversion in the actual experiments. The local specification is wrong; the historical experiments are not thereby invalidated. The current configuration’s crash reward is separately whereas the paper prints historical settings remain unresolved.
Possible revision
For the stated/source environment use ={>}; boundary at equality is safe. This classification is verified; historical complete environment repair not claimed.
Problem 5. README Circle command selects a reward-shaping baseline
MinorEvidence and reasoning
Problem statement
Inspection subject recorded in the report
Default algo is priorrewsdqn and the entrypoint dispatches to PriorRewsDQN. Its main block does not parse overrides. README claims the command is SPOM_PER.
Run the advertised bare entrypoint with preserved defaults, no unstated file changes.
Proof
The README says that bare `python main_classic_control.py` launches SPOM_PER on Circle. Its actual default selects `priorrewsdqn`.
The entrypoint reads `configs_classic_control/default.yaml`, whose line sets that algorithm, and dispatches to `PriorRewsDQN` in lines – The executed entrypoint has no command-line override parser. This is a distinct reward-shaping baseline, not the advertised SPOM_PER path. The separately documented Merge command explicitly chooses `sp_perdqn` and is consistent. Correct the classic-control instruction/configuration mapping and bind the intended settings; no author execution or complete launch repair was performed. Evidence: `code.json` and the preserved README/entrypoint/default configuration.
Possible revision
Provide correct explicit configuration/launch mapping; no full author-code launch performed or certified.
Supporting record & provenance
Work status
Current version
Version 1
Minhao Liu · Initial report · Version 1
Independent review pending
Original claim and review scope
Similarly, in Circle, SPOM PER and SPOM achieve significantly lower crash rates than Recovery while maintaining higher rewards.
Published ICML 2025 proceedings PDF (PMLR 267); PDF p. 20
Actual review scope
The recorded inspection concerns these source locations: Theorem 4.4, PDF pages 4-5; Equations 11,13,14; Appendix B.4 pages 14-16; Paper Section 5.2 and Algorithm 1; utils_classic_control.py61,70-73; replay_buffer.py146-150,177-187; algos/sp2dqn.py197-216 and sp3dqn.py199-218; PDF p. 8 Section 6.2 and p. 20 AppendixC3.1; Tables1,4,5; PDF p. 18 AppendixC1; envs/circle.py65-70; README27-30; configs_classic_control/default.yaml6; main_classic_control.py137-138.