potentialpaper

PithTrain: A Compact and Agent-Native MoE Training System

Ruihang Lai, Hao Kang, Haozhan Tang, Akaash R. Parthasarathy, Zichun Yu, Junru Shao, Todd Mowry, Chenyan Xiong, Tianqi Chen

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Mixture-of-Experts (MoE) has become the dominant architecture for frontier language models. To meet this demand, production frameworks have built optimized MoE training stacks over years of engineering effort. Yet evolving these stacks for new architectures and system optimizations remains expensive. With the rise of AI coding agents, they could automate parts of training-framework development and accelerate this evolution. But applying them to these existing frameworks carries hidden costs, invisible to today’s throughput-only evaluations. We name this missing dimension agent-task efficiency (ATE): the cost of using coding agents to understand, operate, and extend a framework. Grounded in four agent-native design principles, we build PithTrain, a compact, agent-native MoE training framework supporting pretraining, supervised fine-tuning, and reinforcement learning. We further introduce ATE-Bench, covering real-world training-framework tasks. Our evaluation shows PithTrain achieves throughput competitive with production frameworks and higher agent-task efficiency on ATE-Bench. On new-feature tasks, PithTrain uses up to 62% fewer Agent Turns than Megatron-LM, and up to 44% and 64% less Active GPU Time than Megatron-LM and TorchTitan, respectively.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
30 Apr 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:49 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

The paper introduces PithTrain, a compact agent native MoE training framework, and ATE Bench which holds the coding agent fixed and measures the effort required to understand, operate, and extend different training frameworks. Reviewers agreed that agent task efficiency is a timely new evaluation dimension for ML systems, and that PithTrain reaches throughput comparable to production frameworks. However, the reviewers had concerns centered on attribution, with one reviewer arguing that the gains are dominated by codebase size and bundled in repo skills rather than the stated principles, that the principles are never independently isolated, and that the benchmark scope favors the authors, while the two positive reviewers raise the same question of framework design versus skills and ask whether efficiency survives growth to production scope. With ratings of 5, 4, and 2 the reviewers' opinions are split, and the decision rests on whether the rebuttal separates the design principles from codebase scale and skills, so a recommendation before the discussion would be premature.

Final justification

The discussion resolved most of the major concerns, including the role of skills, OOM related effects, and cross agent consistency. The main remaining weakness is that the contribution of each design principle is not cleanly isolated or quantified. I still recommend acceptance because the paper makes a useful contribution through ATE, ATE Bench, and the demonstration that lower agent development cost can be achieved without sacrificing training performance.

Area Chair VSYS · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

The paper introduces PithTrain, a compact agent native MoE training framework, and ATE Bench which holds the coding agent fixed and measures the effort required to understand, operate, and extend different training frameworks. Reviewers agreed that agent task efficiency is a timely new evaluation dimension for ML systems, and that PithTrain reaches throughput comparable to production frameworks. However, the reviewers had concerns centered on attribution, with one reviewer arguing that the gains are dominated by codebase size and bundled in repo skills rather than the stated principles, that the principles are never independently isolated, and that the benchmark scope favors the authors, while the two positive reviewers raise the same question of framework design versus skills and ask whether efficiency survives growth to production scope. With ratings of 5, 4, and 2 the reviewers' opinions are split, and the decision rests on whether the rebuttal separates the design principles from codebase scale and skills, so a recommendation before the discussion would be premature.

Final justification

The discussion resolved most of the major concerns, including the role of skills, OOM related effects, and cross agent consistency. The main remaining weakness is that the contribution of each design principle is not cleanly isolated or quantified. I still recommend acceptance because the paper makes a useful contribution through ATE, ATE Bench, and the demonstration that lower agent development cost can be achieved without sacrificing training performance.

1 comment
Authors · CommentOpenReview ↗

Thank you, AC VSYS, for your detailed meta-review. We greatly appreciate you and the reviewers recognizing agent-task efficiency as a timely new evaluation dimension for ML systems, as well as PithTrain's throughput comparable to production frameworks. These are exactly what we are eager to share with the ML system community.

We discussed this work with every production framework team in the paper and another industry pretraining team. All view ATE-Bench as a valuable community contribution addressing a previously unmeasured aspect of development. One team now uses it in its development flow, another requested access, and none questioned the fairness of its scope.

We also appreciate your clear summary of the concerns. Our rebuttal addresses each one:

  • Regarding "the gains are dominated by codebase size and bundled in repo skills rather than the stated principles," Section 3 of our response to Reviewer QzqF clarifies a possible misreading: codebase size is part of our first stated principle, not a separate factor. Common Response 2 likewise clarifies that skills are our fourth principle, not a separate source of gains.

  • Regarding "the principles are never independently isolated," Section 3 of our response to Reviewer QzqF provides agent-trace evidence for the Python-native and reduced-indirection principles, along with a controlled Python-native ablation in which codebase size changes by only about 1%. Common Response 2 and Section 4 of our response to Reviewer mS5i isolate the contribution of agent skills. We also acknowledge that the principles are not fully independent. For example, changing implicit indirection can also change codebase size, making exact isolation with size held fixed impossible in some cases.

  • Regarding "the benchmark scope favors the authors," Section 4 of our response to Reviewer QzqF explains in detail how the task-selection criteria were designed to avoid bias and compare production frameworks fairly. The tasks mirror ordinary research workflows, give every framework the same starting point, and exclude framework-specific Q&A questions. The results also include tasks won by the baselines, showing that the benchmark does not mechanically force PithTrain to win. Importantly, none of the production framework teams we consulted questioned the fairness of its scope.

  • Regarding "framework design versus skills," Common Response 2 clarifies that 19 of the 20 ATE-Bench tasks use no PithTrain skills, so most reported gains reflect framework design and code structure rather than skills. Section 4 of our response to Reviewer mS5i applies an equivalent skill to the baselines to measure its contribution directly.

  • Regarding "whether efficiency survives growth to production scope," Common Response 3 to Reviewers LR2L and mS5i discusses our current practice and proposed approach to maintaining agent-task efficiency as PithTrain grows, while acknowledging that this long-term model has not yet been fully implemented.

We thank you and all reviewers again for your time and thoughtful feedback, which has helped us identify important ways to strengthen the manuscript. We hope our rebuttal provides a clearer basis for the discussion by clarifying that compactness and skills are themselves two stated design principles, not separate factors, and showing that Python-native design and reduced implicit indirection contribute beyond codebase size while most measured gains arise without skills.

Reviewer QzqFOpenReview ↗
Rating
3/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes an "agent-native" compact MoE training framework, PithTrain, and a companion benchmark, ATE-Bench. The core argument of the paper is existing production frameworks are sensible for human engineers but raise the cost for AI coding agents. The authors use ATE-Bench to show PithTrain could get up to 62% fewer turns and 64% less active GPU time.

Strengths and weaknesses

=== Strength ===

  • "Agent-task efficiency" is a dimension ignored by throughput-only evaluation yet increasingly important as agentic coding enters systems development. The paper points out a key problem.

=== Weaknesses ===

  • The core causal claim ("agent-native principles work") is dominated by the confounding variable of codebase size, and the three main principles are never independently isolated. Meanwhile, the three principles rest on the unverified assumption that "human-friendly = agent-friendly." Agents and humans have different capability profiles: agents are strong at cross-language reading, global symbol search, and tracing implicit dispatch, and weak at long-range consistency, scaling with codebase size, and dependence on feedback loops. The paper transplants those human weaknesses onto the agent, but those are agent strengths.
  • ATE-Bench as a benchmark artifact is immature, and its scope is self-admittedly biased toward the authors. It seems that the benchmark largely predetermines the conclusion that "PithTrain is more friendly" without a fair comparaison.
  • None of the "62%/64%" gains map to the claimed design principles. The three identifiable sources are: codebase-size/coverage differing by an order of magnitude, in-repo skills that happen to match the benchmark tasks, and runtime memory luck. None of these is "compact / Python-native / no indirection" the main claims of the paper.
  • The MoE framing is orthogonal to the argument and narrows the comparison. The four principles, the ATE concept, and ATE-Bench's task structure are all architecture-agnostic; swapping MoE for dense or multimodal models leaves every claim intact, and 2 of the 4 new-feature tasks (Diff, MoBA) have nothing to do with MoE
  • The large volume of experiments reflects compute/API cost rather than design depth, its scientific contribution is very limited.
Questions
  • How do you separate the contribution of the "agent-native principles" from the confounder of codebase size/coverage?
  • Are the three principles built on correct assumptions about agent capabilities?
  • Is ATE-Bench's task scope fair to production frameworks?
Limitations

Not really. The premise that "human-friendly = agent-friendly" is never examined. The dependence of all conclusions on a single agent is not flagged.

Final justification

Our final rating is 3, raised from 2. The basis for both the raise and the remaining reservations is as follows.

Resolved by the discussion. The skills confound is closed (full procedures loaded in only 1 of 20 tasks, §5.3 ablation, and the apply-skills-to-baselines experiment). Headline attribution is addressed as requested (44% vs. Megatron-LM with no OOM; 64% vs. TorchTitan is OOM-dominated, 32% excluding OOM tasks; separated reporting committed for the revision). The conditioned Q&A analysis is sound, and its differential structure replicates in the Codex data (Megatron-LM ROUTED/DIRECT ratio ~2.1x vs. PithTrain ~1.25x), giving the indirection finding directional cross-agent support. We verified the discussion-phase data independently and found no inconsistencies; the authors' disclosure was honest throughout, including concessions against their own claims.

Reservation 1: the central causal claim ends the discussion unattributed. The paper claims four agent-native principles yield ATE gains. Post-discussion: compactness — called a primary explanation for the overall trend — is confirmed non-isolable by the authors; the Python-native controlled evidence covers 1 of 20 tasks and, per the authors' clarification, measures a compiled dependency bundled with its build/error surface, leaving the claimed development-iteration benefits (L97-102) without controlled verification; the indirection evidence is directional and, per the authors, unquantified; skills, the only principle rigorously isolated, is shown to contribute almost nothing to the main results. No principle's contribution is quantified, and the one identified as the primary mechanism is acknowledged to be non-isolable.

Reservation 2: task-level ATE is not a stable framework property. The authors' own cross-agent table shows 12 of 20 task-level orderings change between Claude Code and Codex, with per-task magnitudes swinging severalfold in both directions and one full reversal (Q7). What is robust is the aggregate ordering (PithTrain leads, 18/20 under Codex) — but that aggregate layer is dominated by compactness and scope, exactly what has not been attributed to the principles (Reservation 1), while the fine-grained layer carrying the paper's mechanistic arguments is not stable across agents. The core measurement claim ("differences in agent cost isolate framework design," L44-45) is therefore unclosed at both levels.

A version that provides controlled attribution for the principles, or narrows the claim to a cross-agent-validated phenomenon with an accompanying benchmark, would be considerably stronger.

Formatting concerns

no

14 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Thank you for your thoughtful feedback and for recognizing agent-task efficiency as "a dimension ignored by throughput-only evaluation." We are grateful in particular for the questions you raise, on codebase size as a confounder, the role of in-repo skills, the fairness of ATE-Bench's task scope, the assumptions behind our principles, and single agent dependence: clarifying each of them below has helped us strengthen the paper.

1. Common response: scientific contributions of our work

We would like to clarify the scientific contributions. The contribution is (i) agent-task efficiency, (ii) ATE-Bench to measure it systematically, and (iii) four agent-native principles. The experiment volume is what it takes to support these empirically across throughput and agent-task efficiency. Guided by the principles, we build PithTrain, an end-to-end MoE training framework matching production throughput at substantially higher ATE.

We discussed this work with every production framework team in the paper and another industry pretraining team. All view ATE-Bench as valuable for a previously unmeasured aspect of development: one team now uses it in its development flow, another requested access, and none questioned the fairness of its scope. All identified token efficiency as important, which ATE-Bench reports with GPU time and per-turn context.

2. Common response: how much of the ATE gain comes from in-repo agent skills?

Thank you all for raising this. Our traces answer directly: across 20 tasks, three frameworks, three attempts, a PithTrain skill appears in exactly one task, "Report Heavy Kernels," where every attempt invokes capture-nsys-profile. The other 19 use no skills, so gains reflect code structure, not agent-facing procedures. The single overlap is a skill for Nsight Systems profiling, a capability any MoE training framework needs. Skills are one of the four claimed principles, not a separate source, and §5.3 measures their effect directly: enabling two reduces turns by 70% and 52%.

3. "How do you separate the contribution of the 'agent-native principles' from the confounder of codebase size/coverage?"

Thank you for raising this. Codebase size is indeed central to agent-task efficiency and therefore our first principle. Notably, the principles are not fully independent, so exact isolation, varying one while codebase size is fixed, is nearly impossible.

For compactness, however, we should clarify a misunderstanding: "compact codebase" means a small codebase, so size is the mechanism, not a confounder. Coverage is the design choice producing that size, not a separate cause (L119-121).

For Python-native and implicit indirection, our traces show effects size cannot explain. In Megatron-LM, opaque segfaults cause speculative configuration toggling (L226-228), while PithTrain failures give readable Python tracebacks (L229-230). Segfault versus exception is set by the language boundary, not code size, hence Python-native. A hidden argument registry causes a CLI flag collision: the flag is derived out of sight of the agent's edit (L225-226), hence implicit indirection. Despite its size, Megatron-LM nearly matches PithTrain on direct-function Q6 and beats it on Q7, but needs over twice as many turns through a module-spec or registry (Q2, Q5, Q8) (Table 5). Its competitiveness on direct questions isolates the cost of indirection rather than a general size penalty.

We also attempted controlled PithTrain ablations with Codex, three attempts each.

  • For Python-native, we route PithTrain compute through TransformerEngine, which Megatron-LM uses. The variant adds 103 lines (~1% of the codebase), yet "Getting Started" setup rises from 6.0 to 44.3 minutes and 26 to 217 turns. Build attempts hit missing headers, CMake failures, and conflicting CUDA runtimes before succeeding. Megatron-LM pays the same friction (24-48 minutes vs 6-8 for PithTrain and 11-14 for TorchTitan, Table 11). With size essentially unchanged, the compiled-extension dependency alone causes that cost.
  • For no implicit indirection, we replaced direct per-model implementations with a shared skeleton and module spec. Collapsing the files also removes duplication, varying compactness and indirection together, so we do not present the results as evidence for either principle.

We respectfully disagree that our results are due to "runtime memory luck." In the agent-free throughput evaluation, TorchTitan runs out of memory on two of five configurations where PithTrain succeeds (Table 4), a reproducible property, not chance.

We will add the Q&A and setup analyses to the revision.

4. "ATE-Bench ... is immature, and its scope is self-admittedly biased" / "Is ATE-Bench's task scope fair to production frameworks?"

Thank you for raising this. All production framework teams we consulted view ATE-Bench as a valuable community contribution, and none questioned the fairness of its scope. We will open-source ATE-Bench and work with the community to improve agent-task readiness across the ecosystem. We agree its scope might be limited, but its task-selection criteria were designed to avoid bias toward PithTrain and compare production frameworks fairly: they mirror ordinary research work, not PithTrain's design.

Each new-feature task asks the agent to prototype an architecture from an independent recent publication using the arXiv paper and reference implementation, as a researcher would (L657-659). None had been integrated into any of the three frameworks at study time (L664-667), so no framework had a head start. Operate-and-profile tasks are what users of any framework do, such as training then evaluating a model (L162-163), and Q&A questions are "valid across all three frameworks, excluding framework-specific behaviors" (L178-179).

These criteria are our main evidence against predetermination. Outcomes are secondary: Megatron-LM beats PithTrain on Q7. On MoE++, TorchTitan uses fewer agent turns (87 vs 90) and ~20% fewer output tokens (Table 7). These wins do not prove the suite wholly unbiased, but show it does not mechanically force PithTrain to win.

On maturity, every task runs three times per framework, medians reported. Two human graders independently verify Q&A answers against source, and a third resolves disagreements (§B.1.2). New-feature correctness requires finite, decreasing loss plus three feature-specific rules (§B.3.2).

We accept the scope limitation. As L179-180 state, ATE-Bench does not yet cover tasks such as propagating a shared change across models, where implicit indirection may reduce agent effort. We leave these to future work.

5. "The unverified assumption that 'human-friendly = agent-friendly'" and "Are the three principles built on correct assumptions about agent capabilities?"

Thank you for raising this. This is a misreading we would like to clarify: we do not claim, and never intended to claim, that "human-friendly = agent-friendly." L25 says the opposite: "the design choices that helped human engineers cost agents differently," consistent with your point that "agents and humans have different capability profiles." That divergence motivates the paper. Each principle derives from the agent profile below, regardless of human preferences.

We agree with most of your characterization: agents are strong at cross-language reading and global symbol search, and weak at long-range consistency and long feedback loops. Our first two principles target weaknesses you name, so we are not transplanting human weaknesses onto agents. The disagreement is confined to implicit dispatch, which you list as an agent strength. Notably, capability and cost differ: standard benchmarks "vary the agent to score capability" (L160), whereas agent-task efficiency measures cost once the agent can do it. On ATE-Bench, the agent answers all 12 questions correctly and completes every task on every framework, so differences are entirely in cost. Each principle reduces one such cost:

  • A compact codebase mitigates long-range inconsistency as codebase size grows.
  • Python-native is not about reading C++, which agents read as readily as Python: it shortens feedback loops with readable Python tracebacks instead of opaque native errors, and avoids the compiled-extension rebuild cycle (L97-102, L226-230).
  • Reducing implicit dispatch cuts search cost by building on that strength. Symbol search pays off only once the agent knows what to search for, and implicit dispatch hides that. When "TransformerLayer resolves its submodules from a runtime spec in a separate file" (L107, Figure 2), the agent must locate and resolve that spec before it has a name to search for. Thus L105-106 call this "harder to identify by local reading." So the principle actually removes what blocks that strength, keeping the call graph resolvable in a few greps.

We will clarify this in the revision.

6. "The MoE framing is orthogonal to the argument and narrows the comparison"

We agree the four principles, ATE, and ATE-Bench task structure are architecture-agnostic, enabling extension beyond MoE. Only the setting is MoE-specific. This is deliberate: frontier open models use MoE, where the targeted properties are most pronounced. Dense-model evaluation would leave every claim standing but test an easier case.

Nor does MoE narrow the comparison. New-feature tasks span both paths: two revise attention (Differential Transformer and MoBA), and two change the FFN (MoE) layer, covering the architectural subsystems a framework must accommodate (L662-664). Using only MoE-specific features would test a narrower slice.

7. "The dependence of all conclusions on a single agent is not flagged"

To test agent dependence, we reran the full ATE-Bench on all frameworks with Codex, a second agent. Results are consistent with the Claude Code numbers in the paper. The response limit prevents including full tables. We are happy to share them on request.

Reviewer QzqF · CommentOpenReview ↗

Thank you for the detailed rebuttal and the new experiments. We would appreciate clarification on the following points during the discussion phase; due to the character limit, our questions are split across two comments (Q1-Q4 here, Q5-Q8 in the next).

Q1. Codex replication data. The rebuttal states that the full ATE-Bench was rerun with Codex with results consistent with the Claude Code numbers, and that the full tables can be shared on request — we would like to make that request here. Please provide the Codex counterparts of Tables 5-7 together with per-attempt values, and clarify: (a) whether the framework ordering is preserved on each task, and if not, on which tasks; (b) whether TorchTitan's OOM behavior reproduces under Codex; (c) whether the new-feature tasks are still judged by claude-opus-4-7.

Q2. Three methodological questions on the TransformerEngine ablation. This ablation is the most important new evidence in the rebuttal, and three points need clarification:

(a) Agent consistency. The ablation was run with Codex, while all numbers in the paper come from Claude Code. Is the baseline figure of "6.0 min / 26 turns" a fresh Codex result, or taken from the paper? (Table 6 reports 6.6 min / 26 turns for PithTrain on Getting Started — the minutes differ while the turn count coincides exactly.) Please clarify the provenance of these values and provide per-attempt data for both arms of the ablation. In addition, the rebuttal compares the TE-variant against "Megatron-LM 24-48 min (Table 11)" to argue that Megatron pays the same build friction — Table 11 contains Claude Code data, so the two sides come from different agents; how does this quantitative comparison hold? Does the effect direction of the ablation also hold under Claude Code?

(b) Task selection. Getting Started measures a one-time, amortizable environment-setup cost, and is the task most sensitive to build friction. The core claimed benefits of the Python-native principle — readable tracebacks and no rebuild cycle during development iteration (L97-102, L226-230) — should manifest in the test-debug loop of the new-feature tasks. Would it be possible to run the TE-variant on at least one new-feature task (e.g., Diff, the least expensive one)?

(c) The accounting behind "~1% size change." The +103 lines count only in-repo LoC. In the TE-variant, the agent's effective search and debug space also includes the entire TransformerEngine dependency — its Python wrappers, error surfaces, and build system; all of the failure modes listed in the rebuttal (missing headers, CMake failures, conflicting CUDA runtimes) occurred on the dependency side. Based on the traces, did the agent read into TransformerEngine sources or build artifacts in the TE-variant? If so, does "size essentially unchanged" still apply to the space the agent actually navigates, and does the ablation isolate the presence of a compiled dependency, or a language-boundary effect at fixed scale?

Q3. The definition and control behind "19 of 20 tasks use no skills." How is "a PithTrain skill appears in exactly one task" determined? To our understanding, Claude Code loads skill description/trigger metadata into context, and the repository's top-level AGENTS.md (also described in the rebuttal) provides orientation to the agent — the absence of an explicit invocation is not the same as the absence of influence. The control used in §5.3 — stripping skills from both the working tree and the git history — was applied only to two PithTrain tasks. Please clarify: (a) the context-level visibility of skill metadata and AGENTS.md to the agent in the main experiments; (b) whether PithTrain could be rerun under the skills-stripped condition (§5.3 protocol) on one or two tasks per category, to support the conclusion that "gains reflect code structure, not agent-facing procedures."

Q4. Headline attribution: separating Megatron-LM from TorchTitan. Our concern is not whether TorchTitan's OOMs are reproducible, but how they are attributed. The paper states at L259-260 that memory headroom is "a factor independent of codebase structure." The headline "64% less Active GPU Time" is measured against TorchTitan on new-feature tasks where OOM-driven debug-edit cycles are a major cost driver; the corresponding figure against Megatron-LM is 44% (§5.2). In addition, the rebuttal cites Table 4 — OOMs in the agent-free throughput experiments — in response to a question about the attribution of ATE gains; these are different settings. Please report the Megatron-LM-relative and TorchTitan-relative figures separately in the abstract and introduction, and annotate which TorchTitan gaps are OOM-dominated.

Reviewer QzqF · CommentOpenReview ↗

(Continued from our previous comment: Q5-Q8.)

Q5. Dispersion and the reliability of headline figures. The per-attempt data show heavy-tailed behavior: on MoE++, Megatron-LM's three attempts span 829 / 145 / 140 agent turns (Table 12) — a nearly 6x spread under identical conditions. With n=3 and medians only, readers cannot assess how stable the reported gaps are, and headline figures built on extreme values ("up to 62%/64%") are precisely the numbers most sensitive to this variance. Please report per-task dispersion (range or IQR) and the stability of the framework ordering across attempts, and consider replacing the extreme-value "up to" phrasing in the headline claims with more robust statistics.

Q6. Difficulty confound and counterexamples in the Q&A differential analysis. (Throughout this item, Q1-Q12 refer to the Q&A task numbering in Table 5 / Appendix B.1.1, not to the numbering of this comment.) The rebuttal contrasts direct-call questions (Q6 RoPE, Q7 SwiGLU) with questions routed through a module-spec/registry (Q2 configuration propagation, Q5 attention dispatch, Q8 normalization) to argue that indirection, not size, is the cost source. Two questions arise. First, questions whose answer path traverses indirection may involve intrinsically longer tracing chains and higher difficulty, regardless of framework; in the current contrast, question difficulty and indirection are not separated. Second, Table 5 contains data points inconsistent with "size is the mechanism": TorchTitan (38K LoC) answers Q6 (RoPE) in 4 turns versus PithTrain's (10.8K LoC) 11, and Q12 (checkpointing) in 5 versus 10; Megatron-LM (149K LoC) is the best of the three on Q7 (SwiGLU). If compactness were the primary mechanism, how do codebases 3.5x and 14x larger achieve lower cost on multiple questions? Please annotate, for each of the 12 Q&A questions and each framework, whether the answer path traverses indirection, and provide a full analysis conditioned on that annotation rather than a contrast based on five selected questions.

Q7. MFU and the scope of the throughput claim. The stated reason for omitting MFU — Tensor Core peak FLOPS differs between BF16 and FP8 — applies to only one of the five configurations (the FP8 row); the other four are pure BF16, where MFU is well defined. Please report MFU for these four BF16 configurations. Please also clarify the scope supporting "matches the throughput of production frameworks" (plural): TorchTitan OOMs on two of the five configurations and does not support a third, DeepSpeed is not included in the comparison, and Megatron-LM is the only framework that completes all five configurations.

Q8. The "previously unmeasured" novelty phrasing. The rebuttal repeatedly uses the phrase "a previously unmeasured aspect of development." Cost and token efficiency of coding agents as a first-class evaluation axis has prior and concurrent work in 2025-2026 — for example, GitTaskBench (arXiv 2508.18993) incorporates token cost and cost-effectiveness into code-agent evaluation via its alpha-score; SWE-QA (arXiv 2509.14635) reports per-question token usage in repository-level code QA; and public coding-agent leaderboards (e.g., the Artificial Analysis Coding Agent Index) report token usage and cost alongside benchmark scores. ATE's distinct elements are the inverted fix-the-agent/vary-the-framework design and the Active GPU Time dimension, but "previously unmeasured" is inconsistent with the work above. Please position these adjacent lines in the related work and adjust the novelty phrasing accordingly.

Reviewer mS5iOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This work proposes PithTrain, a compact, Python-native MoE training framework designed to be easier for AI coding agents to understand, operate, and extend. The paper also introduces agent-task efficiency (ATE) and ATE-Bench, a benchmark that compares training frameworks by holding the agent fixed and measuring the cost of completing realistic framework tasks. The authors show that PithTrain achieves throughput comparable to production frameworks while reducing agent turns, output tokens, context size, and GPU time on ATE-Bench.

Strengths and weaknesses

Strength:

Originality: I think the paper has a fresh angle, and it is interesting and timely. The main thing I liked is that it looks at ML systems from a slightly different angle: not just whether a training framework is fast, but whether an AI coding agent can actually understand and modify it efficiently. That feels like a relevant problem, especially as more people start using coding agents for systems work.

Quality: The paper is also fairly convincing on the systems side. PithTrain is not presented only as a simplified toy framework; the authors show that it can get throughput close to production frameworks on several MoE training settings. The benchmark tasks also seem realistic, covering code understanding, profiling, and adding new model features.

Significance: The idea of agent-task efficiency could be useful beyond this specific system. If coding agents become a normal part of training-framework development, then designing frameworks to be more agent-friendly could matter a lot. ATE-Bench is also a useful first step toward measuring this.

Clarity: The paper is quite easy to follow.

Weakness: unclear long-term scalability of the agent-native design.

I find the high-level idea interesting, but I am not fully convinced that PithTrain solves the harder problem of making complex production systems agent-friendly. Much of the benefit seems to come from the fact that PithTrain is compact. But one can often build a lighter “mini” version of a production system; the difficult question is whether the same design remains efficient as the framework grows. Production systems naturally become larger and more complicated over time as they add models, hardware support, optimizations, and edge cases. The paper does not show that PithTrain can preserve its agent-task efficiency under this kind of long-term development.

Questions
  1. How much of the benefit comes from the framework design v.s. agent skills? What if we apply similar skills to other frameworks.
  2. How would PithTrain’s agent-task efficiency change as the framework grows to support more models, hardware platforms, optimizations, and production edge cases?
  3. Whether accumulating agent skills on existing frameworks is enough for agent efficiency?
Limitations

No, the paper mentions some limitations, but I do not think they are fully addressed. In particular, the paper should discuss more clearly whether the proposed agent-native design can remain effective as the framework grows. I would also suggest adding a more explicit limitations section covering many different aspects.

Final justification

The paper proposes a fresh angle to today's ML systems, and I would keep my score of 4.

Formatting concerns

no

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

Thank you for your thoughtful feedback, and for recognizing the fresh and timely angle of agent-task efficiency, which is exactly what we would like to share with the community. Thank you for asking the gain contribution of in-repo skills and suggesting new experiments for us to better understand whether skills are sufficient. Your comments have helped us identify where to strengthen the manuscript. We set out our thinking on long-term growth below, ran the experiments, and will add the explicit limitations section you suggest.

1. Common response: scientific contributions of our work

We would like to clarify the scientific contributions. The contribution is (i) agent-task efficiency, (ii) ATE-Bench to measure it systematically, and (iii) four agent-native principles. The experiment volume is what it takes to support these empirically across throughput and agent-task efficiency. Guided by the principles, we build PithTrain, an end-to-end MoE training framework matching production throughput at substantially higher ATE.

We discussed this work with every production framework team in the paper and another industry pretraining team. All view ATE-Bench as valuable for a previously unmeasured aspect of development: one team now uses it in its development flow, another requested access, and none questioned the fairness of its scope. All identified token efficiency as important, which ATE-Bench reports with GPU time and per-turn context.

2. Common response: how much of the ATE gain comes from in-repo agent skills?

Thank you all for raising this. Our traces answer directly: across 20 tasks, three frameworks, three attempts, a PithTrain skill appears in exactly one task, "Report Heavy Kernels," where every attempt invokes capture-nsys-profile. The other 19 use no skills, so gains reflect code structure, not agent-facing procedures. The single overlap is a skill for Nsight Systems profiling, a capability any MoE training framework needs. Skills are one of the four claimed principles, not a separate source, and §5.3 measures their effect directly: enabling two reduces turns by 70% and 52%.

3. Common response: can the agent-native design hold as the framework grows?

Thank you both, reviewers mS5i and LR2L, for raising this important topic. We agree that preserving PithTrain's agent-native design as it grows is critical. Long-term agent-task efficiency also arose in our discussions with every industry production framework team we consulted, and we appreciate the opportunity to share our current thinking here.

As stated on lines 95-96, PithTrain may grow over time, but additions should remain constrained by the four principles we propose. In PithTrain's current development flow, agent reviewers in CI assess every pull request for implementation compactness and flag concerns, guarding the first principle. Other possible mechanisms include human code review, periodic refactoring, and regular evaluation with ATE-Bench to detect ATE regressions. Further mechanisms may be needed as the project evolves.

Based on what we have observed so far, there may be practical ways to maintain compactness. For example, we have observed that some frontier AI labs keep infrastructure support for only their latest few model generations rather than every legacy model. By contrast, many open-source training and inference systems retain broad model coverage, although a particular deployment may use only a small portion of it. Coding agents can already help port a new model by tracing how an existing model is integrated and adapting the same implementation pattern, configuration, and tests. As ATE receives more attention and teams increasingly optimize their frameworks for it, we expect such additions to become less costly.

These observations suggest a possible model for future open-source development: keep mainline coverage small but sufficient. As support for new models is added, older support can be retired from the mainline. Users who need a missing model, hardware platform, optimization, or edge case could use an agent, existing examples, in-house skills, and the surrounding harness to add it efficiently. Features needed by only a few users could be maintained in downstream forks rather than always upstreamed, helping prevent unbounded mainline growth.

This model is still our vision and has not yet been fully implemented. We commit to working with the open-source community on mechanisms for managing long-term agent-task efficiency. PithTrain and ATE-Bench are our first steps in that direction.

For agent skills, PithTrain already follows a self-improving practice. The repository's top-level AGENTS.md asks agents to refine a skill after using it and propose a new one when work not covered by an existing skill recurs. Over time, this can strengthen the fourth principle because the skill set grows with the framework rather than depending on human curation, which often lags behind.

Thank you, reviewer mS5i, for also raising the harder problem of making complex production systems agent-friendly. We agree that this is more difficult than building a lighter "mini" version of a production system, and production framework teams raised the same question in our discussions. While this work does not aim to solve that harder problem directly, we hope to share the insights gained while building PithTrain and help make agent-task efficiency a visible design goal. The production teams we consulted agreed that fully adopting all four principles in their existing systems would be difficult, but partial adoption is feasible. For example, reducing reliance on C++ extensions and adding in-repo skills may be easier than substantially shrinking a codebase or removing implicit indirection. We view the incremental application and evaluation of these principles in mature production systems as an important direction for future work.

We will add this discussion to the revision.

4. Would applying similar skills to the baselines close the gap?

Thank you for this valuable question. We ran the experiment you describe. Following the §5.3 protocol, we wrote a capture-nsys-profile skill for Megatron-LM and TorchTitan, tailored to each framework's training entry point and profiling workflow. We then reran "Report Heavy Kernels" on each framework with and without its skill, using Codex for three attempts per condition while holding the harness fixed.

Framework Skill Session Duration Active GPU Time Agent Turns Per-Turn Context Output Tokens
Megatron-LM off 21.3 17.9 89 43.9K 15.3K
on 23.5 17.6 98 37.9K 16.1K
TorchTitan off 24.3 17.3 99 67.6K 20.1K
on 12.7 9.1 53 39.0K 14.0K

Values are medians of three attempts, with durations in minutes. For TorchTitan, the skill lowers every metric and roughly halves session duration, Active GPU Time, and agent turns. For Megatron-LM, it provides no overall improvement beyond a modest reduction in per-turn context.

The agent traces explain this difference. TorchTitan has no built-in step-scoped profiling. In all three baseline attempts, the agent reconstructs this procedure by adding a torch.cuda.profiler start/stop hook to the trainer and passing a step number to it, with each attempt producing a different design. Getting the hook right requires repeated training runs, which explains why the skill also reduces Active GPU Time. The skill provides this procedure directly, so the agent no longer has to rediscover it. Megatron-LM already provides --profile, --profile-step-start/-end, and --profile-ranks. The agent finds these options on its own in all three baseline attempts, so the skill only restates information the repository already exposes and adds the cost of reading it.

These results show the limit of what skills can achieve on their own. A skill helps narrow the ATE gap when a framework would otherwise force the agent to reconstruct a procedure, but provides no benefit when that procedure is already easy to discover. With or without the skill, Megatron-LM still takes longer and uses more agent turns than skill-enabled TorchTitan. The same skill therefore does not remove framework-level differences. We do not expect skills alone to fully close the ATE gap, and the other three principles still matter for reducing the remaining cost. We will add this discussion to the revision.

5. Adding an explicit limitations section

Thank you for this suggestion. We agree and will add an explicit limitations section to the revision.

Reviewer LR2LOpenReview ↗
Rating
5/6
Confidence
3/5
Quality
4/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper presents PithTrain, a compact and agent-native MoE training framework designed to improve both training throughput and agent-task efficiency. The authors propose four agent-native design principles: compact codebase, Python-native implementation, no implicit indirection, and task-specific agent skills. They also introduce ATE-Bench, a benchmark that evaluates how much effort a fixed coding agent requires to perform training-framework tasks across different frameworks. Experiments show that PithTrain matches or exceeds production frameworks such as Megatron-LM and TorchTitan in MoE training throughput across several configurations, while reducing agent effort on Q&A, operate/profile, and new-feature integration tasks.

Strengths and weaknesses

Strength

  • The paper introduces agent-task efficiency as an interesting and timely evaluation dimension for ML training systems. Instead of only improving the agent or evaluating agent capability on a fixed codebase, the paper studies how framework design itself can reduce the cost for coding agents to understand, operate, and extend the system. This is a useful perspective given the increasing use of AI coding agents in systems development.
  • The proposed agent-native design principles provide a clear framework for thinking about how training systems should be structured for agent usability. The principles are simple but practically meaningful, and could serve as useful design guidelines for future ML frameworks beyond PithTrain.
  • Although much of the system work is engineering-oriented, PithTrain also demonstrates strong actual training performance.
  • The paper provides a structured benchmark, ATE-Bench, for evaluating agent-task efficiency across realistic training-framework tasks. This makes the evaluation more concrete than only measuring codebase size or making qualitative claims about readability.

Weakness

  • The proposed agent-native design principles sometimes feel like generally good software-engineering practices rather than sharply defined new system principles. It is not fully clear whether all four constitute a principled agent-native methodology rather than a set of generally good software-engineering practices.
  • The training-throughput side of the paper appears to rely mostly on manually incorporated standard MoE system optimizations. As a result, the systems research contribution on the training-performance side is less clear than the contribution on agent-task efficiency.
Questions
  • The paper explains which engineering techniques are used to improve training throughput in the System Architecture and Optimization section. However, it is not fully clear what the distinct PithTrain contribution is on the system-optimization side. The throughput improvement appears to come mainly from carefully applying known MoE training optimizations in a compact framework. The paper would be stronger if it clarified whether there is a novel system-level optimization, design insight, or optimization/search methodology beyond integrating existing techniques.
  • There seems to be a potential tension between compact code and no implicit indirection. Removing implicit indirection can improve local readability, but it may also duplicate code across model variants and eventually increase codebase size. How does PithTrain manage this trade-off as more models and features are added?
  • Should task-specific agent skills be considered part of the framework design, or are they closer to improving the agent/harness itself? Since skills provide procedural guidance to the coding agent, it would be useful to clarify whether the reported ATE gains come from the framework’s code structure, the additional agent-facing documentation/procedures, or their combination.
  • PithTrain is compact partly because its scope is narrower than production frameworks. If PithTrain continues to evolve and adds more models, features, hardware platforms, and training modes, how can it maintain its agent-friendly properties? What mechanisms or constraints would prevent it from gradually becoming as complex and indirect as existing production frameworks?
Limitations

yes

Final justification

I acknowledge the other reviewers' concerns that no individual principle's contribution is quantified and that task-level orderings vary across agents, but the framing of agent-task efficiency as an explicit design goal and the concrete benchmark to measure it remain valuable contributions. Therefore, I maintain my rating of 5.

Formatting concerns

I did not notice any concerns.

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

Thank you for your thoughtful feedback and positive assessment, and for recognizing agent-task efficiency as an interesting and timely evaluation dimension for ML training systems, which is exactly what we would like to share with the community. Your comments have helped us identify where to strengthen the manuscript, and we would like to address each below.

1. Common response: scientific contributions of our work

We would like to clarify the scientific contributions. The contribution is (i) agent-task efficiency, (ii) ATE-Bench to measure it systematically, and (iii) four agent-native principles. The experiment volume is what it takes to support these empirically across throughput and agent-task efficiency. Guided by the principles, we build PithTrain, an end-to-end MoE training framework matching production throughput at substantially higher ATE.

We discussed this work with every production framework team in the paper and another industry pretraining team. All view ATE-Bench as valuable for a previously unmeasured aspect of development: one team now uses it in its development flow, another requested access, and none questioned the fairness of its scope. All identified token efficiency as important, which ATE-Bench reports with GPU time and per-turn context.

2. Common response: how much of the ATE gain comes from in-repo agent skills?

Thank you all for raising this. Our traces answer directly: across 20 tasks, three frameworks, three attempts, a PithTrain skill appears in exactly one task, "Report Heavy Kernels," where every attempt invokes capture-nsys-profile. The other 19 use no skills, so gains reflect code structure, not agent-facing procedures. The single overlap is a skill for Nsight Systems profiling, a capability any MoE training framework needs. Skills are one of the four claimed principles, not a separate source, and §5.3 measures their effect directly: enabling two reduces turns by 70% and 52%.

3. Common response: can the agent-native design hold as the framework grows?

Thank you both, reviewers mS5i and LR2L, for raising this important topic. We agree that preserving PithTrain's agent-native design as it grows is critical. Long-term agent-task efficiency also arose in our discussions with every industry production framework team we consulted, and we appreciate the opportunity to share our current thinking here.

As stated on lines 95-96, PithTrain may grow over time, but additions should remain constrained by the four principles we propose. In PithTrain's current development flow, agent reviewers in CI assess every pull request for implementation compactness and flag concerns, guarding the first principle. Other possible mechanisms include human code review, periodic refactoring, and regular evaluation with ATE-Bench to detect ATE regressions. Further mechanisms may be needed as the project evolves.

Based on what we have observed so far, there may be practical ways to maintain compactness. For example, we have observed that some frontier AI labs keep infrastructure support for only their latest few model generations rather than every legacy model. By contrast, many open-source training and inference systems retain broad model coverage, although a particular deployment may use only a small portion of it. Coding agents can already help port a new model by tracing how an existing model is integrated and adapting the same implementation pattern, configuration, and tests. As ATE receives more attention and teams increasingly optimize their frameworks for it, we expect such additions to become less costly.

These observations suggest a possible model for future open-source development: keep mainline coverage small but sufficient. As support for new models is added, older support can be retired from the mainline. Users who need a missing model, hardware platform, optimization, or edge case could use an agent, existing examples, in-house skills, and the surrounding harness to add it efficiently. Features needed by only a few users could be maintained in downstream forks rather than always upstreamed, helping prevent unbounded mainline growth.

This model is still our vision and has not yet been fully implemented. We commit to working with the open-source community on mechanisms for managing long-term agent-task efficiency. PithTrain and ATE-Bench are our first steps in that direction.

For agent skills, PithTrain already follows a self-improving practice. The repository's top-level AGENTS.md asks agents to refine a skill after using it and propose a new one when work not covered by an existing skill recurs. Over time, this can strengthen the fourth principle because the skill set grows with the framework rather than depending on human curation, which often lags behind.

Thank you, reviewer mS5i, for also raising the harder problem of making complex production systems agent-friendly. We agree that this is more difficult than building a lighter "mini" version of a production system, and production framework teams raised the same question in our discussions. While this work does not aim to solve that harder problem directly, we hope to share the insights gained while building PithTrain and help make agent-task efficiency a visible design goal. The production teams we consulted agreed that fully adopting all four principles in their existing systems would be difficult, but partial adoption is feasible. For example, reducing reliance on C++ extensions and adding in-repo skills may be easier than substantially shrinking a codebase or removing implicit indirection. We view the incremental application and evaluation of these principles in mature production systems as an important direction for future work.

We will add this discussion to the revision.

4. Are the four principles genuinely agent-native, or just good software engineering?

Thank you for asking this important question. The four principles follow from agent strengths and weaknesses:

  • Agents struggle with long-range consistency as a codebase grows, so a compact codebase reduces this burden.
  • Agents struggle with long feedback loops, so a Python-native design provides readable Python tracebacks instead of opaque native errors and avoids the compiled-extension rebuild cycle (lines 97-102, 226-230).
  • Agents are strong at global symbol search. Reducing implicit dispatch builds on this strength by keeping the call graph resolvable in a few greps instead of hiding what the agent must search for.
  • Agents can load and follow procedures on demand. Task-specific agent skills use this ability to provide verified guidance for recurring work.

Some principles may also benefit software engineering, such as Python-native code and task-specific agent skills. However, mature software often uses implicit indirection, including shared skeletons and registries, to reduce duplication across model variants, as you also noted. Reducing such indirection is therefore motivated by how agents work rather than being a restatement of common software-engineering practice. We therefore do not view all four principles as general software-engineering rules. We will clarify this distinction in the revision.

5. What is the distinct systems contribution on the throughput side?

Thank you for raising this and for your suggestion. We do not claim novel system-level optimizations. Lines 129-130 state that PithTrain's optimizations are standard. Their role is to show that agent-native design need not sacrifice training throughput. Without competitive throughput, an MoE system has limited practical interest regardless of its agent-task efficiency. We describe the optimizations for transparency, reproducibility, and to explain measured performance, not as a separate contribution. We will make this distinction clearer in the revision.

6. The tension between a compact codebase and no implicit indirection

Thank you for raising this valuable point. We agree the principles can conflict because indirection can reduce duplication and codebase size. They should be balanced to lower total agent cost, not maximized separately.

PithTrain can still reuse explicit helpers when the call target remains visible. What we aim to avoid is indirection that hides runtime behavior from static search, even when avoiding it adds some code. Examples include runtime-spec-based submodule resolution (line 107, Figure 2), deep nn.Module inheritance, and nn.Module hooks. We may accept limited duplication across model variants when it keeps execution paths explicit. At the same time, the mechanisms discussed in our common response, including focused mainline coverage, review, refactoring, and ATE-Bench evaluation, can help control codebase growth. We will clarify this trade-off in the revision.

7. Should task-specific agent skills be considered part of the framework design, or are they closer to improving the agent/harness?

Thank you for asking this question. We consider skills part of the framework design when they encode knowledge specific to that framework and are maintained with its code. For example, the add-memory-prints skill (Table 3) names the exact files to instrument, where to place the prints in each file, and what code to add. This is not a generic playbook.

Improving agents and harnesses is a complementary direction. These improvements are usually general and transferable across repositories, so they cannot easily encode framework-specific procedures and file-level knowledge. Better agents and harnesses should make all the tasks in our paper easier, while task- and framework-specific skills provide additional value that a generic agent or harness cannot fully cover. We will clarify this distinction in the revision.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…