arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2411.17679cs.CL
收藏

通过 Token 内部结构学习增强 LLM 的字符级理解能力

Enhancing Character-Level Understanding in LLMs through Token Internal Structure Learning

School of Computer Science and Technology, Chongqing University of Posts and Telecommunications(重庆邮电大学计算机科学与技术学院);Baidu AI Platform & Ecosystem(百度AI平台与生态系统)

Zhu Xu, Zhiqiang Zhao, Zihan Zhang, Yuchi Liu, Quanwei Shen, Fei Liu, Yu Kuang, Jian He, Conglin Liu

AI总结:

本文提出 TIPA 方法,通过基于分词器词表的反向字符预测训练增强 LLM 对 token 内部字符位置的感知,实验证明其可提升位置预测及多类字符级下游任务性能。

摘要:

Byte-Pair Encoding(BPE)等分词方法提高了大型语言模型(LLM)的计算效率,但往往会掩盖 token 内部的字符结构。这一限制阻碍了 LLM 预测精确字符位置的能力,而该能力在中文拼写纠错(CSC)等任务中至关重要:识别错字位置可加快纠错过程。我们提出 Token Internal Position Awareness(TIPA),该方法利用分词器词表对模型进行反向字符预测任务训练,从而显著提升模型捕捉 token 内字符位置的能力。实验表明,TIPA 提高了 LLM 的位置预测准确率,使其能够更精确地识别原文中的目标字符。此外,当应用于不要求精确位置预测的下游任务时,TIPA 仍能提升需要字符级信息的任务性能,验证了其通用性和有效性。

英文摘要:

Tokenization methods like Byte-Pair Encoding (BPE) enhance computational efficiency in large language models (LLMs) but often obscure internal character structures within tokens. This limitation hinders LLMs' ability to predict precise character positions, which is crucial in tasks like Chinese Spelling Correction (CSC) where identifying the positions of misspelled characters accelerates correction processes. We propose Token Internal Position Awareness (TIPA), a method that significantly improves models' ability to capture character positions within tokens by training them on reverse character prediction tasks using the tokenizer's vocabulary. Experiments demonstrate that TIPA enhances position prediction accuracy in LLMs, enabling more precise identification of target characters in original text. Furthermore, when applied to downstream tasks that do not require exact position prediction, TIPA still boosts performance in tasks needing character-level information, validating its versatility and effectiveness.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑