Loopback Transformer: Towards a Unified View of Residual Looped Transformers

Xuan Ouyang, Zefan Cai, Chenlong Zhang, Cheng Luo, Ke Wan, Junjie Hu

arXiv:2611.07226 · 2026-11-16 공개 · arXiv · PDF

attention-mechanism downstream-tasks validation-loss parameter-sharing climb-mix transformer-parameters geometric-decay loopback-transformer

Abstract

Looped Transformers reduce parameter count by repeatedly applying shared blocks, but parameter sharing alone does not determine how the results of repeated computation are reused. We take the depth-memory view of residual connections and analyze which representation is stored after each block application and how later reads weight it. A full block output contains both its input and its new update, so weighting that output also reweights the history already carried by the input. Reading individual updates instead, with the shared stack's input kept on a separate path, gives separate controls over input strength, total update weight, and allocation across updates. The Loopback Transformer implements these controls: geometric decay sets the total update weight and supplies a recency prior, and attention learns how to allocate that weight. On ClimbMix, Loopback reaches lower validation loss than standard Transformer baselines with 40-75% of their Transformer parameters (excluding token embeddings and the output head) at reference scales from 191M to 3B, with training tokens and executed depth matched. It also has higher mean accuracy over thirteen downstream tasks at 1.4B and 3B. At 191M, 374M, and 778M, it has the lowest validation loss and the highest thirteen-task mean among the standard Transformer and seven looped residual designs.

한국어 요약

한 줄 요약

Loopback Transformer는 공유 블록의 반복 실행 시 업데이트 재사용을 제어하여 파라미터 효율성을 높인 신형 트랜스포머 구조이다.

핵심 기여도

핵심 아이디어

기존 루프 트랜스포머는 공유 블록을 반복 적용하여 파라미터 수를 줄이지만, 반복된 계산 결과의 재사용 방식은 명확하지 않았다. Loopback Transformer는 잔차 연결을 "깊이-메모리" 관점에서 분석하여, 각 블록 실행 후 저장되는 표현과 이후 읽기 시의 가중치를 분석한다. 일반적인 잔차 연결은 입력과 업데이트를 함께 출력하여, 입력에 내재된 히스토리도 함께 재가중치화하게 된다. Loopback은 개별 업데이트를 별도 저장하고, 입력 경로는 별도로 유지함으로써 입력 강도, 전체 업데이트 가중치, 업데이트 간 분배를 독립적으로 제어할 수 있도록 한다. 이는 기하 감소와 어텐션 메커니즘을 통해 구현된다.

기술적 접근법

주요 결과

의의 및 한계

Loopback Transformer는 파라미터 효율성을 높이면서도 높은 성능을 유지하는 새로운 잔차 설계를 제시한다. 기존 트랜스포머와 루프 잔차 설계를 아우르는 통일된 관점, 즉 "깊이-메모리" 관점을 제시함으로써, 트랜스포머의 반복 구조를 메모리 업데이트 시스템으로 해석할 수 있는 기초를 제공한다. 그러나 Loopback은 기존 트랜스포머의 잔차 구조와는 다른 방식으로 업데이트를 저장하고 읽기 때문에, 기존 모델과의 호환성이나 확장성에 대한 추가 연구가 필요할 수 있다.

실용적 활용

Loopback Transformer는 파라미터 수를 줄이면서도 성능을 유지해야 하는 대규모 언어 모델 개발, 특히 토큰 임베딩과 출력 헤드를 제외한 내부 파라미터 최적화가 필요한 상황에서 유용하게 활용될 수 있다. 또한, 반복 구조를 활용한 추론 시간 최적화나 메모리 효율성 향상에도 적용 가능하다.