potentialpaper

T2J-BENCH: Benchmarking Coding Agents on Execution-Grounded PyTorch-to-JAX Repository Migration

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 20:08 UTC · a0ad42fd5167 ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "OBfAylixqT"
- }
- ],
- "title": "T2J-BENCH: Benchmarking Coding Agents on Execution-Grounded PyTorch-to-JAX Repository Migration",
- "authors": [],
- "abstract": "Migrating a machine-learning codebase across frameworks—for example from\nPyTorch to JAX—is a routine but costly engineering task that is fundamentally\ncross-paradigm: eager, stateful, object-oriented modules must be rewritten as pure,\njittable functions over an explicit parameter pytree. We ask whether coding agents\ncan perform such whole-repository migrations correctly, and argue that existing\ncode benchmarks, which grade unit-test pass rates or surface-level similarity to\na reference translation, cannot answer this: they neither require the migrated\nsystem to behave the same nor prevent a JAX reimplementation from faking\nequivalence by secretly importing PyTorch itself. We introduce T2J-BENCH,\na benchmark of 63 whole-repository PyTorch→JAX migration tasks spanning\n18 model families across both training and serving, where torch-free checkpoint\nconversion is itself part of the deliverable. T2J-BENCH grades execution-grounded\nfunctional equivalence: each candidate is run inside a separate, torch-free, offline\nverifier and scored against references frozen from the PyTorch original, under a\nhard independence gate and a continuous, threshold-free reward. Across twenty\noff-the-shelf agent–model configurations, the strongest recovers only 0.676 of the\nreward against a 0.980 oracle, with substantial numeric and behavioral divergence\ndespite high spec pass rates. Finally, we contribute TWINHARNESS, a reference-\ngrounded agent harness that turns the agent’s executable PyTorch source into\nlegitimate self-verification feedback; applied to an opus-5 agent it raises the\nreward from 0.649 to 0.723—the highest of any configuration—using only task-\nvisible resources. We will release the benchmark to support reproducible study of\ncross-paradigm ML migration.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "93a1b60e-9313-424e-af09-b7badf176840"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "T2J-BENCH: Benchmarking Coding Agents on Execution-Grounded PyTorch-to-JAX Repository Migration",
+ "authors": [],
+ "abstract": "Migrating a machine-learning codebase across frameworks—for example from\nPyTorch to JAX—is a routine but costly engineering task that is fundamentally\ncross-paradigm: eager, stateful, object-oriented modules must be rewritten as pure,\njittable functions over an explicit parameter pytree. We ask whether coding agents\ncan perform such whole-repository migrations correctly, and argue that existing\ncode benchmarks, which grade unit-test pass rates or surface-level similarity to\na reference translation, cannot answer this: they neither require the migrated\nsystem to behave the same nor prevent a JAX reimplementation from faking\nequivalence by secretly importing PyTorch itself. We introduce T2J-BENCH,\na benchmark of 63 whole-repository PyTorch→JAX migration tasks spanning\n18 model families across both training and serving, where torch-free checkpoint\nconversion is itself part of the deliverable. T2J-BENCH grades execution-grounded\nfunctional equivalence: each candidate is run inside a separate, torch-free, offline\nverifier and scored against references frozen from the PyTorch original, under a\nhard independence gate and a continuous, threshold-free reward. Across twenty\noff-the-shelf agent–model configurations, the strongest recovers only 0.676 of the\nreward against a 0.980 oracle, with substantial numeric and behavioral divergence\ndespite high spec pass rates. Finally, we contribute TWINHARNESS, a reference-\ngrounded agent harness that turns the agent’s executable PyTorch source into\nlegitimate self-verification feedback; applied to an opus-5 agent it raises the\nreward from 0.649 to 0.723—the highest of any configuration—using only task-\nvisible resources. We will release the benchmark to support reproducible study of\ncross-paradigm ML migration.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}