arXiv:2611.04663v1 Announce Type: cross
Abstract: Looped Transformers extend inference-time computation through repeated latent-state updates, but final-depth training does not directly encourage useful intermediate alternatives. We introduce Best-of-Depth (BoD), which trains a recurrent trajectory as a candidate set by minimizing prediction loss across depths. Different valid targets can be matched at different depths without architectural changes or depth-specific labels. An exact-match analysis connects this objective to solution coverage. On N-Queens completion and graph coloring, BoD improves coverage over final-depth and intermediate-supervision objectives. N-Queens coverage reaches 91.03%, versus 45.75% for final-depth training. Further experiments show discovery beyond the training depth and recovery of solutions withheld from teacher pools on familiar inputs. Fine-tuning a pretrained looped language model with BoD yields higher pooled code-generation success than final-depth training when programs are generated separately at evaluated fixed depths. These results support training recurrent computation for solution discovery along its trajectory.
arxiv
BoD: Backpropagating Through Depth Improves Looped Language Model Code Generation
This paper introduces Backpropagation through Depth (BoD), a training method for looped language models that backpropagates through all intermediate depths rather than only the final depth. BoD improves code-generation success rates, reaching 91.03% coverage on N-Queens versus 45.75% for final-depth training, and also enhances generalization to deeper computations and withheld solutions. The method shows promise for training recurrent computation for solution discovery.
Provides a concrete, recent training technique with measurable improvements in code generation, valuable for researchers and practitioners working on recurrent and looped models.
Comments & Questions (0)
No comments yet
Be the first to comment!