nikolas.sapa
November 29, 2026

I Tried to Make Learning Necessary. Three Baselines Said No.

On one simulated tray, a center tap suggested a steering angle that would miss the gate. A second tap on the right changed the answer: the tray fit with clearance to spare. It makes a good demo. It also makes a bad argument for the policy. That outcome was picked from a run in which the adaptive two-tap rule cleared just 229 of 300 gates.

I built three small experiments to avoid a mistake I’d made before: fine-tuning a model, beating the frozen model, and then losing to a simple predictor. This time each project had a rule it needed to beat and a number that would make me stop. All three stopped, for different reasons.

1. A better measurement bought more than a better decoder

The robot gets to tap a simulated tray before steering it through a gate. The original setup had an action problem: even a controller that knew the hidden physical state often couldn’t make either of the two allowed pushes work. Giving it 25 steering angles fixed that. On a later set of 300 elongated trays, the hidden-state controller could clear every gate.

That still didn’t make tap selection a good learning problem. Giving the existing decoder its best tap in hindsight cleared 231/300 (77.0%), versus 206/300 (68.7%) for a fixed center tap. I stopped before training a selector: the hindsight policy missed both the 85% clearance target and the required 12-point lead.

The next experiment changed the decoder and the measurement separately. On two fresh sets of 300 scenes, a denser Bayesian decoder raised single-tap clearance from 70.3% to 73.0% at the original friction profile and from 63.7% to 69.0% at an unseen one. Feed that same dense decoder a noiseless single tap, and clearance goes to 91.0% and 89.3%. A fixed pair of noisy taps landed in between at 83.7% and 80.0%. The adaptive rule stayed within its tap budget but missed the accuracy target in both sets.

The noiseless test is a simulator control, not a sensor I built. It shows that lower noise could matter more than a finer inference grid here. It doesn’t show that no better decoder or tap policy exists.

2. The rewrite heuristic matched the hindsight selector

Expanding an expression can make it bigger before it gets smaller. In u*(a+b) − u*a, distributing exposes a cancellation and leaves u*b. The proposed learning task was to pick where to spend one expansion when there were many plausible sites.

The first beam search hit the target on 196/200 cases, so I made the synthetic expressions harder. The beam dropped to 75/200. But a direct rule that looked for opposing terms reached 159/200. Trying every possible first site in hindsight, with the same simplifier and online rewrite budget, hit the target on the same 159 cases. The target was within one operator of a best-found reference; equivalence was checked exactly over integer polynomials.

There was nothing left for a learned site selector to improve on this metric under this interface. That’s a reason not to train the ranker, not a claim about real compilers.

3. Shifting the exposure helped the model, but not enough to beat the filter

If two exposures use the same detector rows, they share stripe noise. In simulation, put the same scene on a different row bank for the training target. The scene stays aligned while the noise changes. The model still gets one frame at inference. Dithered training pairs already exist in prior work; this was a local test of the mechanism, not a new denoising method.

I trained two otherwise identical models to correct a row filter. The model trained on shifted pairs beat the same-bank model by 3.51 dB on in-range stripe widths and 1.34 dB on wider bands. Against the validation-selected classical filter, it gained just 0.08 dB and 0.60 dB, short of the required 1 dB. On wider bands, plain row filtering beat the shifted model by 0.34 dB.

The pairing helped relative to the control. That mattered scientifically, but the correction didn’t earn a place in this pipeline. The public demo uses a procedural image to show what the two training targets share; it isn’t a new benchmark or an example of trained-model output.

Run the demos

Download the code, demos, and per-case results. The code is MIT-licensed. From the extracted folder, use the Python environment listed in the included README:

PYTHONDONTWRITEBYTECODE=1 python3.12 -m release_demo robot
PYTHONDONTWRITEBYTECODE=1 python3.12 -m release_demo rewrite
PYTHONDONTWRITEBYTECODE=1 python3.12 -m release_demo detector --output detector-illustration.png

The first two replay selected recorded cases. The third renders an original image and simulated exposures live. None needs the Berkeley photo corpus. Reproducing the detector benchmark requires obtaining the corpus separately.

What I’d keep: the stop tests. Check that the action can succeed, check that the rule isn’t already at the ceiling, and check whether a gain over the learned control survives comparison with the best simple method. Each check ended a different project.