Tokenization is fundamental to pretrained language models (PLMs). Existing tokenization methods for Chinese PLMs typically treat each character as an indivisible token. However, they ignore the unique feature of the Chinese writing system where additional linguistic information exists below the character level, i.e., at the sub-character level. To utilize such information, we propose sub-character (SubChar for short) tokenization. Specifically, we first encode the input text by converting each Chinese character into a short sequence based on its glyph or pronunciation, and then construct the vocabulary based on the encoded text with sub-word segmentation. Experimental results show that SubChar tokenizers have two main advantages over existing tokenizers: 1) They can tokenize inputs into much shorter sequences, thus improving the computational efficiency. 2) Pronunciation-based SubChar tokenizers can encode Chinese homophones into the same transliteration sequences and produce the same tokenization output, hence being robust to homophone typos. At the same time, models trained with SubChar tokenizers perform competitively on downstream tasks. We release our code and models at https://github.com/thunlp/SubCharTokenization to facilitate future work.
Wine is Not v i n. -- On the Compatibility of Tokenizations Across Languages
LMU Munich(慕尼黑大学)
词汇表的大小是大型预训练语言模型的核心设计选择,考虑到性能和内存需求。通常,使用诸如字节对编码和WordPiece的子字标记化算法。在这项工作中,我们调查的多语言静态和上下文嵌入空间的标记化的兼容性,并提出了一个措施,反映了跨语言的标记化的兼容性。我们的目标是防止不兼容的标记,例如,英语中的“wine”(词级)与法语中的“v i n”(字符级),这使得很难学习良好的多语言语义表示。我们表明,我们的兼容性措施允许系统设计人员创建跨语言的词汇表是兼容的-一个迫切需要,到目前为止,一直被忽视的多语言模型。
MVP-BERT: Redesigning Vocabularies for Chinese BERT and Multi-Vocab Pretraining
East China Normal University(华东师范大学)
尽管预训练语言模型(PLM)的发展显著提高了各种中文自然语言处理(NLP)任务的性能,但这些中文PLM的词汇仍然是Google Chinese BERT \cite{devlin2018bert}提供的基于汉字的词汇。第二,掩蔽语言模型预训练基于单个词汇,这限制了其下游任务性能。在这项工作中,我们首先提出了一种新的方法,\emph{seg\_tok},形成汉语BERT的词汇,与中文分词(CWS)和子词标记的帮助。然后,我们提出了三个版本的多词汇预训练(MVP),以提高模型的表达能力。实验表明:(a)与基于字符的词汇表相比,\emph{seg\_tok}不仅提高了中文PLM在句子级任务上的性能,而且还提高了效率:(b)MVP提高了PLM的下游性能,特别是提高了\emph{seg\_tok}在序列标注任务上的性能。
MITRA: A Large-Scale Parallel Corpus and Multilingual Pretrained Language Model for Machine Translation and Semantic Retrieval for Pāli, Sanskrit, Buddhist Chinese, and Tibetan
Center for Integrated Japanese Studies, Tohoku University(东京东京大学综合日语研究机构);University of California, Berkeley(加州大学伯克利分校);Berkeley Artificial Intelligence Research (BAIR)(伯克利人工智能研究(BAIR))
uChecker: Masked Pretrained Language Models as Unsupervised Chinese Spelling Checkers
College of Computer Science and Technology(计算机科学与技术学院);Nanjing University of Aeronautics and Astronautics(南京航空航天大学);MIIT Key Laboratory of Pattern Analysis and Machine Intelligence(工业和信息化部模式分析与机器智能重点实验室)
Beyond Fertility: Analyzing STRR as a Metric for Multilingual Tokenization Evaluation
University of Alberta(阿尔伯塔大学);Princess Nourah Bint Abdulrahman University(努拉·阿卜杜勒拉赫曼王后大学);Dialpad Qatar Computing Research Institute(阿联酋迪拜计算研究所);Amazon AGI(亚马逊人工智能研究所)
Tokenization Tradeoffs in Structured EHR Foundation Models
Child Health Evaluative Sciences(儿童健康评估科学);The Hospital for Sick Children(圣迈克尔医院);University Health Network(大学健康网络);Department of Medicine(医学部);Division of Computational Medicine, Department of Medicine(计算医学科,医学部);Stanford University(斯坦福大学)
Character, Word, or Both? Revisiting the Segmentation Granularity for Chinese Pre-trained Language Models
State Key Lab of Software Development Environment, Beihang University(北京航空航天大学软件开发环境国家重点实验室);School of Computer Science and Engineering, Northeastern University(东北大学计算机科学与工程学院);Faculty of Computing, Harbin Institute of Technology(哈尔滨工业大学计算学部);Lark Platform Engineering-AI(飞书平台工程-人工智能)
SLING: Sino Linguistic Evaluation of Large Language Models
UMass Amherst(马萨诸塞大学阿默斯特分校)
为了了解预训练的汉语语言模型(LM)编码了哪些语言知识,我们引入了汉语语言学(SLING)基准,它由38 K最小句子对组成,分为9个高级语言现象。每一对都展示了特定句法或语义现象的可接受性对比(例如,关键字丢失vs.关键字丢失),LM应该为可接受的句子分配较低的困惑度。与CLiMP数据集(Xiang et al.,2021),其中也包含中文最小对,并通过翻译英语BLiMP数据集的词汇创建,SLING中的最小对主要是通过对中文树库9.0中自然发生的语言学家注释的句子应用句法和词汇转换来获得的,从而解决了CLiMP数据生成过程中的严重问题。我们测试了18个公开的预训练单语(例如,BERT-base-zh,CPM)和多语言(例如,mT5,XLM)SLING上的语言模型。我们的实验表明,LM的平均准确率远远低于人类的表现(69.7%对97.1%),而BERT-base-zh在所有测试的LM中达到了最高的准确率(84.8%),甚至更大。此外,我们发现,大多数LM有很强的性别和数量(单/复数)的偏见,他们表现得更好的地方比层次的现象。
RAIR: Retrieval-Augmented Iterative Refinement for Chinese Spelling Correction
Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);University of Chinese Academy of Sciences(中国科学院大学);Zhongke Fanyu Technology Co., Ltd(中科泛语科技有限公司)
School of Computer Science and Engineering, Nanjing University of Science and Technology(南京理工大学计算机科学与工程学院);School of Computer Science and Engineering, Central South University(中南大学计算机科学与工程学院);College of Information Science and Technology and Artificial Intelligence, Nanjing Forestry University(南京林业大学信息科学技术与人工智能学院)
KBioXLM: A Knowledge-anchored Biomedical Multilingual Pretrained Language Model
Institute of Artificial Intelligence, Soochow University(苏州大学人工智能研究院);Peking University(北京大学);The Hong Kong Polytechnic University(香港理工大学);Pharmcube(药智魔方);Changping Laboratory(昌平实验室)
Quantitative Measurement of Language Distance among Closely Related Indo-European Languages Using Pretrained Language Models: A Case Study on the North Germanic Branch
Beyond Atomic Tokens: Factorizing Syllables for Language Model Pretraining
University of Information Technology, Vietnam National University, Ho Chi Minh city(胡志明市越南国立大学信息技术大学);Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学)
What Changes Can Large-scale Language Models Bring? Intensive Study on HyperCLOVA: Billions-scale Korean Generative Pretrained Transformers
NAVER CLOVA;NAVER AI Lab;NAVER Search;Search Solutions Inc(Search Solutions公司)
GPT-3显示出在数千亿规模数据上训练的大规模语言模型(LM)的显着上下文学习能力。在这里,我们解决了GPT-3论文中较少报道的一些剩余问题,例如非英语LM,不同大小模型的性能,以及最近引入的即时优化对上下文学习的影响。为了实现这一目标,我们引入了HyperCLOVA,这是82 B GPT-3的韩国变体,在以韩国为中心的560 B令牌语料库上进行了训练。通过我们的韩语特定标记化增强,HyperCLOVA与我们的训练配置在韩语的各种下游任务上显示了最先进的上下文zero-shot和少样本学习性能。此外,我们展示了基于机器学习的性能优势,并演示了如何将其集成到提示工程管道中。然后,我们讨论了通过引入HyperCLOVA工作室(一个交互式提示工程界面)为ML的非专家提供AI原型设计功能来实现无代码AI范式的可能性。最后,我们展示了我们的方法与三个成功的内部应用程序的潜力。
OmniJARVIS: Unified Vision-Language-Action Tokenization Enables Open-World Instruction Following Agents
Institute for Artificial Intelligence, Peking University(北京大学人工智能研究院);Yuanpei College, Peking University(北京大学元培学院);Beijing Institute for General Artificial Intelligence (BIGAI)(北京通用人工智能研究院);University of California, Los Angeles(加利福尼亚大学洛杉矶分校)