paper-with-me

Papers

Beyond Sequence Order: Syntax-Informed Positional Embeddings for Transformers

2026-08-06 · Haris Riaz, Hyungji Kim, Mihai Surdeanu arxiv

Positional embeddings (PE) in Transformers encode token distance and order but are largely agnostic to syntactic 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.

📄 PDF Abstract BibTeX arXiv:2608.06111

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Predicting Target Language CCG Supertags Improves Neural Machine Translation

2017-02-03 · WS 2017 9 · Maria Nadejde, Siva Reddy, Rico Sennrich, Tomasz Dwojak 외

Neural machine translation (NMT) models are able to partially learn syntactic information from sequential lexical information. Still, some complex syntactic phenomena such as prepositional phrase attachment are poorly mo…

DecoderMachine TranslationNMTPrepositional Phrase Attachment+1

Compositional Generalization Requires Compositional Parsers

2022-02-24 · Pia Weißenhorn, Yuekun Yao, Lucia Donatelli, Alexander Koller

A rapidly growing body of research on compositional generalization investigates the ability of a semantic parser to dynamically recombine linguistic elements seen in training into unseen sequences. We present a systemati…

First-Order Stable Model Semantics and First-Order Loop Formulas

2014-01-16 · Joohyung Lee, Yunsong Meng

Lin and Zhaos theorem on loop formulas states that in the propositional case the stable model semantics of a logic program can be completely characterized by propositional loop formulas, but this result does not fully ca…

Position-Aware Sequential Attention for Accurate Next Item Recommendations

2026-02-24 · Timur Nabiev, Evgeny Frolov arxiv

Sequential self-attention models usually rely on additive positional embeddings, which inject positional information into item representations at the input. In the absence of positional signals, the attention block is pe…

Semantic Similarity

Transformer with Tree-order Encoding for Neural Program Generation

2022-05-30 · Klaudia-Doris Thellmann, Bernhard Stadler, Ricardo Usbeck, Jens Lehmann

While a considerable amount of semantic parsing approaches have employed RNN architectures for code generation tasks, there have been only few attempts to investigate the applicability of Transformers for this task. Incl…

Code GenerationDecoderSemantic Parsing