Learning Unknown Oscillators From Bandit Feedback
Jayraj et al. in RL & post-training
How long should a bandit trust one oscillator forecast?
Learning Unknown Oscillators From Bandit Feedback
A reward choice is also a measurement

Pick two of four arms; only those rewards are revealed. Two equal-mean arms duplicate each rotating signal coordinate (H or V), so taking both copies of the larger coordinate pays now but hides the other.
Holding one model can expose a false frequency
For z=e1, the +2π/3 truth and its −2π/3 reflection predict identical H rewards. The specified switcher chooses H in rounds 1 and 2, so the alias survives.
The held reflection greedily switches to V in round 2, where its forecast +3/2 conflicts with truth −3/2. Switching to truth after that contradiction caps regret at 23 in this noiseless example.
The held model's own action can expose the error.
How the controller chooses a block length
- 1
Fit a candidate
Nonlinear least squares estimates frequency and initial state from selected rewards.
- 2
Propose greedy choices
The fit sets a future pair schedule; those same choices determine which noisy coordinates the learner observes.
- 3
Check worst-case cost
A continuous, time-uniform confidence set retains oscillator models supported by past rewards; the controller bounds each prefix's worst-case regret over them.
- 4
Hold or learn
Accept the longest prefix under the square-root regret budget. If none passes, SquareCB randomizes toward promising pairs for up to four online-learning rounds.
Chosen measurements constrain forecasts through time 2n
Dn sums squared mean errors on the fit's chosen coordinates over n rounds. With both frequencies a fixed distance from resonance, it bounds forecasts through 2n and held-block pseudo-regret.
- Dn
- Sum of squared mean errors on candidate-selected coordinates
- λ0
- Positive margin keeping both frequencies away from multiples of π/2; it fixes H,K.
Why the controller still has a regret guarantee
- 1
Price each accepted prefix
For a block from round n to endpoint e, the budget is cσlog(8T/δ)(e−n).
- 2
Telescope the budgets
Accepted intervals are disjoint, so their square-root increments sum to the horizon-wide allowance.
- 3
Learn when checks fail
If no prefix passes, SquareCB gathers selected rewards; its online-regression term is O(T) up to logarithmic factors.
- 4
Full-circle guarantee
With amplitude and sub-Gaussian noise bounds, the high-probability 1−δ regret bound is startup plus square-root terms over all frequencies for one or two oscillators.
Fewer fits, nearly the same mean regret
Fresh mixed-start T=1024, 96 paired runs; regret includes startup. Posterior is a sampler with unbounded state prior, not NLS.
Checking changes behavior under resonance stress
At T=1024 across 96 mixed-start runs, checked and matched sparse NLS took identical actions; both averaged 3.295 regret and 49 refits.
Across 16 original holdouts, checked averaged 3.845 regret versus 6.209 for sparse NLS; dense NLS averaged 2.590. Checked won, tied, or lost 4, 8, and 4 times versus sparse NLS (absolute tie tolerance 10−10).
Across these 16 holdouts, checks triggered 2148 learning rounds and 136 shortened blocks.
Two-plane checks test reward and information

Both planes get a directional-information check. Thin lines are 16 primary trajectories; thick is their mean. Every pre-block lower bound on reward advantage is positive against dedicated sensing over the same up-to-256-round window.
Where the theorem and evidence stop
Resonance condition
The held-prediction theorem needs both true and candidate frequencies a fixed margin from multiples of π/2; the separate regret guarantee covers the full circle.
Synthetic evidence
One-plane trials use Gaussian noise at T=1024; the primary two-plane comparison has 16 paired instances at T=8192.
Hardware-specific timing
On one system, checked end-to-end median across 12 runs was 1.515 s vs 0.227 s for matched sparse; 4.69× is the paired ratio vs dense NLS.
Why it matters
- With a fixed nonresonance margin, enough held greedy rounds can make selected measurements expose the model's prediction errors.
- Use the confidence set to test proposed blocks; switch to online learning when no prefix fits the regret budget.
- Extending this control to many signals means deciding how long any evolving state can go unobserved.
11 slides, 3 min
24 Nov 2026