arXiv reaDer
ピクセルによる言語モデリング
Language Modelling with Pixels
言語モデルは有限の入力セットに対して定義されるため、サポートされる言語の数を拡大しようとすると語彙のボトルネックが生じます。このボトルネックに取り組むと、埋め込み行列で表現できるものと出力層の計算上の問題との間でトレードオフが生じます。この論文では、これらの問題のいずれにも悩まされていない言語のピクセルベースのエンコーダである PIXEL を紹介します。 PIXEL は、テキストを画像としてレンダリングする事前トレーニング済みの言語モデルであり、正書法の類似性またはピクセルの共活性化に基づいて言語間で表現を転送することを可能にします。 PIXEL は、トークン全体の分布を予測する代わりに、マスクされたパッチのピクセルを再構築するようにトレーニングされています。 86M パラメーターの PIXEL モデルを BERT と同じ英語データで事前トレーニングし、さまざまな非ラテン文字を含む、類型的に多様な言語で構文上および意味上のタスクを評価します。 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.
updated: Wed Apr 26 2023 15:27:35 GMT+0000 (UTC)
published: Thu Jul 14 2022 15:20:36 GMT+0000 (UTC)
参考文献 (このサイトで利用可能なもの) / References (only if available on this site)
被参照文献 (このサイトで利用可能なものを新しい順に) / Citations (only if available on this site, in order of most recent)
Amazon.co.jpアソシエイト