Metraipolis › archive › dc_d6ac615a7c0f

Evaluating Tiny Recursive Models Across Training for Code Generation — arXiv:2608.29376

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.29376
License (as archived)
CC0-1.0
Archived
2026-10-17T07:44:18.878Z
SHA-256 of the archived text
9e677568e2da2dec948485e4f2d0395932e8347ff8aff7c2b79fdd9730dc7d12
Stable URL of this page
https://metraipolis.com/documento/dc_d6ac615a7c0f

How to cite

Evaluating Tiny Recursive Models Across Training for Code Generation — arXiv:2608.29376 — arXiv (en), https://arxiv.org/abs/2608.29376 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_d6ac615a7c0f (Metraipolis archive dc_d6ac615a7c0f, sha256 9e677568e2da2dec948485e4f2d0395932e8347ff8aff7c2b79fdd9730dc7d12)
BibTeX
@misc{dcd6ac615a7c0f,
  title = {Evaluating Tiny Recursive Models Across Training for Code Generation — arXiv:2608.29376},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.29376},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_d6ac615a7c0f; sha256 9e677568e2da2dec948485e4f2d0395932e8347ff8aff7c2b79fdd9730dc7d12},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.29376. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Code generation increasingly relies on large transformer models, whose capability advances with scale. Yet such a scale is costly, creating demand for small models, especially where data is limited. Recursive models address this by reusing a single block to add depth rather than stacking independent layers. Such models are typically evaluated by teacher-forced fit (next-token loss on ground-truth prefixes) or task accuracy, at a single checkpoint, whereas code is produced by free-running generation, where the model extends its own output. Whether a teacher-forced advantage survives free-running generation, and whether it holds across training, remains open. To study both, we compare a ~28M-parameter autoregressive Tiny Recursive Model (TRM-AR) on natural-language-to-Python code generation against parameter-matched and depth-matched controls, tracking fit and generation across 40 epochs and three seeds. The fit ranking between the recursive model and the depth-matched control reverses twice. Selecting each checkpoint by validation loss and examining the trajectory yields a consistent comparison. At equal parameters, TRM-AR fits, generates, and generalizes better than the parameter-matched control while recovering approximately 45% of the validation-loss gap and 57% of the generation-quality gap between the two controls, at roughly 175 times the per-step cost of the parameter-matched control. However, at equal effective depth, the larger transformer fits and generates better at its validation optimum, suggesting TRM-AR's advantage lies in resistance to overfitting, not greater capability. These findings suggest that recursive code generation models should be evaluated jointly on fit and generation across the training trajectory rather than at a single checkpoint.

Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-01 in cs.AI).
Categorie arXiv: Artificial Intelligence (cs.AI) ; Machine Learning (cs.LG); Software Engineering (cs.SE).
Pagina del lavoro: https://arxiv.org/abs/2608.29376 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-17T07:28:26.550Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-09-01?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).