Beyond Sequence Order: Syntax-Informed Positional Embeddings for Transformers
Not on the map. Why?
Abstract (arXiv)
Positional embeddings (PE) in Transformers encode token distance and order but are largely agnostic to textitsyntactic structure. We introduce Syntax-informed Positional Embeddings (SiPE), which learns a lightweight syntactic prior from dependency parses during pretraining and injects it across all three dominant PE families (absolute, relative, rotary), for both encoders and decoders, leaving self-attention and the rest of the architecture untouched. We isolate where and how the prior should enter the model, and find it depends on the architecture: for autoregressive decoders that use relative PE, the prior is strongest when coupled multiplicatively with the relative-position term of the attention score, outperforming injection into the input embeddings, into self-attention, or into the positional and attention terms jointly---while for encoders it is best added directly to the input embeddings, composing with each encoder's native positional mechanism. We find that models pre-trained with SiPE improve on the SyntaxGym benchmark by up to 10.3% while simultaneously reducing perplexity by 9.0% over a base model with no syntactic supervision---a metric nearly every existing syntax-injection method instead degrades. Crucially, these gains extend beyond syntactic generalization: SiPE also improves real-world language understanding, raising scores on the GLUE benchmark by up to 8.2% over a model trained without it. Unlike existing syntactic language models that marginalize over many parses at inference or discard syntax at runtime, SiPE conditions on a single parse, establishing a new Pareto frontier between syntactic supervision and inference cost.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 23 of its 35 references that are in the map. First posted on arXiv 6 Aug 2026.
Builds on
23 of 35 references.
References · 23
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2021DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharingcited by 1,219
- 2018Self-Attention with Relative Position Representationscited by 1,112
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,046
- 2019BLiMP: The Benchmark of Linguistic Minimal Pairs for Englishcited by 553
11 more
- 2024Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inferencecited by 527
- 2020A Systematic Assessment of Syntactic Generalization in Neural Language Modelscited by 163
- 2018Linguistically-Informed Self-Attention for Semantic Role Labelingcited by 71
- 2022Transformer Grammars: Augmenting Transformer Language Models with Syntactic Inductive Biases at Scalecited by 40
- 2020Hierarchical Poset Decoding for Compositional Generalization in Languagecited by 26
- 2021Structural Guidance for Transformer Language Modelscited by 25
- 2023Pushdown Layers: Encoding Recursive Structure in Transformer Language Modelscited by 18
- 2024Dependency Transformer Grammars: Integrating Dependency Structures into Transformer Language Modelscited by 7
- 2024Tree-Planted Transformers: Unidirectional Transformer Language Models with Implicit Syntactic Supervisioncited by 4
- 2024Sneaking Syntax into Transformer Language Models with Tree Regularizationcited by 3
- 2022Composition, Attention, or Both?cited by 1
Built on by
Not cited yet.