Sequence Repetition Enhances Token Embeddings and Improves Sequence Labeling with Decoder-only Language Models
Not on the map. Why?
Abstract (arXiv)
Modern language models (LMs) are trained in an autoregressive manner, conditioned only on the prefix. In contrast, sequence labeling (SL) tasks assign labels to each individual input token, naturally benefiting from bidirectional context. This discrepancy has historically led SL to rely on inherently bidirectional encoder-only models. However, the rapid development of decoder-only models has raised the question of whether they can be adapted to SL. While causal mask removal has emerged as a viable technique for adapting decoder-only models to leverage the full context for SL, it requires considerable changes to the base model functionality. In this work, we explore sequence repetition (SR) as a less invasive alternative for enabling bidirectionality in decoder-only models. Through fine-tuning experiments, we show that SR inherently makes decoders bidirectional, improving the quality of token-level embeddings and surpassing encoders and unmasked decoders. Contrary to earlier claims, we find that increasing the number of repetitions does not degrade SL performance. Finally, we demonstrate that embeddings from intermediate layers are highly effective for SR, comparable to those from final layers, while being significantly more efficient to compute. Our findings underscore that SR alleviates the structural limitations of decoders, enabling more efficient and adaptable LMs and broadening their applicability to other token-level tasks.
Key facts. No citing papers in the map yet (data through 13 Oct 2026). Builds on 25 of its 42 references that are in the map. First posted on arXiv 24 Jan 2026.
Builds on
25 of 42 references.
References · 25
- 2017Attention Is All You Needcited by 60,106
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,304
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,322
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,628
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,213
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,388
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,968
- 2016Understanding intermediate layers using linear classifier probescited by 1,313
- 2017BranchyNet: Fast Inference via Early Exiting from Deep Neural Networkscited by 592
- 2024Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inferencecited by 544
- 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 529
- 2024NV-Embed: Improved Techniques for Training LLMs as Generalist Embedding Modelscited by 467
13 more
- 2024LLM2Vec: Large Language Models Are Secretly Powerful Text Encoderscited by 398
- 2020DeeBERT: Dynamic Early Exiting for Accelerating BERT Inferencecited by 326
- 2025Layer by Layer: Uncovering Hidden Representations in Language Modelscited by 298
- 2022SGPT: GPT Sentence Embeddings for Semantic Searchcited by 204
- 2020MAVEN: A Massive General Domain Event Detection Datasetcited by 103
- 2024Not All Layers of LLMs Are Necessary During Inferencecited by 96
- 2020Automated Concatenation of Embeddings for Structured Predictioncited by 86
- 2024Fast yet Safe: Early-Exiting with Risk Controlcited by 28
- 2024Looking Right is Sometimes Right: Investigating the Capabilities of Decoder-only LLMs for Sequence Labelingcited by 24
- 2024Repetition Neurons: How Do Language Models Produce Repetitions?cited by 23
- 2024Token Prepending: A Training-Free Approach for Eliciting Better Sentence Embeddings from LLMscited by 18
- 2025Repetitions are not all alike: distinct mechanisms sustain repetition in language modelscited by 10
- 2024Are ELECTRA's Sentence Embeddings Beyond Repair? The Case of Semantic Textual Similaritycited by 2
Built on by
Not cited yet.