← Latest papers
🤖 AI

Give it Space! Explicit Disentangling of Positional and Semantic Representations in Encoders

This paper proposes an encoder architecture that explicitly disentangles semantic, absolute, and relative positional information into separate streams, revealing that isolated positional subspaces naturally form low-dimensional manifolds capturing document structure and demonstrating that this approach significantly improves linguistic representation compared to standard entangled positional encodings.

Original authors: Pierre-Antoine Lequeu, Camille Barboule, Benjamin Piwowarski

Published 2026-05-29
📖 4 min read☕ Coffee break read

Original authors: Pierre-Antoine Lequeu, Camille Barboule, Benjamin Piwowarski

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

Imagine a Transformer (the brain behind modern AI text models) as a busy, high-speed train station. In this station, every word (token) on a train needs two things to do its job correctly:

  1. What it is: The meaning of the word (e.g., "dog," "run," "blue").
  2. Where it is: Its position in the sentence and the document (e.g., "first word," "middle of paragraph 2").

The Problem: The "Messy Backpack"

In most current AI models, these two pieces of information are stuffed into the same "backpack" (the same set of numbers) for every word. The paper argues that this is messy.

When the model tries to predict the next word (a task called "Masked Language Modeling"), it gets so focused on the meaning that it accidentally kicks the position information out of the backpack, especially in the final layers of the network. It's like a student trying to study for a history test while carrying a heavy backpack full of maps; eventually, they drop the maps to make room for the history notes.

Furthermore, newer models that try to calculate position only when looking at other words (Relative Positional Encoding) often forget the "big picture" structure of the document, like where paragraphs begin and end.

The Solution: "Give It Space!"

The authors built a new type of model called DSTG-NeoBERT. Instead of one messy backpack, they gave the model three separate streams of information:

  1. The Semantic Stream (Blue): Carries the meaning of the words.
  2. The Absolute Position Stream (Red): Carries the "where am I in the whole document" info.
  3. The Relative Position Stream (Green): Carries the "where am I relative to my neighbor" info.

Crucially, they told the model: "When you are trying to guess the next word (the test), only look at the Blue (meaning) stream. Leave the Red (position) stream alone." This prevents the model from accidentally deleting the position info to make room for the answer.

What They Discovered (The "Aha!" Moments)

1. The Position Map Collapses into a Simple Line
When they looked at the "Red" stream (Absolute Position), they expected it to be a complex, 48-dimensional mess. Instead, it spontaneously organized itself into a simple, 2-dimensional map.

  • Analogy: Imagine a chaotic crowd of people. Suddenly, they all line up in a perfect, low-frequency wave. The model realized it didn't need a complex 3D map to know where it is in a document; a simple, smooth wave was enough to capture the entire structure of the text.

2. The Train Station Staff Specialized
In the old models, every "attention head" (a worker in the station) tried to do everything. In the new model, the workers split into two distinct teams:

  • The Structure Team: These workers only look at the "Red" stream. They know where sentences and paragraphs start and end.
  • The Meaning Team: These workers only look at the "Blue" stream. They understand the words.
  • The Result: They stopped stepping on each other's toes. The "Relative Position" info (Green) became a helpful tool only for the Meaning Team, helping them focus on the right words nearby.

3. The "Big Picture" Was Saved
In standard models, the "big picture" structure (like knowing you are in the second paragraph of a long story) gets lost by the time the model reaches the final layer because the pressure to predict words overwrites it.

  • The Fix: Because the new model keeps the position info in a separate, protected stream that isn't used for guessing words, the "big picture" structure remains intact all the way to the end.

The Results

When they tested this new model against standard ones:

  • Standard Tests: It performed just as well as the best existing models on general language tasks (like answering questions or understanding sentences).
  • Deep Understanding: When they tested how well the model understood specific linguistic details (like grammar, logic, or discourse), the new model won in 49 out of 65 categories.
  • Why? Because the model didn't have to sacrifice its understanding of where it was in the text to understand what the text meant.

Summary

The paper shows that by giving "Position" and "Meaning" their own dedicated lanes on the highway, the AI doesn't crash. The position information organizes itself into a simple, efficient map, and the model becomes better at understanding the structure of long documents without losing its ability to understand the words.

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 →