Back to search

University of Chicago

Analyzing and Improving Compositionality in Neural Language Models

Abstract

dc:description.abstract

Deep transformer models have pushed performance on NLP tasks to new limits, suggesting sophisticated treatment of complex linguistic inputs. However, we have limited understanding of how these models handle representation of input sequences, and whether this reflects sophisticated composition of meaning like that done by humans. In this dissertation, we take steps to analyze and improve compositionality in natural language models. We present systematic analysis of phrasal representations in state-of-the-art pre-trained transformers. We use tests leveraging human judgments of phrase similarity and meaning shift, and compare results before and after control of word overlap, to tease apart lexical effects versus composition effects. We find that phrase representation in these models relies heavily on word content, with little evidence of nuanced composition. We also identify variations in phrase representation quality across models, layers, and representation types, and make corresponding recommendations for usage of representations from these models. Motivated by the observations of pre-trained transformers, we explore directions of improving compositionality in neural language models. We first investigate the impact of fine-tuning on the capacity of contextualized embeddings to capture phrase meaning information beyond lexical content. Specifically, we fine-tune models on an adversarial paraphrase classification task with high lexical overlap, and on a sentiment classification task. After fine-tuning, we assess phrasal representations in controlled settings following prior work. We find that fine-tuning largely fails to benefit compositionality in these representations, though training on sentiment yields a small, localized benefit for certain models. In follow-up analyses, we identify confounding cues in the paraphrase dataset that may explain the lack of composition benefits from that task, and we discuss factors underlying the localized benefits from sentiment training. We then inspect a model with compositional architecture and show that the model shows weak compositionality despite incorporating explicit composition structure.

Degree

thesis:*
Grantor dc:publisher
University of Chicago
Year dc:date.issued
2021

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Yu, Lang
Advisor dc:contributor.supervisor
  • Ettinger, Allyson

Subjects

dc:subject × 8

Rights

dc:rights
Statement dc:rights
  • Creative Commons Attribution Non Commercial Share Alike 4.0 International
  • Distribution License
  • © 2021 Lang Yu
Language dc:language
eng

Identifiers

dc:identifier.*
Datacite Relatedidentifier Type
DOI
URL
Dc Identifier Other
oai:knowledge.uchicago.edu:kw1gc-gj110
oai:uchicago.tind.io:3009

Chain of custody

source
Harvested from
University of Chicago Theses
Base URL
knowledge.uchicago.edu/oai2d
Last updated
2026-11-30
Source record
OAI-PMH GetRecord
citation

Yu, Lang. Analyzing and Improving Compositionality in Neural Language Models. University of Chicago, 2021. https://doi.org/10.6082/uchicago.3009