프리즘을 통한 언어: 다중 규모 언어 표현을 위한 스펙트럴 접근법
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) 모델이 특정 규모에 대해 더 잘 학습하도록 훈련할 수 있습니다. 구체적으로, 우리는 입력에 걸친 뉴런의 활성화에 스펙트럼 필터를 적용하여 필터링된 임베딩을 생성합니다. 이 필터링된 임베딩은 품사 태깅 (단어 수준), 대화 발화 행위 분류 (문장 수준), 또는 주제 분류 (문서 수준) 과 같은 일부 작업에서는 우수한 성능을 보이지만, 다른 작업에서는 성능이 떨어집니다. 또한, 스펙트럼 필터를 사용하여 서로 다른 뉴런이 다른 규모에서 구조를 모델링하도록 제한하는 훈련을 위한 프림 (prism) 레이어를 제시합니다. 제안한 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.