arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2207.06991cs.CLcs.AIcs.CVcs.LG
收藏

基于像素的语言建模

Language Modelling with Pixels

University of Copenhagen(哥本哈根大学);ROCKWOOL Foundation Research Unit(洛克伍德基金会研究部);Johns Hopkins University(约翰斯·霍普金斯大学);KU Leuven(荷语鲁汶大学);Pioneer Centre for AI(先锋人工智能中心)

Phillip Rust, Jonas F. Lotz, Emanuele Bugliarello, Elizabeth Salesky, Miryam de Lhoneux, Desmond Elliott

AI总结:

针对语言模型词汇表瓶颈问题,提出基于像素的预训练语言模型PIXEL,将文本转图像以重构掩码像素为训练目标,在非拉丁文字任务上优于BERT且鲁棒性更强。

摘要:

语言模型定义在有限输入集合之上,当我们尝试扩展支持的语言数量时,会产生词汇表瓶颈问题。解决这一瓶颈需要在嵌入矩阵可表示的内容与输出层的计算问题之间进行权衡。本文提出PIXEL,即基于像素的语言编码器(Pixel-based Encoder of Language),该模型不存在上述两类问题。PIXEL是一种预训练语言模型,它将文本渲染为图像,从而能够基于字形相似性或像素的共同激活在不同语言间迁移表示。PIXEL的训练目标是重构被掩码块的像素,而非预测词元上的分布。我们在与BERT相同的英文数据上预训练了拥有86M参数的PIXEL模型,并在类型学多样的语言(包括多种非拉丁文字)的句法和语义任务上进行评估。我们发现,对于预训练数据中未出现的文字,PIXEL在句法和语义处理任务上的表现大幅优于BERT,但在处理拉丁文字时,PIXEL的表现略逊于BERT。此外,我们发现PIXEL对字形攻击和语言语码转换的鲁棒性优于BERT,进一步证实了用像素建模语言的优势。

英文摘要:

Language models are defined over a finite set of inputs, which creates a vocabulary bottleneck when we attempt to scale the number of supported languages. Tackling this bottleneck results in a trade-off between what can be represented in the embedding matrix and computational issues in the output layer. This paper introduces PIXEL, the Pixel-based Encoder of Language, which suffers from neither of these issues. PIXEL is a pretrained language model that renders text as images, making it possible to transfer representations across languages based on orthographic similarity or the co-activation of pixels. PIXEL is trained to reconstruct the pixels of masked patches instead of predicting a distribution over tokens. We pretrain the 86M parameter PIXEL model on the same English data as BERT and evaluate on syntactic and semantic tasks in typologically diverse languages, including various non-Latin scripts. We find that PIXEL substantially outperforms BERT on syntactic and semantic processing tasks on scripts that are not found in the pretraining data, but PIXEL is slightly weaker than BERT when working with Latin scripts. Furthermore, we find that PIXEL is more robust than BERT to orthographic attacks and linguistic code-switching, further confirming the benefits of modelling language with pixels.

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

↑