Silent Reward and Environment Defects in EV Charging Simulation Benchmarks: A Diagnostic Checklist

Nour-Eddine Moumni, Rachid Alaoui, Driss KiouacharXiv 2026 · arXiv

In the world of Reinforcement Learning (RL), we often obsess over hyperparameters and seed counts to ensure reproducibility. But what if the simulation itself is lying to you?

A new paper, "Silent Reward and Environment Defects in EV Charging Simulation Benchmarks: A Diagnostic Checklist," argues that many RL benchmarks for Electric Vehicle (EV) charging are plagued by "silent defects." These aren't crashes or obvious errors; they are implementation bugs that allow a simulation to finish and produce plausible-looking numbers while quietly biasing the results.

TL;DR

Researchers audited a multi-agent EV charging benchmark and discovered five recurring "silent defects" that can inflate error counters by 125x or effectively delete reward terms. To combat this, they propose an eight-item diagnostic checklist designed to catch these integrity failures before they lead to misleading algorithm rankings.

What Problem Does This Paper Address?

The authors tackle the "formalism-implementation gap" in RL research. In complex domains like smart-city EV charging, researchers rely on microscopic traffic simulators like SUMO (Simulation of Urban MObility). These pipelines are brittle: they glue together stochastic environment models, complex reward functions, and high-dimensional state encodings.

The core problem is that implementation defects at these interfaces often fail silently. A normalization error might make a specific reward term numerically inert, or a shared random number generator (RNG) might mean that two different agents—despite having the same "seed"—actually face different traffic conditions. Because the code doesn't crash and the resulting Key Performance Indicators (KPIs) look reasonable, these biases often go undetected, leading to "reproducibility crises" where reported algorithmic gains are actually just artifacts of buggy code.

Methods

The authors performed a rigorous audit of a five-agent benchmark (including DQN, Double DQN, and Tabular Q-Learning) implemented in a SUMO-based environment. Their methodology involved:

  1. Taxonomy Creation: They identified and categorized five specific defect patterns (D1–D5) affecting RNGs, reward clipping, normalization, event counting, and state dimensionality.
  2. Quantification: They didn't just find bugs; they measured their impact. For example, they compared "pre-fix" and "post-fix" runs to see how much a defect altered the learning signal or the final KPIs.
  3. Statistical Re-analysis: They revisited a historical "ablation study" (where parts of a reward function are removed to see their effect) and applied family-wise error correction (Holm-Bonferroni) to see if the original conclusions held up after fixing the defects.
  4. Checklist Development: They distilled their findings into an actionable, eight-item diagnostic checklist (Table 3 in the paper) that researchers can run as a "first-pass" audit.
The RL-traffic-simulation pipeline showing where silent defects (D1-D5) enter the system.

Datasets

The study utilized:

  • OpenStreetMap (OSM) Road Networks: Real-world network data for two Moroccan cities, Rabat and Tangier.
  • Traffic Scenarios: Six distinct scenarios based on city and time of day (morning, midday, and evening peaks).
  • SUMO Simulator: Used to generate microscopic vehicle demand and road-network stochasticity.

Key Insights and Ideas

  • The RNG Parity Trap (D1): If your environment and agent share the same global random stream, they are "entangled." An agent that explores more (consumes more random numbers) will cause the environment to diverge from the path seen by a less-exploratory agent. This invalidates seed-paired comparisons.
  • Double Normalization (D3): A reward term intended to range from 0 to 1 might be divided by a normalization constant twice (once in the state builder and once in the reward function), driving it to a scale of $10^{-4}$. This effectively "mutes" that part of the reward function without the agent or researcher ever knowing.
  • Plausibility $\neq$ Integrity: The authors emphasize that "plausible" KPI tables are not evidence of a bug-free implementation. They showed that even with a 125x error in a rejection counter, the final performance tables looked entirely normal to the naked eye.

Key Results

The audit revealed startling magnitudes for these "silent" issues:

  • D4 (Counting Defect): A rejection counter was inflated by 125.4x in one DQN configuration because it was incremented every timestep a vehicle was waiting, rather than once per rejection event.
  • D3 (Scale Defect): A reward term was neutralized to roughly 0.01% of its intended weight due to a normalization mismatch.
  • D5 (Architecture Defect): A mismatch between documented and implemented state dimensionality led to a 16.6% divergence in greedy actions, meaning the agent was effectively "blind" to features the researchers thought it was using.
  • Statistical Robustness: In their re-analysis of a prior study, they found that after correcting for multiple comparisons and fixing RNG defects, none of the previously reported performance gains from a specific reward ablation survived.
Table 2. Defect mechanism and evidence.

Limitations and Future Work

The authors are careful to note that this was a single-project audit. While the defects they found are generic enough to likely exist in other SUMO-based RL pipelines, the frequency of these bugs across the broader literature remains unknown.

The proposed checklist is a "low-cost first pass"—it can catch many common errors in under a day, but it isn't a substitute for a full independent replication. Future work involves applying this checklist to independent codebases to see how well these defect patterns generalize and expanding the checklist to cover process-level defects like configuration drift in multi-process environments.

Summary updated

Abstract

Reinforcement-learning (RL) benchmarks built on microscopic traffic simulators such as SUMO are increasingly used to compare agent architectures for electric vehicle (EV) charging assignment. Unlike crashes, defects in the reward function, the environment's stochastic model, or the state encoding often fail silently: the simulation completes, produces plausible numbers, and the comparison is biased. We report five such defects, found by auditing a five-agent benchmark on OpenStreetMap road networks, stated generically: a shared random generator that desynchronises seed-paired comparisons, an ablation-specific reward clip applied unconditionally, a normalisation mismatch that zeroes a reward term, a per-timestep penalty that should fire once per event, and a state dimensionality documented but never wired into the network. We quantify three: a rejection counter inflated up to 125x across agents/cities, a reward term bounded at about $10^{-4}$ of its intended scale, and a 16.6%/16.3% greedy-action divergence from a state-encoding mismatch. Re-analysing a historical ablation, no A1-A2 effect survives family-wise correction; a 56-run campaign confirms the RNG defect's mechanism directly while showing its correction does not change that conclusion. We provide an eight-item checklist as a low-cost first-pass audit; in a later regeneration, three checks caught two new defects while three further process/artefact defects fell outside its boundary.
BibTeX
@misc{moumni2026silent,
  author = {Nour-Eddine Moumni and Rachid Alaoui and Driss Kiouach},
  title = {{Silent Reward and Environment Defects in EV Charging Simulation Benchmarks: A Diagnostic Checklist}},
  year = {2026},
  eprint = {2611.01769},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.01769},
}
Figure