# Best-of-Depth: Learning Exploratory Dynamics in Looped Transformers

Best-of-Depth: 루프형 트랜스포머에서 탐색적 동역학 학습

Shota Takashiro, Takeshi Kojima, Masanori Koyama, Kohei Hayashi, Yusuke Iwasawa · arXiv · 2026년 11월 3일

- **연구 문제** 루프 트랜스포머는 최종 깊이만 감독되어 중간 깊이의 다른 유효한 해 후보가 충분히 학습되지 않는 문제가 있습니다.
- **연구 방법** BoD는 깊이별 예측 손실의 최솟값으로 한 목표를 하나의 깊이에서 학습하여, 하나의 재귀 궤적이 서로 다른 유효한 해를 방문하도록 합니다.
- **주요 결과** N-Queens에서 BoD 커버리지는 91.03%로 최종 깊이 학습의 45.75%보다 높았고, graph coloring과 코드 생성에서도 같은 비교 조건에서 개선이 보고되었습니다.

## 최종 깊이 학습의 한계

루프 트랜스포머는 같은 변환을 잠재 상태에 반복 적용하여 추론 시 계산을 늘립니다. 그러나 기존 학습은 마지막 깊이의 예측만 감독하는 경우가 많아, 중간 깊이에서 얻는 다른 유효한 해 후보를 직접 보상하지 않습니다. 저자들은 이 문제를 하나의 재귀 궤적이 서로 다른 유용한 해 후보를 방문하도록 학습할 수 있는지로 설정합니다. 모든 깊이를 같은 정답에 맞추는 방식은 모든 읽기 지점이 같은 목표를 재현하도록 요구하므로 서로 다른 해를 찾는 데 맞지 않습니다.

## Best-of-Depth 목적 함수

Best-of-Depth(BoD)는 학습 깊이 집합 D 안에서 각 깊이의 손실 L\_d를 계산하고, 목표 하나에 대해 그중 최솟값 min\_d L\_d만 학습 신호로 사용합니다. 선택된 깊이 하나가 그 목표의 손실을 담당하므로, 서로 다른 유효한 목표는 서로 다른 깊이에서 맞춰질 수 있습니다. 구조 변경이나 깊이별 정답 라벨은 필요하지 않습니다. 정확 일치 손실에서 BoD는 목표가 어느 깊이에서든 도달되는지를 평가하며, 목표를 균등하게 샘플링할 때 그 위험은 Coverage@Depth와 1에서 뺀 값으로 연결됩니다.

![Figure 1: Learning alternative solutions along one recurrent trajectory. Top:One input admits multiple valid solutions.Middle:Schematic latent trajectories ill…](https://refivu.com/papers/f2101960-000a-477b-bca5-7d8cbe83a500/figures/figure-d6bf6dd7e639a4e924f761bca2307c38.png?thumb=512)

**Figure 1** :Learning alternative solutions along one recurrent trajectory. Top:One input admits multiple valid solutions.Middle:Schematic latent trajectories illustrate (a) repeated predictions under Last-Depth, (b) independent candidates from Best-of-N, and (c) distinct solutions along one BoD trajectory; shaded regions decode to A–C.Bottom:Both models reuseF θ across depths. Last- Depth trains onL D; BoD trains on the lowest loss across depths (highlightedL 2 for target A).

[원문](https://arxiv.org/abs/2611.04663v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Shota Takashiro, Takeshi Kojima, Masanori Koyama, Kohei Hayashi, Yusuke Iwasawa · Best-of-Depth: Learning Exploratory Dynamics in Looped Transformers · 원문 그림 인용 · 원본 PDF 2쪽에서 그림 영역을 추출했습니다.

## 제어 과제에서의 해 커버리지

N-Queens completion과 graph coloring은 유효한 해를 열거할 수 있어 커버리지를 직접 셀 수 있습니다. 두 과제 모두 학습 깊이 16, 평가 깊이 64에서 비교했습니다. N-Queens에서 BoD는 커버리지 91.03%와 성공률 99.03%를 기록했고, 최종 깊이 학습은 커버리지 45.75%였습니다. graph coloring에서 BoD의 깊이 64 커버리지는 72.16%이며, Soft-Depth는 성공률이 높았지만 커버리지는 44.39%에 그쳤습니다. 이 결과는 같은 조건의 제어 과제에서 얻은 값입니다.

![Figure 2: Depth-wise solution discovery.Coverage@Depth (top) and Success@Depth (bottom) for greedy trajectories trained at depth 16. Bands indicate±1SD](https://refivu.com/papers/f2101960-000a-477b-bca5-7d8cbe83a500/figures/figure-91ca8d872bdcf0a519df097ad891a5d3.png?thumb=512)

**Figure 2** :Depth-wise solution discovery.Coverage@Depth (top) and Success@Depth (bottom) for greedy trajectories trained at depth 16. Bands indicate±1SD.

[원문](https://arxiv.org/abs/2611.04663v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Shota Takashiro, Takeshi Kojima, Masanori Koyama, Kohei Hayashi, Yusuke Iwasawa · Best-of-Depth: Learning Exploratory Dynamics in Looped Transformers · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

![Table 7: Graph-coloring Coverage@Depth (%) on 512 test graphs. Models are trained atD train = 16](https://refivu.com/papers/f2101960-000a-477b-bca5-7d8cbe83a500/figures/figure-9bcbf87b6b9b8840a821fe5c86c0c7dd.png?thumb=512)

**Table 7** : Graph-coloring Coverage@Depth (%) on 512 test graphs. Models are trained atD train = 16.

[원문](https://arxiv.org/abs/2611.04663v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Shota Takashiro, Takeshi Kojima, Masanori Koyama, Kohei Hayashi, Yusuke Iwasawa · Best-of-Depth: Learning Exploratory Dynamics in Looped Transformers · 원문 그림 인용 · 원본 PDF 15쪽에서 그림 영역을 추출했습니다.

![Table 8: Graph-coloring Success@Depth (%) on 512 test graphs. Models are trained atDtrain = 16](https://refivu.com/papers/f2101960-000a-477b-bca5-7d8cbe83a500/figures/figure-dad2e80063a39334226612aeb5f9fa3c.png?thumb=512)

**Table 8** : Graph-coloring Success@Depth (%) on 512 test graphs. Models are trained atDtrain = 16.

[원문](https://arxiv.org/abs/2611.04663v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Shota Takashiro, Takeshi Kojima, Masanori Koyama, Kohei Hayashi, Yusuke Iwasawa · Best-of-Depth: Learning Exploratory Dynamics in Looped Transformers · 원문 그림 인용 · 원본 PDF 15쪽에서 그림 영역을 추출했습니다.

![Table 9: N-Queens Coverage@Depth (%) atN D= 64, pooling allNtrajectories through depthD](https://refivu.com/papers/f2101960-000a-477b-bca5-7d8cbe83a500/figures/figure-97651ab19e5b37ccadb5979bbb01760f.png?thumb=512)

**Table 9** : N-Queens Coverage@Depth (%) atN D= 64, pooling allNtrajectories through depthD.

[원문](https://arxiv.org/abs/2611.04663v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Shota Takashiro, Takeshi Kojima, Masanori Koyama, Kohei Hayashi, Yusuke Iwasawa · Best-of-Depth: Learning Exploratory Dynamics in Looped Transformers · 원문 그림 인용 · 원본 PDF 16쪽에서 그림 영역을 추출했습니다.

![Table 10: Graph-coloring Coverage@Depth (%) atN D= 64, pooling allNtrajectories through depthD](https://refivu.com/papers/f2101960-000a-477b-bca5-7d8cbe83a500/figures/figure-08e391bd063e901952b88aa0dfc774be.png?thumb=512)

**Table 10** : Graph-coloring Coverage@Depth (%) atN D= 64, pooling allNtrajectories through depthD.

[원문](https://arxiv.org/abs/2611.04663v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Shota Takashiro, Takeshi Kojima, Masanori Koyama, Kohei Hayashi, Yusuke Iwasawa · Best-of-Depth: Learning Exploratory Dynamics in Looped Transformers · 원문 그림 인용 · 원본 PDF 16쪽에서 그림 영역을 추출했습니다.

![Figure 6: Sensitivity to the Soft-Depth temperature on graph coloring.Test success and coverage use all greedy readouts through depth 64. The curve variesτ= 0.…](https://refivu.com/papers/f2101960-000a-477b-bca5-7d8cbe83a500/figures/figure-6931c8982c26ecb0ec6f4752ff9c4d67.png?thumb=512)

**Figure 6** :Sensitivity to the Soft-Depth temperature on graph coloring.Test success and coverage use all greedy readouts through depth 64. The curve variesτ= 0.1,0.2, . . . ,1.0; horizontal lines show BoD and Mean-Depth under the same configuration. Bands indicate±1SD.

[원문](https://arxiv.org/abs/2611.04663v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Shota Takashiro, Takeshi Kojima, Masanori Koyama, Kohei Hayashi, Yusuke Iwasawa · Best-of-Depth: Learning Exploratory Dynamics in Looped Transformers · 원문 그림 인용 · 원본 PDF 17쪽에서 그림 영역을 추출했습니다.

## 코드 생성에서의 깊이 풀링

코드 생성 실험에서는 사전 학습된 3B 파라미터 루프 언어 모델 Huginn을 CodeFeedback의 Python 예제 20,000개로 깊이 32에서 미세 조정했습니다. 각 모델은 깊이 4, 8, 12, 16, 24, 32에서 프로그램을 따로 greedy로 생성했고, Success@32는 이 여섯 후보를 합쳐 계산했습니다. HumanEval에서 BoD는 37.8%, Last-Depth는 34.8%였고, MBPP에서는 BoD 44.2%, Last-Depth 39.2%였습니다. 다만 얕은 깊이에서는 Mean-Depth, Random-Depth, Soft-Depth가 더 높은 값을 보였으므로 BoD의 이점은 깊이 32 단독 정확도보다 풀링한 성공률에서 나타납니다.

![Table 1: Code-generation results (%). Base is pretrained; other rows denote fine-tuning objectives. Depth columns show accuracy for one greedy program per prob…](https://refivu.com/papers/f2101960-000a-477b-bca5-7d8cbe83a500/figures/figure-e70b91bceb14cc6e2d4b681bc2f5aadf.png?thumb=512)

**Table 1** : Code-generation results (%). Base is pretrained; other rows denote fine-tuning objectives. Depth columns show accuracy for one greedy program per problem. Success@32 pools the six evaluated depths{4,8,12,16,24,32}. Bold marks each column’s best result.

[원문](https://arxiv.org/abs/2611.04663v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Shota Takashiro, Takeshi Kojima, Masanori Koyama, Kohei Hayashi, Yusuke Iwasawa · Best-of-Depth: Learning Exploratory Dynamics in Looped Transformers · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

![Table 4: Shared fine-tuning settings for the five code-generation objectives](https://refivu.com/papers/f2101960-000a-477b-bca5-7d8cbe83a500/figures/figure-faaada86a7a1128be96d154b42bc1aaf.png?thumb=512)

**Table 4** : Shared fine-tuning settings for the five code-generation objectives.

[원문](https://arxiv.org/abs/2611.04663v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Shota Takashiro, Takeshi Kojima, Masanori Koyama, Kohei Hayashi, Yusuke Iwasawa · Best-of-Depth: Learning Exploratory Dynamics in Looped Transformers · 원문 그림 인용 · 원본 PDF 14쪽에서 그림 영역을 추출했습니다.

## 적용 범위와 한계

저자들은 증거가 소규모 조합 과제와 하나의 사전 학습된 언어 모델에 한정된다고 밝힙니다. 해 탐색은 깊이가 커질수록 포화되며, 더 큰 과제와 추가 모델에 대한 일반성은 아직 검증되지 않았습니다. 이 결과는 BoD가 모든 루프 모델이나 모든 코드 생성 설정에서 같은 효과를 낸다는 뜻이 아닙니다.

![Figure 3: Depth allocation and extrapolation.(a, b) Coverage pooling intermediate predictions from randomized trajectories underN D= 64. (c, d) BoD with unpert…](https://refivu.com/papers/f2101960-000a-477b-bca5-7d8cbe83a500/figures/figure-cc0a97027659ca5f042bda7d25750286.png?thumb=512)

**Figure 3** :Depth allocation and extrapolation.(a, b) Coverage pooling intermediate predictions from randomized trajectories underN D= 64. (c, d) BoD with unperturbed greedy readouts; open markers denote training depth. Bands indicate±1SD.

[원문](https://arxiv.org/abs/2611.04663v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Shota Takashiro, Takeshi Kojima, Masanori Koyama, Kohei Hayashi, Yusuke Iwasawa · Best-of-Depth: Learning Exploratory Dynamics in Looped Transformers · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

## 논문 정보

- **저자**: Shota Takashiro, Takeshi Kojima, Masanori Koyama, Kohei Hayashi, Yusuke Iwasawa
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2026년 11월 3일
- **등록일**: 2026년 11월 5일
- **수정일**: 2026년 11월 3일
- **버전**: v1
- **arXiv**: 2611.04663
- **분류**: cs.LG · cs.AI
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2611.04663v1) · [원문 PDF ↗](https://arxiv.org/pdf/2611.04663v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

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.

## 원문 인용

Shota Takashiro, Takeshi Kojima, Masanori Koyama, Kohei Hayashi, Yusuke Iwasawa (2026). Best-of-Depth: Learning Exploratory Dynamics in Looped Transformers. arXiv:2611.04663v1. https://arxiv.org/abs/2611.04663v1

**BibTeX**

```
@misc{takashiro2026best,
  title = {{Best-of-Depth: Learning Exploratory Dynamics in Looped Transformers}},
  author = {Shota Takashiro and Takeshi Kojima and Masanori Koyama and Kohei Hayashi and Yusuke Iwasawa},
  year = {2026},
  eprint = {2611.04663},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.04663v1}
}
```

## 이 논문의 용어

- [HumanEval](https://refivu.com/terms/3c3dbcadfdda-humaneval)
- [MBPP](https://refivu.com/terms/717e657dd0b2-mbpp)
- [best-of-N](https://refivu.com/terms/934cd41a02e1-best-of-n)

## 다른 논문 해설

- [Reciprocity Can Erase Direction:tructural Boundaries and Controlled Utility of Magnetic Graph Networks](https://refivu.com/papers/5a6aa17b-f752-4823-95cb-b854a50d3453-reciprocity-can-erase-direction-tructural-boundaries-and.md)
- [Length Is Cheap, Competition Is Not: Attention Predicts Context Rot in Retrieval](https://refivu.com/papers/ec71fd66-c7ba-4bf5-b0d5-423b35b3bf5c-length-is-cheap-competition-is-not-attention-predicts.md)
- [GraphNIAH: A Benchmark for Long-Context Reasoning over Real-World Graphs](https://refivu.com/papers/379f5ec1-86ec-443c-aa89-b520d89b337f-graphniah-a-benchmark-for-long-context-reasoning-over.md)
- [How to Loop Your Transformer: Loop Scaling, Specialization, and Parallel Inference](https://refivu.com/papers/f4d8128c-41be-476d-9c3e-5cf69d5638fa-how-to-loop-your-transformer-loop-scaling-specialization.md)
- [ParaTTT: Parallelizing Test-Time Training Layers with Deep Memories](https://refivu.com/papers/e3b906b8-d6bc-4a89-8a43-99761b36ba81-parattt-parallelizing-test-time-training-layers-with-deep.md)
- [A Witnessing Duality for ReLU Network Depth](https://refivu.com/papers/7729dc9a-da11-4e55-8892-0a1e37788e27-a-witnessing-duality-for-relu-network-depth.md)
- [CardioVascBench:Prioritized Diagnosis Generation from Real-World Chinese Cardiovascular Records](https://refivu.com/papers/b6653b39-c1ef-494d-a81d-9ad570e0cb50-cardiovascbench-prioritized-diagnosis-generation-from-real.md)
- [Evaluating LLMs as Judges of Counterspeech Quality Against Online Hate Speech](https://refivu.com/papers/d2d1f40b-1fe4-4cae-8794-5a84f3a546b6-evaluating-llms-as-judges-of-counterspeech-quality-against.md)
- [Conditional independence and graphical models for rankings](https://refivu.com/papers/842bbef6-aa6f-4aec-8323-2cc58295603b-conditional-independence-and-graphical-models-for-rankings.md)
- [Fast, Cheap, and Fair? Evaluating Decision Models](https://refivu.com/papers/e3a8a6a5-74f3-4300-a388-133053c45cda-fast-cheap-and-fair-evaluating-decision-models.md)
- [Understanding Backdoor Attacks in Scene Graph Generation via Global Context Pathway](https://refivu.com/papers/75476c23-f89e-4019-a785-25837dc91f24-understanding-backdoor-attacks-in-scene-graph-generation-via.md)
- [LCM-UNet: Scale-Selective Mamba with Reparameterizable Multi-Basis Local Modeling for Lightweight Skin Lesion Segmentation](https://refivu.com/papers/95c941c8-308c-4331-8f96-aa2bbd38e81a-lcm-unet-scale-selective-mamba-with-reparameterizable-multi.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/f2101960-000a-477b-bca5-7d8cbe83a500-best-of-depth-learning-exploratory-dynamics-in-looped)
