arXiv:2410.22660cs.CL2024-10被引 8

用语言学理论提升大模型生成自然混语文本的能力

Linguistics Theory Meets LLM: Code-Switched Text Generation via Equivalence Constrained Large Language Models

  • 结合等价约束理论与大模型,生成符合语言规律的混语
  • 在人类评估中显著优于基线模型,尤其在复杂例句上表现更好
  • 提供新数据集和评测方法,适合多语言研究者使用

混语现象指对话中交替使用两种或以上语言,对自然语言处理带来独特挑战。现有研究多聚焦句法约束或神经生成,极少将语言学理论与大语言模型结合以生成自然混语文本。本文提出EZSwitch框架,融合等价约束理论(ECT)与大模型,生成语言学上合理且流畅的混语句子。通过人工评价与自动指标评估,结果表明生成文本质量显著优于基线模型。为解决评估指标缺失问题,我们开展全面的自动指标相关性研究,发现现有指标常无法捕捉混语的细微流畅度。此外,我们构建了基于人工评分的CSPref偏好数据集,并分析模型在“难”与“易”样本上的表现。结果表明,引入语言学约束可使生成更鲁棒且贴近人类判断,为跨语言对的可扩展混语生成开辟新路径。

原文摘要 · Abstract (English)

Code-switching, the phenomenon of alternating between two or more languages in a single conversation, presents unique challenges for Natural Language Processing (NLP). Most existing research focuses on either syntactic constraints or neural generation, with few efforts to integrate linguistic theory with large language models (LLMs) for generating natural code-switched text. In this paper, we introduce EZSwitch, a novel framework that combines Equivalence Constraint Theory (ECT) with LLMs to produce linguistically valid and fluent code-switched text. We evaluate our method using both human judgments and automatic metrics, demonstrating a significant improvement in the quality of generated code-switching sentences compared to baseline LLMs. To address the lack of suitable evaluation metrics, we conduct a comprehensive correlation study of various automatic metrics against human scores, revealing that current metrics often fail to capture the nuanced fluency of code-switched text. Additionally, we create CSPref, a human preference dataset based on human ratings and analyze model performance across ``hard`` and ``easy`` examples. Our findings indicate that incorporating linguistic constraints into LLMs leads to more robust and human-aligned generation, paving the way for scalable code-switching text generation across diverse language pairs.

混语生成大模型语言学评估

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。