Língua através de um Prisma: Uma Abordagem Espectral para Representações Linguísticas Multiescala
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.
Resumo
A linguagem exibe estrutura em diferentes escalas, variando de subpalavras a palavras, frases, parágrafos e documentos. Até que ponto os modelos profundos capturam informações nessas escalas, e podemos forçá-los a capturar melhor a estrutura ao longo dessa hierarquia? Abordamos essa questão focando em neurônios individuais, analisando o comportamento de suas ativações em diferentes escalas de tempo. Mostramos que o processamento de sinais fornece um quadro natural para separar a estrutura entre escalas, permitindo-nos 1) desentrelaçar informações específicas de escala em embeddings existentes e 2) treinar modelos para aprender mais sobre escalas particulares. Concretamente, aplicamos filtros espectrais às ativações de um neurônio ao longo de uma entrada, produzindo embeddings filtrados que performam bem em tarefas de etiquetagem de part of speech (nível de palavra), classificação de atos de fala em diálogo (nível de frase) ou classificação de tópicos (nível de documento), enquanto performam mal nas outras tarefas. Também apresentamos uma camada prismática para o treinamento de modelos, que utiliza filtros espectrais para restringir diferentes neurônios a modelarem estrutura em diferentes escalas. Nosso modelo proposto BERT + Prism pode prever tokens mascarados melhor usando contexto de longo alcance e produz representações multiescala que performam melhor em tarefas de nível de frase e de documento. Nossas metodologias são gerais e prontamente aplicáveis a outros domínios além da linguagem, como imagens, áudio e vídeo.
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.