Lune

ACL2024Top-tier venue

Dependency Transformer Grammars: Integrating Dependency Structures into Transformer Language Models

Yida Zhao, Chao Lou, Kewei Tu

Abstract

Syntactic Transformer language models aim to 001 achieve better generalization through simulta-002 neously modeling syntax trees and sentences. 003 While prior work has been focusing on adding 004 constituency-based structures to Transformers, 005 we introduce Dependency Transformer Gram-006 mars (DTGs), a new class of Transformer lan-007 guage model with explicit dependency-based 008 inductive bias. DTGs simulate dependency 009 transition systems with constrained attention 010 patterns by modifying attention masks, incor-011 porate the stack information through relative 012 positional encoding, and augment dependency 013 arc representation with a combination of to-014 ken embeddings and operation embeddings. 015 When trained on a dataset of sentences anno-016 tated with dependency trees, DTGs achieve 017 better generalization while maintaining com-018 parable perplexity with Transformer language 019 model baselines. DTGs also outperform re-020 cent constituency-based models, showing that 021 dependency can better guide Transformer lan-022 guage models. Our code will be publicly avail-023 able upon acceptance. 024 1 Introduction 025 Transformer language models have shown strong 026 performance on language modeling tasks and a 027 broad spectrum of downstream tasks (Radford 028

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Unsupervised Dependency Graph Network cites StructFormer: Joint Unsupervised Induction of Dependency and Constituency Structure from Masked Language Modeling
  • A Systematic Study of Compositional Syntactic Transformer Language Models cites Unsupervised Dependency Graph Network
  • A Systematic Study of Compositional Syntactic Transformer Language Models cites FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
  • A Systematic Study of Compositional Syntactic Transformer Language Models cites StructFormer: Joint Unsupervised Induction of Dependency and Constituency Structure from Masked Language Modeling
  • A Systematic Study of Compositional Syntactic Transformer Language Models cites Learning Hierarchical Structures with Differentiable Nondeterministic Stacks
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. A Systematic Study of Compositional Syntactic Transformer Language ModelsYida Zhao, Hao Xve, Xiang Hu, Kewei TuACL 2025 · 1 citation
  2. Gated Tree Cross-Attention for Checkpoint-Compatible Syntax Injection in Decoder-Only LLMsXinyu Gao, Shaonan Wang, Nai DingACL 2026
  3. MirrorShield: Towards Dynamic Adaptive Defense Against Jailbreaks via Entropy-Guided Mirror CraftingRui Pu, Chaozhuo Li, Rui Ha, Litian Zhang et al.AAAI 2026

Builds on5

  1. FlashAttention: Fast and Memory-Efficient Exact Attention with IO-AwarenessTri Dao, Daniel Y. Fu, Stefano Ermon, Atri Rudra et al.NeurIPS 2022 · 5,493 citations
  2. Learning Hierarchical Structures with Differentiable Nondeterministic StacksBrian DuSell, David ChiangICLR 2022 · 19 citations
  3. Unsupervised Dependency Graph NetworkYikang Shen, Shawn Tan, Alessandro Sordoni, Peng Li et al.ACL 2022 · 8 citations
  4. StructFormer: Joint Unsupervised Induction of Dependency and Constituency Structure from Masked Language ModelingYikang Shen, Yi Tay, Che Zheng, Dara Bahri et al.ACL 2021
  5. AMR Parsing with Causal Hierarchical Attention and PointersChao Lou, Kewei TuEMNLP 2023

Related papers

  1. GiLT: Augmenting Transformer Language Models with Dependency GraphsTianyu Huang, Yida Zhao, Chuyan Zhou, Kewei TuACL 2026
  2. Dependency-based Mixture Language ModelsZhixian Yang, Xiaojun WanACL 2022 · 3 citations
  3. Leveraging Grammar Induction for Language Understanding and GenerationJushi Kai, Shengyuan Hou, Yusheng Huang, Zhouhan LinEMNLP Findings 2024 · 1 citation
  4. Syntax-guided Localized Self-attention by Constituency Syntactic DistanceShengyuan Hou, Jushi Kai, Haotian Xue, Bingyu Zhu et al.EMNLP Findings 2022 · 2 citations
  5. On the Ability and Limitations of Transformers to Recognize Formal LanguagesSatwik Bhattamishra, Kabir Ahuja, Navin GoyalEMNLP 2020 · 7 citations
Dusk over the sea between two cliffs drawn in fine vertical lines