# CoRectron-L Figure 1 reproduction

**Verdict: Verified.** The independent implementation reproduced the three best final cumulative regrets to the precision shown in Figure 1 of arXiv v2. CoRectron-L reached **41.42%** of ONS regret and **41.23%** of projected OGD regret. Both ratios are below 0.5, and the CoRectron-L and ONS 95% confidence intervals are disjoint. Across the ten matched seeds, CoRectron-L stayed below half of each baseline’s final regret on every seed. [Paper v2, Appendix H.1](https://arxiv.org/html/2603.20826v2#A8.SS1) · [Machine-readable results](results/figure1_linear/comparison.json)

## Best final regret over the sweep

These are arithmetic means of ten seeds at the coefficient that minimized each method's mean. The intervals use Student's t distribution with nine degrees of freedom. Wall time and active Mahalanobis projection count are per-run means for the selected coefficient.

| Method | Best `c` | Figure 1 mean | Reproduced mean | 95% CI | Learner wall time (s) | Active projections |
| --- | ---: | ---: | ---: | ---: | ---: | ---: |
| CoRectron-L | 0.001 | 6.351 | 6.351419 | [6.104059, 6.598779] | 0.0897 | 0 |
| ONS | 0.1 | 15.34 | 15.336033 | [15.111983, 15.560083] | 0.1546 | 0 |
| Projected OGD | 1 | 15.40 | 15.403588 | [15.219372, 15.587804] | 0.0676 | 0 |

OGD gave the same final regret on each seed at `c=1, 10, 100, 1000`. We selected the smallest coefficient on the tied mean, consistent with the paper's reported choice. The ONS optimum used zero active projections over all 100,000 rounds at `c=0.1`. At `c=0.001` and `c=0.01`, ONS averaged 8,607.5 and 3,865.2 active projections per seed, respectively, with corresponding projection times of 6.001 and 2.800 seconds per run. [Full coefficient summary](results/figure1_linear/coefficient_summary.csv) · [210 per-seed results](results/figure1_linear/seed_results.csv)

![Cumulative regret across rounds at the three selected coefficients](results/figure1_linear/convergence.png)

![Coefficient sweep with final regret, learner runtime and ONS active projections](results/figure1_linear/coefficient_sweep.png)

## Paired comparisons

Each difference uses the same seed for CoRectron-L and the baseline. Negative differences in the half-baseline column favor the claimed threshold. Both intervals exclude zero in that column. The same seeds served for coefficient selection and evaluation, so the reported intervals are descriptive and may reflect selection bias. The shaded bands in the convergence plot are pointwise. [Paired statistics](results/figure1_linear/paired_statistics.csv)

| Baseline | Mean difference vs. full baseline [95% CI] | Mean difference vs. half baseline [95% CI] | Seeds below half |
| --- | ---: | ---: | ---: |
| ONS | −8.9846 [−9.3052, −8.6640] | −1.3166 [−1.5801, −1.0531] | 10/10 |
| Projected OGD | −9.0522 [−9.3630, −8.7413] | −1.3504 [−1.6157, −1.0850] | 10/10 |

## Protocol and checks

The full campaign ran 3 methods × 7 coefficients × 10 seeds × 10,000 rounds, for 210 runs and 2,100,000 decisions. It used `n=p=10`, `m=5`, `d=100`, and binary top-five actions scaled by `1/sqrt(10)`. Each seed used a fixed hidden matrix with Frobenius norm one and standard-normal contexts clipped to the unit ball. The learner started from zero, received the current context, recommended an action, then received the user's optimal action. The evaluator alone used the true utility to compute regret. The 21 configurations in each seed shared a single immutable sequence. Ten distinct seed hashes and all 210 complete, finite, nondecreasing traces passed output checks. [Experiment plan and formulas](EXPERIMENT_PLAN.md) · [Run metadata](results/figure1_linear/run_metadata.json) · [Full round traces](results/figure1_linear/regret_traces.npz)

The correctness suite exhaustively enumerated the 252 legal actions as an oracle for top-five selection, checked context and utility normalization, the feedback interface and the regret identity, matched CoRectron-L and ONS against direct solves, and checked projected OGD against an explicit reference. The active Mahalanobis solver was tested independently using constructed KKT solutions and a constrained optimizer. Maximum KKT stationarity residual was `6.223e-13`, maximum unit-ball norm error was `8.882e-16`, and maximum distance to an SLSQP reference solution was `3.629e-08`. [Correctness source](src/validate.py) · [Validation log](work/validation.log)

## Reconstruction choices and deviations

- During source review, we located the author's public repository. Its configuration supplies details omitted from v2: PCG64 seeds 0–9, an i.i.d. standard-normal draw for the hidden matrix before any context draws, and higher-index preference on tied scores. We fixed these choices before validation and retained an independent implementation based on v2 Algorithm 1 and Equations 77–79. After the formal sweep, we checked the three selected configurations against the repository's archived per-seed CSVs, whose checksums matched its manifest. The largest absolute local-to-archive difference across the 30 selected runs was `7.11e-15`. The archive names measurement source commit `a369a9870fb4195fc9a622c603f7da5463d12fbe`. [Pinned author repository](https://github.com/ssakaue/projection-free-cr-public/tree/e67063dcf97c6871cea99905377372940558d590) · [Archive validation](results/author-reference-check.log)
- The local implementation uses float64 Sherman–Morrison updates for both second-order methods and a symmetric eigensolve with a scalar KKT root for the ONS projection. The active-projection tolerance is `1e-10` in unit norm. The implementation computes utilities and optimal feedback up front, then releases each action only after recommendation. [Environment source](src/linear_env.py) · [Learner source](src/learners.py) · [Runner](src/experiment.py)
- Local runs used Intel Core i5-13400F, Windows build 22631, CPython 3.11.6, NumPy 2.4.2, SciPy 1.17.0, and OpenBLAS. The paper v2 lists Apple M4 and macOS 26.2 with CPython 3.11.14 and NumPy 2.4.3. The later archive manifest lists macOS 26.5.2, CPython 3.11.16, SciPy 1.17.1, and Accelerate. Local runtimes depend on this hardware, implementation, and process contention. The formal campaign used four seed workers with one BLAS thread per process, verified at runtime, and took **38.111 s** elapsed. The sum of learner wall times was **118.315 s** across the workers. Timing includes recommendation, in-memory feedback lookup and update. Seed generation, regret evaluation and file output are outside the learner timer. No paid resources were used. [Compute budget and pilot](COMPUTE_BUDGET.md) · [Formal run log](results/figure1-linear.log)

## Re-run and inspect

The next commands generate results in new directories. The timing pilot stays under `work/`; the formal analysis reads the formal result directory alone.

```text
python -m pip install -r requirements.txt
python -m src.validate
python -m src.experiment pilot --output work/pilot_rerun
python -m src.experiment formal --workers 4 --output results/formal_rerun
python -m src.analyze results/formal_rerun
```

The NPZ contains `cumulative_regret` with one row per run and one column per decision round. `method`, `coefficient`, and `seed` identify each row. [Analysis source](src/analyze.py) · [Analysis log](results/figure1-analysis.log) · [Research log](RESEARCH_LOG.md) · [Sanitized Agent Trace](AGENT_TRACE.md)
