通过类型级交换干预训练在基于子词的语言模型中诱导字符级结构
Inducing Character-level Structure in Subword-based Language Models with Type-level Interchange Intervention Training
AI总结:
针对子词语言模型字符级操作任务表现不佳的问题,提出基于因果干预的类型级交换干预训练方法,在融合形式、语义与上下文的复杂字符级任务上优于字符级模型,且提升了子词模型的鲁棒性与字符表示的可解释性。
摘要:
对于以子词为单位运行的模型而言,涉及字符级操作的语言任务(如拼写纠错、算术运算、文字游戏)颇具挑战性。为解决这一问题,我们构建了一个因果干预框架,用于在基于子词的语言模型内部学习鲁棒且可解释的字符表示。我们的方法将每个字符视为因果模型中的一个类型化变量,并通过调整Geiger等人(2021)提出的交换干预训练方法来学习此类因果结构。我们还引入了一套字符级任务,这些任务对语义和序列级上下文的依赖程度呈系统性变化。尽管字符级模型在字符串反转这类纯形式化任务上表现仍为最佳,但我们的方法在融合形式、语义与上下文的更复杂任务(如上下文中的拼写纠错和单词搜索游戏)上优于字符级模型。与标准的基于子词的模型相比,我们的方法还显著提升了在未见过的token序列上的鲁棒性,并能生成人类可解释的字符内部表示。
英文摘要:
Language tasks involving character-level manipulations (e.g., spelling corrections, arithmetic operations, word games) are challenging for models operating on subword units. To address this, we develop a causal intervention framework to learn robust and interpretable character representations inside subword-based language models. Our method treats each character as a typed variable in a causal model and learns such causal structures by adapting the interchange intervention training method of Geiger et al. (2021). We additionally introduce a suite of character-level tasks that systematically vary in their dependence on meaning and sequence-level context. While character-level models still perform best on purely form-based tasks like string reversal, our method outperforms character-level models on more complex tasks that blend form, meaning, and context, such as spelling correction in context and word search games. Compared with standard subword-based models, our approach also significantly improves robustness on unseen token sequences and leads to human-interpretable internal representations of characters.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。