We propose a novel way to handle out of vocabulary (OOV) words in downstream natural language processing (NLP) tasks. We implement a network that predicts useful embeddings for OOV words based on their morphology and on the context in which they appear. Our model also incorporates an attention mechanism indicating the focus allocated to the left context words, the right context words or the word's characters, hence making the prediction more interpretable. The model is a ``drop-in'' module that is jointly trained with the downstream task's neural network, thus producing embeddings specialized for the task at hand. When the task is mostly syntactical, we observe that our model aims most of its attention on surface form characters. On the other hand, for tasks more semantical, the network allocates more attention to the surrounding words. In all our tests, the module helps the network to achieve better performances in comparison to the use of simple random embeddings.
VocabTailor: Dynamic Vocabulary Selection for Downstream Tasks in Small Language Models
The Chinese University of Hong Kong(香港中文大学);Infinigence AI;Tsinghua University(清华大学);SLAI;Shanghai Jiao Tong University(上海交通大学);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室)
DV-Lens: Revealing the Functional Organization of Language Model Parameters
National University of Singapore(新加坡国立大学);Nanjing University of Science and Technology(南京理工大学);Beihang University(北京航空航天大学);University of Hong Kong(香港大学);University of Science and Technology of China(中国科学技术大学)
BPE Gets Picky: Efficient Vocabulary Refinement During Tokenizer Training
Center for Artificial Intelligence, Technical University of Applied Sciences Würzburg-Schweinfurt(维尔茨堡-施韦因富特应用技术大学人工智能中心);PleIAs;Institute of Computer Science, University of Tartu(塔尔图大学计算机科学研究所);University of California, San Diego(加利福尼亚大学圣迭戈分校)
Evaluating Biomedical BERT Models for Vocabulary Alignment at Scale in the UMLS Metathesaurus
The Ohio State University(俄亥俄州立大学);National Library of Medicine(美国国家医学图书馆);AI Institute, University of South Carolina(南卡罗来纳大学人工智能研究所);George Washington University(乔治华盛顿大学)
Improving Chinese Segmentation-free Word Embedding With Unsupervised Association Measure
University of Chinese Academy of Sciences(中国科学院大学);Chinese Academy of Sciences(中国科学院);Shanghai Advanced Research Institute(上海高等研究院);Shanghai Carbon Data Research Center(上海碳数据研究中心);Centre for Excellence in Brain Science and Intelligence Technology(脑科学与智能技术卓越创新中心)
MarkBERT: Marking Word Boundaries Improves Chinese BERT
Tencent AI Lab(腾讯人工智能实验室)
我们提出了一个中文的BERT模型称为马克BERT,在这项工作中使用的词信息。现有的基于词的BERT模型以词为基本单位,但由于BERT的词汇量限制,只能覆盖高频词,遇到词汇表外(out-of-vocabulary,OOV)词时又退回到字符级。与现有的作品不同,MarkBERT保持词汇是汉字,并在相邻的单词之间插入边界标记。这种设计使得模型能够以相同的方式处理任何单词,无论它们是否是OOV单词。此外,我们的模型还有两个额外的好处:第一,它可以方便地在标记上添加单词级学习目标,这是对传统字符和单词级预训练任务的补充;第二,它可以通过用特定于POS标签的标记替换通用标记来轻松地整合更丰富的语义,例如单词的POS标签。通过简单的标记插入,MarkBERT可以提高各种下游任务的性能,包括语言理解和序列标记。\footnote{All the codes and models will be made publicly available at \url{https://github.com/daiyongya/markbert}}
Interpreting and Exploiting Functional Specialization in Multi-Head Attention under Multi-task Learning
State Key Laboratory of Multimodal Artificial Intelligence Systems(多模态人工智能系统国家重点实验室);Institute of Automation, CAS(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院)