An OpenEnv-format RL environment for
arXiv:2605.07119 — “Classification Fields”
with two modes. mode="hard" (default): every episode seed generates a NEW
random smooth nonlinear IFS hierarchy (the paper's random-IFS family, official repo at
commit cb52f15); the agent sees only levels 0–2 and must predict the ordered
point sets at levels 3–5. Ground truth is server-held; reward is normalized between the paper's affine residual predictor (0) and its CFP (1), up to 3 under a log-ratio scale.
mode="easy": the original Table 1 reproduction task. CPU-only.
openenvarXiv:2605.07119 paper-reproductionhard-modeCPU
reward = clip(log(MSE_affine/MSE_agent) / log(MSE_affine/MSE_cfp), 0, 3)
Anchors are the paper's own protocol (Adam, 2000 epochs) on the observed levels,
with the published seed torch.manual_seed(0) — exactly reproducible.
Salt versioning: EVAL_SALT_VERSION selects eval-v1 (revealed) or
eval-v2 (default, private, in
the private eval dataset).
Salt rotation: the eval-v1 salt was exposed in our published agent
trace, so we revealed it (8c2ea4a6…70a08, sha256 still matches the
original commitment) and rotated to eval-v2 — private, pinned by
sha256(salt_v2) = 672c5fb7…7e27. Reference scripts on eval-v2:
copy-parent 0.0000, affine 0.0000,
CFP 1.0000, exact least squares 2.7620.
| Agent | Mean reward | MSE_agent range |
|---|---|---|
copy_parent.py (no model) | 0.0000 | 3.5e-2 … 2.1e-1 |
affine_baseline.py (paper's affine) | 0.0000 | 1.2e-3 … 1.7e-2 |
cfp_reference.py (paper's CFP) | 1.0000 | 3.6e-4 … 6.5e-3 |
lstsq_affine.py (exact least squares) | 2.7916 | 3.2e-5 … 3.2e-4 — beats the CFP on all 10 seeds (capped at 3.0 on 6 of 10) |
The Adam-2000 affine anchor is under-trained: a correctly fitted least-squares affine model beats the CFP and earns reward above 1.
get_task — task, reward formula, seed namespaces, budgetsget_paper_summary — method context from arXiv:2605.07119get_training_levels — levels 0–2 only; levels 3–5 stay server-siderun_python — sandboxed CPU Python (numpy+torch), 120 s/call, 30 calls/episodesubmit_predictions — ordered point sets for levels 3/4/5; ends the episodegit clone https://huggingface.co/spaces/Neurips-2026-MLIntern-Repro/rl-env-2605.07119-classification-fields
cd rl-env-2605.07119-classification-fields
uv sync # openenv, torch (CPU), numpy, scipy, matplotlib
uv run --project . server # OpenEnv server on http://localhost:8000
python scripts/hard/cfp_reference.py --base-url http://localhost:8000 # reward ~1.0
python scripts/reference_solution.py --base-url http://localhost:8000 # easy mode, reward 1.0
Sources: paper · official repo (cb52f15) · verified reproduction · OpenEnv