基于门控树交叉注意力的检查点兼容语法注入解码器-only LLMs
Gated Tree Cross-Attention for Checkpoint-Compatible Syntax Injection in Decoder-Only LLMs
AI总结:
本文提出一种检查点兼容的门控树交叉注意力机制,用于在解码器-only LLMs中注入语法结构,提升语法鲁棒性而不影响问答和常识推理性能。
摘要:
解码器-only大型语言模型在广泛任务上表现出色,但对细微语法扰动敏感,影响下游推理的可靠性。然而,直接向现有检查点注入显式语法结构会干扰其预训练能力。我们引入了一种检查点兼容的门控树交叉注意力(GTCA)分支,该分支在不改变主干架构的情况下读取预计算的短语结构记忆。我们的设计利用令牌更新掩码和分阶段训练来控制结构更新的范围和时间。在多个基准和Transformer主干上,GTCA在不损害多项选择问答性能或常识推理的情况下,增强了语法鲁棒性,提供了一种实用的检查点兼容方法,以实现更鲁棒的解码器-only LLMs。
英文摘要:
Decoder-only large language models achieve strong broad performance but are brittle to minor grammatical perturbations, undermining reliability for downstream reasoning. However, directly injecting explicit syntactic structure into an existing checkpoint can interfere with its pretrained competence. We introduce a checkpoint-compatible gated tree cross-attention (GTCA) branch that reads precomputed constituency chunk memory while leaving backbone architecture unchanged. Our design uses a token update mask and staged training to control the scope and timing of structural updates. Across benchmarks and Transformer backbones, GTCA strengthens syntactic robustness beyond continued-training baselines without compromising Multiple-Choice QA performance or commonsense reasoning, providing a practical checkpoint-compatible route to more syntax-robust decoder-only LLMs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。