Answers are grounded in this paper and cite their sources.
Empirical analysis reveals Transformers struggle with generalization in program trace generation, indicating room for model improvements.
We study Transformers on the task program trace generation (PTG), where models produce step-by-step execution traces for synthetic programs. Unlike existing algorithmic problems, PTG externalizes reasoning through long traces where each step is trivial. We train small Transformers with diverse modifications, including alternative position encodings, softmax replacements, hybrid model, and short convolutions. While these models achieve strong in-distribution accuracy, they exhibit systematic failures when generalizing to various factors (e.g., program length, trace steps), though some designs significantly improve generalization.
No takes yet. Share an insight, caveat, or question.
Simeng Sun (2025) studied this question.
Synapse has enriched 8 closely related papers on similar clinical questions. Consider them for comparative context: