arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.11214cs.CL
收藏

问题词元:大型语言模型中的分词器偏差

Problematic Tokens: Tokenizer Bias in Large Language Models

Syracuse University(雪城大学);Florida Atlantic University(佛罗里达大西洋大学);New York University(纽约大学)

Jin Yang, Zhiqiang Wang, Yanbin Lin, Zunduo Zhao

AI总结:

本文揭示 GPT-4o 等大型语言模型因分词器词表独立于训练数据构建,导致非英语语言表示不足并产生偏差与安全隐患,提出需重新思考分词框架以促进公平安全的 AI 技术。

摘要:

大型语言模型(LLMs)的最新进展,如 GPT-4 和 GPT-4o,展现出了卓越的性能,特别是在英语等资源丰富的语言中,这得益于确保稳健训练的庞大数据集。相反,这些模型在处理中文和韩文等资源匮乏的语言时表现出局限性,其中幻觉响应等问题仍然普遍存在。本文将这些差异的根源追溯到这些模型固有的分词过程。具体而言,它探讨了分词器的词表——通常用于加速分词过程和减少词元,但独立于实际模型训练数据构建——如何不充分地表示非英语语言。这种错误表示导致训练不足或未经训练的词元传播,这些词元延续了偏差,并引发了与数据安全和伦理标准相关的严重问题。我们旨在剖析 GPT-4o 的分词机制,说明其简化的词元处理方法如何放大这些风险,并提供战略解决方案以缓解相关的安全和伦理问题。通过本研究,我们强调重新思考分词框架以促进更公平、更安全的 AI 技术的迫切需求。代码和数据可在 https://github.com/yeyimilk/LLMGPT4o 获取。

英文摘要:

Recent advancements in large language models(LLMs), such as GPT-4 and GPT-4o, have shown exceptional performance, especially in languages with abundant resources like English, thanks to extensive datasets that ensure robust training. Conversely, these models exhibit limitations when processing under-resourced languages such as Chinese and Korean, where issues including hallucinatory responses remain prevalent. This paper traces the roots of these disparities to the tokenization process inherent to these models. Specifically, it explores how the tokenizers vocabulary, often used to speed up the tokenization process and reduce tokens but constructed independently of the actual model training data, inadequately represents non-English languages. This misrepresentation results in the propagation of under-trained or untrained tokens, which perpetuate biases and pose serious concerns related to data security and ethical standards. We aim to dissect the tokenization mechanics of GPT-4o, illustrating how its simplified token-handling methods amplify these risks and offer strategic solutions to mitigate associated security and ethical issues. Through this study, we emphasize the critical need to rethink tokenization frameworks to foster more equitable and secure AI technologies. The code and data are available at https://github.com/yeyimilk/LLMGPT4o

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

↑