A Systematic Study of Compositional Syntactic Transformer Language Models

Yida Zhao, Hao Xve, Xiang Hu, Kewei Tu
6/28/2025
cs.CLcs.AI

Official code: zhaoyd1/compositional_SLMs (2 stars, last commit 2025-09-16).

Abstract

Syntactic language models (SLMs) enhance Transformers by incorporating syntactic biases through the modeling of linearized syntactic parse trees alongside surface sentences. This paper focuses on compositional SLMs that are based on constituency parse trees and contain explicit bottom-up composition of constituent representations. We identify key aspects of design choices in existing compositional SLMs and propose a unified framework encompassing both existing models and novel variants. We conduct a comprehensive empirical evaluation of all the variants in our framework across language modeling, syntactic generalization, summarization, dialogue, and inference efficiency. Based on the experimental results, we make multiple recommendations on the design of compositional SLMs. Our code is released at https://github.com/zhaoyd1/compositional_SLMs.

View on arXivView PDF

Code Implementations(1)

20C++, CMakeMay 21, 20251 years ago

Similar Papers

Cite this paper

@article{zhao2025systematic,
  title  = {A Systematic Study of Compositional Syntactic Transformer Language Models},
  author = {Yida Zhao and Hao Xve and Xiang Hu and Kewei Tu},
  year   = {2025},
  eprint = {2506.22978},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.22978v1}
}

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/2506.22978.svg)](https://codeofpaper.com/paper/2506.22978)

Discussion