Dataset Viewer
Auto-converted to Parquet Duplicate
meta
dict
runs
list
{ "commit": "57f0bab8df7bd3fe5e4d1ff8c23953989c62befc", "jax": "0.8.3", "gpu": "NVIDIA A10G 24GB", "python": "3.12", "dataset": "cod-rna (59535 rows, first 3 features, split test_size=0.2 random_state=0 -> 47628 train / 11907 test)", "note": "as-authored timing from author scripts unmodified; audited timing...
[ { "source": "audited", "file": "results/audited/fgd_bce_d12.json", "loss": "bce", "arm": "fgd_bce_d12", "final_test_loss": 0.2916794419288635, "final_train_loss": 0.294198215007782, "last_elapsed_time_seconds": 1.3879501819610596, "nn_train_time_seconds": null, "nn_pred_time_seco...

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

Reproduction of Figure 2, §4.1 — "Functional Gradient Descent with Adaptive Representations" (arXiv:2606.16926)

Reproduction of the cod-rna RKHS-regression experiment (adaptive tree FGD vs fixed-depth tree FGD vs MLP), from the authors' code pinned at dccsillag/experiments-adaptive-fgd@57f0bab8df7bd3fe5e4d1ff8c23953989c62befc — run unmodified, then re-run with audited timing. Paper: https://arxiv.org/abs/2606.16926v1

Setup (authenticated from source)

  • Data: cod-rna downloaded from csie.ntu.edu.tw as generate.sh does; load_svmlight_file → dense; labels (y+1)/2 ∈ {0,1}; first 3 of 8 features; train_test_split(test_size=0.2, random_state=0) → 47,628 train / 11,907 test; min–max scaled with train statistics (the source's # TODO standardize x? is not implemented — features are not standardized). Test set reaches slightly below 0 after scaling (−0.0566), as expected with train-only stats.
  • Method: FGD with RBF kernel exp(−100·‖x−y‖²), full-batch, 60 steps; MSE loss 0.5·mean((f−y)²); BCE via stable log_sigmoid on raw logits. LR 10 (MSE) / 50 (BCE) for all tree arms; adaptive: init depth 2, max depth 16, ε=0.5, midpoint splits; NN: 2×256 MLP, Adam, LR 1e-3 (MSE) / 1e-4 (BCE).
  • Environment: Python 3.12, jax 0.8.3 (+ flax 0.12.5, optax 0.2.6, jax-dataclasses 1.6.3, scikit-learn 1.8.0; versions pinned to the repo's own uv.lock), NVIDIA A10G 24 GB.

Results — final test loss (paper → ours)

Arm MSE paper MSE ours BCE paper BCE ours
Neural network 12.84 13.815 (audited rerun 12.410) 0.3325 0.3325 / 0.3327
Fixed FGD d=2 0.1310 0.131045 0.7167 0.716708
Fixed FGD d=4 0.0900 0.090073 0.5134 0.513479
Fixed FGD d=8 0.0588 0.058850 0.4024 0.402441
Fixed FGD d=12 0.0444 0.044438 0.2916 0.291679
Adaptive FGD 0.0378 0.037879 0.2434 0.242344

The loss ordering and magnitudes reproduce to 3–4 significant digits in both losses, including the NN's position between d=12 and d=8 in BCE.

Results — timing (paper RTX 4090 → ours A10G)

"as-authored" = author's unmodified scripts' last elapsed_time_seconds; "audited" = same run patched with an explicit jax.block_until_ready before the timer starts, with data load, warmup/JIT-compile, and final inference measured separately.

Arm MSE paper MSE as-authored MSE audited BCE paper BCE as-authored BCE audited
NN 1.02 s 2.481 s (train 3.942 s) 2.505 s (train 3.981 s) 1.05 s 2.481 s (4.026 s) 2.532 s (4.050 s)
d=2 257 ms 0.487 s 0.472 s 209 ms 0.522 s 0.543 s
d=4 232 ms 0.488 s 0.477 s 234 ms 0.540 s 0.526 s
d=8 274 ms 0.529 s 0.543 s 194 ms 0.595 s 0.590 s
d=12 762 ms 1.307 s 1.316 s 806 ms 1.355 s 1.388 s
Adaptive 843 ms 13.417 s 13.388 / 13.373 / 13.393 s 815 ms 13.419 s 13.457 s

Fixed arms run 1.7–2× slower than the paper (consistent with A10G vs RTX 4090). The adaptive arm does not: it is **10× slower than fixed d=12** (vs ~1.11× in the paper) and ~16–28× the paper's absolute number, which no plausible hardware factor explains.

Timer audit

  • Confirmed in source: ours.py and fgd_naive.py start the timer after an async JIT warmup without a pre-timer block_until_ready; nn.py explicitly blocks on four warmup tensors before its timer and times final prediction separately.
  • Effect measured: adding the missing pre-timer sync changed nothing — adaptive 13.388 s audited vs 13.417 s as-authored; d=12 1.316 vs 1.307 s. The queued warmup had already drained before the timer's first forced sync. The audited warmup (compile + queued work) is 22.2–23.1 s for adaptive, 0.9–5.3 s for fixed trees, 11.8–13.0 s for the NN; data load+split+scale 1.55–1.60 s (tree scripts) / 0.87 s (NN); final test inference <1 ms (NN: 0.001 s).
  • Conclusion: the timer asymmetry is real but does not explain the adaptive-vs-paper discrepancy.

Representation-error audit (the actual driver)

The adaptive arm's acceptance criterion is rel_error < ε/(1+ε) = 1/3 or depth ≥ 16. The criterion never fires: rel_error rises monotonically (MSE 0.80 → 61.70; BCE 1.30 → 61.08) because as the gradient shrinks, the denominator max|leaf values| collapses faster than the Lipschitz bound numerator. The tree therefore subdivides every epoch until MAX_DEPTH=16 (65,536 leaves), and most of the 60 steps run at that depth, where each gradient approximation samples 65,536 leaves × 8 points × 47,628 kernel rows. This depth trajectory is deterministic — same code, same data — so the pinned code cannot have produced the paper's 843/815 ms adaptive timing under any consistent reading of these scripts. The paper's number would be consistent with a code state where the criterion fires early (tree stays near depth 3–4, cost ≈ the d=4 arm) — but the repo has a single public commit, so that cannot be authenticated. Notably, Theorem 3.10's guarantee (RelErr ≤ ε/(1+ε) < 1/2) does not hold in this run: the pinned implementation runs with rel_error up to 61.7, yet still attains the best test loss.

Verdict

  • Verified: the loss claim — adaptive attains lower final test loss than every displayed fixed-depth arm and the NN baseline, in both losses, with values matching the paper to 3–4 digits on the exact source split.
  • Verified (direction): adaptive costs more runtime than the coarse fixed trees.
  • Falsified (magnitude): the paper's adaptive runtime (843/815 ms). With the pinned code the adaptive arm costs ~13.4 s on our hardware — ~10× fixed d=12, vs the paper's ~1.1× — and the discrepancy is not explained by the missing pre-timer sync. No repeat count or uncertainty is reported in the paper for this table; our adaptive repeats span 13.373–13.393 s (0.15 %).

Deviations

  • A10G (24 GB) instead of the authors' RTX 4090 (24 GB); losses are hardware-independent and matched, timings are reported as ours.
  • Dependencies pinned to the repo's uv.lock for the packages the kernel-regression scripts import; full uv sync (torch/CUDA renderer for other figures) not installed.
  • generate.sh's depth-16 fixed arm not run: the paper's Figure 2 table shows depths 2–12 only.
  • The NN is stochastic run-to-run (13.815 vs 12.410 final test MSE on identical seeds/commands); all tree arms are bit-reproducible.
  • Tuning: source learning rates used as-is, as the paper tuned them; the historical tuning budget is not re-run or counted (paper: "the learning rates were tuned to obtain the best possible performance of each method").

Files

  • results_summary.json — final numbers for all 26 runs (12 as-authored + 14 audited).
  • all_logs.txt — concatenated per-arm logs (ANSI/tqdm progress artifacts stripped, content otherwise verbatim): rel_error traces, AUDIT lines, epoch losses.
  • patch_audited.py — the patcher that produced ours_audited.py / fgd_naive_audited.py / nn_audited.py from the pinned sources (insertions only, ast-verified).
  • run_all.sh — the sequential runner used for the chained as-authored arms.

Citation

Reproduces: Csillag et al., "Functional Gradient Descent with Adaptive Representations", NeurIPS 2026. https://arxiv.org/abs/2606.16926v1

Downloads last month
-

Paper for thisisanshgupta/codrna-fgd-figure2-repro