本文揭示 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
To Each Language Its Tokenizer: Modular Tokenizers for Efficient Multilingual LLMs
Kyutai;Sorbonne Université(索邦大学);CNRS(法国国家科学研究中心);Institute of Intelligent Systems and Robotics(智能系统与机器人研究所);Univ. Grenoble Alpes(格勒诺布尔阿尔卑斯大学);Grenoble INP(格勒诺布尔国立理工学院);LIG(格勒诺布尔信息学实验室)
TREX: Tokenizer Regression for Optimal Data Mixture
KAIST CT(韩国科学技术院CT);Seoul National University of Science and Technology(首尔科学技术大学);Upstage AI;KAIST InnoCORE PRISM-AI Center(韩国科学技术院InnoCORE PRISM-AI中心)
Morphemes Without Borders: Evaluating Root-Pattern Morphology in Arabic Tokenizers and LLMs
Saudi Data & AI Authority (SDAIA)(沙特数据与人工智能局);Mohamed bin Zayed University of Artificial Intelligence (MBZUAI)(穆罕默德·本·扎耶德人工智能大学);Princess Nourah Bint Abdulrahman University (PNU)(普罗瑟·努拉·本·阿卜杜勒拉赫曼大学)
UniAudio-Token: Empowering Semantic Speech Tokenizers with General Audio Perception
State Key Laboratory of Multimedia Information Processing, School of Computer Science, Peking University(信息处理国家重点实验室,计算机学院,北京大学);Basic Model Technology Center, WeChat AI, Tencent Inc.(基础模型技术中心,微信AI,腾讯公司)
StableToken: A Noise-Robust Semantic Speech Tokenizer for Resilient SpeechLLMs
State Key Laboratory of Multimedia Information Processing, School of Computer Science, Peking University(多媒体信息处理国家重点实验室,计算机学院,北京大学);Basic Model Technology Center, WeChat AI, Tencent Inc.(微信AI基础模型技术中心,腾讯公司)
$μ^2$Tokenizer: Differentiable Multi-Scale Multi-Modal Tokenizer for Radiology Report Generation
School of Electronic Engineering and Computer Science(电子工程与计算机科学学院);Queen Mary University of London(伦敦女王学院);School of Engineering, College of Engineering and Physical Sciences(工程学院,工程与物理科学学院);University of Birmingham(伯明翰大学);Guangdong University of Technology(广东工业大学);Meta Inc. US(Meta美国公司);Nuffield Department of Clinical Neurosciences(临床神经科学系);University of Oxford(牛津大学);William Harvey Research Institute, NIHR Barts Biomedical Research Centre, Queen Mary University London(威廉·哈里弗研究所在NIHR巴茨生物医学研究中心,伦敦女王学院)
No Single Tokenizer Feature Reliably Predicts Downstream Language Model Performance
EleutherAI;University of Basel(巴塞尔大学);National Taiwan University of Science and Technology(台湾科技大学);Academia Sinica(中央研究院);University of Rochester(罗切斯特大学)