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

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

28 May 2026arXiv:2605.30022added by Syntology

Pierre-Antoine Lequeu, Camille Barboule, Benjamin Piwowarski

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Positional encoding (PE) underpins how permutation-invariant Transformers represent sequence order, yet how positional information is processed and stored remains poorly understood. Modern PE methods such as RoPE still struggle on tasks such as long-context understanding or retrieval \cite{chen-etal-2025-hope}. Hence, a better understanding of the internal positional mechanism could help design better PE. Building on evidence that positional and semantic signals occupy nearly orthogonal subspaces in trained Transformers, we modify an encoder Transformer to process three explicitly disentangled streams: semantic, absolute positional (AP) and relative positional (RP), and confine the masked-language-modeling (MLM) objective to the semantic stream. This decoupling enables a clean mechanistic study and yields three take-aways. (1) The isolated AP subspace spontaneously collapses into a low-frequency two-dimensional manifold that captures the structure of the document; (2) Attention heads specialize into structure and semantic-oriented groups, with RP exclusively supporting the latter; (3) Standard positional encodings do not robustly retain macroscopic structure: RoPE and RP only weakly encode it, and entangled AP loses it in the final layers under MLM pressure. The disentangled approach preserves positional encoding, which improves linguistic representation on 49 of the 65 linguistic phenomena of the Flash-Holmes probing benchmark.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2605.30022")

Code

Syntology Ran 10 of 12 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 10 ran with no contract checked.

By repository: found in paper text by Syntology: 12 samples from 1 repository, 10 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

LequeuISIR/DSTG-encoder found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 10 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

10ran
2unverified

Licence: 12 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from LequeuISIR/DSTG-encoder. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

acc_and_f1 LequeuISIR/DSTG-encoder/src/neobert/glue/evaluate_glue.py found in paper text by Syntology ran no licence file found · pointer only · 454817035cd7e70d · report
get_bsz LequeuISIR/DSTG-encoder/src/neobert/contrastive/datasets.py found in paper text by Syntology ran no licence file found · pointer only · f6ba7debbce0073b · report
get_collator LequeuISIR/DSTG-encoder/src/neobert/collator/collator.py found in paper text by Syntology ran no licence file found · pointer only · 4bce485cf1e603d9 · report
get_labels LequeuISIR/DSTG-encoder/src/neobert/glue/process.py found in paper text by Syntology ran no licence file found · pointer only · 76a154c3d4d59e0e · report
get_local_position_labels LequeuISIR/DSTG-encoder/probing/probing.py found in paper text by Syntology ran no licence file found · pointer only · c6077616720d107d · report
get_sentences LequeuISIR/DSTG-encoder/src/neobert/glue/process.py found in paper text by Syntology ran no licence file found · pointer only · 0c835bff99754e6f · report
pearson_and_spearman LequeuISIR/DSTG-encoder/src/neobert/glue/evaluate_glue.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · e3e13638a674e4b1 · report
posbert_scaled_dot_product_attention LequeuISIR/DSTG-encoder/src/neobert/model/model.py found in paper text by Syntology ran no licence file found · pointer only · 95259a91dbe487e9 · report
process_function LequeuISIR/DSTG-encoder/src/neobert/glue/process.py found in paper text by Syntology ran no licence file found · pointer only · 81fc35e91e68d156 · report
scaled_dot_product_attention LequeuISIR/DSTG-encoder/src/neobert/model/model.py found in paper text by Syntology ran no licence file found · pointer only · 13c8fb0873f97a00 · report
probe_positional_info LequeuISIR/DSTG-encoder/probing/probing.py found in paper text by Syntology unverified no licence file found · pointer only · 5c8d0f5c1843b776 · report
simple_accuracy LequeuISIR/DSTG-encoder/src/neobert/glue/evaluate_glue.py found in paper text by Syntology unverified no licence file found · pointer only · 83eba990d34db6a2 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2605.30022, was issued in May 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections