InfraRSI:利用递归自我改进优化训练基础设施
InfraRSI: Harnessing Recursive Self-Improvement for Training Infrastructure
AI总结:
InfraRSI是利用递归自我改进的智能体工具,通过五阶段工作流优化LLM训练基础设施,在四类工作负载上实现最高2.75倍加速,MFU从17.4%升至30.0%,性能优于现有方案。
摘要:
尽管递归自我改进(RSI)可加速孤立算法与内核合成,但分布式大语言模型(LLM)训练依赖紧密耦合的启动设置、算子内核及通信调度,单次修改常遭遇内存溢出(OOM)边界、编译器冲突、测量抖动或隐性数值漂移问题。本文提出InfraRSI,一种智能体工具,通过五阶段工作流将开放式人类指令转化为经验证的训练优化方案:init阶段锁定可编辑范围及关于工作负载、损失、时间不变量的固定任务契约,防止奖励黑客行为;doctor阶段分析基线阶段并校准集群噪声;run阶段协同优化启动参数与代码补丁,再针对基线重新验证候选方案并将结果记录至跨硬件经验库;report阶段应用审计源路径、追踪失败试验成本并提交已推广的变更。InfraRSI并非从单一现有方案贪婪迭代,而是从多样化经验生成的配置初始化,对所有试验(含OOM情况)拟合全局执行时间与删失峰值内存模型。利用这些模型,其评估各设置的内存成本、修正实时运行中校准不当的LLM先验,并将内存密集型优化与内存节省措施及经验证的代码补丁配对。在四项单节点与多节点密集型及混合专家(MoE)LLM工作负载上,InfraRSI实现最高2.75倍加速,平均模型FLOPs利用率(MFU)从17.4%提升至30.0%,在跨GPU迁移经验的同时优于现有调谐器与编码智能体。随着训练基础设施效率提升,InfraRSI形成两级递归自我改进循环——在运行中在线修正先验并跨集群蒸馏经验——以推动基础模型扩展。
英文摘要:
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.75\times$ 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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。