English

On Eliciting Syntax from Language Models via Hashing

Computation and Language 2024-10-08 v1 Artificial Intelligence Machine Learning

Abstract

Unsupervised parsing, also known as grammar induction, aims to infer syntactic structure from raw text. Recently, binary representation has exhibited remarkable information-preserving capabilities at both lexicon and syntax levels. In this paper, we explore the possibility of leveraging this capability to deduce parsing trees from raw text, relying solely on the implicitly induced grammars within models. To achieve this, we upgrade the bit-level CKY from zero-order to first-order to encode the lexicon and syntax in a unified binary representation space, switch training from supervised to unsupervised under the contrastive hashing framework, and introduce a novel loss function to impose stronger yet balanced alignment signals. Our model shows competitive performance on various datasets, therefore, we claim that our method is effective and efficient enough to acquire high-quality parsing trees from pre-trained language models at a low cost.

Keywords

Cite

@article{arxiv.2410.04074,
  title  = {On Eliciting Syntax from Language Models via Hashing},
  author = {Yiran Wang and Masao Utiyama},
  journal= {arXiv preprint arXiv:2410.04074},
  year   = {2024}
}

Comments

EMNLP-2024

R2 v1 2026-06-28T19:09:37.642Z