△ Mechanism confirmed, baseline not beaten 2026

Self-Supervised Amortized Mean-Field Controller

Implementation & benchmark of arXiv:2608.18282 — Self-supervised In-context Operator Learning for Stochastic Mean-Field Control

Usefulness7/10
Difficulty6/10
Novelty6/10

Source paper: Self-supervised In-context Operator Learning for Stochastic Mean-Field Control arXiv:2608.18282 ⓘ · analyzed Sep 1, 2026

AI-generated research hypothesis, automatically tested. Not peer-reviewed.

Idea description

Train one prompt-conditioned controller to solve a distribution of stochastic control tasks directly from the control objective, instead of generating an optimal trajectory dataset for every task. Use the probability-flow velocity to evolve particles deterministically, evaluate running and terminal costs on those particles, and backpropagate through the rollout to learn a reusable operator.

Formulas

$$\mathrm dX_t=v(X_t,t)\,\mathrm dt+\sqrt{2\gamma}\,\mathrm dW_t$$
$$\partial_t p(x,t)+\nabla\!\cdot\!(p(x,t)v(x,t))=\gamma\Delta p(x,t),\qquad p(\cdot,0)=p_0$$
$$J(p,v)=\int_0^T\!\int_\Omega L(x,v(x,t))p(x,t)\,\mathrm dx\,\mathrm dt+\int_0^T I(p(\cdot,t))\,\mathrm dt+M(p(\cdot,T))$$
$$u_\theta(x,t;c)=v_\theta(x,t;c)-\gamma\nabla_x\log p_\theta(x,t;c),\qquad \dot X_t=u_\theta(X_t,t;c)$$

Mathematical statement

The controlled representative-agent dynamics are \(\mathrm dX_t=v(X_t,t)\,\mathrm dt+\sqrt{2\gamma}\,\mathrm dW_t\), with diffusion coefficient \(\gamma>0\). The population density \(p(x,t)\) satisfies \(\partial_t p+\nabla\cdot(pv)=\gamma\Delta p\), with initial density \(p_0\). The objective is \(J(p,v)=\int_0^T\int_\Omega L(x,v(x,t))p(x,t)\,\mathrm dx\,\mathrm dt+\int_0^T I(p(\cdot,t))\,\mathrm dt+M(p(\cdot,T))\). Since \(\gamma\Delta p=\nabla\cdot(\gamma p\nabla\log p)\), the equivalent continuity equation has deterministic probability-flow velocity \(u(x,t)=v(x,t)-\gamma\nabla_x\log p(x,t)\): \(\partial_t p+\nabla\cdot(pu)=0\). A neural operator \(v_\theta(x,t;c)\), or a flow producing it, is conditioned on task specification \(c\), such as cost parameters, target distributions, obstacle parameters, or a particle prompt. Monte Carlo particles evolved by \(\dot X=u_\theta(X,t;c)\) estimate the objective without requiring precomputed optimal controls.

Implementation notes

Integrate this at training-time rollout and use the resulting controller for fast inference across many related tasks. Sample a minibatch of tasks \(c_b\), each containing compact parameters or a particle-cloud prompt, and sample initial particles \(X_{b,0}^{(n)}\sim p_{0,b}\). A transformer encoder maps \(c_b\) to a context vector; a pointwise controller head outputs \(v_\theta(x,t;c_b)\). If the density is represented by the invertible flow above, evaluate \(s_\theta=\nabla_x\log p_\theta\); otherwise estimate the score with a denoising score head and include a score-matching auxiliary loss. Use Euler or Heun integration: for m=0..M-1: t=m*T/M; s=score(X,t,c); v=controller(X,t,c); u=v-gamma*s; X=X+dt*u. Accumulate dt * mean(L(X,v)), estimate \(I(p_t)\) from flow log density or a kernel/entropy proxy, and add the terminal cost \(M(X_T)\). Backpropagate the total Monte Carlo cost; do not use target trajectories. The exact mathematical transformation is the probability-flow drift \(u=v-\gamma\nabla\log p\); numerical integration, finite-particle estimates, and score estimation are empirical approximations. First experiment on 2-D Gaussian initial and target distributions with quadratic control cost and three task parameters: target mean, target covariance, and \(\gamma\). Compare one shared prompt-conditioned model against solving each task independently with the same MLP and against supervised imitation from an optimizer. Evaluate objective value, terminal mismatch, constraint violations, and wall-clock time for 100 new tasks. Success is lower amortized cost after accounting for pretraining, plus substantially reduced per-task optimization time without a significant increase in terminal error.

Verification

Mechanism confirmed, baseline not beaten

Stage 1 · Toy mechanism gate: Passed ✓

Stage 2 · Mechanism transferred to benchmark: Confirmed ✓

Stage 2 · Practical benchmark result: Significantly worse ✗

Methodology: 8 paired seeds, permutation test (p<0.05) against a learning-rate-tuned baseline. How verification works

Stage 1 — Mechanism check agent confidence 9/10

Built a direct-cost, prompt-conditioned probability-flow controller and verified the core mechanism numerically. Across gamma={0,.05,.1,.2,.4}, the measured Gaussian variance derivative matched 2gamma to less than 1.2e-16 absolute error, and the Euler excess variance matched gamma^2 dt^2/S0 to less than 2.4e-16 absolute error; the zero-gamma correction was approximately 1.1e-16. The amortized controller had cost 0.728 versus 0.313 for short independent per-task optimization, so this toy run confirms the mechanism but does not demonstrate an overall amortized objective win after pretraining.

Agent confidence
9/10
Baseline
Independent 90-step optimization: mean cost 0.3131, mean terminal-mean error 0.0184, mean terminal-variance error 0.0041, 11.92 seconds/task.
Idea
Shared controller after 700 direct-cost training iterations: mean cost 0.7280, mean terminal-mean error 0.0532, mean terminal-variance error 0.0852, 97.42 seconds pretraining; inference rollout itself is one forward pass without per-task optimization.
Math predictions
Variance slope observed/predicted: 2gamma, maximum absolute error 1.2e-16. Euler correction observed/predicted: gamma^2 dt^2/S0, maximum absolute error 2.4e-16. At gamma=0, correction was -1.1e-16.

Limitations: The controller comparison is a small 2-D diagonal-Gaussian toy study, uses an empirical Gaussian score from finite particles, and does not test obstacles, non-Gaussian densities, supervised imitation, 100-task wall-clock accounting, Heun integration, or a rigorous amortized break-even analysis. Independent optimization was evaluated on 8 tasks rather than the full task distribution to limit runtime.

How to run: python3 experiment.py > results_fixed.json

Stage 2 — Benchmark vs. tuned baseline (arXiv:2608.18282)

Significantly WORSE than the tuned baseline (+0.2%, p=0.0081, wins 0 / 8 paired seeds).

Benchmark
Dynamics forecasting
Model
rnn_small
Paired seeds
8
Baseline mean
0.0018
Idea mean
0.0018
Effect (Δ)
0 (+0.2%; negative = idea better)
Wins
0 / 8 paired seeds
p-value
0.0081 (permutation test, 20 000 shuffles)
Smallest detectable effect
±0.1%
Mechanism
Confirmed ✓
Practical effect
Hurts
Baseline tuning
swept over 3 configs
Limitations:

Only the built-in 8-step actuated-pendulum dynamics track was tested; no PDE/custom mean-field distribution track, longer horizons, non-Gaussian particle distributions, Heun integration, supervised imitation, or amortized inference-time wall-clock study was evaluated. The intervention is a dynamics-track consistency regularizer inspired by probability flow rather than a full particle rollout controller because the fixed benchmark exposes supervised next-angle regression targets.

How to run: python3 bench_stage2.py

Verdict computed by deterministic test code from paired-seed statistics — not by the language model.

Stage 2 — Benchmark latest Failed ✗

Agent confidence: 9/10

Implemented a matched dynamics benchmark for the self-supervised probability-flow consistency intervention using identical rnn_small models, paired seeds, baseline learning-rate sweep, and an equal-sized idea sweep. The trained-model mechanism signature was confirmed: prediction sensitivity decreased by 0.33% (0.0339321 to 0.0338214), but standard test MSE became significantly worse, 0.00183970 versus 0.00183620, with paired delta +3.50e-6 and permutation p=0.0081. Therefore the idea does not win the required benchmark metric.

Baseline
Dynamics rnn_small, best lr=0.006: test MSE 0.0018362020 ± 0.0005092447 across 8 seeds.
Idea
Probability-flow consistency loss, best lr=0.006 and weight=0.03: test MSE 0.0018397023 ± 0.0005083829; paired delta +3.5003e-6, p=0.0081; significant worse.
Mechanism signature
Trained-model absolute prediction sensitivity under score-transport perturbation: baseline 0.0339321275, idea 0.0338214338, ratio 0.9967378, confirmed=true.

Benchmark result

Significantly WORSE than the tuned baseline (+0.2%, p=0.0081, wins 0 / 8 paired seeds).

Benchmark
Dynamics forecasting
Model
rnn_small
Paired seeds
8
Baseline mean
0.0018
Idea mean
0.0018
Effect (Δ)
0 (+0.2%; negative = idea better)
Wins
0 / 8 paired seeds
p-value
0.0081 (permutation test, 20 000 shuffles)
Smallest detectable effect
±0.1%
Mechanism
Confirmed ✓
Practical effect
Hurts
Baseline tuning
swept over 3 configs
Limitations:

Only the built-in 8-step actuated-pendulum dynamics track was tested; no PDE/custom mean-field distribution track, longer horizons, non-Gaussian particle distributions, Heun integration, supervised imitation, or amortized inference-time wall-clock study was evaluated. The intervention is a dynamics-track consistency regularizer inspired by probability flow rather than a full particle rollout controller because the fixed benchmark exposes supervised next-angle regression targets.

How to run: python3 bench_stage2.py

Artifacts

Implementation overview ⬇ Download all as ZIP 7 files · code, reports and structured results