Best-of-Depth: Learning Exploratory Dynamics in Looped Transformers
Shota Takashiro, Takeshi Kojima, Masanori Koyama, Kohei Hayashi, Yusuke Iwasawa
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.
Create a lesson
Metadata
- Categories
- cs.LG, cs.AI
Related papers
DuoMI: Dual Mutual Information Regularization for Expert Reuse in Looped Transformers
Shared title terminologycs.LGXinlai Kang, Zhenhe Wu, Haoyu Wang et al.
Loopback Transformer: Towards a Unified View of Residual Looped Transformers
Shared title terminologycs.LGXuan Ouyang, Zefan Cai, Chenlong Zhang et al.
LoopVQ: Sub 1-bit KV Cache Quantization for Looped Transformers
Shared title terminologycs.LGMinsoo Cheong, Sungjoo Yoo
LoopKV: Loop-Aware KV Cache Compression for Serving Looped Transformers
Shared title terminologycs.LGTianle Zhou, Yang Zhang, Tianyu Wu et al.
Scaling Looped MoE Language Models under Matched Budgets: Information Flow and Parameter Allocation
Shared title terminologycs.LGShipeng Bai, Jiayu Qin, Hong Liu et al.
Train-Only-Constrained LM for Synthetic Clinical Trajectories: Leak-Safe Calibration and Auditable Dynamics
Shared title terminologycs.LGYaser Kord, Moritz Hess