RepoFactory Uses Low-Cost Proxy Metrics to Recursively Improve Long-Horizon Coding Environments
Researchers from Beihang University, Shanghai Jiao Tong University, and IQuest propose RepoFactory, a method that recursively improves long-horizon coding training environments using low-cost proxy metrics instead of expensive downstream feedback. The method defines three objectives—rationality, implementation scope, and structural coupling—to guide iterative modifications of reference implementations, task descriptions, and tests, aiming to enhance the training value of environments without waiting for model rollouts.
Coverage timeline
机器之心机器之心
让环境在构建过程中继续改进 软件开发是 Coding Agent 的核心应用场景,对 Agent 的要求也在从修复 Bug、开发单个功能,扩展到更长程、更复杂的开发任务。仅靠围绕局部修改的短程任务训练,难以覆盖这样的完整过程,因此需要构建面向完整项目开发的长程训练环境。 真实软件仓库为这类任务提供了丰富素材。但现有环境构建流程往往止于运行和验证,对任务本身能提供多少训练价值、还能怎样改进,缺少进一步优化。能够运行和打分,是环境可用的基础,还需要让任务提供充分的实现与组件协作经验。 让任务环境在构建过程中持续提高训练价值,相关方法往往依赖模型 Rollout,或用模型训练后的下游评测来判断修改是否有效。对于长程编程任务,一次完整求解就包含大量实现和调试,反馈的计算成本和等待时间也随之增加。来自北航,上交和 IQuest 的研究团队提出 RepoFactory,希望将递归自进化 RSI 中反馈驱动的迭代引入环境构建,这项工作要回答的问题是,能否用可靠、低成本、即时的代理指标,替代高成本、长周期的下游反馈,指导环境的持续改进? 论文标题: From Repositories to Training Environments: Scaling Long-Horizon Coding Agents with Environment Evolution Loop 项目地址:https://github.com/IQuestLab/RepoFactory 数据地址:https://huggingface.co/datasets/IQuestLab/RepoFactory RepoFactory 将环境进化的目标分为三个部分: 合理性 要求参考实现获得满分,未经修改的初始工作区获得零分,使评价能够区分完成任务与尚未实现任务的状态。 实现范围 结合代码规模与直接运行时依赖,反映任务要求的实现工作量。 结构耦合度 基于函数调用的可达关系,反映实现之间的结构联系。 构造 agent 优先满足合理性要求,再根据实现范围和结构耦合度的反馈,联合修改参考实现、任务说明和测试。实现范围引导任务包含更充分的开发工作,结构耦合度则鼓励实现之间形成更多联系。两者作为训练价值的代理指标,共同指导任务内容的改进。 每轮修改后,验证执行和代码分析都会重新给出结果,继续指导下一轮迭代。这个循环无需等待求解模型

Related stories
PKU Researchers Propose MapFlow to Reuse Attention Maps Across LLMs, Cutting Prefill Latency 15-20%
Researchers at Peking University's PKU-DAIR lab propose MapFlow, a method that reuses attention maps as intermediate states across different LLMs to avoid recomputing context when switching models. In evaluations, MapFlow reduces prefill latency by 15-20% and boosts throughput by up to 25% under a P90 first-token latency constraint in multi-turn routing scenarios, while maintaining generation quality. The paper has been accepted at SIGMOD 2027 and the code is open-sourced.
1 reports · 1 sources

Shanghai AI4S open-sources REMORY, a 1.9B memory module for recursive self-improvement
The Shanghai Academy of AI for Science, with Fudan University and Shanghai Chuangzhi Institute, open-sourced REMORY, a 1.9B-parameter memory module that enables small models to run independently for days via recursive self-improvement, achieving results near GPT-6.1-Terra. Trained fully self-supervised on two H800 GPUs, REMORY leads several key benchmarks and is available on arXiv, Hugging Face, GitHub, and the Xinghe Qizhi platform.
1 reports · 1 sources

Tsinghua and CUHK propose Cache Engineering, open-source AKV to cut inference costs
Researchers from Tsinghua University and the Chinese University of Hong Kong proposed Cache Engineering, an approach that lets agents directly manage KV cache instead of compressing context, and open-sourced the inference system AKV. In evaluations across three models and four agent tasks, Cache Engineering reduced average inference costs by 27.7% and improved average task success by 1.7% compared to Context Engineering.
1 reports · 1 sources

Lev: Recurrent Decision Model Adapts Compute per Problem, No Chain-of-Thought
Researchers from Lehigh University, UBC, and Vector Institute propose Lev, a decision model that uses recurrent computation instead of chain-of-thought to adaptively spend more compute on hard problems. Lev reads out option probabilities after each recurrent pass, trains jointly across depths, and uses a lightweight stopper to decide how many passes to run, enabling a single set of weights to answer at arbitrary depth. The authors describe this as System 1.5, preserving the direct interface of System 1 while allowing extra compute on difficult cases like System 2.
1 reports · 1 sources

News updates every hour. Subscribe in your RSS reader to get new stories automatically.
Subscribe