Contrastive Learning on LLM Back Generation Treebank for Cross-domain Constituency Parsing
Peiming Guo, Meishan Zhang, Jianling Li, Min Zhang, Yue Zhang
TL;DR
This work tackles cross-domain constituency parsing under data scarcity by introducing LLM back generation, which directly produces labeled cross-domain parse trees from masked inputs guided by domain keywords. It pairs this with a novel span-level contrastive pre-training objective to learn robust span representations from the generated treebank, enabling a single parser to handle five target domains. Empirical results on MCTB show state-of-the-art average F1, outperforming natural-treebank baselines, previous cross-domain approaches, and LLM-only pipelines, with GPT-4 delivering the strongest LLM-based results among those tested. The approach reduces annotation costs and data requirements while achieving fast convergence, though it is currently evaluated only on English, suggesting future work on multilingual extension and alternative LLMs.
Abstract
Cross-domain constituency parsing is still an unsolved challenge in computational linguistics since the available multi-domain constituency treebank is limited. We investigate automatic treebank generation by large language models (LLMs) in this paper. The performance of LLMs on constituency parsing is poor, therefore we propose a novel treebank generation method, LLM back generation, which is similar to the reverse process of constituency parsing. LLM back generation takes the incomplete cross-domain constituency tree with only domain keyword leaf nodes as input and fills the missing words to generate the cross-domain constituency treebank. Besides, we also introduce a span-level contrastive learning pre-training strategy to make full use of the LLM back generation treebank for cross-domain constituency parsing. We verify the effectiveness of our LLM back generation treebank coupled with contrastive learning pre-training on five target domains of MCTB. Experimental results show that our approach achieves state-of-the-art performance on average results compared with various baselines.
