Classification Fields RL Environment v2

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 (hard mode)

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).

Measured on the 10 hidden eval-v1 seeds (2 vCPU, 2026-12-02 — salt revealed, fully verifiable)

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.

AgentMean rewardMSE_agent range
copy_parent.py (no model)0.00003.5e-2 … 2.1e-1
affine_baseline.py (paper's affine)0.00001.2e-3 … 1.7e-2
cfp_reference.py (paper's CFP)1.00003.6e-4 … 6.5e-3
lstsq_affine.py (exact least squares)2.79163.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.

Agent tools (hard mode)

Serve it locally (this Space ships the source)

git 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