Rust in Everything
← Papers

InfraRSI: Harnessing Recursive Self-Improvement for Training Infrastructure

InfraRSI Team, Yuchuan Tian, Haocheng Mei, Ye Yuan, Chao Xu, Boxun Li et al.

2026-11-10▲ 16arXiv 2611.11558v1Hugging FaceCode

AI-generated from the full paper (deepseek-flash). It may contain mistakes; check the original.

TL;DR

InfraRSI is a five-stage agentic harness that turns LLM-proposed launch-configuration and code changes into verified distributed training speedups using fixed task contracts, compositional search, and cross-hardware experience transfer.

Problem

Distributed LLM training throughput is governed by tightly coupled launch settings, operator kernels, and communication schedules, where single edits can hit OOM boundaries, compiler conflicts, measurement jitter, or silent numerical drift. Unconstrained coding agents and greedy tuners suffer reward hacking, wide-spectrum cluster noise, unreliable zero-shot LLM priors, and single-incumbent search stalls at memory and compiler boundaries. InfraRSI targets open-ended human commands over production training repositories while preserving workload, loss, and timing invariants.

Method

InfraRSI runs a five-stage workflow: init, doctor, run, report, and apply. init locks editable repository scope and a fixed task contract over workload, loss, and timing invariants; doctor profiles baseline execution phases and calibrates paired step-time noise. The run stage performs budgeted compositional search over launch configurations and source patches, starting from diverse experience-seeded configurations and fitting global execution-time and censored peak-memory models to all trials including OOM failures. It revises miscalibrated LLM priors from live measurements, attributes failures, pairs memory-hungry optimizations with memory savers, expands around high-impact knobs, stacks verified code patches, and re-runs top candidates back-to-back against the baseline. Verified findings are distilled into a cross-hardware experience bank, after which report and apply audit source paths, account for failed-trial costs, and commit promoted changes.

Results

  • On Qwen3.5-9B with 8 H100 GPUs, InfraRSI reaches 1.73x speedup and 43.8% MFU from a 25.3% base MFU. §6.1
  • On Gemma-4-26B-A4B MoE with 8 H200 GPUs, InfraRSI reaches 2.75x speedup and 17.6% MFU from a 6.4% base MFU. §6.1
  • Across four dense and MoE workloads, InfraRSI achieves 1.83x geometric-mean speedup and lifts mean MFU from 17.4% to 30.0%, outperforming RE-Bench at 1.37x and 25.1% MFU, Auto-Research at 1.34x and 24.5% MFU, and OptiCo at 1.23x and 21.3% MFU. §6.1
  • Cross-SKU experience transfer on Qwen3.5-9B with 8 H100 GPUs lifts final speedup from 1.70x to 1.82x and reaches the 90% peak threshold at Trial 9 with 2.97 GPU-hours, while cold start and all eligible packs are right-censored beyond 15 and 17 trials. §6.2
  • Offline re-judging of 1,212 stored executions rejects 400 executions at 33.0%, leaves 812 valid, achieves 40/40 agreement on the released verifier suite, and finds 39 executions at 3.2% that require the L4 numerical layer. §6.3
  • In the tolerance and fixed-noise ablation on Qwen3.5-9B with 8 H100 GPUs, all four arms reach the 90% peak threshold within 10-11 trials and achieve final speedups between 1.70x and 1.75x at 6.02-7.05 GPU-hours. §6.3

Limitations

  • Experiments leave open performance on training stacks beyond the four evaluated dense and MoE workloads, even though the harness describes adapters for Megatron-Core, FSDP2/TorchTitan, DeepSpeed, HF Trainer/TRL, and native PyTorch DDP.
  • Cross-SKU experience transfer is evaluated only on Qwen3.5-9B with 8 H100 GPUs, leaving its generality to other workloads and GPU SKUs open.
  • The numerical tolerance and fixed-noise ablation is evaluated only on Qwen3.5-9B with 8 H100 GPUs, leaving sensitivity across other workloads and clusters open.
  • The experience corpus in Table 3 is described as an initial seed bank with 11 seed packs, 191 environments, 698 observations, 543 effects, and 71 canonical mechanisms, so transfer behavior with larger production histories is left open.

Key points

  • The harness exposes five deterministic CLI stages: init, doctor, run, report, and apply, with init locking editable files and frozen-file hashes. §3.1
  • Candidates are verified against 16 deterministic invariants across five layers covering execution, workload, optimizer schedule, numerical loss and precision, and timing consistency, plus source-path auditing. §3.3
  • Resource accounting retains GPU and API costs for failed or audit-excluded candidates, and migrating a workload to a new host requires a fresh local baseline. §3.2
  • The run stage uses multi-start initialization with global execution-time and censored peak-memory models, prior calibration with failure attribution and bundle completion, and high-impact knob escape with code patch stacking. §1
  • The experience protocol is structured around Environment, Observation, and Effect records, with framework-specific flags mapped into 71 canonical mechanisms. §5.2
  • Cross-hardware rooflines cause magnitude compression and sign flips, such as FP8 gaining +58% on H20 but +30% on H200, and tensor parallelism gaining +24% on H20 but losing -4% on H100. §5.1
  • When no candidate clears all verification and promotion gates, the harness retains the reference configuration and reports a delivered speedup of 1.00x while preserving excluded trials in the audit log. §3.4

Mind map

InfraRSI
Five-stage workflow
init
doctor
run
report
apply
Fixed task contract
16 invariants
Five verification layers
Source-path audit
Loss tolerance rules
Timing agreement
Compositional search
Multi-start initialization
Global time model
Censored memory model
Prior calibration
Bundle completion
Knob escape and patch stacking
Experience bank
Environment records
Observation records
Effect records
71 canonical mechanisms
Cross-SKU transfer
Evaluation
Qwen3.5-9B 8xH100
Gemma MoE 8xH200
Qwen3.8-27B 8xH200
Qwen3.5-35B MoE 16xH100
Baselines
Offline verifier audit
Verification layers
Execution
Workload
Schedule
Numerical
Timing
Promotion gate