GiLT: Augmenting Transformer Language Models with Dependency Graphs

Tianyu Huang, Yida Zhao, Chuyan Zhou, Kewei Tu
5/15/2026
1 citation
cs.CL
transformer-attention

Official code: cookie-pie-oops/GiLT-LM (3 stars, Python, last commit 2026-05-28).

Abstract

Augmenting Transformers with linguistic structures effectively enhances the syntactic generalization performance of language models. Previous work in this direction focuses on syntactic tree structures of languages, in particular constituency tree structures.

Show full abstract

We propose Graph-Infused Layers Transformer Language Model (GiLT) which leverages dependency graphs for augmenting Transformer language models. Unlike most previous work, GiLT does not insert extra structural tokens in language modeling; instead, it injects structural information into language modeling by modulating attention weights in the Transformer with features extracted from the dependency graph that is incrementally constructed along with token prediction. In our experiments, GiLT with semantic dependency graphs achieves better syntactic generalization while maintaining competitive perplexity in comparison with Transformer language model baselines. In addition, GiLT can be finetuned from a pretrained language model to achieve improved downstream task performance. Our code is released at https://github.com/cookie-pie-oops/GiLT-LM.

View on arXivView PDF

Code Implementations(1)

30Python, ShellNov 27, 20246 months ago

Similar Papers

Cite this paper

@article{huang2026gilt,
  title  = {GiLT: Augmenting Transformer Language Models with Dependency Graphs},
  author = {Tianyu Huang and Yida Zhao and Chuyan Zhou and Kewei Tu},
  year   = {2026},
  eprint = {2605.15562},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.15562v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.15562.svg)](https://codeofpaper.com/paper/2605.15562)

Discussion