LinRongCai commited on
Commit
52d6701
ยท
verified ยท
1 Parent(s): e1eccfa

XStack benchmark: 20 tasks (card, data, figures)

Browse files
Files changed (6) hide show
  1. README.md +110 -0
  2. data/test.jsonl +0 -0
  3. data/test.parquet +3 -0
  4. pipeline.png +3 -0
  5. task_table.md +22 -0
  6. teaser.png +3 -0
README.md CHANGED
@@ -1,3 +1,113 @@
1
  ---
 
 
2
  license: cc-by-4.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
  license: cc-by-4.0
5
+ size_categories:
6
+ - n<1K
7
+ pretty_name: XStack
8
+ task_categories:
9
+ - other
10
+ tags:
11
+ - code
12
+ - agents
13
+ - jax
14
+ - pytorch
15
+ - tpu
16
+ - repository-migration
17
+ - benchmark
18
+ configs:
19
+ - config_name: default
20
+ data_files:
21
+ - split: test
22
+ path: data/test.parquet
23
  ---
24
+
25
+ <h1 align="center">XStack: A Benchmark for ML Repo Migration</h1>
26
+
27
+ <p align="center">Linrong Cai, Taiming Lu, Haozhe Chen, Zhuang Liu</p>
28
+ <p align="center">Princeton University</p>
29
+
30
+ <p align="center">
31
+ <a href="#citation">๐Ÿ“„ Paper</a> &nbsp;|&nbsp;
32
+ <a href="https://github.com/zlab-princeton/XStack">๐Ÿ’ป Code</a> &nbsp;|&nbsp;
33
+ <a href="https://huggingface.co/datasets/zlab-princeton/XStack-traces">๐Ÿ“Š Agent traces</a>
34
+ </p>
35
+
36
+ ## Overview
37
+
38
+ <p align="center">
39
+ <img src="pipeline.png" alt="The agent gets the PyTorch source, a TPU machine and the prompt and hands in a JAX repository; a fresh machine grades it against the source's published result, two judges read the transcript, and a failed blind turn gets one frozen phase-2 turn." width="100%">
40
+ </p>
41
+
42
+ XStack asks a coding agent to migrate a whole machine-learning repository from PyTorch to JAX and make it work at the source's own scale. Each of the 20 tasks is a real repository at a pinned commit. The agent gets the source tree, a bare TPU machine and one prompt that is the same for every task; it is never told the metric, the bar or the dataset. A fresh machine then runs the migration at full scale, the headline number is compared with the source's published result, two judges read the transcript, and the exported weights must load into the source model. A failed blind turn gets one more turn with the code frozen and the recipe stated.
43
+
44
+ <p align="center">
45
+ <img src="teaser.png" alt="Pass rate per agent over the 20 repositories. Claude Opus 5 passes 75%, GPT-5.6-sol 45%, every other agent at most 40%." width="90%">
46
+ </p>
47
+
48
+ Over 20 repositories and 7 agents, Claude Opus 5 passes 75% of the tasks, GPT-5.6-sol 45%, and every other agent at most 40%. Every run is in [XStack-traces](https://huggingface.co/datasets/zlab-princeton/XStack-traces).
49
+
50
+ ## Quickstart
51
+
52
+ ```python
53
+ from datasets import load_dataset
54
+
55
+ tasks = load_dataset("zlab-princeton/XStack", split="test")
56
+ task = tasks[0]
57
+ print(task["source_repo"], task["source_commit"]) # https://github.com/karpathy/minGPT 37baab7...
58
+ print(task["prompt"][:200]) # the phase-1 prompt the agent receives
59
+ ```
60
+
61
+ Give the agent `prompt`, the repository at `source_commit` and a TPU machine it sets up itself. Keep `criteria` and `phase2` out of its workspace; `phase2` is sent only after a failed blind turn. The [harness](https://github.com/zlab-princeton/XStack) does all of this and grades the result.
62
+
63
+ ## Tasks
64
+
65
+ | task | domain | source |
66
+ |---|---|---|
67
+ | `mingpt` | language modeling | [minGPT @ 37baab7](https://github.com/karpathy/minGPT/tree/37baab71b9abea1b76ab957409a1cc2fbfba8a26) |
68
+ | `makemore` | language modeling | [makemore @ 988aa59](https://github.com/karpathy/makemore/tree/988aa59e4d8fefa526d06f3b453ad116258398d4) |
69
+ | `lora` | fine-tuning | [LoRA @ c4593f0](https://github.com/microsoft/LoRA/tree/c4593f060e6a368d7bb5af5273b8e42810cdef90) |
70
+ | `ast` | audio classification | [AST @ 31088be](https://github.com/YuanGongND/ast/tree/31088be8a3f6ef96416145c4b8d43c81f99eba7a) |
71
+ | `x_transformers` | language modeling | [x-transformers @ dfd829b](https://github.com/lucidrains/x-transformers/tree/dfd829b8c1e291ad03c95f509fc874d55f3da40d) |
72
+ | `llama2c` | language modeling | [llama2.c @ 350e04f](https://github.com/karpathy/llama2.c/tree/350e04fe35433e6d2941dce5a1f53308f87058eb) |
73
+ | `modded_nanogpt` | language modeling | [modded-nanoGPT @ 1b51e26](https://github.com/KellerJordan/modded-nanogpt/tree/1b51e26d304f647c7c12201b3f1513ee5a429ec4) |
74
+ | `airbench` | image classification | [airbench @ 4c1b6d1](https://github.com/KellerJordan/cifar10-airbench/tree/4c1b6d1e3889b037efadcfd5c0ea65b246592362) |
75
+ | `simcse` | sentence embeddings | [SimCSE @ 49fa580](https://github.com/princeton-nlp/SimCSE/tree/49fa580a853752ede55b8c76d9debf748e214d3f) |
76
+ | `generative_recommenders` | recommendation | [HSTU @ fb0ba64](https://github.com/meta-recsys/generative-recommenders/tree/fb0ba644be8dd1c7b072199c9c8bc6ce3adaf3d8) |
77
+ | `s4` | long-sequence modeling | [S4 @ e757cef](https://github.com/state-spaces/s4/tree/e757cef57d89e448c413de7325ed5601aceaac13) |
78
+ | `tdmpc2` | reinforcement learning | [TD-MPC2 @ e9f5932](https://github.com/nicklashansen/tdmpc2/tree/e9f59321933cbc8e11a002b842adc7d4ffae8ff1) |
79
+ | `nanochat_core` | language modeling | [nanochat @ dc54a1a](https://github.com/karpathy/nanochat/tree/dc54a1a3077cab11d68fac4c5d1cd5c51f5d8c7a) |
80
+ | `tensorf` | neural fields | [TensoRF @ 6a1e23b](https://github.com/apchenstu/TensoRF/tree/6a1e23b10b9521221049aec843ab370a747a7982) |
81
+ | `nanogpt` | language modeling | [nanoGPT @ 3adf61e](https://github.com/karpathy/nanoGPT/tree/3adf61e154c3fe3fca428ad6bc3818b27a3b8291) |
82
+ | `nanovlm` | vision-language | [nanoVLM @ 6ba9082](https://github.com/huggingface/nanoVLM/tree/6ba9082e16f1fc8c21a1f8d0c54b26c9233c8771) |
83
+ | `deepspeech` | speech recognition | [deepspeech @ b88a631](https://github.com/SeanNaren/deepspeech.pytorch/tree/b88a631ef6b96553e16bbaa5bd6a621435bed278) |
84
+ | `tgn` | temporal graph learning | [TGN @ d55bbe6](https://github.com/twitter-research/tgn/tree/d55bbe678acabb9fc3879c408fd1f2e15919667c) |
85
+ | `patchtst` | time-series forecasting | [PatchTST @ 204c21e](https://github.com/yuqinie98/PatchTST/tree/204c21efe0b39603ad6e2ca640ef5896646ab1a9) |
86
+ | `tabr` | tabular learning | [TabR @ 17baa90](https://github.com/yandex-research/tabular-dl-tabr/tree/17baa9082506f8e7a0f8d11bb1e08212926a1507) |
87
+
88
+ ## Fields
89
+
90
+ | Field | Meaning |
91
+ |---|---|
92
+ | `task_id`, `name`, `domain` | The task, its display name and what the repository does |
93
+ | `source_repo`, `source_commit`, `source_at_commit`, `source_license` | The repository, the pinned commit, a link to the tree at that commit and its license |
94
+ | `source_drop`, `source_tree_sha256` | Paths removed from the vendored tree, and a hash of the file list to verify a fetch |
95
+ | `prompt`, `contract_lines` | The phase-1 prompt, verbatim, and its task-specific lines (empty for 16 tasks) |
96
+ | `phase2` | The phase-2 message, verbatim: the recipe, never the bar |
97
+ | `pipeline`, `graded_quantity`, `bar`, `bar_cmp`, `bar_value`, `bar_value_2`, `bar_kind` | What is graded and the bar (`at least` or `at most` a value, or a band), and where the bar comes from |
98
+ | `dataset`, `seed`, `grade_cmd`, `expected_grade_wall_h` | What the grading machine runs and how long it takes |
99
+ | `criteria` | The hidden grading criteria: metric pattern, dataset pattern, bar and its provenance, grade command, phase-2 recipe |
100
+
101
+ ## License
102
+
103
+ [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). The repositories it points to keep their own licenses (`source_license`).
104
+
105
+ ## Citation
106
+
107
+ ```bibtex
108
+ @article{cai2026xstack,
109
+ title = {XStack: A Benchmark for ML Repo Migration},
110
+ author = {Cai, Linrong and Lu, Taiming and Chen, Haozhe and Liu, Zhuang},
111
+ year = {2026}
112
+ }
113
+ ```
data/test.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
data/test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:800b4585e567cc8dd858e0f823ccf187b1f546e4f31781f6a61a055ce3b53fe6
3
+ size 125545
pipeline.png ADDED

Git LFS Details

  • SHA256: 730fd9da4a36ef0df3c7fee772b6749ae25f360cfa3238d22c4e5d9b72117685
  • Pointer size: 130 Bytes
  • Size of remote file: 99.2 kB
task_table.md ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ | task | domain | source | graded quantity | bar |
2
+ |---|---|---|---|---|
3
+ | `mingpt` | language modeling | [minGPT @ 37baab7](https://github.com/karpathy/minGPT/tree/37baab71b9abea1b76ab957409a1cc2fbfba8a26) | at least 495 of 500 correct adder test answers | at least 495 |
4
+ | `makemore` | language modeling | [makemore @ 988aa59](https://github.com/karpathy/makemore/tree/988aa59e4d8fefa526d06f3b453ad116258398d4) | a best test NLL of at most 1.95 | at most 2.023 |
5
+ | `lora` | fine-tuning | [LoRA @ c4593f0](https://github.com/microsoft/LoRA/tree/c4593f060e6a368d7bb5af5273b8e42810cdef90) | a corpus BLEU of at least 0.680 on the E2E test set (the source scorer's 0-1 scale; published 0.704) | band 0.68 to 1.0 |
6
+ | `ast` | audio classification | [AST @ 31088be](https://github.com/YuanGongND/ast/tree/31088be8a3f6ef96416145c4b8d43c81f99eba7a) | a test-split top-1 accuracy of at least 0.975 | band 0.975 to 1.0 |
7
+ | `x_transformers` | language modeling | [x-transformers @ dfd829b](https://github.com/lucidrains/x-transformers/tree/dfd829b8c1e291ad03c95f509fc874d55f3da40d) | a validation loss between 0.8788 and 0.9788 | band 0.878835 to 0.978835 |
8
+ | `llama2c` | language modeling | [llama2.c @ 350e04f](https://github.com/karpathy/llama2.c/tree/350e04fe35433e6d2941dce5a1f53308f87058eb) | a best validation loss of at most 1.130 at the source's own 100,000-iteration default horizon (two-seed anchor of the unmodified source: 1.0992 / 1.0978, plus 0.03) | at most 1.13 |
9
+ | `modded_nanogpt` | language modeling | [modded-nanoGPT @ 1b51e26](https://github.com/KellerJordan/modded-nanogpt/tree/1b51e26d304f647c7c12201b3f1513ee5a429ec4) | a FineWeb validation cross-entropy loss of at most 3.285 (the source's 3.28 mean-of-N target plus a 0.005 single-run tolerance) | at most 3.285 |
10
+ | `airbench` | image classification | [airbench @ 4c1b6d1](https://github.com/KellerJordan/cifar10-airbench/tree/4c1b6d1e3889b037efadcfd5c0ea65b246592362) | a test-time-augmented CIFAR-10 test accuracy of at least 0.9393, taken as the mean over the source's own 25-trial loop (published mean 94.01%, per-run stddev 0.128 points at n=10,000) | band 0.9393 to 1.0 |
11
+ | `simcse` | sentence embeddings | [SimCSE @ 49fa580](https://github.com/princeton-nlp/SimCSE/tree/49fa580a853752ede55b8c76d9debf748e214d3f) | an average Spearman correlation of at least 73.5 across the seven STS test sets | band 73.5 to 100.0 |
12
+ | `generative_recommenders` | recommendation | [HSTU @ fb0ba64](https://github.com/meta-recsys/generative-recommenders/tree/fb0ba644be8dd1c7b072199c9c8bc6ce3adaf3d8) | a MovieLens-20M HR@10 of at least 0.3450 (the source's own 0-1 fraction; published 0.3556) | band 0.345 to 1.0 |
13
+ | `s4` | long-sequence modeling | [S4 @ e757cef](https://github.com/state-spaces/s4/tree/e757cef57d89e448c413de7325ed5601aceaac13) | a top-1 accuracy of at least 87.0 percent on a held-out CIFAR-10 split (published 88%, README.md:78) | band 87.0 to 100.0 |
14
+ | `tdmpc2` | reinforcement learning | [TD-MPC2 @ e9f5932](https://github.com/nicklashansen/tdmpc2/tree/e9f59321933cbc8e11a002b842adc7d4ffae8ff1) | a mean evaluation return of at least 750.0 over the source's 10-episode evaluation on DMControl walker-run, reached at any evaluation checkpoint at or before 500,000 environment steps (published 3-seed mean 820.4 at 500k, worst seed 811.6; the repo's own SAC baseline never exceeds 747.1 in 4M steps) | band 750.0 to 1000.0 |
15
+ | `nanochat_core` | language modeling | [nanochat @ dc54a1a](https://github.com/karpathy/nanochat/tree/dc54a1a3077cab11d68fac4c5d1cd5c51f5d8c7a) | a base-evaluation-suite score of at least 0.256525 | band 0.256525 to 1.0 |
16
+ | `tensorf` | neural fields | [TensoRF @ 6a1e23b](https://github.com/apchenstu/TensoRF/tree/6a1e23b10b9521221049aec843ab370a747a7982) | a mean test-view PSNR of at least 36.10 dB on Synthetic-NeRF lego (published 36.46) | band 36.1 to 45.0 |
17
+ | `nanogpt` | language modeling | [nanoGPT @ 3adf61e](https://github.com/karpathy/nanoGPT/tree/3adf61e154c3fe3fca428ad6bc3818b27a3b8291) | a validation loss bar at the graded iteration budget | at most 3.12 |
18
+ | `nanovlm` | vision-language | [nanoVLM @ 6ba9082](https://github.com/huggingface/nanoVLM/tree/6ba9082e16f1fc8c21a1f8d0c54b26c9233c8771) | a best MMStar accuracy of at least 0.353 (fraction scale; published 0.353) | band 0.353 to 1.0 |
19
+ | `deepspeech` | speech recognition | [deepspeech @ b88a631](https://github.com/SeanNaren/deepspeech.pytorch/tree/b88a631ef6b96553e16bbaa5bd6a621435bed278) | a word error rate of at most 20.0 percent on the AN4 test set (published 9.573; the band floor 1.5 is a unit guard, not a bar) | band 1.5 to 20.0 |
20
+ | `tgn` | temporal graph learning | [TGN @ d55bbe6](https://github.com/twitter-research/tgn/tree/d55bbe678acabb9fc3879c408fd1f2e15919667c) | a transductive test average precision of at least 0.980 for future edge prediction on JODIE Wikipedia (the source's own test_ap on the 0-1 fraction scale; published 0.9846) | band 0.98 to 1.0 |
21
+ | `patchtst` | time-series forecasting | [PatchTST @ 204c21e](https://github.com/yuqinie98/PatchTST/tree/204c21efe0b39603ad6e2ca640ef5896646ab1a9) | a test mean squared error of at most 0.380 in standardized units (published 0.367; 5-seed mean 0.3669 +/- 0.0006) | at most 0.38 |
22
+ | `tabr` | tabular learning | [TabR @ 17baa90](https://github.com/yandex-research/tabular-dl-tabr/tree/17baa9082506f8e7a0f8d11bb1e08212926a1507) | a test accuracy of at least 0.9745 on the Covertype test split of 116,203 rows (the source's own unnegated 0-1 accuracy; published 0.976, 15-seed committed mean 0.976145) | band 0.9745 to 1.0 |
teaser.png ADDED

Git LFS Details

  • SHA256: 879615acc43f9fd9fb1145ac6eeee7bd4df1ae10227d77f0e7e30331cacf043f
  • Pointer size: 131 Bytes
  • Size of remote file: 311 kB