Does Overtraining in Simulation Shed Simulator Shortcuts?

Models trained on simulated data tend to latch onto quirks of the simulator: perfectly uniform LiDAR point density, clean textures, noise-free sensors. These quirks predict the label inside the simulator and are absent in the real world. Standard practice stops training once accuracy on held-out synthetic data levels off. The grokking literature suggests this may be the wrong moment to stop. Grokking, or delayed generalization, is the observation that a network can fit its training data, look useless on new data for a long time, and then abruptly generalize. Theory attributes this to a slow second phase in which weight decay pushes the parameters along the set of perfect-fit solutions toward one with smaller weights. We ask whether the same slow phase plays out between a simulator-shortcut solution and a physically meaningful one. Both fit the synthetic data perfectly. If the meaningful one is cheaper in weight norm, real-world accuracy should rise long after synthetic accuracy has saturated, a "delayed transfer."

The proposal has two parts. The first is a falsifiable prediction about when overtraining helps and when it hurts. The second is a practical tool: a progress measure computed entirely inside the simulator that forecasts the real-world jump without any real labels. We build this measure by re-rendering the same scene with only the suspected artifact changed and asking how much the model's output moves.

Core Claim

Boursier et al. and Musat describe grokking as two phases. First the network quickly reaches the manifold of zero training loss. Then weight decay slowly drives it along that manifold toward lower norm, and this second phase prunes expensive memorization circuits. In both papers the competition is between memorizing and generalizing on the same distribution.

Our claim is that in sim-to-real training the competing solutions are a shortcut solution and an invariant solution, and both generalize perfectly inside the simulator. The drift should therefore pick whichever is cheaper in norm. This predicts three things:

  • Overtraining with weight decay improves real-domain accuracy when the shortcut is norm-expensive. An example is a weak, spatially diffuse artifact that requires large weights to read out.
  • Overtraining hurts when the shortcut is norm-cheap, because the drift compresses the network onto the artifact.
  • The delay before the real-domain jump follows the clock reported by Tikeng Notsawo et al., $\Delta t \propto 1/(\alpha\beta)$, where $\alpha$ is the learning rate and $\beta$ the regularization strength. That clock comes from the drift speed being set by the product of step size and penalty.

Synthetic test accuracy is blind to all of this, since it stays flat throughout. The file contains no work that tracks real-domain performance through training past interpolation on synthetic data. The closest connection is DELTA, which documents grokking-like jumps during reinforcement learning on code tasks, including a 2D physics simulator. It evaluates only inside the simulator, and it does not analyze norm or curvature.

The Progress Measure

Because we control the simulator, we can define a counterfactual artifact sensitivity:

$$S(t) = \mathbb{E}_{x}\, d\big(f_t(r(x,a)),\, f_t(r(x,a'))\big)$$

Here $f_t$ is the network at training step $t$, and $r(x,a)$ renders scene $x$ with artifact setting $a$ (for example, full point density). The setting $a'$ is a counterfactual value (for example, realistic dropout). The distance $d$ is total variation between predicted class distributions.

$S(t)$ plays the role that hidden-progress measures play in Barak et al., who show that progress accumulates invisibly before accuracy moves. Our hypothesis is that $S(t)$ declines steadily during the plateau, consistent with Boursier et al.'s point that the suddenness of grokking is partly an illusion of log-scale plotting, and that it precedes the real-domain rise. We will also track the reparameterization-invariant relative flatness used by Han et al.. They show that flatness, not neural collapse (the clustering of each class's features around its mean), coincides with grokking. We test whether synthetic-domain flatness also tracks real-domain gains or comes apart from them. If it comes apart, that would refine their conclusion for shifted distributions.

Research Program

Controlled testbed. We train small convolutional networks on rendered shapes and digits. Each "simulator" plants an artifact that is perfectly correlated with the label. The "real" domain removes the artifact and adds realistic nuisance variation. We vary the norm cost of the artifact along two axes: its amplitude, and whether it is localized or diffuse. We also vary the number of training scenes, because grokking-like delays are known to depend on data scarcity. For each configuration we train to 50× the time needed to interpolate the training data. We sweep weight decay and learning rate, and record:

  • real accuracy;
  • $S(t)$;
  • weight norm, and $\ell_1$ or nuclear norms where Tikeng Notsawo et al. show that $\ell_2$ can be misleading;
  • relative flatness.

This setting decides the sign prediction cleanly, because the norm cost of the artifact is under our control.

Real sim-to-real tasks. We then carry the analysis to the following benchmarks:

  • MNIST→MNIST-M and Synthetic-to-Real LineMod, both used by PixelDA.
  • SynLiDAR→SemanticKITTI segmentation, studied by ASM. That paper identifies uniform synthetic point density as a known shortcut, which makes $S(t)$ directly computable through simulated beam dropout.
  • 3D-IRAIS→Real-IRAIS amodal segmentation, the task of also predicting occluded object parts, from Chen and Li. Their analysis of representation "islands" gives a geometric reference point.

On these tasks we cannot set the shortcut's norm cost directly. The question becomes whether the prediction, either a delayed rise or a decline, is visible at all, and whether $S(t)$ forecasts it. Compute is capped at 10× the published schedule for each task.

Baselines

The naive reference point is standard practice: train under the published schedule and stop when synthetic validation accuracy plateaus. On SynLiDAR→SemanticKITTI this source-only model scores 15.2% mean intersection-over-union (mIoU), as reported by ASM. On Real-IRAIS, EUREKA trained only on synthetic data reaches 37.10% AP. These are our source-only targets. Beating them means a statistically reliable gain across three seeds from overtraining alone, with stopping chosen by $S(t)$ rather than by real labels.

The key ablation is identical overtraining with weight decay set to zero. This separates norm-driven drift from simply training longer. If real accuracy rises equally without weight decay, our mechanism is wrong. The $1/(\alpha\beta)$ clock test is a second ablation: the real-domain jump time should shift predictably with $\beta$.

The strongest competitor on flatness is sharpness-aware training, which directly searches for flat minima instead of waiting for drift. Han et al.'s anti-flatness intervention shows that flatness is causally needed for grokking, so if flatness is the active ingredient, a flatness-seeking optimizer could win outright. We run it with the same compute and the same tuning grid size.

Domain randomization of the known artifact is the strongest competitor on shortcuts. It runs with the same number of renders.

For the LiDAR task we also report ASM, at 22.8% mIoU against an oracle of 55.5% trained on real data. ASM uses unlabeled real scans, so it sits on a higher-access tier than our method. We treat it as a reference, not a fair head-to-head. The same applies to PixelDA, at 98.2% on MNIST-M and 23.5° mean angle error on LineMod, which also uses unlabeled target images.

The upper bound on stopping is a small labeled real validation set used to choose the checkpoint. Our label-free choice should come within a few points of it.

Why not just…?

Why not just randomize the artifact so the shortcut never forms? If every artifact were known and could be randomized, that would be enough. The case for drift is the artifacts nobody listed. S2R-Bench shows that simulators underestimate glare and sensor misalignment by large margins, and When Simulation Lies finds that randomization closed only about 27% of a withheld perturbation gap. In the testbed we will plant two artifacts, randomize one, and leave the other hidden. Drift should matter only for the hidden one. If randomization plus standard stopping matches us on the hidden artifact as well, the method has no practical value, and we will say so.

Why not just use a flatness-seeking optimizer and skip the wait? This is a real threat. If sharpness-aware training reaches the same real accuracy in less time, the contribution shrinks to the diagnostic $S(t)$ and the sign prediction. Those still matter, because flatness on synthetic data does not specify which flat solution is reached. The test is whether sharpness-aware training also fails in the norm-cheap-shortcut regime, where our account predicts that flat but shortcut-based minima win.

Why not just fine-tune on, or stop with, a few real labels? When real labels exist, that is the right choice, which is why it appears as the stopping upper bound. The proposal targets settings where real labels are scarce or unsafe to collect. It also asks a scientific question, whether the delay exists at all, that real-label methods do not answer.

Why not just use unsupervised adaptation such as ASM or PixelDA? Those methods need target data. Our method is orthogonal to them, so we will also apply overtraining on top of ASM to test whether the gains add.

Decisive Checks

The idea stands or falls on the controlled testbed. Real accuracy must rise after synthetic interpolation under weight decay and not without it. It must decline when the artifact is norm-cheap. The delay must scale as $1/(\alpha\beta)$ within the swept range. On the real benchmarks, the decisive result is that $S(t)$ falls before real-domain gains appear, and that stopping chosen by $S(t)$ beats the source-only numbers above. A clean negative result would also be informative: if overtraining consistently compresses networks onto artifacts, early stopping would be justified on mechanistic grounds rather than by habit.