Train Once, Rewire Later: Execution-graph Polymorphic Transformers

Yiming Gong, Kamal Chilukuri, Wooseong Yang, Yashwanth YsOpenReview 2027 · Submission to ICLR 2027 · Withdrawn

Its authors withdrew this paper, so there is no full text to read or summarize.

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.
BibTeX
@misc{gong2027train,
  author = {Yiming Gong and Kamal Chilukuri and Wooseong Yang and Yashwanth YS},
  title = {{Train Once, Rewire Later: Execution-graph Polymorphic Transformers}},
  year = {2027},
  url = {https://openreview.net/forum?id=WZQGIPb1g1},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2027},
}

Loading related content...

Figure