GiLT: Augmenting Transformer Language Models with Dependency Graphs

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Huang, Tianyu, Zhao, Yida, Zhou, Chuyan, Tu, Kewei
Format: Preprint
Publié: 2026
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866910223463088128
author Huang, Tianyu
Zhao, Yida
Zhou, Chuyan
Tu, Kewei
author_facet Huang, Tianyu
Zhao, Yida
Zhou, Chuyan
Tu, Kewei
contents 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. 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.
format Preprint
id arxiv_https___arxiv_org_abs_2605_15562
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle GiLT: Augmenting Transformer Language Models with Dependency Graphs
Huang, Tianyu
Zhao, Yida
Zhou, Chuyan
Tu, Kewei
Computation and Language
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. 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.
title GiLT: Augmenting Transformer Language Models with Dependency Graphs
topic Computation and Language
url https://arxiv.org/abs/2605.15562