プリズムを介した言語:マルチスケール言語表現のためのスペクトルアプローチ
Language Through a Prism: A Spectral Approach for Multiscale Language Representations
Language Through a Prism: A Spectral Approach for Multiscale Language Representations
@misc{tamkin2020language,
title = {Language Through a Prism: A Spectral Approach for Multiscale Language Representations},
author = {Alex Tamkin and Dan Jurafsky and Noah Goodman},
year = {2020},
eprint = {2011.04823},
archivePrefix = {arXiv},
primaryClass = {cs.CL},
url = {https://arxiv.org/abs/2011.04823}
}
Tamkin, A., Jurafsky, D., & Goodman, N. (2020). Language Through a Prism: A Spectral Approach for Multiscale Language Representations [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2011.04823
TAMKIN A, JURAFSKY D, GOODMAN N. Language Through a Prism: A Spectral Approach for Multiscale Language Representations[EB/OL]. (2020-11-09)[2026-11-29]. https://arxiv.org/abs/2011.04823.
要旨
言語は、サブワードから単語、文、段落、そして文書に至るまで、異なるスケールで構造を示す。深層モデルがこれらのスケールにおける情報をどの程度捉えているか、またこの階層構造をより効果的に捉えるようモデルを強制できるかについて、本研究は個々のニューロンに焦点を当て、異なる時間スケールにおける活性化の振る舞いを分析することでアプローチする。我々は、信号処理が異なるスケール間の構造を分離する自然な枠組みを提供し、1) 既存の埋め込みにおけるスケール固有の情報を分離し、2) モデルを特定のスケールについてより深く学習させることを可能にする。具体的には、我々は入力に対してニューロンの活性化にスペクトルフィルタを適用し、部分語法タグ付け(単語レベル)、対話話術分類(文レベル)、またはトピック分類(文書レベル)において良好な性能を示すが、他のタスクでは性能が低下するフィルタリングされた埋め込みを生成する。また、異なるニューロンが異なるスケールで構造をモデル化するように制約するスペクトルフィルタを用いるトレーニング用のプリズムレイヤーを提案する。我々が提案した BERT + Prism モデルは、長距離文脈を用いてマスキートークンの予測をより良くし、文レベルおよび文書レベルのタスクにおいてより高い性能を示すマルチスケール表現を生成する。我々の手法は言語以外のドメイン、例えば画像、音声、および動画にも汎用的に適用可能である。
Language exhibits structure at different scales, ranging from subwords to words, sentences, paragraphs, and documents. To what extent do deep models capture information at these scales, and can we force them to better capture structure across this hierarchy? We approach this question by focusing on individual neurons, analyzing the behavior of their activations at different timescales. We show that signal processing provides a natural framework for separating structure across scales, enabling us to 1) disentangle scale-specific information in existing embeddings and 2) train models to learn more about particular scales. Concretely, we apply spectral filters to the activations of a neuron across an input, producing filtered embeddings that perform well on part of speech tagging (word-level), dialog speech acts classification (utterance-level), or topic classification (document-level), while performing poorly on the other tasks. We also present a prism layer for training models, which uses spectral filters to constrain different neurons to model structure at different scales. Our proposed BERT + Prism model can better predict masked tokens using long-range context and produces multiscale representations that perform better at utterance- and document-level tasks. Our methods are general and readily applicable to other domains besides language, such as images, audio, and video.