potentialpaper

Train Once, Rewire Later: Execution-graph Polymorphic Transformers

Name the authors, now that its review has ended

potentialpaper · 2026-11-24 18:34 UTC · 2361e7f2cb09 ·

paper.json modified

+++ b/paper.json
@@ -1,7 +1,12 @@
{
"title": "Train Once, Rewire Later: Execution-graph Polymorphic Transformers",
- "authors": [],
+ "authors": [
+ "Yiming Gong",
+ "Kamal Chilukuri",
+ "Wooseong Yang",
+ "Yashwanth YS"
+ ],
"abstract": "Transformer checkpoints are tied to the *execution graph* used during training. Compilers can optimize how a fixed graph is executed, but changing the graph itself typically requires training a new model. Even a minimal rewrite exposes this dependence: executing attention and the feed-forward layer in parallel raises the language-modeling loss of a 120M transformer from $1.137$ to $1.681$ bits per byte (BPB), despite preserving the same parameters and operators. We call this sensitivity to layerwise execution changes *execution-graph rigidity* and show that it is learned rather than architectural. We introduce *Execution-graph Polymorphic Transformers* (EPTs), which instead train a single set of shared weights across a reference execution graph and alternative layerwise programs, with a consistency objective that aligns their predictions across executions. For the controlled sequential-to-parallel rewrite, the all-parallel program costs at most $0.002$ BPB from 1B to 7B; after 10B training tokens, downstream accuracy differs by at most $0.54$ percentage points across four tasks. We then extend the same objective to six modes per layer: sequential, parallel, reverse, attention only, feed-forward network only, and skip. Measurement-guided search on one 1B checkpoint finds different programs for Blackwell, H100, and L40S, reaching $1.709\\times$, $1.568\\times$, and $1.697\\times$ prefill speedup. Programs selected under a $+0.05$ BPB search-window budget cost $0.050$--$0.052$ BPB on disjoint validation contexts. EPTs therefore turn the execution graph from a fixed training choice into a budgeted compiler decision, allowing one training run to support different hardware deployment strategies.",
"license": {
"metadata": "CC0-1.0",
"abstract": "CC0-1.0"