더 깊은 사고, 더 긴 추론이 아닌: 구성 일반화를 위한 깊이 재귀 트랜스포머를 활용한 메모리 효율적 잠재 시나 사고
Thinking Deeper, Not Longer: Memory-Efficient Latent Chain-of-Thought with Depth-Recurrent Transformers for Compositional Generalization
Thinking Deeper, Not Longer: Memory-Efficient Latent Chain-of-Thought with Depth-Recurrent Transformers for Compositional Generalization
@misc{chen2026thinking,
title = {Thinking Deeper, Not Longer: Memory-Efficient Latent Chain-of-Thought with Depth-Recurrent Transformers for Compositional Generalization},
author = {Hung-Hsuan Chen},
year = {2026},
eprint = {2603.21676},
archivePrefix = {arXiv},
primaryClass = {cs.LG},
url = {https://arxiv.org/abs/2603.21676}
}
Chen, H.-H. (2026). Thinking Deeper, Not Longer: Memory-Efficient Latent Chain-of-Thought with Depth-Recurrent Transformers for Compositional Generalization [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2603.21676
CHEN HH. Thinking Deeper, Not Longer: Memory-Efficient Latent Chain-of-Thought with Depth-Recurrent Transformers for Compositional Generalization[EB/OL]. (2026-03-23)[2026-11-29]. https://arxiv.org/abs/2603.21676.
초록
표준 트랜스포머는 고정된 계산 깊이를 가지므로, 가변 깊이의 추론을 요구하는 작업에 대한 일반화 능력을 제한합니다. 일반적인 해결책인 사슬 사고 (Chain-of-Thought, CoT) 는 추론을 위해 토큰을 소모하여 키 - 값 캐시를 부풀리게 하므로, 대규모 쿼치 배치에서 추론이 제공될 때 메모리가 제한적인 비용이 됩니다. 우리는 공유 가중치 블록을 반복함으로써 계산 깊이를 매개변수 수와 분리하는 깊이 재귀 트랜스포머를 연구합니다. 이 방식은 추론 단계를 추가해도 피크 추론 메모리가 변하지 않고, 토큰 생성 없이 지연 시간이 선형적으로만 증가합니다. 20 개 이상의 추론 단계를 위한 재귀를 지원하는 세 가지 요소는: 최종 출력만 감독하는 침묵 추론 목표 (silent thinking objective), 레이어 스케일 초기화 (LayerScale initialization), 그리고 단계 간 경로를 열어주는 정체성 편향 게이트 (identity-biased gate) 입니다. 우리는 구조적 편향이 감소하는 세 가지 구성적 도메인에서 이를 평가했습니다: 그래프 도달성 (접근성 마스킹), lồng된 부울 논리 (상대 위치), 그리고 비구조적 관계적 텍스트 (구조적 위치 단서 없음). 우리는 계산적 전선 (computational frontier) 을 발견했습니다: 추론 단계 수가 작업의 복잡성과 일치할 때 정확도가 상승하며, 두 가지 구조적 작업에서는 거의 완벽한 성능을, 비구조적 텍스트에서는 낮은 평상선을 달성합니다. 상승 방식은 구조적 편향에 의존합니다: 그래프 작업에서는 우연에서 급격히, 나머지 두 작업에서는 점진적으로. 깊이 재귀는 학습 범위를 초과하여 외삽합니다: 고정 깊이의 모델이 거의 외삽하지 못하는 그래프 작업에서는 성공하며, 두 가지 시퀀스 작업에서는 4-6.4x 더 많은 매개변수를 사용하는 고정 깊이의 트랜스포머와 2 점 이내의 성능을 보입니다. 접근성 마스킹이 전파 깊이를 검증 가능하게 하는 그래프 작업에서, 중간 단계별 감독 (중간 단계별 감독) 은 표준적인 깊은 반복 모델의 조리법이지만, d >= 256 너비에서는 일관되게 해롭습니다. 우리는 재현성을 위해 코드를 공개합니다.
Standard Transformers have a fixed computational depth, limiting their ability to generalize to tasks that require variable-depth reasoning. The usual remedy, Chain-of-Thought (CoT), spends tokens to reason, inflating the key-value cache, so memory becomes the limiting cost when reasoning is served over large query batches. We study a depth-recurrent Transformer that decouples computational depth from parameter count by iterating a shared-weight block, so that adding reasoning steps leaves peak inference memory unchanged and grows latency only linearly, with no token generation. Three ingredients support the recurrence over 20+ thinking steps: a silent thinking objective that supervises only the final output, LayerScale initialization, and an identity-biased gate that opens a gradient highway across steps. We characterize it on three compositional domains with decreasing structural bias: graph reachability (adjacency masking), nested boolean logic (relative positioning), and unstructured relational text (no structural positional cue). We find a computational frontier: accuracy climbs once the thinking-step count meets the task's complexity, reaching near-perfect performance on the two structured tasks and a lower plateau on unstructured text. How it climbs depends on the structural bias-abruptly from chance on the graph task, gradually on the other two. Depth recurrence extrapolates beyond the training range: it succeeds on the graph task where fixed-depth models barely extrapolate, and on the two sequence tasks comes within two points of fixed-depth Transformers that use 4-6.4x more parameters. On the graph task, whose adjacency mask makes propagation depth verifiable, intermediate per-step supervision-a standard recipe for deep iterative models-consistently harms this extrapolation at widths d >= 256. We release the code for reproducibility.