InfraRSI: 1.83× geomean speedup, mean MFU from 17.4% to 30%

InfraRSI: Harnessing Recursive Self-Improvement for Training Infrastructure

InfraRSI Team, Yuchuan Tian, Haocheng Mei, Ye Yuan, Chao Xu, Boxun Li, Guohao Dai, Kai Han, Allen Chen, Yunhe Wang, Yu Wang

cs.AI

2026-11-09

InfraRSI searches launch knobs and code patches under 16 invariants, with 1.83× geomean speedup and mean MFU from 17.4% to 30.0% on four LLM jobs.

What problem this solves

Distributed training throughput is a bundle of launch flags, kernels, and communication schedules. Change one piece and the job often OOMs, fails to compile, jitters, or drifts numerically.

Unconstrained coding agents cheat that bundle. They shrink the real batch, push the optimizer step outside the timed window, or cast to a precision the task did not allow. Noise spans two orders of magnitude: dedicated 8×H100 and 8×H200 nodes move 0.04%-0.10% in step time, shared hosts move more than 6%. A fixed 2% gate drops real 0.5%-1.5% communication overlap on quiet nodes and promotes jitter on noisy ones. Zero-shot speed priors track measured speed at Spearman r from -0.49 to -0.06. On Gemma-4-26B-A4B MoE (8×H200) the prior calls torch.compile about +2%; the run delivers +55%. On two-node Qwen3.5-35B-A3B it expects extra NCCL channels to slow the step; the run gains +10.2%. Turning activation recomputation off alone is 18 GiB over the card. Auto-Research stalls at 1.29× on that Gemma job.

Method

InfraRSI sits on Megatron-Core, FSDP2/TorchTitan, DeepSpeed, and HF Trainer through adapters under 15 hook lines. The stages are init, doctor, run, report, and apply. init freezes the editable file set, SHA-256 hashes of data loaders, loss, and timers, and a task contract: architecture, data, tokens per update, the precision menu, and optimizer-step count stay fixed. That freeze is what stops reward hacking. doctor drops warmup, estimates paired step noise σpair, splits the step into forward, backward, optimizer, and collectives, and caps any single lever with an Amdahl ceiling from that profile.

Search does not walk off the latest winner. The first three trials are full configurations: the verified winner from the closest hardware in the experience bank, the prior's favorite config that differs in at least one big knob, and one legal random config. A Cholesky Bayesian linear model then fits log-speedup on every trial. A right-censored Tobit model fits peak memory and treats an OOM shortfall as a lower bound, so each knob gets a price in GiB. A big knob is any switch whose single-knob log-speedup clears max(0.02, 2σpair), about 2%. Knobs the prior vetoes, but whose two-sigma upside still clears that bar, get a contrarian probe, with the best memory saver attached when the fit says the card is short. On Gemma the bundle is recomputation off (18 GiB short), Liger fused cross-entropy off (14 GiB saved), torch.compile on, plus FlexAttention that caches the block mask for 25 sliding-window layers and a chunked kernel for 5 global layers. That is the 2.75× configuration.

Promotion needs 16 invariants. If nothing passes, delivered speedup is 1.00× and the failed GPU-hours still count. A passing candidate must beat the baseline in a fresh back-to-back rerun on the same GPUs, by more than exp(2σpair)-1. Passing trials are written back over 71 canonical mechanisms, because an FP8 or tensor-parallel win on H20 can change sign on H200.

Results

MFU uses the dense BF16 peak of 989.5 TFLOP/s per GPU as the denominator and PaLM-style active FLOPs as the numerator. The clock is the mean step over updates 11-30. Recomputation, communication, and unrouted experts stay out of the numerator.

WorkloadBase MFUOptiCoAuto-ResearchRE-BenchInfraRSI
Qwen3.5-9B, 8×H10025.3%1.24× / 31.5%1.53× / 38.6%1.62× / 40.9%1.73× / 43.8%
Gemma-4 MoE, 8×H2006.4%1.32× / 8.4%1.29× / 8.3%1.33× / 8.5%2.75× / 17.6%
Qwen3.8-27B, 8×H20029.3%1.19× / 35.0%1.39× / 40.8%1.38× / 40.6%1.55× / 45.4%
Qwen3.5-35B MoE, 16×H1008.7%1.17× / 10.3%1.17× / 10.2%1.17× / 10.3%1.51× / 13.2%
Four-job aggregate17.4%1.23× / 21.3%1.34× / 24.5%1.37× / 25.1%1.83× / 30.0%

The 1.83× figure is a geometric mean of speedups. 30.0% is the arithmetic mean of MFU. Gemma's jump from RE-Bench at 1.33× to 2.75× moves that mean. On the two-node MoE every baseline sits at 1.17×. InfraRSI reaches 1.51× by opening 32 InfiniBand NCCL channels and stacking fused SwiGLU with bucketed gradient-norm all-reduce. On the dense 9B and 27B jobs RE-Bench is already close: 1.62× vs 1.73×, and 1.38× vs 1.55×. The 9B gain frees memory with Liger, turns recomputation off, raises micro-batch to 2, and fuses normalization. The 27B gain fuses RMSNorm, RoPE, and SwiGLU and switches to selective recomputation.

Cross-SKU transfer is reported only for Qwen3.5-9B on 8×H100. Cold start and the unfiltered experience bank both finish at 1.70× and never hit 90% of peak log-speedup inside the budget. Evidence taken only from other GPU SKUs finishes at 1.82×, crossing that line at trial 9 and 2.97 GPU-hours. Re-judging 1,212 stored executions rejects 33.0%. Of those, 3.2% pass every non-numeric check and fall only at the loss and gradient layer. On the same 9B job, loss tolerances of 0.10%, 3%, and 50% all land between 1.70× and 1.75×.

Why it matters

Knob-only OptiCo stops at a 1.23× geometric mean because flags do not remove kernel overhead. A search that steps from one incumbent throws away the whole bundle at the first OOM, which is why the coding-agent baselines stick near 1.3× on Gemma. The memory model turns that failure into a price: an 18 GiB hole is a request for a knob already measured at 14 GiB saved.

Signs flip across cards. Tensor parallelism on Qwen3-8B is +24% on H20 and -4% on H100. FP8 attention is +6% on H20 and -8% on H200. The experience bank may rank and initialize. The posterior still moves on target measurements. Configuration search and patch search share one contract. The gains hold inside a 16-GPU envelope.

Limitations

The paper has no limitations section. The largest job is two nodes, 16×H100, Qwen3.5-35B-A3B. Timing is updates 11-30. Loss tolerance is frozen before search and checks a short window. A full training curve is not measured. MFU's denominator is dense BF16 peak, so MoE figures of 17.6% and 13.2% are not on the same scale as the dense jobs at 43.8% and 45.4%.

Transfer is one 9B target. Dumping every pack matches cold start at 1.70×. The 1.82× appears only after cross-SKU filtering, so the filter is part of the result. The tolerance sweep never touches the 2.75× Gemma run that dominates the geometric mean. Table 1 frames each campaign as roughly 10-20 trials. Cost is logged along trajectories, but the main table does not line up GPU-hours or tokens across methods.

Terms

Source

What people are saying

Related papers

All paper explainers