← Latest papers
💬 NLP

Sequence Repetition Enhances Token Embeddings and Improves Sequence Labeling with Decoder-only Language Models

This paper demonstrates that sequence repetition, a less invasive alternative to causal mask removal, effectively enables decoder-only language models to leverage bidirectional context for sequence labeling tasks, yielding superior token embeddings and performance compared to both encoder-only models and unmasked decoders while remaining efficient through the use of intermediate layer representations.

Original authors: Matija Luka Kukić, Marko Čuljak, David Dukić, Martin Tutek, Jan Šnajder

Published 2026-01-27
📖 4 min read☕ Coffee break read

Original authors: Matija Luka Kukić, Marko Čuljak, David Dukić, Martin Tutek, Jan Šnajder

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Big Problem: The "One-Way Street" vs. The "Two-Way Street"

Imagine you are trying to understand a sentence.

  • Encoder-only models (like BERT) are like a person reading a book who can look both forward and backward. They can see the word before and the word after to understand the meaning of a specific word. This is great for tasks where you need to label every single word (like finding names of people or places).
  • Decoder-only models (like the ones powering chatbots) are like a person reading a book who is only allowed to look forward. They can only see what comes after the current word. They are built to predict the next word, not to analyze the whole sentence at once.

Because of this "one-way street" limitation, decoder-only models have historically been worse at labeling every word in a sentence compared to the "two-way street" models.

The Old Solution: Breaking the Rules

To fix this, researchers tried a "sledgehammer" approach: they physically removed the rule that stops the model from looking backward. They took the "one-way street" and turned it into a "two-way street" by changing the model's internal architecture.

  • The downside: This is like rebuilding the engine of a car just to make it drive in reverse. It's complicated, invasive, and requires a lot of re-engineering.

The New Solution: "Sequence Repetition" (The Echo Chamber)

The authors of this paper found a much simpler, "no-tools-required" trick. Instead of changing the model's engine, they just repeated the sentence before feeding it to the model.

The Analogy:
Imagine you are trying to understand the word "Bank" in the sentence: "I went to the river bank."

  • Normal Decoder: It sees "I went to the river..." and has to guess "bank" based only on what came before. It might think of a money bank.
  • Sequence Repetition: You feed the model this: "I went to the river bank. I went to the river bank. I went to the river bank."

When the model is processing the second or third copy of the sentence, it has already "seen" the word "river" in the previous copy. Even though the model is still technically only allowed to look "forward," the repetition tricks it into seeing the whole context. It's like having an echo that lets you hear the beginning of the sentence while you are reading the end.

What They Found

1. More Repetitions = Better Understanding
Previous studies suggested that repeating a sentence once was enough, and doing it more didn't help. The authors found the opposite for word-level tasks.

  • The Finding: Repeating the sentence 2, 4, or even 8 times actually made the model smarter at labeling words.
  • Why? Each repetition gives the model another "chance" to process the information. It's like reading a difficult paragraph three times; the third time, you understand the nuance much better.

2. It Beats the "Two-Way Street" Models
Surprisingly, using this repetition trick on decoder-only models made them perform better than the traditional "two-way street" models (encoders) and even better than the models where they manually removed the backward-looking rule.

  • The Result: The simple trick of repeating the text worked better than the complex architectural changes.

3. The "Early Exit" Trick (Saving Time and Money)
Repeating the text makes the input longer, which slows the computer down and costs more money to run.

  • The Fix: The authors discovered that the model doesn't need to finish reading the entire repeated text to get a good answer. They found that stopping the model halfway through its layers (an "early exit") still gave them high-quality results.
  • The Analogy: It's like reading a book to understand a plot point. You don't always need to read the last page; sometimes, reading up to the middle of the book is enough to get the gist, and it saves you time.
  • The Benefit: They could get the same high performance as the full model but compute it 1.4 times faster (or even 4 times faster in some cases) by stopping early.

Summary of the Takeaway

The paper proves that you don't need to rebuild a decoder-only language model to make it good at labeling words. You just need to repeat the input text.

  • Simple: No code changes to the model's brain.
  • Effective: It creates a "fake" two-way street that works better than the real thing.
  • Efficient: By stopping the model early, you can keep it fast and cheap.

The authors conclude that this simple method of "repetition" is a powerful, practical tool that makes modern AI models more versatile without needing complex engineering.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →