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

arXiv:2611.11558 · 2026-11-10 공개 · arXiv · PDF

mixture-of-experts llm-training recursive-self-improvement memory-optimization training-infrastructure code-patching model-flops-utilization experience-transfer

Abstract

While Recursive Self-Improvement (RSI) accelerates isolated algorithm and kernel synthesis, distributed LLM training depends on tightly coupled launch settings, operator kernels, and communication schedules, where single edits often hit out-of-memory (OOM) boundaries, compiler conflicts, measurement jitter, or silent numerical drift. We present InfraRSI, the agentic harness that turns open-ended human commands into verified training optimizations via a five-stage workflow: init locks editable scope and a fixed task contract over workload, loss, and timing invariants to prevent reward hacking, doctor profiles baseline phases and calibrates cluster noise, run co-optimizes launch knobs and code patches before re-verifying top candidates against the baseline and logging findings to a cross-hardware experience bank, and report and apply audit source paths, track failed-trial costs, and commit promoted changes. Rather than stepping greedily from a single incumbent, InfraRSI initializes from diverse experience-seeded configurations and fits global execution-time and censored peak-memory models across all trials, including OOMs. Using these models, it prices per-setting memory costs, revises miscalibrated LLM priors from live runs, and pairs memory-hungry optimizations with memory savers and verified code patches. Across four single- and multi-node dense and Mixture-of-Experts (MoE) LLM workloads, InfraRSI achieves a speedup of up to 2.75times and lifts mean Model FLOPs Utilization (MFU) from 17.4% to 30.0%, outperforming existing tuners and coding agents while transferring experience across GPUs. As it improves training infrastructure efficiency, InfraRSI forms a two-level Recursive Self-Improvement loop---revising priors online within runs and distilling experience across clusters---to push foundation model scaling.

한국어 요약

한 줄 요약

InfraRSI는 LLM 훈련 인프라 최적화를 위한 5단계 워크플로 기반의 에이전트 하이브리드 시스템으로, 2.75× 가속과 30.0% MFU 달성.

핵심 기여도

핵심 아이디어

InfraRSI는 기존의 단일 설정에서의 탐색 방식을 벗어나, **다양한 경험 기반 설정**에서 시작하여 **전역 실행 시간 및 메모리 모델**을 적응적으로 학습함으로써 훈련 인프라 최적화를 수행한다. 이는 단순히 알고리즘 개선에 머무르는 RSI와 달리, **발사 설정, 커널, 통신 일정** 등 분산 훈련의 핵심 요소를 통합적으로 최적화하는 새로운 접근법이다.

핵심 통찰은, **LLM의 예측 속도 향상은 실제 하드웨어 실행과 상관성이 낮기 때문에**, **실행 중 실시간 피드백과 실패 분석**을 통해 모델을 보정해야 한다는 점이다. 이는 **Prior Calibration, Failure Attribution, Bundle Completion** 단계에서 구현되며, **OOM 설정**과 **메모리 절약 설정**을 짝지어 최적화한다.

기술적 접근법

주요 결과

의의 및 한계

InfraRSI는 기존 훈련 인프라 최적화 도구와 달리, **소스 코드 수정과 발사 설정을 동시에 최적화**함으로써 **비선형 상호작용**을 고려한 통합적 접근법을 제시한다. 특히, **LLM의 예측 불확실성**과 **하드웨어 노이즈**를 감지하고 보정하는 기법은 학술적·실용적 가치가 크다.

하지만, **초기 경험 데이터의 질**에 따라 성능이 크게 달라질 수 있으며, **복잡한 커널 수정**은 여전히 수작업 검증이 필요할 수 있다. 또한, **다양한 하드웨어 아키텍처 간의 경험 전이**는 일부 경우 정확도가 떨어질 수 있다.

실용적 활용

InfraRSI는 **LLM 대규모 훈련**을 수행하는 클라우드 제공업체, 연구소, 기업에서 **자동화된 인프라 최적화**에 활용 가능하다. 특히, **다양한 GPU 아키텍처를 가진 클러스터**에서 경험을 공유하며 **비용 효율적인 훈련**을 구현할 수 있다.