<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Blog | Xu Huang | AI Research</title><link>https://ydove0324.github.io/hx_resume/blog/</link><atom:link href="https://ydove0324.github.io/hx_resume/blog/index.xml" rel="self" type="application/rss+xml"/><description>Blog</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Mon, 19 Oct 2026 00:00:00 +0800</lastBuildDate><item><title>ResearchBoost: RSI starts with Infra</title><link>https://ydove0324.github.io/hx_resume/blog/researchboost-en/</link><pubDate>Mon, 19 Oct 2026 00:00:00 +0800</pubDate><guid>https://ydove0324.github.io/hx_resume/blog/researchboost-en/</guid><description>&lt;h2 id="1-introduction">1. Introduction&lt;/h2>
&lt;p>How can agents take part in building AI itself? This question is drawing growing attention. [1] We see recursive self-improvement (RSI), or more broadly &lt;strong>AI4AI&lt;/strong>, as a systems problem. It takes more than a new algorithm or model paradigm: agents need an environment where they can work on AI development, receive accurate, detailed, and timely feedback, and use each attempt to guide the next.&lt;/p>
&lt;p>A practical starting point is to automate more of a foundation model researcher&amp;rsquo;s work: [2] preparing domain-specific data, building infrastructure and harnesses, running training, and evaluating results. How much of this can agents handle? Where do they get stuck, and what help do they need? Experiment traces, researcher feedback, and data contributed through real-world use can also help us understand how to train the next generation of models for this work.&lt;/p>
&lt;p>We chose to start with infrastructure for two reasons:&lt;/p>
&lt;ol>
&lt;li>
&lt;p>&lt;strong>There is plenty of useful work to do.&lt;/strong> From frontier labs to individual researchers, substantial compute goes into repeated experiments, while research code often has room for performance improvements. Optimizing the full training system lets us see whether a faster kernel actually reduces end-to-end experiment time.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>The problem has clear boundaries.&lt;/strong> With training correctness preserved, we can measure whether an implementation is faster and by how much. This gives us a concrete setting to study how agents find bottlenecks, test changes, and recover from failed attempts. Improvements to widely used open-source projects can also help the community run experiments faster.&lt;/p>
&lt;/li>
&lt;/ol>
&lt;p>&lt;strong>That is why we are launching ResearchBoost.&lt;/strong> We started with four projects: RAE [3], Self Forcing [4], DMD (DMD2) [5], and LLaVA (LLaVA-1.5) [6]. Under fixed environments and evaluation protocols, agents iteratively optimized their training code. In the configurations tested, the speedups were &lt;strong>5.32×, 2.08×, 1.72×, and 2.39×&lt;/strong>, respectively, with a &lt;strong>geometric mean of 2.60×&lt;/strong>. We are open-sourcing the optimized implementations alongside our Infra Optimization Agent so others can use these improvements in their own research.&lt;/p>
&lt;p>We will also open a &lt;a href="#wishlist">&lt;strong>ResearchBoost Wishlist&lt;/strong>&lt;/a>. If training speed is slowing down your project, submit the repository and a runnable configuration. Depending on compatibility and available compute, we will optimize selected projects at no cost and release the improvements to the community.&lt;/p>
&lt;details class="wishlist" id="wishlist">
&lt;summary>&lt;span>&lt;small>LET’S SPEED UP YOUR RESEARCH&lt;/small>&lt;strong>ResearchBoost Wishlist&lt;/strong>&lt;span>Tell us about your project →&lt;/span>&lt;/span>&lt;/summary>
&lt;form class="wishlist-form" data-language="en">
&lt;p>Share your project and compute needs. We will review compatibility and available resources.&lt;/p>
&lt;label>Your email&lt;input name="email" type="email" autocomplete="email" required maxlength="254" placeholder="you@example.com">&lt;/label>
&lt;label>Repository URL&lt;input name="repo" type="url" maxlength="500" placeholder="https://github.com/…">&lt;small>For private repositories, describe how to share access in “Other information”.&lt;/small>&lt;/label>
&lt;label>Do you have compute available?&lt;select name="compute">&lt;option value="">Select an option&lt;/option>&lt;option>Yes&lt;/option>&lt;option>No&lt;/option>&lt;option>Partially / to be confirmed&lt;/option>&lt;/select>&lt;/label>
&lt;label>Minimum compute required&lt;input name="minimum" maxlength="500" placeholder="GPU model, count, memory, estimated hours">&lt;/label>
&lt;label class="wishlist-wide">Other information&lt;textarea name="other" rows="4" maxlength="4000" placeholder="Training bottleneck, runnable configuration, or how to share your repository">&lt;/textarea>&lt;/label>
&lt;div class="wishlist-wide wishlist-actions">&lt;button type="submit">Open email draft ↗&lt;/button>&lt;button type="button" class="wishlist-copy">Copy template&lt;/button>&lt;/div>
&lt;p class="wishlist-wide wishlist-note">Opens your email app with a draft addressed to &lt;a href="mailto:ydove1031@gmail.com">ydove1031@gmail.com&lt;/a>. Review it and send when ready.&lt;/p>
&lt;p class="wishlist-wide wishlist-status" role="status" aria-live="polite">&lt;/p>
&lt;/form>
&lt;/details>
&lt;p>GitHub: &lt;a href="https://github.com/AI4AI-for-Anything/ResearchBoost-Agent" target="_blank" rel="noopener">ResearchBoost-Agent&lt;/a>&lt;/p>
&lt;h2 id="2-what-we-have-done-making-research-projects-run-faster">2. What We Have Done: Making Research Projects Run Faster&lt;/h2>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="ResearchBoost figure 1" srcset="
/hx_resume/blog/researchboost-en/figure-1_hu15878565216392204258.webp 400w,
/hx_resume/blog/researchboost-en/figure-1_hu10820829966623012116.webp 760w,
/hx_resume/blog/researchboost-en/figure-1_hu4950802473483369864.webp 1200w"
src="https://ydove0324.github.io/hx_resume/hx_resume/blog/researchboost-en/figure-1_hu15878565216392204258.webp"
width="760"
height="456"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>&lt;em>Figure 1. Training speedups relative to each project&amp;rsquo;s original implementation: RAE 5.32×, Self Forcing 2.08×, DMD 1.72×, and LLaVA 2.39×.&lt;/em>&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="ResearchBoost figure 2" srcset="
/hx_resume/blog/researchboost-en/figure-2_hu11762218711658362730.webp 400w,
/hx_resume/blog/researchboost-en/figure-2_hu13098919258923678326.webp 760w,
/hx_resume/blog/researchboost-en/figure-2_hu15148281449584154629.webp 1200w"
src="https://ydove0324.github.io/hx_resume/hx_resume/blog/researchboost-en/figure-2_hu11762218711658362730.webp"
width="745"
height="760"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>&lt;em>Figure 2. Optimization trajectories for the four projects. Solid dark-red lines show the best speedup that had passed the full checks at each point; dashed light-red lines show the best result that had passed only the quick checks. Hollow markers and short vertical ticks retain rejected attempts, attempts with no gain, errors, and runs without absolute speedup measurements.&lt;/em>&lt;/p>
&lt;p>The traces also show how agents use validation feedback to find problems. In one LLaVA experiment, operator fusion appeared to deliver a 1.46× speedup, but validation found a broken gradient path through the MLP. Restoring backpropagation removed the apparent gain. Another fusion attempt failed a random-state check: the cause was eventually traced to Triton&amp;rsquo;s cache using the global random number generator to create temporary filenames. Once this side effect was isolated, the candidate passed the quick checks and remained in consideration. Feedback helped both rule out gains from missing computation and repair promising candidates.&lt;/p>
&lt;h2 id="3-how-we-do-this-an-optimization-loop-built-around-evaluation">3. How We Do This: An Optimization Loop Built Around Evaluation&lt;/h2>
&lt;p>For an AI agent to keep improving infrastructure, it needs an experimental environment that keeps giving it useful feedback.&lt;/p>
&lt;p>The agent needs to know where the bottleneck is, whether its hypothesis holds, whether a change has broken training semantics, and what to test next. It should keep working toward a clear goal until it reaches the target, exhausts its budget, or encounters a problem that needs human input.&lt;/p>
&lt;p>&lt;strong>Good evaluation is what makes this loop work.&lt;/strong>&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="ResearchBoost figure 3" srcset="
/hx_resume/blog/researchboost-en/figure-3_hu4565524171098650570.webp 400w,
/hx_resume/blog/researchboost-en/figure-3_hu14632278313175482823.webp 760w,
/hx_resume/blog/researchboost-en/figure-3_hu11977431537368186746.webp 1200w"
src="https://ydove0324.github.io/hx_resume/hx_resume/blog/researchboost-en/figure-3_hu4565524171098650570.webp"
width="760"
height="531"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>&lt;em>Figure 3. The AI4AI optimization loop. Each round tests one hypothesis. Evaluation runs on a frozen source snapshot; full evidence is stored outside the context window, with relevant feedback retrieved as needed.&lt;/em>&lt;/p>
&lt;p>We look for four properties in an evaluation setup:&lt;/p>
&lt;ul>
&lt;li>
&lt;p>&lt;strong>Fast:&lt;/strong> Feedback arrives quickly enough to support more useful experiments within a fixed time and compute budget.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Faithful:&lt;/strong> Evaluation reflects the target workload, catches errors, and reliably determines whether a change helps.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Local:&lt;/strong> Feedback points to a specific problem and lets the agent retrieve relevant evidence without filling its context with unrelated information.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Dense:&lt;/strong> Feedback covers the important stages and states of execution, giving the agent enough information to form its next testable hypothesis.&lt;/p>
&lt;/li>
&lt;/ul>
&lt;p>These properties have to work together. Fast evaluation is of little use if it misses training bugs. Thorough evaluation that takes days per iteration leaves little room to experiment.&lt;/p>
&lt;h3 id="31-fast--faithful-checking-training-correctness-quickly">3.1 Fast &amp;amp; Faithful: Checking Training Correctness Quickly&lt;/h3>
&lt;p>The first question is: &lt;strong>How do we check that a speedup preserves the numerical behavior of training?&lt;/strong>&lt;/p>
&lt;p>Running a complete training job after every change is too expensive for frequent iteration. Requiring every result to match bit for bit would rule out many reasonable optimizations. Operator fusion or a different reduction order, for example, can introduce floating-point rounding differences without indicating a bug in the training logic.&lt;/p>
&lt;p>We therefore need to distinguish the reference implementation&amp;rsquo;s own stochastic variation from additional deviations introduced by an optimization.&lt;/p>
&lt;p>Our approach is to run short training trajectories with the reference implementation under multiple random seeds—for example, the first 100 steps. We record the loss, gradients, and key optimizer states, such as those in Adam, and estimate their standard deviations, σ. This establishes a baseline range of variation, such as 3σ. We then run the optimized implementation under corresponding conditions and check its deviations against the calibrated tolerances.&lt;/p>
&lt;p>We organize validation into several layers:&lt;/p>
&lt;ol>
&lt;li>
&lt;p>&lt;strong>Local checks:&lt;/strong> Compare outputs, gradients, and state updates for the modified operators or execution paths using identical inputs, catching obvious errors early.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Short training runs:&lt;/strong> Compare training trajectories under fixed configurations, using the variation across reference seeds to assess whether deviations are acceptable.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Longer runs:&lt;/strong> Check the final optimized version for cumulative effects that short runs may not reveal.&lt;/p>
&lt;/li>
&lt;/ol>
&lt;p>Short-run evaluation provides screening and feedback for iteration. The evaluation protocol should state which training states it covers, which errors it can detect, and where its limits lie. That gives the agent a clear understanding of what a passing result establishes.&lt;/p>
&lt;h3 id="32-local--dense-feedback-that-helps-choose-the-next-step">3.2 Local &amp;amp; Dense: Feedback That Helps Choose the Next Step&lt;/h3>
&lt;p>A throughput number tells an agent whether training got faster, but not why. [7]&lt;/p>
&lt;p>We use &lt;strong>PyTorch Profiler (torch.profiler), Nsight Systems (nsys), and Nsight Compute (ncu)&lt;/strong> to inspect operators, kernels, CPU scheduling, communication, and GPU timelines, narrowing down the bottleneck.&lt;/p>
&lt;p>Useful feedback should help the agent answer specific questions:&lt;/p>
&lt;ul>
&lt;li>
&lt;p>Which training stage, operator, or kernel takes most of the time?&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Is the GPU computing, or waiting for data, synchronization, or communication?&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Is a frequently executed path doing necessary work or repeating computation?&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Does a local improvement increase training throughput? Under which input conditions does it stop helping?&lt;/p>
&lt;/li>
&lt;li>
&lt;p>When a correctness check fails, where does the discrepancy first appear—in which tensor, state, or training step?&lt;/p>
&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Dense feedback provides enough evidence to support the next decision.&lt;/strong> Each observation should include a location, a measured result, a comparison point, and a reference to the underlying evidence. Possible causes are recorded separately as hypotheses.&lt;/p>
&lt;p>&lt;strong>Local has two meanings here.&lt;/strong> First, feedback is tied to a specific stage, code path, input condition, or time interval. Second, evidence is retrieved as needed: full logs and traces stay outside the context window, while the agent starts with a summary relevant to its current hypothesis and follows references for more detail.&lt;/p>
&lt;p>This preserves diagnostic depth while keeping context manageable. Profiling runs are also separate from benchmark timing, so profiler overhead does not distort the measured speedup.&lt;/p>
&lt;h2 id="4-the-agent-harness">4. The Agent Harness&lt;/h2>
&lt;p>We believe capable foundation models can handle much of the analysis, implementation, and experimentation when they have reliable feedback. Our harness focuses on giving each round the context and feedback it needs.&lt;/p>
&lt;h3 id="evaluation-first">Evaluation First&lt;/h3>
&lt;p>Before the agent starts optimizing, we prepare &lt;code>bench.py&lt;/code>:&lt;/p>
&lt;ol>
&lt;li>
&lt;p>Run the original implementation and provide three entry points: timing, profiling, and correctness checks.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Measure variation across random seeds in the original implementation, estimate standard deviations, and establish tolerances for numerical variation.&lt;/p>
&lt;/li>
&lt;/ol>
&lt;p>Once these are frozen and their hashes recorded, we write &lt;code>GOAL.md&lt;/code>: the target, the authoritative acceptance criterion, the procedure for each round, and the constraints.&lt;/p>
&lt;h3 id="one-hypothesis-at-a-time">One Hypothesis at a Time&lt;/h3>
&lt;p>Each round starts by profiling the current best version. The agent uses that evidence to choose a hotspot or a class of bottlenecks and propose a change.&lt;/p>
&lt;p>Testing one hypothesis at a time makes it easier to tell which change caused which result. Whether an attempt succeeds or fails, the agent has a clearer basis for keeping, revising, or abandoning that direction.&lt;/p>
&lt;h3 id="memory-across-runs">Memory Across Runs&lt;/h3>
&lt;p>Long optimization runs span multiple context windows. At the end of each round, the agent records its profiling findings, changes, results, and any failure analysis in &lt;code>WORK_LOG&lt;/code>.&lt;/p>
&lt;p>After a session interruption or context compaction, it reads the log and recent evaluation results before continuing. Recording failed attempts helps it avoid repeating work that has already ruled out a direction. Useful improvements are also captured in persistent skills for future projects.&lt;/p>
&lt;p>The aim is to make each experiment leave behind evidence and experience the next round can use.&lt;/p>
&lt;h2 id="5-about-us--future-work-supporting-more-research">5. About Us &amp;amp; Future Work: Supporting More Research&lt;/h2>
&lt;p>ResearchBoost is our first step toward AI4AI. We want to study RSI through the work researchers already do: preparing data, building infrastructure and harnesses, training models, and evaluating results. As agents take on more of this work, we want to understand which capabilities the next generation of models still needs.&lt;/p>
&lt;p>We are continuing with more open-source research projects and commonly used training frameworks, including JiT, Bagel, and Robotwin. Through the &lt;a href="#wishlist">&lt;strong>ResearchBoost Wishlist&lt;/strong>&lt;/a>, we welcome real cases: repositories, runnable configurations, and bottlenecks you have encountered. Contributions to evaluation, reproduction, and optimization are welcome too. We want these improvements to be useful in other researchers&amp;rsquo; day-to-day work.&lt;/p>
&lt;p>We plan to release an &lt;strong>Infra Optimization Mini-Bench v0.1&lt;/strong> soon, then expand it with more reproducible cases. Under fixed correctness requirements, it will compare the speedups different models achieve, the time and budget they spend, and the experiment traces that help explain the differences.&lt;/p>
&lt;p>These tasks will also inform training environments for future models. Successful and failed experiments, researcher feedback, and cases contributed by users can all help improve the next generation. ResearchBoost starts with training acceleration; over time, we hope to extend it to data, harnesses, and other parts of research. Bring your projects and problems—we would love to work on them with you.&lt;/p>
&lt;h2 id="references">References&lt;/h2>
&lt;p>[1] Anthropic. &lt;a href="https://www.anthropic.com/institute/recursive-self-improvement" target="_blank" rel="noopener">When AI builds itself&lt;/a>.&lt;/p>
&lt;p>[2] Rank, B., et al. &lt;a href="https://arxiv.org/abs/2603.08640" target="_blank" rel="noopener">PostTrainBench: Can LLM Agents Automate LLM Post-Training?&lt;/a>. 2026.&lt;/p>
&lt;p>[3] Zheng, B., et al. &lt;a href="https://arxiv.org/abs/2510.11690" target="_blank" rel="noopener">Diffusion Transformers with Representation Autoencoders&lt;/a>. arXiv:2510.11690, 2025.&lt;/p>
&lt;p>[4] Huang, X., et al. &lt;a href="https://arxiv.org/abs/2506.08009" target="_blank" rel="noopener">Self Forcing: Bridging the Train-Test Gap in Autoregressive Video Diffusion&lt;/a>. NeurIPS, 2025.&lt;/p>
&lt;p>[5] Yin, T., et al. &lt;a href="https://arxiv.org/abs/2405.14867" target="_blank" rel="noopener">Improved Distribution Matching Distillation for Fast Image Synthesis&lt;/a>. NeurIPS, 2024.&lt;/p>
&lt;p>[6] Liu, H., et al. &lt;a href="https://arxiv.org/abs/2310.03744" target="_blank" rel="noopener">Improved Baselines with Visual Instruction Tuning&lt;/a>. CVPR, 2024.&lt;/p>
&lt;p>[7] &lt;a href="http://Z.ai" target="_blank" rel="noopener">Z.ai&lt;/a>. &lt;a href="https://z.ai/blog/glm-built-its-inference-infrastructure" target="_blank" rel="noopener">Toward Recursive Self-Improvement: How GLM Built Its Own Inference Infrastructure&lt;/a>. 2026.&lt;/p>
&lt;h2 id="bibtex">BibTeX&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bibtex" data-lang="bibtex">&lt;span class="line">&lt;span class="cl">&lt;span class="nc">@misc&lt;/span>&lt;span class="p">{&lt;/span>&lt;span class="nl">researchboost2026infra&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="na">author&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s">{{ResearchBoost Team}}&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="na">title&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s">{{ResearchBoost}: {RSI} starts with Infra}&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="na">year&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s">{2026}&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="na">url&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s">{https://ydove0324.github.io/hx_resume/blog/researchboost/}&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">}&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>&lt;a href="citation.bib">Download BibTeX&lt;/a>&lt;/p></description></item><item><title>ResearchBoost: RSI starts with Infra</title><link>https://ydove0324.github.io/hx_resume/blog/researchboost/</link><pubDate>Mon, 19 Oct 2026 00:00:00 +0800</pubDate><guid>https://ydove0324.github.io/hx_resume/blog/researchboost/</guid><description>&lt;h2 id="1-序言">1. 序言&lt;/h2>
&lt;p>如何让 Agent 参与构建 AI 本身，正成为一个越来越受关注的问题[1]。 我们认为，RSI——或者用更广义的叫法，&lt;strong>AI4AI&lt;/strong>——应当是一个系统问题，而非某个新的算法或模型范式。它的实现需要一个能让 Agent 持续参与 AI 研发的环境，提供准确、丰富且及时的反馈，让每一轮尝试都能成为下一轮改进的依据。&lt;/p>
&lt;p>一个实际的切入点，是让 AI Agent 自动化尽可能多的基模研究员的工作[2], 包括准备特定领域的数据、搭建 infra 和 harness、运行训练、评估结果。这些环节中，有多少可以交给 Agent？它会在哪里遇到困难，需要什么样的帮助？真实任务中的实验轨迹、研究者的反馈和用户回流的数据，也能帮助我们判断下一代模型该如何训练，才能更好地承担这些工作。&lt;/p>
&lt;p>我们选择先从 Infra 系统入手:&lt;/p>
&lt;ol>
&lt;li>
&lt;p>这个范围足够大：从 frontier lab 到个人研究者，大量算力都花在反复进行的研究实验上，而研究代码常常缺少充分的性能优化。把优化范围扩展到完整训练系统，才能判断单个 kernel 的提速是否真正缩短了端到端的实验时间。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>这也是一个边界相对清楚的起点：在保证训练正确的前提下，是否更快、快了多少，都可以通过实验检验。我们希望借此观察模型怎样分析瓶颈、尝试改进、从失败中调整方向；对高频使用的开源项目做出的优化，也能直接帮助社区加快研究迭代。&lt;/p>
&lt;/li>
&lt;/ol>
&lt;p>&lt;strong>这就是我们推出 ResearchBoost 的原因。&lt;/strong> 我们先从 RAE [3]、Self Forcing [4]、DMD（DMD2）[5] 和 LLaVA（LLaVA-1.5）[6] 四个项目开始，在固定环境与评测下，让 Agent 持续优化训练代码。在已测试的配置下，四个项目的训练加速比分别为 &lt;strong>5.32×、2.08×、1.72× 和 2.39×&lt;/strong>，平均加速为 &lt;strong>2.60×&lt;/strong>。我们将优化后的实现与 Infra Optimization Agent 一同开源，让大家能把这些改进用到自己的研究中。&lt;/p>
&lt;p>我们也会开放 &lt;a href="#wishlist">&lt;strong>ResearchBoost Wishlist&lt;/strong>&lt;/a>。如果你的项目正被训练速度拖慢，欢迎提交仓库和运行配置。我们会根据适配情况与算力资源，选择项目免费优化，并将成果继续开源给社区。&lt;/p>
&lt;details class="wishlist" id="wishlist">
&lt;summary>&lt;span>&lt;small>让研究跑得更快&lt;/small>&lt;strong>ResearchBoost Wishlist&lt;/strong>&lt;span>提交你的项目 →&lt;/span>&lt;/span>&lt;/summary>
&lt;form class="wishlist-form" data-language="zh-CN">
&lt;p>告诉我们你的项目和算力需求，我们会根据适配情况与可用资源选择项目。&lt;/p>
&lt;label>联系邮箱&lt;input name="email" type="email" autocomplete="email" required maxlength="254" placeholder="you@example.com">&lt;/label>
&lt;label>Repo 链接&lt;input name="repo" type="url" maxlength="500" placeholder="https://github.com/…">&lt;small>如果尚未公开，可以在“其他信息”填写提交方式。&lt;/small>&lt;/label>
&lt;label>是否自有算力支持&lt;select name="compute">&lt;option value="">请选择&lt;/option>&lt;option>有&lt;/option>&lt;option>没有&lt;/option>&lt;option>部分支持 / 待确认&lt;/option>&lt;/select>&lt;/label>
&lt;label>最少需要多少算力&lt;input name="minimum" maxlength="500" placeholder="GPU 型号、数量、显存、预计时长">&lt;/label>
&lt;label class="wishlist-wide">其他信息&lt;textarea name="other" rows="4" maxlength="4000" placeholder="训练瓶颈、运行配置，或未公开仓库的提交方式">&lt;/textarea>&lt;/label>
&lt;div class="wishlist-wide wishlist-actions">&lt;button type="submit">打开邮件草稿 ↗&lt;/button>&lt;button type="button" class="wishlist-copy">复制邮件模板&lt;/button>&lt;/div>
&lt;p class="wishlist-wide wishlist-note">将在你的邮件应用中打开草稿，收件人为 &lt;a href="mailto:ydove1031@gmail.com">ydove1031@gmail.com&lt;/a>。检查后由你发送。&lt;/p>
&lt;p class="wishlist-wide wishlist-status" role="status" aria-live="polite">&lt;/p>
&lt;/form>
&lt;/details>
&lt;p>Github 链接: &lt;a href="https://github.com/AI4AI-for-Anything/ResearchBoost-Agent" target="_blank" rel="noopener">https://github.com/AI4AI-for-Anything/ResearchBoost-Agent&lt;/a>&lt;/p>
&lt;h2 id="2-what-we-have-done让一些高频使用的研究项目跑得更快">2. What We Have Done：让一些高频使用的研究项目跑得更快&lt;/h2>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="四个研究项目的训练加速比" srcset="
/hx_resume/blog/researchboost/figure-1_hu15878565216392204258.webp 400w,
/hx_resume/blog/researchboost/figure-1_hu10820829966623012116.webp 760w,
/hx_resume/blog/researchboost/figure-1_hu4950802473483369864.webp 1200w"
src="https://ydove0324.github.io/hx_resume/hx_resume/blog/researchboost/figure-1_hu15878565216392204258.webp"
width="760"
height="456"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>&lt;em>图 1｜四个项目相对原始实现的训练加速比：RAE 5.32×、Self Forcing 2.08×、DMD 1.72×、LLaVA 2.39×。&lt;/em>&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="四个研究项目的优化轨迹" srcset="
/hx_resume/blog/researchboost/figure-2_hu11762218711658362730.webp 400w,
/hx_resume/blog/researchboost/figure-2_hu13098919258923678326.webp 760w,
/hx_resume/blog/researchboost/figure-2_hu15148281449584154629.webp 1200w"
src="https://ydove0324.github.io/hx_resume/hx_resume/blog/researchboost/figure-2_hu11762218711658362730.webp"
width="745"
height="760"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>&lt;em>图 2｜四个项目的优化轨迹。深红实线表示截至当时通过完整检查的最佳加速比；浅红虚线表示仅通过 quick 检查的最佳值。空心点和短竖线保留被拒、无收益、出错或缺少绝对加速数据的尝试。&lt;/em>&lt;/p>
&lt;p>优化轨迹也记录了 agent 如何利用验证反馈定位问题。一次 LLaVA 算子融合看似带来了 1.46× 加速，检查却发现 MLP 的梯度链路被切断；补齐反向传播后，这部分“收益”随之消失。另一次融合尝试触发了随机数状态检查，原因最终追溯到 Triton 缓存用全局随机数生成临时文件名。隔离这一副作用后，候选通过了快速检查，继续进入后续优化。这些反馈既帮助排除漏算带来的假收益，也帮助修复有价值的候选。&lt;/p>
&lt;h2 id="3-how-we-do-this围绕-eval-构建持续迭代的闭环">3. How We Do This：围绕 Eval 构建持续迭代的闭环&lt;/h2>
&lt;p>要让 AI agent 持续改进基础设施，关键是构建一个能不断提供有效反馈的实验环境。&lt;/p>
&lt;p>Agent 需要知道当前瓶颈在哪里，自己的判断是否成立，改动有没有破坏训练语义，以及下一轮应该验证什么。我们希望它能围绕明确目标持续推进，在达到目标、用尽预算或遇到需要人工处理的问题时停下来。&lt;/p>
&lt;p>&lt;strong>支撑这个闭环的核心，是足够好的 Eval。&lt;/strong>&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="AI4AI 的优化闭环" srcset="
/hx_resume/blog/researchboost/figure-3_hu4565524171098650570.webp 400w,
/hx_resume/blog/researchboost/figure-3_hu14632278313175482823.webp 760w,
/hx_resume/blog/researchboost/figure-3_hu11977431537368186746.webp 1200w"
src="https://ydove0324.github.io/hx_resume/hx_resume/blog/researchboost/figure-3_hu4565524171098650570.webp"
width="760"
height="531"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>&lt;em>图 3｜AI4AI 的优化闭环。每轮只验证一个假设；评测运行冻结快照，完整证据保存在外部，相关反馈按需进入下一轮上下文。&lt;/em>&lt;/p>
&lt;p>我们把好的 Eval 概括为四个特点：&lt;/p>
&lt;ul>
&lt;li>
&lt;p>&lt;strong>Fast&lt;/strong>：反馈足够快，让 agent 能在有限时间与预算内完成更多轮有效实验。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Faithful&lt;/strong>：评测忠实反映目标工作负载，能够发现错误，并可靠判断优化是否有效。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Local&lt;/strong>：反馈能定位到具体问题，并支持按需读取相关证据，减少无关信息占用上下文。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Dense&lt;/strong>：反馈覆盖关键阶段和状态，提供足够的信息帮助 agent 形成下一轮可验证的假设。&lt;/p>
&lt;/li>
&lt;/ul>
&lt;p>这四个特点需要一起考虑。评测很快，但漏掉了训练错误，优化就失去了意义；评测足够完整，但每轮都要跑几天，agent 也很难充分迭代。&lt;/p>
&lt;h3 id="31-fast--faithful如何快速判断训练是否仍然正确">3.1 Fast &amp;amp; Faithful：如何快速判断训练是否仍然正确&lt;/h3>
&lt;p>训练优化首先要回答一个问题：&lt;strong>如何确认加速没有改变训练的数值行为？&lt;/strong>&lt;/p>
&lt;p>每次改动后都跑完完整训练，成本过高，难以用于高频迭代。要求所有结果逐 bit 一致，又会排除许多合理优化。例如，算子融合或归约顺序变化可能引入浮点舍入差异；这些差异不一定意味着训练逻辑发生了错误。&lt;/p>
&lt;p>因此，我们需要区分两类变化：原始训练本身的随机波动，以及优化实现额外引入的偏差。&lt;/p>
&lt;p>我们的验证思路是，先用参考实现在多个随机种子下运行一段较短的训练轨迹，例如前 100 步，记录 loss、梯度及 Adam 等优化器的关键状态，计算对应的标准差 σ，从而建立原始实现的波动范围(如 3 σ )。随后，用优化实现在对应条件下运行，检查其变化是否超出了预先校准的容差。&lt;/p>
&lt;p>实际使用中，我们希望把验证分成几层：&lt;/p>
&lt;ol>
&lt;li>
&lt;p>&lt;strong>局部检查&lt;/strong>：对改动涉及的算子或路径，使用相同输入比较输出、梯度与状态更新，尽早发现明显错误。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>短程训练检查&lt;/strong>：在固定配置下比较训练轨迹，结合多个随机种子建立的基线波动，检查偏差是否可接受。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>更长程确认&lt;/strong>：对最终优化完的版本，进一步检查短程测试尚未覆盖的累积影响。&lt;/p>
&lt;/li>
&lt;/ol>
&lt;p>短程 Eval 承担的是快速筛查和迭代反馈的职责。它覆盖哪些训练状态、能发现哪些错误、还有哪些边界，都应明确写进评测协议。这样，agent 才能知道一次“通过”究竟支持什么结论。&lt;/p>
&lt;h3 id="32-local--dense让反馈指向下一步行动">3.2 Local &amp;amp; Dense：让反馈指向下一步行动&lt;/h3>
&lt;p>一个训练吞吐数字可以告诉 agent 有没有变快，但还不足以告诉它为什么。[7]&lt;/p>
&lt;p>为此，我们将性能分析纳入迭代流程，使用 &lt;strong>PyTorch Profiler（torch.profiler）、Nsight Systems（nsys）和 Nsight Compute（ncu）&lt;/strong> 等工具，观察算子、kernel、CPU 调度、通信和 GPU 时间线，逐步缩小瓶颈范围。&lt;/p>
&lt;p>有用的反馈应该帮助 agent 回答具体问题：&lt;/p>
&lt;ul>
&lt;li>
&lt;p>主要耗时集中在哪个训练阶段、算子或 kernel？&lt;/p>
&lt;/li>
&lt;li>
&lt;p>GPU 时间花在计算上，还是等待数据、同步或通信？&lt;/p>
&lt;/li>
&lt;li>
&lt;p>某条路径调用频繁，是必要计算，还是重复工作？&lt;/p>
&lt;/li>
&lt;li>
&lt;p>局部优化有没有转化为训练吞吐提升？在哪些输入条件下失效？&lt;/p>
&lt;/li>
&lt;li>
&lt;p>正确性检查失败时，差异最早出现在哪个张量、状态或训练步？&lt;/p>
&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Dense 的含义，是让关键观察足以支持下一步判断。&lt;/strong> 每条反馈尽量包含位置、实际观测、比较基准和证据索引；可能原因则作为待验证的假设单独记录，避免把推测当成事实。&lt;/p>
&lt;p>&lt;strong>Local 有两层含义。&lt;/strong> 一层是可定位：把问题落到具体阶段、代码路径、输入条件和时间窗口。另一层是按需读取：完整日志和 trace 保存在外部，agent 先看到与当前假设相关的摘要，再沿证据索引查看细节。&lt;/p>
&lt;p>这样既保留诊断深度，也能控制上下文中的信息量。性能分析还应与正式计时分开执行，避免 profiler 的额外开销影响加速比。&lt;/p>
&lt;h2 id="4-iteration-speed-matters一个小而明确的-harness">4. Iteration Speed Matters：一个小而明确的 Harness&lt;/h2>
&lt;p>我们相信，足够强的基础模型在获得可靠反馈之后，能够完成相当一部分分析、修改和实验工作。因此，harness 的设计重点，是让每轮实验都有明确的上下文和反馈信息&lt;/p>
&lt;p>我们基于这个原则设计了以下的 Harness:&lt;/p>
&lt;h3 id="先定好评测再开始优化">先定好评测，再开始优化&lt;/h3>
&lt;p>在 Agent 的正式优化开始之前, 我们要先确定一个 &lt;code>Bench.py&lt;/code>：&lt;/p>
&lt;ol>
&lt;li>
&lt;p>参考原始实现跑通，写好计时、profile 和检查正确性三个入口；&lt;/p>
&lt;/li>
&lt;li>
&lt;p>用原始实现在多个随机种子下的波动测出标准差，计算出允许噪声波动的范围&lt;/p>
&lt;/li>
&lt;/ol>
&lt;p>这些都冻结并记录哈希之后，写 &lt;code>GOAL.md&lt;/code>：目标是什么，唯一的判据是什么，每轮怎么做，有哪些约束。&lt;/p>
&lt;h3 id="每轮只验证一个优化假设">每轮只验证一个优化假设&lt;/h3>
&lt;p>每轮 Agent 先对当前最好的版本做一次 profile，按证据选定一个热点或一类瓶颈提出改进方案，把一轮实验聚焦在一个假设上，可以减少多个改动相互干扰的情况。无论结果成功还是失败，都更容易判断下一步应该保留、调整还是放弃这个方向。&lt;/p>
&lt;h3 id="记录进度沉淀经验">记录进度，沉淀经验&lt;/h3>
&lt;p>长时间优化会跨越多个上下文窗口。每轮结束时，agent 在 &lt;code>WORK_LOG&lt;/code> 里记下本轮 Profile 的结果, 进行了什么改动，改动是否有效，如果失败是什么原因。&lt;/p>
&lt;p>会话中断或上下文被压缩之后，agent 可以先读 &lt;code>WORK_LOG&lt;/code> 和最近的评测结果，再继续推进同一个目标。失败记录能帮助后续迭代避开已经排除的方向。此外，agent 也会把有效的改进存入一个更长期的 skill 里，使得以后的每个项目改进都能受益于此.&lt;/p>
&lt;p>这些机制共同服务于一个目标：&lt;strong>让每轮实验都产生可判断、可追溯、可积累的信息。&lt;/strong>&lt;/p>
&lt;h2 id="5-about-us--future-work从加速几个项目到支持更多研究">5. About us &amp;amp; Future Work：从加速几个项目，到支持更多研究&lt;/h2>
&lt;p>ResearchBoost 是我们研究 AI4AI 的第一个切入点。我们认为，探索 RSI 需要从研究员每天做的事情开始：准备数据、搭建 infra 和 harness、训练、评测。我们想让 AI 逐步承担更多这些工作，也想弄清楚，下一代模型还需要具备哪些能力。&lt;/p>
&lt;p>接下来，我们会继续优化更多开源研究项目和常用训练框架, 我们已经在继续优化包括 JiT, Bagel, Robotwin 在内高频使用的开源项目。欢迎通过 &lt;a href="#wishlist">&lt;strong>ResearchBoost Wishlist&lt;/strong>&lt;/a> 提交真实 case，包括仓库、运行配置和遇到的瓶颈；也欢迎一起补充评测、复现实验、贡献优化。我们希望这些工作能被更多研究者直接用上。&lt;/p>
&lt;p>我们计划很快发布一个 &lt;strong>Infra Optimization Mini-Bench v0.1&lt;/strong>，逐步把更多 case 整理成可复现的 benchmark。在固定正确性要求下，比较不同模型能获得多少加速、花费多少时间和预算，并保留实验轨迹，分析差距来自哪里。&lt;/p>
&lt;p>这些任务也将用于构建模型训练环境。我们希望把成功与失败的实验、研究者的反馈，以及用户在实际使用中回流的案例积累下来，用于改进下一代模型。ResearchBoost 先从训练加速做起，之后再逐步走向数据、harness 和其他研究环节。欢迎带着你的项目和问题一起参与。&lt;/p>
&lt;h2 id="参考文献">参考文献&lt;/h2>
&lt;p>[1] Anthropic. &lt;a href="https://www.anthropic.com/institute/recursive-self-improvement" target="_blank" rel="noopener">When AI builds itself&lt;/a>.&lt;/p>
&lt;p>[2] Rank, B., et al. &lt;a href="https://arxiv.org/abs/2603.08640" target="_blank" rel="noopener">PostTrainBench: Can LLM Agents Automate LLM Post-Training?&lt;/a>. 2026.&lt;/p>
&lt;p>[3] Zheng, B., et al. &lt;a href="https://arxiv.org/abs/2510.11690" target="_blank" rel="noopener">Diffusion Transformers with Representation Autoencoders&lt;/a>. arXiv:2510.11690, 2025.&lt;/p>
&lt;p>[4] Huang, X., et al. &lt;a href="https://arxiv.org/abs/2506.08009" target="_blank" rel="noopener">Self Forcing: Bridging the Train-Test Gap in Autoregressive Video Diffusion&lt;/a>. NeurIPS, 2025.&lt;/p>
&lt;p>[5] Yin, T., et al. &lt;a href="https://arxiv.org/abs/2405.14867" target="_blank" rel="noopener">Improved Distribution Matching Distillation for Fast Image Synthesis&lt;/a>. NeurIPS, 2024.&lt;/p>
&lt;p>[6] Liu, H., et al. &lt;a href="https://arxiv.org/abs/2310.03744" target="_blank" rel="noopener">Improved Baselines with Visual Instruction Tuning&lt;/a>. CVPR, 2024.&lt;/p>
&lt;p>[7] &lt;a href="http://Z.ai" target="_blank" rel="noopener">Z.ai&lt;/a>. &lt;a href="https://z.ai/blog/glm-built-its-inference-infrastructure" target="_blank" rel="noopener">Toward Recursive Self-Improvement: How GLM Built Its Own Inference Infrastructure&lt;/a>. 2026.&lt;/p>
&lt;h2 id="bibtex">BibTeX&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bibtex" data-lang="bibtex">&lt;span class="line">&lt;span class="cl">&lt;span class="nc">@misc&lt;/span>&lt;span class="p">{&lt;/span>&lt;span class="nl">researchboost2026infra&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="na">author&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s">{{ResearchBoost Team}}&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="na">title&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s">{{ResearchBoost}: {RSI} starts with Infra}&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="na">year&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s">{2026}&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="na">url&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s">{https://ydove0324.github.io/hx_resume/blog/researchboost/}&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">}&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>&lt;a href="citation.bib">下载 BibTeX&lt;/a>&lt;/p></description></item></channel></rss>