Manuscript Offprint

arXiv:2610.16837

A Scaled-Up Empirical Study of Syntactic Language Models

Pengcheng Wang, Zhexuan Zhang, Chao Lou, Kewei Tu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Syntactic language models (SLMs) that generate sentences along with their syntactic tree structures have shown promise in both syntactic generalization and downstream tasks. Prior studies, however, have mostly evaluated smaller models trained on less pretraining data and tested on narrower task suites. In addition, the design space of tree linearization and attention masks remains underexplored. We conduct a large-scale empirical study of 12 controlled configurations—one terminal baseline and 11 SLM variants spanning different linearizations and masks—at scales up to 1B parameters and 100B training tokens, evaluated across 11 downstream tasks and two syntactic benchmarks. The experimental results show that SLMs with standard causal attention match or exceed structural-mask variants across downstream and syntactic benchmarks. They require no architectural modifications and remain compatible with FlashAttention. We also observe that when scaling up to the 1B-parameter scale, the top-performing SLM variant no longer shows a clear advantage over a compute-matched non-structural baseline, suggesting that SLMs may become less competitive with scale. Our code is available at https://github.com/qlwpc/TG-Interpolation.

1 Introduction

Standard causal language models process text as flat token sequences. Although they can learn distributional proxies for syntax (Hu et al., 2020), hierarchical constituency structures—phrases composing into sentences—are left implicit. Syntactic language models (SLMs) inject syntactic biases into Transformers (Vaswani et al., 2017). One approach jointly models surface sentences and linearized versions of their syntactic parse trees (Sartran et al., 2022; Zhao et al., 2024). These models typically employ structural attention masks that allow a non-terminal to compose its child tokens once they are generated by focusing its attention on them. Zhao et al. (2025) conduct a systematic empirical comparison of various design choices for SLMs, but they do not fully explore the complete design space of tree linearization and attention masks. Moreover, prior SLM studies have mostly evaluated models up to 300M parameters, trained on up to 9B tokens, and tested on only two or three tasks.

In this paper, we conduct a larger-scale empirical study of SLMs, evaluating selected models with up to 1B parameters and approximately 100B terminal training tokens on 11 downstream tasks and two syntactic benchmarks. We investigate a design space of 12 configurations: one terminal baseline and 11 SLM variants with different tree linearizations and attention masks. Our BBC experiments cover the full family at 100M and eight configurations at 500M on deduplicated data, with pause-token controls in both settings. We then study causal tree models and pause-token baselines at 1B on FineWeb-Edu.

Our findings are as follows: (i) Tree linearization with standard causal attention provides strong generation and syntactic performance. In both BBC settings, Tree and TGTree outperform structural-mask variants on XSum; TGTree also achieves the highest BLiMP score at 500M. Hybrid attention improves document perplexity, showing that the preferred attention mechanism depends on the objective. (ii) At 1B on FineWeb-Edu, TGTree and Pause-2 have similar average downstream accuracy, while tree models perform better on syntactic evaluation. Explicit structure thus remains useful, but its benefits must be assessed against the additional computation introduced by structural tokens.

Our contributions are:

• We scale SLM evaluation to 1B parameters and approximately 100B terminal training tokens, across 11 downstream tasks and two syntactic benchmarks.

∗^{*}Corresponding author.

• We systematically examine tree linearization and attention design on BBC News at 100M and deduplicated BBC News at 500M.

• We compare SLMs with pause-token baselines to assess the benefits of explicit structure alongside additional token positions.

References (36)

  • Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challenge
  • Association for Computational Linguistics
  • GLU Variants Improve Transformer
  • Qwen3 Technical Report
  • Table 7 lists the three scale configurations
  • 7 9 N ^ {- 0
  • This budget is distinct from the deduplicated BBC corpus size in Table 2
  • The historical 100M mixing-head measurement was 3,375 token/s (approximately $18\times$ slower than causal)
  • The tokenizer is based on the GPT-2 tokenizer (Radford et al., 2019) or the Qwen3 tokenizer (Yang et al., 2025)
  • We use the full XSum test set (11,333 examples) and BoolQ validation set (3,270 questions)
  • Pushdown uses right-binarized, unary-collapsed silver spans
  • For a tagged span $\mathbf{w} = \mathbf{x}_{s:e}$ and its left context $\mathbf{C} = \mathbf{x}_{<s}$, we define
  • For tree-linearization models other than Tree-Shuffle, we approximate prefix probabilities with DFS word-synchronous beam search (Stern et al., 2017)
  • Hypotheses synchronize after emitting the terminal, and the b highest-scoring hypotheses are retained
  • For tree-linearization models, we obtain 300 parse proposals ( $K = 300$) from the Benepar parser (Kitaev and Klein, 2018) and score each sentence by summing the joint probabilities of its candidate sequences
  • The base terminal array contains 3,073,713 positions; one BOS per document is context only
  • Histories reset at document boundaries, and padding positions are excluded from the retained cache
  • NoONT removes opening tokens, while Compress merges consecutive closing tokens and discards their number and labels
  • NoONT has repeated projected sequences in 117,847 sentences, leaving 34,053,187 distinct candidates; Compress has repeats in 57,733 sentences, leaving 37,177,859
  • TripleCNT is evaluated with its corresponding grammar
  • This formulation evaluates each answer string separately as a natural-language completion instead of predicting an answer label
  • For each parsed component x, we retain only its 1-best constituency parse $\hat{y}(x)$ as a silver tree
  • These demonstrations precede the target instance in every candidate prefix $p_j$
  • For each task, examples are resampled with replacement and the same sampled indices are used for every model
  • We compute two-sided bootstrap p-values from the paired difference distribution
  • The LIN $^{1}$ and LIN $^{2}$ budgets are approximately 24.71B and 32.03B input tokens
  • Per-task rows use paired resampling of evaluation examples
  • Positive values favor the model named first
  • The 0.801B reference additionally merges normalized and near-duplicate versions and is separately encoded; it does not equal the exact unique content of the historical array
  • We replace those perplexities with evaluation on reserved-clean-v1, retaining the original XSum, BoolQ, SG, and BLiMP mea- surements
  • The deduplicated 500M Tree reaches 83.43 SG and 13.864 PPL. Because training data, budgets, and optimization settings changed together, this comparison does not identify the cause of the difference
  • 5 on an eight-task suite (Validation-8; 17,691 examples): WinoGrande, HellaSwag, OpenBookQA, CommonsenseQA, SocialIQA, ARC-Easy, ARC-Challenge, and PIQA. Except for OpenBookQA validation, these are the same splits used in the main evaluation
  • For Tree, $7.46\%$ of predictions change from wrong to correct and $5.30\%$ change in the opposite direction
  • Eight tasks share 20,461 examples with the main evaluation (92.1% of this suite); OpenBookQA and MMLU use different splits
  • >Task</td><td colspan=
  • Macro averages are unweighted