sainath's picture
Add v0.4.1 estimator study (pathwise control); weights unchanged
f9046e9 verified
|
Raw History Blame Contribute Delete
2.68 kB

Three-arm estimator study (library v0.4.1, 2026-10-17)

Follow-up experiment for the Tiny-Jev paper. It separates the effect of the gradient estimator from the effect of the noisy (sampled-report) objective.

Arm Objective Gradient
reinforce expected Brier of softmax(mu + sigma*eps) score function, leave-one-out baseline
pathwise the same noisy objective backpropagation through mu + sigma*eps
supervised_control deterministic Brier of softmax(mu) exact backpropagation

All arms start from the saved varied-generator seed 17/42/83 initializations and use the cached Qwen3-1.7B features, identical labels, minibatch order, AdamW settings, eight samples, sigma 0.5 -> 0.05, 12 epochs (528 updates) and deterministic validation-Brier checkpoint selection (epoch 0 eligible). Run on one Tesla T4, PyTorch 2.11.0+cu128. Rerunning REINFORCE and direct Brier there reproduced the original checkpoints bit for bit (identical SHA-256).

Main result (test Brier, uncalibrated, mean ± SD over three seeds)

Arm Brier Fitted global temperature
REINFORCE 0.1029 ± 0.0026 1.24
Pathwise (same noisy objective) 0.0994 ± 0.0008 1.13
Direct Brier 0.0991 ± 0.0010 1.15

The pathwise arm matches direct training, so in this setup the REINFORCE deficit is associated with the score-function estimator, not the noisy objective. On fixed batches REINFORCE gradient estimates have 61–4,700× the variance of pathwise estimates (mean over seeds). With three extra noise draws per seed, REINFORCE test Brier ranged 0.0944–0.1089 (pathwise 0.0962–0.1010). Synthetic tasks only; exploratory, because these test splits had informed earlier development.

Files

  • results.md – readable tables (test results, selected checkpoints, paired scenario-bootstrap differences, rerun check, gradient diagnostics, noise draws).
  • summary.json – all numbers, including per-epoch validation curves.
  • tiny_jev_estimator_kaggle.ipynb – the notebook that produced them.
  • tiny-jev-estimator-kaggle-v041.zip – self-contained inputs: v0.4.1 source, the varied synthetic data, cached Qwen features and the three saved initializations, with inputs/SHA256SUMS.json. The notebook verifies these checksums and that each initialization matches the original study.

Reproduce

Upload the zip as a private Kaggle dataset, import the notebook, select a GPU T4, attach the dataset and Run All (a few minutes). No internet is needed. Code: ../source-0.4.1.zip or ../tiny_jev-0.4.1-py3-none-any.whl (tiny_jev.estimator_study, tiny_jev.policy_training.pathwise_loss).