Decision Differences Between Encoders and Decoders in Looped Transformers

In looped transformers, encoders benefit more than decoders from Deep Read residuals, and relation ranking training is generally effective.
A new study proposes the Looped Attention Residuals model and compares bidirectional encoders with causal decoders in looped transformers. Eight variants are pretrained on the same 3B tokens, varying backbone, number of passes, and residual type. Key finding: replacing additive residuals with Deep Read improves encoder held-out accuracy by 10.23 percentage points but decoder accuracy by only 0.96, showing bidirectional encoders use cross-pass history more effectively. Relation ranking outperforms direct fine-tuning on all variants and baselines. The Looped Attention Residuals encoder reaches 50.36% accuracy after description modeling + ranking, and both looped decoders surpass GPT-Neo-125M, which had about 100x more pretraining token exposure.
Title
Decision Differences Between Encoders and Decoders in Looped Transformers
Meta Description
In looped transformers, encoders and decoders benefit significantly differently from deep residual reads: encoder accuracy improves by 10.23 percentage points, while decoder accuracy improves by only 0.96. The Looped Attention Residuals model surpasses GPT-Neo-125M on commonsense question answering.
Article Content
Looped transformers refine token representations by applying the same layer multiple times, but do encoders and decoders benefit equally from this? A new study proposes the Looped Attention Residuals model and systematically compares bidirectional encoders with causal decoders on commonsense question answering tasks.

The Residual Dilemma of Looped Transformers
Standard transformer residual connections accumulate the output of each sublayer into a single state, and subsequent layers can only see this aggregated result. In a looped structure, each pass reads this accumulated state but cannot distinguish the contributions of different sublayer updates. If the model could attend to all historical sublayer outputs, it could theoretically reweight each update more flexibly, at the cost of an ever-growing list to read each round.
The Looped Attention Residuals model proposed by the research team attempts to resolve this contradiction: each sublayer can individually weight earlier outputs within the current pass while reading a separate tokenwise sum from each completed pass. This preserves historical information while avoiding unbounded list growth.
Deep Read is a residual connection variant that does not simply accumulate sublayer outputs into a single state but instead retains a list of all sublayer outputs from each pass and allows subsequent sublayers to individually weight and read them via attention. Compared with standard additive residuals, Deep Read provides finer-grained information routing, but at the cost of a list that grows with depth each pass. In the looped structure, the model further compresses the output of each completed pass into an independent tokenwise sum, thereby preserving cross-pass history while avoiding unbounded list expansion. This design enables the model to distinguish the contributions of different sublayers and different passes, theoretically enhancing the flexibility of representation refinement.
Experimental Design: Eight Variants and a Unified Decision Rule
For a fair comparison, the authors pretrained eight variants on the same 3B FineWeb-Edu tokens, varying along the following dimensions: backbone (encoder/decoder), number of passes (1 or 4), and residual connection type (additive residual/Deep Read). All models used the same decision rule to score the five candidate answers in CommonsenseQA.
Before supervised fine-tuning, the study compared three learning paths: learning from concept descriptions, ranking candidate answers to relation questions, and applying both stages sequentially. This design allowed the authors to isolate the impact of different training strategies on final performance.
CommonsenseQA is a commonsense question answering dataset in which each question provides five candidate answers and the model must choose the correct option. In this paper, all models adopt a unified decision rule: score each of the five candidate answers and select the highest score. This setting turns question answering into a ranking task, making it easier to compare the performance of different architectures and training strategies. The challenge of CommonsenseQA lies in combining commonsense reasoning with language understanding, so it is often used to evaluate a model's knowledge integration ability.
Key Findings: Asymmetric Gains for Encoders and Decoders
The most striking result is that, under four passes and direct fine-tuning, replacing additive residuals with Deep Read improved encoder held-out accuracy by 10.23 percentage points, while the decoder improved by only 0.96 percentage points. This huge difference indicates that bidirectional encoders can utilize cross-pass historical information more effectively, whereas causal decoders, constrained by unidirectional attention, benefit only limitedly from Deep Read.
Another robust finding is that relation ranking alone outperformed direct fine-tuning across all eight variants and six published baselines. This shows that converting commonsense question answering into a candidate answer ranking task is more conducive to model learning than direct classification.
When descriptions were modeled first and then ranked, the Looped Attention Residuals encoder achieved 50.36% accuracy. Both looped decoders surpassed GPT-Neo-125M on all four training paths, while the latter's reported pretraining token exposure is roughly a hundred times greater.
Relation Ranking is a training strategy that transforms question answering into a ranking problem over candidate answers: the model receives a question and a set of candidate answers and learns to rank the correct answer above incorrect ones. Compared with direct fine-tuning (treating question answering as a classification task), relation ranking emphasizes relative comparisons among answers rather than absolute label prediction. This objective design encourages the model to learn finer-grained semantic discrimination, especially when candidate answers are similar. This paper finds that relation ranking outperforms direct fine-tuning on all eight variants and six baselines, indicating its generality.
Implications for Model Design
This study reveals that the design of residual connections in looped structures needs to vary by architecture. For encoders, allowing sublayers to individually attend to historical outputs yields significant gains; for decoders, causal masking limits the realization of such gains. Meanwhile, the choice of training strategy—especially relation ranking—provides more general improvements than architectural fine-tuning.
These findings provide empirical evidence for the future design of looped transformers: do not assume that encoders and decoders will benefit equally from the same residual scheme, and the design of training objectives is equally critical.
One-line Summary
In looped transformers, encoders benefit more than decoders from Deep Read residuals, and the relation ranking training strategy is generally effective.
Paragraph Summary
A new study proposes the Looped Attention Residuals model and systematically compares bidirectional encoders with causal decoders in looped transformers. Experiments pretrain eight variants on the same 3B tokens, varying the backbone, number of passes, and residual type. Key finding: after replacing additive residuals with Deep Read, encoder held-out accuracy improves by 10.23 percentage points, while the decoder improves by only 0.96 percentage points, indicating that bidirectional encoders can utilize cross-pass historical information more effectively. In addition, the relation ranking training strategy outperforms direct fine-tuning on all variants and baselines. The Looped Attention Residuals encoder reaches 50.36% accuracy after description modeling + ranking, and both looped decoders surpass GPT-Neo-125M, whose pretraining token exposure is about a hundred times greater.
Related articles

LLM Translation of Cognitive Models: A New Path for ACT-R and Soar Interoperability
A new study explores using LLMs to automate translation between the ACT-R and Soar cognitive architectures, identifying general translation patterns through prompt engineering and finding that LLMs perform well on syntactic scaffolding and partial semantic mapping, though human-in-the-loop intervention remains key to ensuring cognitive plausibility.

Small Models + RAG: Construction Site Translation Accuracy Beats Fine-Tuning
Language barriers on construction sites pose safety risks. A study proposes an sLLM+RAG real-time domain translation solution. On a 250-sentence test set, the RAG approach achieves a COMET semantic accuracy of 0.846, surpassing fine-tuned models, without parameter updates, offering an efficient and maintainable path for on-device safety-critical translation.

Neural Program Learning: Achieving Generalization and Reuse in Logical Reasoning
A new neural program learning method represents programs as computational node networks, learns executable logic from examples, and reuses knowledge through automatically defined functions. Experiments show it successfully acquires and composes programs in relational reasoning tasks across multiple tasks, and learned circuits can be verified for equivalence.