# XStack: A Benchmark for ML Repo Migration

XStack: ML 저장소 마이그레이션을 위한 벤치마크

Linrong Cai, Taiming Lu, Haozhe Chen, Zhuang Liu · arXiv · 2026년 11월 5일

- **연구 문제** 작동하는 PyTorch 기반 ML 저장소를 JAX와 TPU로 옮길 때, 에이전트가 전체 저장소를 올바르게 마이그레이션할 수 있는지가 핵심 문제입니다.
- **연구 방법** XStack은 고정된 PyTorch 저장소와 깨끗한 TPU 머신을 에이전트에 주고, 원 발표 결과에 도달하는 JAX 저장소를 요구하는 벤치마크입니다. 1단계 실패 후 2단계에서 레시피를 알리되 진입 스크립트 외의 코드는 고정합니다.
- **주요 결과** 7개 에이전트의 최종 통과율은 31%였으며 1단계 후 통과율은 21%였습니다.

## 연구 문제: 하드웨어가 바뀌면 작동하던 ML 저장소는 재사용하기 어렵습니다

이 논문은 실제로 잘 작동하는 PyTorch 기반 ML 저장소를 JAX와 TPU 환경으로 옮길 수 있는지를 묻습니다. 저장소는 이미 원래 기계에서 결과를 내고 있으므로, 과제는 번역 자체보다 전체 시스템의 동작을 보존하면서 다른 프레임워크와 하드웨어로 옮기는 데 있습니다. 기존 벤치마크는 이 설정을 직접 검증하지 못합니다. 이슈 해결 벤치마크는 깨진 코드를 고치는 과제이고, 변환 벤치마크는 같은 기계에서 번역된 코드를 원본과 비교합니다. 이 논문은 전체 저장소를 새 프레임워크와 하드웨어에서 원 저장소의 발표 결과에 도달하도록 요구하는 XStack을 도입합니다.

## XStack의 과제 구성과 두 단계 채점

각 과제에서 에이전트는 고정 커밋의 PyTorch 저장소와 깨끗한 TPU 머신을 받습니다. 목표는 전체 저장소를 Flax 모델과 Optax 옵티마이저를 사용하는 JAX 저장소로 옮기고, 원 실험을 전체 규모로 실행하는 것입니다. 에이전트는 setup\_env.sh, run\_train.py, export\_torch.py의 세 스크립트를 제출합니다. 채점은 제출물을 새로 초기화한 머신에서 다시 실행하여 원 저장소의 발표 수치인 채점 대상과 비교하는 방식으로 이루어집니다. 1단계에서는 채점 대상을 알려 주지 않아 에이전트가 저장소 전체를 옮겨야 합니다. 1단계가 실패하면 2단계 메시지가 주요 실험의 레시피를 알려 주되, 진입 스크립트 외의 파일은 고정되어 바꿀 수 없습니다.

따라서 2단계는 실험 선택의 차이를 보정하지만 코드 자체의 실패를 가리지는 않습니다.

![Figure 2: Pipeline of XStack.Top: the agent migrates a PyTorch repository to JAX on a bare TPU. Bottom: we rerun the output on a fresh TPU and check its number…](https://refivu.com/papers/7992c065-b01d-4a80-b1c4-cf358ebfead6/figures/figure-a2ffd5282f61b6584f0ebfead3a8890e.png?thumb=512)

**Figure 2** . Pipeline of XStack.Top: the agent migrates a PyTorch repository to JAX on a bare TPU. Bottom: we rerun the output on a fresh TPU and check its number against the source’s result and with two model judges. If they fail, the alignment step (phase 2, pink) gives the agent the main experiment’s recipe, lets it change only the entry script, and regrades the result. A pass also needs the weights to load into the original PyTorch model.

[원문](https://arxiv.org/abs/2611.08472v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Linrong Cai, Taiming Lu, Haozhe Chen, Zhuang Liu · XStack: A Benchmark for ML Repo Migration · 원문 그림 인용 · 원본 PDF 3쪽에서 그림 영역을 추출했습니다.

![Table 2: What the agent and the grader see.The agent never sees the grading target, so it has to migrate the whole repository; phase 2 adds the main experiment…](https://refivu.com/papers/7992c065-b01d-4a80-b1c4-cf358ebfead6/figures/figure-0ffcdedb724f1ee9cd8d39dbd25ae628.png?thumb=512)

**Table 2** . What the agent and the grader see.The agent never sees the grading target, so it has to migrate the whole repository; phase 2 adds the main experiment’s recipe to ensure grading fairness.

[원문](https://arxiv.org/abs/2611.08472v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Linrong Cai, Taiming Lu, Haozhe Chen, Zhuang Liu · XStack: A Benchmark for ML Repo Migration · 원문 그림 인용 · 원본 PDF 4쪽에서 그림 영역을 추출했습니다.

## 심사 절차와 목표 수치의 설정

채점 대상에 도달한 결과는 두 개의 모델 심사자가 검토합니다. 정확성 심사자는 수치가 이번 실행의 주 실험 학습에서 나왔는지 확인하고, 부정행위 심사자는 지표를 고정하거나 다른 실행의 파일을 쓰는 등의 우회를 찾습니다. 결과가 통과하려면 채점 대상에 도달하고, 두 심사를 모두 통과하며, 가중치가 원 PyTorch 모델의 파라미터 이름으로 로드되어야 합니다. 목표 수치는 대부분 원 저장소가 발표한 값을 원본과 대조해 정한 것이며, 발표 값이 없는 3개 저장소는 자체 GPU에서 원본을 실행한 결과로 설정했습니다. 예를 들어 makemore는 원 README 손실 1.92 대신 원본 8회 실행의 평균과 두 표준편차를 더한 2.023을 목표로 삼았습니다.

이 설정은 원본 코드가 실제로 도달하는 목표만 쓰도록 하기 위한 것입니다.

![Table 4: Checks and cost per agent. Left: share of repositories passing each check in turn (grading target, correctness and cheat judges, weight loading).Right…](https://refivu.com/papers/7992c065-b01d-4a80-b1c4-cf358ebfead6/figures/figure-ad3ac5f25e8a8e606e9eeb2cf3ad4cc2.png?thumb=512)

**Table 4** . Checks and cost per agent. Left: share of repositories passing each check in turn (grading target, correctness and cheat judges, weight loading).Right: repositories passed, mean tokens per cell (input, cached input and output over all turns, as billed), list-price dollars per cell and per pass, and mean agent hours per cell.

[원문](https://arxiv.org/abs/2611.08472v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Linrong Cai, Taiming Lu, Haozhe Chen, Zhuang Liu · XStack: A Benchmark for ML Repo Migration · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

## 에이전트별 통과율과 2단계 효과

7개 에이전트를 20개 저장소에 적용하여 140개 셀을 평가했습니다. 1단계에서 통과는 30/140으로 21%였고, Claude Opus 5가 12/20으로 가장 많이 통과했습니다. 2단계 이후 최종 통과는 44/140으로 31%입니다. 1단계 실패 108개 셀 중 채점기는 44개를 통과시켰고, 심사자는 그중 16개를 통과로 인정했습니다. 2단계는 모든 에이전트에서 최소 하나의 통과를 추가했습니다. 심사는 채점기 통과 102건 중 56건을 기각했습니다. 이 추세는 7개 에이전트 수준의 관찰이며 모든 에이전트 설계로 일반화되지는 않습니다.

![Figure 3: Repositories of XStack.Rows group the 20 repositories into three task families. The number beside each name is the expected duration, in hours, of on…](https://refivu.com/papers/7992c065-b01d-4a80-b1c4-cf358ebfead6/figures/figure-a6dd05383d9ca9373a25e9a4f335a83d.png?thumb=512)

**Figure 3** . Repositories of XStack.Rows group the 20 repositories into three task families. The number beside each name is the expected duration, in hours, of one graded run, which trains the model at the source’s full scale.

[원문](https://arxiv.org/abs/2611.08472v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Linrong Cai, Taiming Lu, Haozhe Chen, Zhuang Liu · XStack: A Benchmark for ML Repo Migration · 원문 그림 인용 · 원본 PDF 4쪽에서 그림 영역을 추출했습니다.

![Figure 4: Pass rate per agent.Light bars: after phase 1; dark bars: after phase 2. Phase 2 adds a few passes for every agent: once aligned with the main experi…](https://refivu.com/papers/7992c065-b01d-4a80-b1c4-cf358ebfead6/figures/figure-340024acc6f96c98af578d04353fd6e7.png?thumb=512)

**Figure 4** . Pass rate per agent.Light bars: after phase 1; dark bars: after phase 2. Phase 2 adds a few passes for every agent: once aligned with the main experiment, each agent passes more repositories.

[원문](https://arxiv.org/abs/2611.08472v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Linrong Cai, Taiming Lu, Haozhe Chen, Zhuang Liu · XStack: A Benchmark for ML Repo Migration · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.

![Figure 5: Outcomes by phase.From left to right, the columns show all 140 cells, their phase 1 outcome, their phase 2 outcome and the final result. Of the 110 c…](https://refivu.com/papers/7992c065-b01d-4a80-b1c4-cf358ebfead6/figures/figure-bc166a3d9a985ab315156dd498bde461.png?thumb=512)

**Figure 5** . Outcomes by phase.From left to right, the columns show all 140 cells, their phase 1 outcome, their phase 2 outcome and the final result. Of the 110 cells that failed phase 1, phase 2 rescues 16; the rest fail the judges, fall short of the grading target, crash or break the freeze (Section 2.2). Two rescued cells fail the weight-loading check.

[원문](https://arxiv.org/abs/2611.08472v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Linrong Cai, Taiming Lu, Haozhe Chen, Zhuang Liu · XStack: A Benchmark for ML Repo Migration · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

## 실패 원인과 적용 범위

실패 분류에서 1단계 실패의 27%는 잘못된 실험이나 불완전한 실험이었고, 47%는 충실도 격차, 충돌 또는 종료되지 않는 코드 실패였습니다. 2단계는 실험 선택의 문제를 줄이지만, 옮긴 코드 자체의 실패는 해결하지 못합니다. 같은 저자들은 JAX 번역만 따로 본 GPU 전용 실험에서 12개 PyTorch 저장소의 검사 116/117을 통과했다고 보고합니다. 그러므로 어려움은 번역 자체보다 프레임워크와 하드웨어를 함께 옮기는 데 있다는 것이 논문의 해석입니다. 이 결과는 20개 저장소, 7개 에이전트, 이 채점 규칙의 범위에서 얻은 것입니다.

![Figure 7: Failure breakdown after phase 1.Each bar splits an agent’s 20 repositories by phase 1 outcome: pass; failed by the judges; wrong experiment (a differ…](https://refivu.com/papers/7992c065-b01d-4a80-b1c4-cf358ebfead6/figures/figure-d5080002d8bcae43f0704940a15ba4da.png?thumb=512)

**Figure 7** . Failure breakdown after phase 1.Each bar splits an agent’s 20 repositories by phase 1 outcome: pass; failed by the judges; wrong experiment (a different pipeline or scale, or the headline evaluation never run); fidelity gap (right pipeline, misses the grading target); crash or no termination. The last two, 47% of failures, are faults in the migrated code, which phase 2 cannot repair.

[원문](https://arxiv.org/abs/2611.08472v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Linrong Cai, Taiming Lu, Haozhe Chen, Zhuang Liu · XStack: A Benchmark for ML Repo Migration · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

## 논문 정보

- **저자**: Linrong Cai, Taiming Lu, Haozhe Chen, Zhuang Liu
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2026년 11월 5일
- **등록일**: 2026년 11월 7일
- **수정일**: 2026년 11월 5일
- **버전**: v1
- **arXiv**: 2611.08472
- **분류**: cs.LG · cs.AI
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2611.08472v1) · [원문 PDF ↗](https://arxiv.org/pdf/2611.08472v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

ML code should run where researchers choose, not where it was first written. Today, machine learning code mainly lives in two ecosystems, PyTorch on NVIDIA GPUs and JAX on Google TPUs. Migrating repositories between them means building and testing across frameworks and hardware. This migration is (1) a practical need, since it unlocks different hardware for researchers, and (2) a natural benchmark: it involves different frameworks and hardware, covers whole repositories, and is long-horizon and challenging. We introduce XStack, a benchmark that evaluates agents on migrating ML repositories between these two ecosystems. Each agent receives a PyTorch repository and a clean TPU machine and must deliver a JAX repository. Its output passes if it meets our grading criteria, based on the source repository's published result, authenticated and calibrated by us. Migration by agents remains unreliable: Claude Opus 5 passes 75%, GPT-5.6-sol 45%, and every other agent at most 40%. XStack is a step toward freeing ML code from its ecosystem. We release XStack to make progress toward reliable migration across frameworks and hardware measurable.

## 원문 인용

Linrong Cai, Taiming Lu, Haozhe Chen, Zhuang Liu (2026). XStack: A Benchmark for ML Repo Migration. arXiv:2611.08472v1. https://arxiv.org/abs/2611.08472v1

**BibTeX**

```
@misc{cai2026xstack,
  title = {{XStack: A Benchmark for ML Repo Migration}},
  author = {Linrong Cai and Taiming Lu and Haozhe Chen and Zhuang Liu},
  year = {2026},
  eprint = {2611.08472},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.08472v1}
}
```

## 이 논문의 용어

- [pass rate](https://refivu.com/terms/e86bfedbb967-pass-rate)
- [Cell](https://refivu.com/terms/f32f05765fbf-cell)
- [Failure taxonomy](https://refivu.com/terms/7922192137e5-failure-taxonomy)
- [PyTorch](https://refivu.com/terms/edd1274b5e01-pytorch)
- [JAX](https://refivu.com/terms/844cbd539748-jax)

## 다른 논문 해설

- [BabyTheorist: A Benchmark for Learning to Theorize the World from Observation Alone](https://refivu.com/papers/43fec6ba-782e-4f22-9fdf-dcd6f0d21d22-babytheorist-a-benchmark-for-learning-to-theorize-the.md)
- [Benchmarks as Software: Terminal-Bench and the Case for Continuous Benchmarks](https://refivu.com/papers/cda0592d-3478-4e53-ba7d-c2b3098abeb9-benchmarks-as-software-terminal-bench-and-the-case.md)
- [Terminal-style Mathematical Modeling Bench: The First Agentic and Verifiable Benchmark for Mathematical Modeling](https://refivu.com/papers/5adf1038-f3d6-4c98-bdc9-c1fcd3dad039-terminal-style-mathematical-modeling-bench-the-first-agentic.md)
- [Empirical Evaluation of Quantum Kernel Methods for Classification: A Comparative Study with Classical Kernels](https://refivu.com/papers/b3a0b133-99e0-4cdf-a253-b786379a3d9f-empirical-evaluation-of-quantum-kernel-methods-for.md)
- [MemU-Bench: Benchmarking GUI Agents on Long-Horizon User Interactions](https://refivu.com/papers/04d81424-d9d1-4a88-8852-ad3790e5a7bd-memu-bench-benchmarking-gui-agents-on-long-horizon.md)
- [Unsatz: Evaluating Scientific Discovery Without a Given Ansatz](https://refivu.com/papers/b143d872-0d21-4ae2-af14-070fdb4b449f-unsatz-evaluating-scientific-discovery-without-a-given.md)
- [Prune Gradually, Adapt Sparsely: Efficient Pruning of Large Language Models at Extreme Sparsity](https://refivu.com/papers/b1289733-ee90-4f09-9b44-f020ba510eec-prune-gradually-adapt-sparsely-efficient-pruning-of-large.md)
- [On the limitations of molecular representations](https://refivu.com/papers/6323d57a-14ec-409e-b40c-3b539a68822c-on-the-limitations-of-molecular-representations.md)
- [Agent-R$^2$: Scaling Agents for Realistic Productivity Work via Real-Source Data Synthesis](https://refivu.com/papers/0a35b188-3771-4938-b5be-bee07e4e6512-agent-r-2-scaling-agents-for-realistic-productivity.md)
- [ReproBridge: Building Reproducibility into ML Research Artifacts](https://refivu.com/papers/73b72bbf-7388-44d3-a762-cf93a3c2369f-reprobridge-building-reproducibility-into-ml-research.md)
- [MOMASPLAT: Dynamic Novel-View Demonstration Augmentation for Mobile Manipulation](https://refivu.com/papers/c1c0d97b-2264-4c4c-888d-3012bff98104-momasplat-dynamic-novel-view-demonstration-augmentation-for.md)
- [FewStepRL: Fine-tuning Few-step Diffusion Models with Reinforcement Learning](https://refivu.com/papers/19e396db-f4cb-44c4-a162-ce8b18ac5d33-fewsteprl-fine-tuning-few-step-diffusion-models-with.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/7992c065-b01d-4a80-b1c4-cf358ebfead6-xstack-a-benchmark-for-ml-repo-migration)
