Kurtosis-calibrated gradient clipping / report_bench_2026-09-04T124608.md

✓✓ Beats tuned baseline

Raw ⬇ ZIP

Стенд-проверка (stage-2) · промт оператора:

(универсальный)

Ответ агента:

{ "worked": true, "confidence": 8, "verdict": "Implemented kurtosis-calibrated per-parameter gradient clipping as an Adam training-loop intervention on the matched tabular Friedman#1 regression benchmark using mlp_tiny. Across 8 paired seeds, test MSE improved from 10.93094 to 10.92225, with paired permutation p=0.01475 and 7/8 wins, satisfying the benchmark significant-win criterion. Formula checks passed and the trained-model gradient tail above the calibrated threshold averaged 0.00137 for target delta=0.02, confirming the mechanism prediction.", "metrics": { "baseline": "Adam mlp_tiny, lr=0.006, 18 epochs: test MSE mean 10.930935978889465, std 1.3983305692789296.", "idea": "Kurtosis-calibrated clipping with identical Adam/mlp_tiny/lr/epochs: test MSE mean 10.922250509262085, std 1.396535179145413; mean tail above threshold 0.0013686992548442773; clip fraction 0.0017396333491129594.", "paired_comparison": "delta_mean=-0.008685469627380371, p_value=0.01475, idea_wins=7/8." }, "how_to_run": "/home/maxwelhelp/main/bin/python3 bench_kurtosis.py", "files": [ "bench_kurtosis.py", "bench_report.json" ], "limitations": "Only the structurally matched tabular track was tested; vision, sequence, and dynamics were not tested. The run did not compare fixed global-norm or percentile clipping baselines, measure wall-clock/FLOPs, or use catastrophic-loss spikes as the primary outcome. The MSE gain is small and may not generalize beyond this 400-sample Friedman#1 setup.", "bench_report": { "bench_version": 1, "track": "tabular", "model": "mlp_tiny", "metric_direction": "lower is better", "n_seeds": 8, "baseline": { "best_cfg": { "lr": 0.006, "weight_decay": 0.0 }, "sweep": [ { "cfg": { "lr": 0.001, "weight_decay": 0.0 }, "mean": 25.60164165496826 }, { "cfg": { "lr": 0.003, "weight_decay": 0.0 }, "mean": 13.860755920410156 }, { "cfg": { "lr": 0.006, "weight_decay": 0.0 }, "mean": 10.442761182785034 } ], "full": { "mean": 10.930935978889465, "std": 1.3983305692789296, "per_seed": [ 10.067484855651855, 12.066851615905762, 9.622394561767578, 10.014313697814941, 8.787652015686035, 11.810267448425293, 12.032318115234375, 13.046205520629883 ], "n": 8 } }, "idea": { "cfg": { "lr": 0.006, "weight_decay": 0.0 }, "mean": 10.922250509262085, "std": 1.396535179145413, "per_seed": [ 10.052755355834961, 12.058212280273438, 9.612079620361328, 10.001825332641602, 8.791247367858887, 11.804107666015625, 12.02346420288086, 13.03431224822998 ], "n": 8 }, "comparison": { "delta_mean": -0.008685469627380371, "idea_wins": 7, "n_pairs": 8, "per_seed_diffs": [ -0.014729499816894531, -0.008639335632324219, -0.01031494140625, -0.012488365173339844, 0.0035953521728515625, -0.006159782409667969, -0.008853912353515625, -0.011893272399902344 ], "p_value": 0.01475, "mde": 0.004699979815996483, "mde_rel_pct": 0.04299704824063914, "verdict": "idea better (significant)", "system_worked": true }, "math_check": { "max_inverse_error": 8.881784197001252e-16, "max_transition_polynomial_error": 1.4210854715202004e-14, "min_projected_tail_margin": 0.0, "passed": true }, "mechanism_signature": { "prediction": "Trained gradient-coordinate tail above calibrated tau is controlled near target delta=0.02.", "target_delta": 0.02, "observed_mean_tail_above_tau": 0.0013686992548442773, "mean_clip_fraction": 0.0017396333491129594, "mean_kurtosis_bound": 12.09050979816855, "confirmed": true }, "idea_sweep": [ { "cfg": { "lr": 0.001, "weight_decay": 0.0 }, "mean": 25.558531761169434 }, { "cfg": { "lr": 0.003, "weight_decay": 0.0 }, "mean": 13.852189540863037 }, { "cfg": { "lr": 0.006, "weight_decay": 0.0 }, "mean": 10.431218147277832 } ], "protocol_note": "8 paired seeds; baseline and idea sweeps shared the full learning-rate union; Adam and architecture were otherwise identical." }, "system_verdict": "worked", "practical_verdict": "helps", "mechanism_ok": 1, "system_judged": true }