VLDB 2026 Research / reviewers in the wild / expert
Ryan Cotterell
dblp:146/4361
· DBLP profile ↗
181ranked-venue papers
14as first author
121since 2021 · last 2026
0000-0003-4080-1833ORCID · verified
Domains — the database's venue-derived domains; a paper can count in several
Artificial intelligence and machine learning · 180 · 14 first-author · 120 since 2021Graphics, computer vision, multimedia, augmented reality and games · 3 · 3 since 2021Systems, architecture and hardware · 1 · 1 since 2021Applied, interdisciplinary, general and emerging computing · 1 · 1 since 2021
| Year | Publication | Venue | Position |
|---|---|---|---|
| 2026 | On the Proper Treatment of Units in Surprisal TheoryabstractSurprisal theory links human processing effort to the predictability of an upcoming linguistic unit, but empirical work often leaves the notion of a unit underspecified.In practice, experimental stimuli are segmented into linguistically motivated units (e.g., words), while pretrained language models assign probability mass to a fixed token alphabet that typically does not align with those units.As a result, surprisal-based predictors depend implicitly on ad hoc procedures that conflate two distinct modeling choices: the definition of the unit of analysis and the choice of regions of interest over which predictions are evaluated.In this paper, we disentangle these choices and give a unified framework for reasoning about surprisal over arbitrary unit inventories.We argue that surprisal-based analyses should make these choices explicit and treat tokenization as an implementation detail rather than a scientific primitive.https://github.com/samuki/ units-surprisal Samuel Kiegeland, Vésteinn Snæbjarnarson, Tim Vieira, Ryan Cotterell |
ACL (1) | 4 |
| 2026 | Characterizing the Expressivity of Local Attention in TransformersabstractThe transformer is the most popular neural architecture for language modeling. The cornerstone of the transformer is its global attention mechanism, which lets the model aggregate information from all preceding tokens before generating the next token. One common variant of attention is called local attention, which restricts each token to aggregating information from a bounded window of predecessors, reducing the quadratic cost of global attention to linear. Although this restriction is usually motivated by efficiency, it has also been found to improve model quality, a phenomenon that has so far lacked a satisfactory explanation. We provide a formal account of this phenomenon in terms of recognizer expressivity. It has been shown that fixed-precision transformers with global attention correspond to a fragment of linear temporal logic containing a single past operator. We additionally prove that adding local attention introduces a second temporal operator, strictly enlarging the class of recognizable regular languages. Moreover, global and local attention are expressively complementary: neither subsumes the other, and combining them yields the richest fragment. Experiments on formal language recognition and natural language modeling corroborate the theory, showing that hybrid global–local transformers outperform their global-only counterparts. Jiaoda Li, Ryan Cotterell |
ACL (1) | 2 |
| 2026 | Probing for Reading TimesabstractEleftheria Tsipidi, Samuel Kiegeland, Francesco Ignazio Re, Tianyang Xu, Mario Giulianelli, Karolina Stanczak, Ryan Cotterell. Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 2026. Eleftheria Tsipidi, Samuel Kiegeland, Francesco Ignazio Re, Tianyang Xu 0002, Mario Giulianelli, Karolina Stanczak, Ryan Cotterell |
ACL (1) | 7 |
| 2026 | Can Language Models Learn Typologically Implausible Languages?abstractAbstract Grammatical features across human languages exhibit intriguing correlations, often attributed to learning biases in humans. Language models (LMs) provide a scalable and naturalistic framework for studying artificial language learning—one not available in human research. We investigate how learnability varies across typologically plausible and implausible languages that closely follow the word order universals identified by linguistic typologists. Our study trains LMs on highly naturalistic counterfactual versions of English (head-initial) and Japanese (head-final). Compared to prior work, our datasets more precisely target the boundary between typological plausibility and implausibility. Our experiments show that LMs learn subtly implausible languages more slowly, though they eventually reach similar performance on some metrics regardless of typological plausibility. These findings suggest that LMs exhibit typologically aligned learning preferences and that certain typological patterns may emerge from general learning biases. https://github.com/sally-xu-42/Typological_Universals. Tianyang Xu 0002, Tatsuki Kuribayashi, Yohei Oseki, Ryan Cotterell, Alex Warstadt |
Trans. Assoc. Comput. Linguistics | 4 |
| 2025 | A Spatio-Temporal Point Process for Fine-Grained Modeling of Reading BehaviorabstractFrancesco Ignazio Re, Andreas Opedal, Glib Manaiev, Mario Giulianelli, Ryan Cotterell. Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 2025. Francesco Ignazio Re, Andreas Opedal, Glib Manaiev, Mario Giulianelli, Ryan Cotterell |
ACL (1) | 5 |
| 2025 | Information Locality as an Inductive Bias for Neural Language ModelsabstractTaiga Someya, Anej Svete, Brian DuSell, Timothy J. O’Donnell, Mario Giulianelli, Ryan Cotterell. Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 2025. Taiga Someya, Anej Svete, Brian DuSell, Timothy J. O'Donnell, Mario Giulianelli, Ryan Cotterell |
ACL (1) | 6 |
| 2025 | The Harmonic Structure of Information ContoursabstractEleftheria Tsipidi, Samuel Kiegeland, Franz Nowak, Tianyang Xu, Ethan Wilcox, Alex Warstadt, Ryan Cotterell, Mario Giulianelli. Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 2025. Eleftheria Tsipidi, Samuel Kiegeland, Franz Nowak, Tianyang Xu 0002, Ethan Wilcox, Alex Warstadt, Ryan Cotterell, Mario Giulianelli |
ACL (1) | 7 |
| 2025 | Taxonomy-Aware Evaluation of Vision-Language ModelsabstractWhen a vision–language model (VLM) is prompted to identify an entity depicted in an image, it may answer "I see a conifer," rather than the specific label NORWAY SPRUCE. This raises two issues for evaluation: Firstly, the unconstrained generated text needs to be mapped to the evaluation label space (i.e., CONIFER). Secondly, a useful classification measure should give partial credit to lessspecific, but not incorrect, answers (NORWAY SPRUCE being a type of CONIFER). To meet these requirements, we propose a framework for evaluating unconstrained text predictions such as those generated from a vision–language model against a taxonomy. Specifically, we propose the use of hierarchical precision and recall measures to assess the level of correctness and specificity of predictions with regard to a taxonomy. Experimentally, we first show that existing text similarity measures do not capture taxonomic similarity well. We then develop and compare different methods to map textual VLM predictions onto a taxonomy. This allows us to compute hierarchical similarity measures between the generated text and the ground truth labels. Finally, we analyze modern VLMs on fine-grained visual classification tasks based on our proposed taxonomic evaluation scheme. Data and code are made available at https://github.com/vesteinn/vlm-eval. Vésteinn Snæbjarnarson, Kevin Du, Niklas Stoehr, Serge J. Belongie, Ryan Cotterell, Nico Lang, Stella Frank |
CVPR | 5 |
| 2025 | How Persuasive Is Your Context?abstractTwo central capabilities of language models (LMs) are: (i) drawing on prior knowledge about entities, which allows them to answer queries such as What's the official language of Austria?, and (ii) adapting to new information provided in context, e.g., Pretend the official language of Austria is Tagalog., that is pre-pended to the question.In this article, we introduce targeted persuasion score (TPS), designed to quantify how persuasive a given context is to an LM where persuasion is operationalized as the ability of the context to alter the LM's answer to the question.In contrast to evaluating persuasiveness only by inspecting the greedily decoded answer under the model, TPS provides a more fine-grained view of model behavior.Based on the Wasserstein distance, TPS measures how much a context shifts a model's original answer distribution toward a target distribution.Empirically, through a series of experiments, we show that TPS captures a more nuanced notion of persuasiveness than previously proposed metrics. Kevin Du, Alexander Miserlis Hoyle, Ryan Cotterell |
EMNLP | 4 |
| 2025 | Variational Best-of-N AlignmentabstractBest-of-N (BoN) is a popular and effective algorithm for aligning language models to human preferences. The algorithm works as follows: at inference time, N samples are drawn from the language model, and the sample with the highest reward, as judged by a reward model, is returned as the output. Despite its effectiveness, BoN is computationally expensive; it reduces sampling throughput by a factor of N.
To make BoN more efficient at inference time, one strategy is to fine-tune the language model to mimic what BoN does during inference.
To achieve this, we derive the distribution induced by the BoN algorithm. We then propose to fine-tune the language model to minimize backward KL divergence to the BoN distribution. Our approach is analogous to mean-field variational inference and, thus, we term it variational BoN (vBoN). To the extent this fine-tuning is successful and we end up with a good approximation, we have reduced the inference cost by a factor of N. Our experiments on controlled generation and summarization tasks show that BoN is the most effective alignment method, and our variational approximation to BoN achieves the closest performance to BoN and surpasses models fine-tuned using the standard KL-constrained RL objective. In the controlled generation task, vBoN appears more frequently on the Pareto frontier of reward and KL divergence compared to other alignment methods. In the summarization task, vBoN achieves high reward values across various sampling temperatures. Afra Amini, Tim Vieira, Elliott Ash, Ryan Cotterell |
ICLR | 4 |
| 2025 | Training Neural Networks as Recognizers of Formal LanguagesabstractCharacterizing the computational power of neural network architectures in terms of formal language theory remains a crucial line of research, as it describes lower and upper bounds on the reasoning capabilities of modern AI. However, when empirically testing these bounds, existing work often leaves a discrepancy between experiments and the formal claims they are meant to support. The problem is that formal language theory pertains specifically to recognizers: machines that receive a string as input and classify whether it belongs to a language. On the other hand, it is common instead to evaluate language models on proxy tasks, e.g., language modeling or sequence-to-sequence transduction, that are similar in only an informal sense to the underlying theory. We correct this mismatch by training and evaluating neural networks directly as binary classifiers of strings, using a general method that can be applied to a wide variety of languages. As part of this, we extend an algorithm recently proposed by Snæbjarnarson et al. (2025) for efficient length-controlled sampling of strings from regular languages. We provide results on a variety of languages across the Chomsky hierarchy for three neural architectures: a simple RNN, an LSTM, and a causally-masked transformer. We find that the RNN and LSTM often outperform the transformer, and that auxiliary training objectives such as language modeling can help, although no single objective uniformly improves performance across languages and architectures. Our contributions will facilitate theoretically sound empirical testing of language recognition claims in future work. We have released our datasets as a benchmark called FLaRe (Formal Language Recognition), along with our code. Alexandra Butoi, Ghazal Khalighinejad, Anej Svete, Josef Valvoda, Ryan Cotterell, Brian DuSell |
ICLR | 5 |
| 2025 | The Foundations of Tokenization: Statistical and Computational ConcernsabstractTokenization — the practice of converting strings of characters from an alphabet into sequences of tokens over a vocabulary — is a critical step in the NLP pipeline. The use of token representations is widely credited with increased model performance but is also the source of many undesirable behaviors, such as spurious ambiguity or inconsistency. Despite its recognized importance as a standard representation method in NLP, the theoretical underpinnings of tokenization are not yet fully understood. In particular, the impact of tokenization on language model estimation has been investigated primarily through empirical means. The present paper contributes to addressing this theoretical gap by proposing a unified formal framework for representing and analyzing tokenizer models. Based on the category of stochastic maps, this framework enables us to establish general conditions for a principled use of tokenizers and, most importantly, the necessary and sufficient conditions for a tokenizer model to preserve the consistency of statistical estimators. In addition, we discuss statistical and computational concerns crucial for designing and implementing tokenizer models, such as inconsistency, ambiguity, finiteness, and sequentiality. The framework and results advanced in this paper contribute to building robust theoretical foundations for representations in neural language modeling that can inform future theoretical and empirical research. Juan Luis Gastaldi, John Terilla, Luca Malagutti, Brian DuSell, Tim Vieira, Ryan Cotterell |
ICLR | 6 |
| 2025 | Syntactic and Semantic Control of Large Language Models via Sequential Monte CarloabstractA wide range of LM applications require generating text that conforms to syntactic or semantic constraints. Imposing such constraints can be naturally framed as _probabilistic conditioning_, but exact generation from the resulting distribution—which can differ substantially from the LM’s base distribution—is generally intractable. In this work,
we develop an architecture for controlled LM generation based on sequential Monte Carlo (SMC). Our SMC framework allows us to flexibly incorporate domain- and problem-specific constraints at inference time, and efficiently reallocate computational resources in light of new information during the course of generation. By comparing to a number of alternatives and ablations on four challenging domains---Python code generation for data science, text-to-SQL, goal inference, and molecule synthesis—we demonstrate that, with little overhead, our approach allows small open-source language models to outperform models over 8$\times$ larger, as well as closed-source, fine-tuned ones.
In support of the probabilistic perspective, we show that these performance improvements are driven by better approximation to the posterior distribution.
[Our system](https://github.com/probcomp/genlm-control) builds on the framework of Lew et al. (2023) and integrates with its _language model probabilistic programming language_, giving users a simple, programmable way to apply SMC to a broad variety of controlled generation problems. João Loula, Benjamin LeBrun, Benjamin Lipkin, Clemente Pasti, Gabriel Grand, Tianyu Liu 0004, Yahya Emara, Marjorie Freedman, Jason Eisner, Ryan Cotterell, Vikash Mansinghka 0001, Alexander K. Lew, Tim Vieira, Timothy J. O'Donnell |
ICLR | 11 |
| 2025 | Controllable Context Sensitivity and the Knob Behind ItabstractWhen making predictions, a language model must trade off how much it relies on its context vs. its prior knowledge.
Choosing how sensitive the model is to its context is a fundamental functionality, as it enables the model to excel at tasks like retrieval-augmented generation and question-answering.
In this paper, we search for a knob which controls this sensitivity, determining whether language models answer from the context or their prior knowledge.
To guide this search, we design a task for controllable context sensitivity.
In this task, we first feed the model a context ("Paris is in England") and a question ("Where is Paris?"); we then instruct the model to either use its prior or contextual knowledge and evaluate whether it generates the correct answer for both intents (either "France" or "England").
When fine-tuned on this task, instruct versions of Llama-3.1, Mistral-v0.3, and Gemma-2 can solve it with high accuracy (85-95%).
Analyzing these high-performing models, we narrow down which layers may be important to context sensitivity using a novel linear time algorithm.
Then, in each model, we identify a 1-D subspace in a single layer that encodes whether the model follows context or prior knowledge.
Interestingly, while we identify this subspace in a fine-tuned model, we find that the exact same subspace serves as an effective knob in not only that model but also non-fine-tuned instruct and base models of that model family.
Finally, we show a strong correlation between a model's performance and how distinctly it separates context-agreeing from context-ignoring answers in this subspace.
These results suggest a single fundamental subspace facilitates how the model chooses between context and prior knowledge. Julian Minder, Kevin Du, Niklas Stoehr, Giovanni Monea, Chris Wendler, Robert West 0001, Ryan Cotterell |
ICLR | 7 |
| 2025 | Gumbel Counterfactual Generation From Language ModelsabstractUnderstanding and manipulating the causal generation mechanisms in language models is essential for controlling their behavior. Previous work has primarily relied on techniques such as representation surgery---e.g., model ablations or manipulation of linear subspaces tied to specific concepts---to intervene on these models. To understand the impact of interventions precisely, it is useful to examine counterfactuals---e.g., how a given sentence would have appeared had it been generated by the model following a specific intervention. We highlight that counterfactual reasoning is conceptually distinct from interventions, as articulated in Pearl's causal hierarchy. Based on this observation, we propose a framework for generating true string counterfactuals by reformulating language models as a structural equation model using the Gumbel-max trick, which we called Gumbel counterfactual generation.
This reformulation allows us to model the joint distribution over original strings and their counterfactuals resulting from the same instantiation of the sampling noise. We develop an algorithm based on hindsight Gumbel sampling that allows us to infer the latent noise variables and generate counterfactuals of observed strings. Our experiments demonstrate that the approach produces meaningful counterfactuals while at the same time showing that commonly used intervention techniques have considerable undesired side effects. Shauli Ravfogel, Anej Svete, Vésteinn Snæbjarnarson, Ryan Cotterell |
ICLR | 4 |
| 2025 | Language Models over Canonical Byte-Pair EncodingsabstractModern language models represent probability distributions over character strings as distributions over (shorter) token strings derived via a deterministic tokenizer, such as byte-pair encoding. While this approach is highly effective at scaling up language models to large corpora, its current incarnations have a concerning property: the model assigns nonzero probability mass to an exponential number of noncanonical token encodings of each character string—these are token strings that decode to valid character strings but are impossible under the deterministic tokenizer (i.e., they will never be seen in any training corpus, no matter how large). This misallocation is both erroneous, as noncanonical strings never appear in training data, and wasteful, diverting probability mass away from plausible outputs. These are avoidable mistakes! In this work, we propose methods to enforce canonicality in token-level language models, ensuring that only canonical token strings are assigned positive probability. We present two approaches: (1) canonicality by conditioning, leveraging test-time inference strategies without additional training, and (2) canonicality by construction, a model parameterization that guarantees canonical outputs but requires training. We demonstrate that fixing canonicality mistakes improves the likelihood of held-out data for several models and corpora. Tim Vieira, Tianyu Liu 0004, Clemente Pasti, Yahya Emara, Brian DuSell, Benjamin LeBrun, Mario Giulianelli, Juan Luis Gastaldi, Timothy J. O'Donnell, Ryan Cotterell |
ICML | 10 |
| 2025 | From Language Models over Tokens to Language Models over CharactersabstractModern language models are internally—and mathematically—distributions over token strings rather than character strings, posing numerous challenges for programmers building user applications on top of them. For example, if a prompt is specified as a character string, it must be tokenized before passing it to the token-level language model. Thus, the tokenizer and consequent processing are very sensitive to the specification of the prompt (e.g., whether the prompt ends with a space or not). This paper presents algorithms for converting token-level language models to character-level ones. We present both exact and approximate algorithms. In the empirical portion of the paper, we benchmark the practical runtime and approximation quality. Across four publicly available language models, we find that—even with a small computation budget—our method is able to accurately approximate the character-level distribution at reasonably fast speeds, and that a significant improvement in the language model’s compression rate (bits/byte) is achieved. Tim Vieira, Benjamin LeBrun, Mario Giulianelli, Juan Luis Gastaldi, Brian DuSell, John Terilla, Timothy J. O'Donnell, Ryan Cotterell |
ICML | 8 |
| 2025 | A Distributional Perspective on Word Learning in Neural Language ModelsabstractFilippo Ficarra, Ryan Cotterell, Alex Warstadt. Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers). 2025. Filippo Ficarra, Ryan Cotterell, Alex Warstadt |
NAACL (Long Papers) | 2 |
| 2025 | Pointwise Mutual Information as a Performance Gauge for Retrieval-Augmented GenerationabstractTianyu Liu, Jirui Qi, Paul He, Arianna Bisazza, Mrinmaya Sachan, Ryan Cotterell. Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers). 2025. Tianyu Liu 0004, Jirui Qi, Paul He 0001, Arianna Bisazza, Mrinmaya Sachan, Ryan Cotterell |
NAACL (Long Papers) | 6 |
| 2025 | Better Estimation of the Kullback-Leibler Divergence Between Language ModelsabstractEstimating the Kullback--Leibler (KL) divergence between language models has many applications, e.g., reinforcement learning from human feedback (RLHF), interpretability, and knowledge distillation. However, computing the exact KL divergence between two arbitrary language models is intractable. Thus, practitioners often resort to sampling-based estimators. While it is easy to fashion a simple Monte Carlo (MC) estimator that provides an unbiased estimate of the KL divergence between language models, this estimator notoriously suffers from high variance and can even result in a negative estimate of the KL divergence, a non-negative quantity. In this paper, we introduce a Rao--Blackwellized estimator that is unbiased and provably has variance less than or equal to that of the standard Monte Carlo estimator.
In an empirical study on sentiment-controlled fine-tuning, we show that our estimator provides more stable KL estimates and reduces variance substantially. Additionally, we derive an analogous Rao--Blackwellized estimator of the gradient of the KL divergence, which leads to more stable training and produces models that more frequently appear on the Pareto frontier of reward vs. KL compared to the ones trained with the MC estimator of the gradient. Afra Amini, Tim Vieira, Ryan Cotterell |
NeurIPS | 3 |
| 2025 | Characterizing the Expressivity of Fixed-Precision Transformer Language ModelsabstractTransformer-based language models (LMs) have achieved widespread empirical success, but their theoretical expressive power remains only partially understood. In this work, we analyze a restricted idealization of fixed-precision transformers with strict future masking, soft attention, and no positional encodings. We establish that this class of models is exactly as expressive as a specific fragment of linear temporal logic that contains only a single temporal operator: the $\texttt{past}$ operator. We further connect this fragment to established classes in formal language theory, automata theory, and algebra, yielding a unified framework for understanding transformer expressivity under this idealization. Finally, we present empirical results that align closely with our theory: transformers trained on languages within their characterized expressive capacity generalize reliably across sequence lengths, while they consistently fail to generalize on languages beyond it. Jiaoda Li, Ryan Cotterell |
NeurIPS | 2 |
| 2025 | Are Language Models Efficient Reasoners? A Perspective from Logic ProgrammingabstractModern language models (LMs) exhibit strong deductive reasoning capabilities, yet standard evaluations emphasize correctness while overlooking a key aspect of reasoning: *efficiency*. In real-world reasoning scenarios, much of the available information is irrelevant, and effective deductive inference requires identifying and ignoring such distractions. We propose a framework for assessing LM reasoning efficiency through the lens of logic programming, introducing a simple method to align proofs written in natural language---as generated by an LM---with shortest proofs found by executing the logic program. Efficiency is quantified by measuring how well a model avoids unnecessary inference. Empirically, we construct a dataset of math word problems injected with various number of irrelevant axioms that vary in semantic overlap with the goal theorem. We find that current LMs show marked accuracy declines under such conditions---even with minimal, domain-consistent distractions---and the proofs they generate frequently exhibit detours through irrelevant inferences. Andreas Opedal, Yanick Zengaffinen, Haruki Shirakami, Clemente Pasti, Mrinmaya Sachan, Abulhair Saparov, Ryan Cotterell, Bernhard Schölkopf |
NeurIPS | 7 |
| 2025 | Investigating Critical Period Effects in Language Acquisition through Neural Language ModelsabstractAbstract Humans appear to have a critical period (CP) for language acquisition: Second language (L2) acquisition becomes harder after early childhood, and ceasing exposure to a first language (L1) after this period (but not before) typically does not lead to substantial loss of L1 proficiency. It is unknown whether these CP effects result from innately determined brain maturation or as a stabilization of neural connections naturally induced by experience. In this study, we use language models (LMs) to test the extent to which these phenomena are peculiar to humans, or shared by a broader class of language learners. We vary the age of exposure by training LMs on language pairs in various experimental conditions, and find that LMs, which lack any direct analog to innate maturational stages, do not show CP effects when the age of exposure of L2 is delayed. Our results contradict the claim that CP effects are an inevitable result of statistical learning, and they are consistent with an innate mechanism for CP effects. We show that we can reverse-engineer the CP by introducing a regularizer partway through training to simulate a maturational decrease in plasticity. All in all, our results suggest that L1 learning on its own may not be enough to induce a CP, and additional engineering is necessary to make language models more cognitively plausible. Ionut Constantinescu, Tiago Pimentel, Ryan Cotterell, Alex Warstadt |
Trans. Assoc. Comput. Linguistics | 3 |
| 2024 | What Languages are Easy to Language-Model? A Perspective from Learning Probabilistic Regular LanguagesabstractNadav Borenstein, Anej Svete, Robin Chan, Josef Valvoda, Franz Nowak, Isabelle Augenstein, Eleanor Chodroff, Ryan Cotterell. Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 2024. Nadav Borenstein, Anej Svete, Robin Shing Moon Chan, Josef Valvoda, Franz Nowak, Isabelle Augenstein, Eleanor Chodroff, Ryan Cotterell |
ACL (1) | 8 |
| 2024 | Context versus Prior Knowledge in Language ModelsabstractKevin Du, Vésteinn Snæbjarnarson, Niklas Stoehr, Jennifer White, Aaron Schein, Ryan Cotterell. Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 2024. Kevin Du, Vésteinn Snæbjarnarson, Niklas Stoehr, Jennifer C. White, Aaron Schein, Ryan Cotterell |
ACL (1) | 6 |
| 2024 | What Do Language Models Learn in Context? The Structured Task HypothesisabstractLarge language models (LLMs) exhibit an intriguing ability to learn a novel task from incontext examples presented in a demonstration, termed in-context learning (ICL).Understandably, a swath of research has been dedicated to uncovering the theories underpinning ICL.One popular hypothesis explains ICL by task selection.LLMs identify the task based on the demonstration and generalize it to the prompt.Another popular hypothesis is that ICL is a form of meta-learning, i.e., the models learn a learning algorithm at pre-training time and apply it to the demonstration.Finally, a third hypothesis argues that LLMs use the demonstration to select a composition of tasks learned during pre-training to perform ICL.In this paper, we empirically explore these three hypotheses that explain LLMs' ability to learn in context with a suite of experiments derived from common text classification tasks.We invalidate the first two hypotheses with counterexamples and provide evidence in support of the last hypothesis.Our results suggest an LLM could learn a novel task in context via composing tasks learned during pre-training. Jiaoda Li, Mrinmaya Sachan, Ryan Cotterell |
ACL (1) | 4 |
| 2024 | On the Representational Capacity of Neural Language Models with Chain-of-Thought ReasoningabstractThe performance of modern language models (LMs) has been improved by chain-of-thought (CoT) reasoning, i.e., the process of generating intermediate results that guide the model towards a final answer.A possible explanation for this improvement is that CoT reasoning extends an LM's computational power, as RNNs and transformers with additional scratch space are known to be Turing complete.Comparing LMs to Turing machines, however, introduces a category error-Turing machines decide language membership, whereas LMs define distributions over strings.To bridge this gap, we formalize CoT reasoning in a probabilistic setting.We present several results on the representational capacity of recurrent and transformer LMs with CoT reasoning, showing that they can represent the same family of distributions over strings as probabilistic Turing machines. Franz Nowak, Anej Svete, Alexandra Butoi, Ryan Cotterell |
ACL (1) | 4 |
| 2024 | Insights from the first BabyLM Challenge: Training sample-efficient language models on a developmentally plausible corpus
Alex Warstadt, Aaron Mueller, Leshem Choshen, Ethan Wilcox, Chengxu Zhuang, Adina Williams, Ryan Cotterell, Tal Linzen |
CogSci | 7 |
| 2024 | On the Proper Treatment of Tokenization in PsycholinguisticsabstractLanguage models are widely used in computational psycholinguistics to test theories that relate the negative log probability (the surprisal) of a region of interest (a substring of characters) under a language model to its cognitive cost experienced by readers, as operationalized, for example, by gaze duration on the region.However, the application of modern language models to psycholinguistic studies is complicated by the practice of using tokenization as an intermediate step in training a model.Doing so results in a language model over token strings rather than one over character strings.Vexingly, regions of interest are generally misaligned with these token strings.The paper argues that token-level language models should be (approximately) marginalized into character-level language models before they are used in psycholinguistic studies to compute the surprisal of a region of interest; then, the marginalized character-level language model can be used to compute the surprisal of an arbitrary character substring, which we term a focal area, that the experimenter may wish to use as a predictor.Our proposal of marginalizing a token-level model into a character-level one solves this misalignment issue independently of the tokenization scheme.Empirically, we discover various focal areas whose surprisal is a better psychometric predictor than the surprisal of the region of interest itself. Mario Giulianelli, Luca Malagutti, Juan Luis Gastaldi, Brian DuSell, Tim Vieira, Ryan Cotterell |
EMNLP | 6 |
| 2024 | Reverse-Engineering the ReaderabstractNumerous previous studies have sought to determine to what extent language models, pretrained on natural language text, can serve as useful models of human cognition.In this paper, we are interested in the opposite question: whether we can directly optimize a language model to be a useful cognitive model by aligning it to human psychometric data.To achieve this, we introduce a novel alignment technique in which we fine-tune a language model to implicitly optimize the parameters of a linear regressor that directly predicts humans' reading times of in-context linguistic units, e.g., phonemes, morphemes, or words, using surprisal estimates derived from the language model.Using words as a test case, we evaluate our technique across multiple model sizes and datasets and find that it improves language models' psychometric predictive power.However, we find an inverse relationship between psychometric power and a model's performance on downstream NLP tasks as well as its perplexity on held-out test data.While this latter trend has been observed before (Oh et al., 2022;Shain et al., 2024), we are the first to induce it by manipulating a model's alignment to psychometric data. Samuel Kiegeland, Ethan Wilcox, Afra Amini, David R. Reich, Ryan Cotterell |
EMNLP | 5 |
| 2024 | On the Role of Context in Reading Time PredictionabstractWe present a new perspective on how readers integrate context during real-time language comprehension.Our proposals build on surprisal theory, which posits that the processing effort of a linguistic unit (e.g., a word) is an affine function of its in-context information content.We first observe that surprisal is only one out of many potential ways that a contextual predictor can be derived from a language model.Another one is the pointwise mutual information (PMI) between a unit and its context, which turns out to yield the same predictive power as surprisal when controlling for unigram frequency.Moreover, both PMI and surprisal are correlated with frequency.This means that neither PMI nor surprisal contains information about context alone.In response to this, we propose a technique where we project surprisal onto the orthogonal complement of frequency, yielding a new contextual predictor that is uncorrelated with frequency.Our experiments show that the proportion of variance in reading times explained by context is a lot smaller when context is represented by the orthogonalized predictor.From an interpretability standpoint, this indicates that previous studies may have overstated the role that context has in predicting reading times.https://github.com/rycolab/ context-reading-time Andreas Opedal, Eleanor Chodroff, Ryan Cotterell, Ethan Wilcox |
EMNLP | 3 |
| 2024 | An L* Algorithm for Deterministic Weighted Regular LanguagesabstractExtracting finite state automata (FSAs) from black-box models offers a powerful approach to gaining interpretable insights into complex model behaviors.To support this pursuit, we present a weighted variant of Angluin's (1987) L ˚algorithm for learning FSAs.We stay faithful to the original algorithm, devising a way to exactly learn deterministic weighted FSAs whose weights support division.Furthermore, we formulate the learning process in a manner that highlights the connection with FSA minimization, showing how L ˚directly learns a minimal automaton for the target language.github.com/rycolab/weighted-angluin Clemente Pasti, Talu Karagöz, Franz Nowak, Anej Svete, Reda Boumasmoud, Ryan Cotterell |
EMNLP | 6 |
| 2024 | Can Transformers Learn n-gram Language Models?abstractMuch theoretical work has described the ability of transformers to represent formal languages.However, linking theoretical results to empirical performance is not straightforward due to the complex interplay between the architecture, the learning algorithm, and training data.To test whether theoretical lower bounds imply learnability of formal languages, we turn to recent work relating transformers to n-gram language models (LMs).We study transformers' ability to learn random n-gram LMs of two kinds: ones with arbitrary next-symbol probabilities and ones where those are defined with shared parameters.We find that classic estimation techniques for n-gram LMs such as add-λ smoothing outperform transformers on the former, while transformers perform better on the latter, outperforming methods specifically designed to learn n-gram LMs.github.com/rycolab/learning-ngrams Anej Svete, Nadav Borenstein, Mike Zhou, Isabelle Augenstein, Ryan Cotterell |
EMNLP | 5 |
| 2024 | A Probability-Quality Trade-off in Aligned Language Models and its Relation to Sampling AdaptorsabstractThe relationship between the quality of a string, as judged by a human reader, and its probability, p(y) under a language model undergirds the development of better language models.For example, many popular algorithms for sampling from a language model have been conceived with the goal of manipulating p(y) to place higher probability on strings that humans deem of high quality (Fan et al., 2018;Holtzman et al., 2020).In this article, we examine the probability-quality relationship in language models explicitly aligned to human preferences, e.g., through reinforcement learning through human feedback.We show that, when sampling corpora from an aligned language model, there exists a trade-off between the strings' average reward and average log-likelihood under the prior language model, i.e., the same model before alignment with human preferences.We provide a formal treatment of this phenomenon and demonstrate how a choice of sampling adaptor allows for a selection of how much likelihood we exchange for the reward.https://github.com/tanyjnaaman/ probability-quality-paradox Naaman Tan, Josef Valvoda, Tianyu Liu 0004, Anej Svete, Yanxia Qin, Min-Yen Kan, Ryan Cotterell |
EMNLP | 7 |
| 2024 | Surprise! Uniform Information Density Isn't the Whole Story: Predicting Surprisal Contours in Long-form DiscourseabstractThe Uniform Information Density (UID) hypothesis posits that speakers tend to distribute information evenly across linguistic units to achieve efficient communication.Of course, information rate in texts and discourses is not perfectly uniform.While these fluctuations can be viewed as theoretically uninteresting noise on top of a uniform target, another explanation is that UID is not the only functional pressure regulating information content in a language.Speakers may also seek to maintain interest, adhere to writing conventions, and build compelling arguments.In this paper, we propose one such functional pressure; namely that speakers modulate information rate based on location within a hierarchically-structured model of discourse.We term this the Structured Context Hypothesis and test it by predicting the surprisal contours of naturally occurring discourses extracted from large language models using predictors derived from discourse structure.We find that hierarchical predictors are significant predictors of a discourse's information contour and that deeply nested hierarchical predictors are more predictive than shallow ones.This work takes an initial step beyond UID to propose testable hypotheses for why the information rate fluctuates in predictable ways.https://github.com/rycolab/ surprisal-discourse Eleftheria Tsipidi, Franz Nowak, Ryan Cotterell, Ethan Wilcox, Mario Giulianelli, Alex Warstadt |
EMNLP | 3 |
| 2024 | Principled Gradient-Based MCMC for Conditional Sampling of TextabstractWe consider the problem of sampling text from an energy-based model. This arises, for example, when sampling text from a neural language model subject to soft constraints. Although the target distribution is discrete, the internal computations of the energy function (given by the language model) are differentiable, so one would like to exploit gradient information within a method such as MCMC. Alas, all previous attempts to generalize gradient-based MCMC to text sampling fail to sample correctly from the target distribution. We propose a solution, along with variants, and study its theoretical properties. Through experiments on various forms of text generation, we demonstrate that our unbiased samplers are able to generate more fluent text while better adhering to the control objectives. The same methods could be used to sample from discrete energy-based models unrelated to text. Afra Amini, Lucas Torroba Hennigen, Xinyan Yu 0001, Holden Lee, Jason Eisner, Ryan Cotterell |
ICML | 7 |
| 2024 | Do Language Models Exhibit the Same Cognitive Biases in Problem Solving as Human Learners?abstractThere is increasing interest in employing large language models (LLMs) as cognitive models. For such purposes, it is central to understand which properties of human cognition are well-modeled by LLMs, and which are not. In this work, we study the biases of LLMs in relation to those known in children when solving arithmetic word problems. Surveying the learning science literature, we posit that the problem-solving process can be split into three distinct steps: text comprehension, solution planning and solution execution. We construct tests for each one in order to understand whether current LLMs display the same cognitive biases as children in these steps. We generate a novel set of word problems for each of these tests, using a neuro-symbolic approach that enables fine-grained control over the problem features. We find evidence that LLMs, with and without instruction-tuning, exhibit human-like biases in both the text-comprehension and the solution-planning steps of the solving process, but not in the final step, in which the arithmetic expressions are executed to obtain the answer. Andreas Opedal, Alessandro Stolfo, Haruki Shirakami, Ying Jiao, Ryan Cotterell, Bernhard Schölkopf, Abulhair Saparov, Mrinmaya Sachan |
ICML | 5 |
| 2024 | Representation Surgery: Theory and Practice of Affine SteeringabstractLanguage models often exhibit undesirable behavior, e.g., generating toxic or gender-biased text. In the case of neural language models, an encoding of the undesirable behavior is often present in the model’s representations. Thus, one natural (and common) approach to prevent the model from exhibiting undesirable behavior is to steer the model’s representations in a manner that reduces the probability of it generating undesirable text. This paper investigates the formal and empirical properties of steering functions, i.e., transformation of the neural language model’s representations that alter its behavior. First, we derive two optimal, in the least-squares sense, affine steering functions under different constraints. Our theory provides justification for existing approaches and offers a novel, improved steering approach. Second, we offer a series of experiments that demonstrate the empirical effectiveness of the methods in mitigating bias and reducing toxic generation. Shashwat Singh 0001, Shauli Ravfogel, Jonathan Herzig, Roee Aharoni, Ryan Cotterell, Ponnurangam Kumaraguru |
ICML | 5 |
| 2024 | NARRATE: Versatile Language Architecture for Optimal Control in RoboticsabstractThe impressive capabilities of Large Language Models (LLMs) have led to various efforts in enabling robots to be controlled through natural language instructions, opening exciting possibilities for human-robot interaction. The goal is for the motor-control task to be performed accurately, efficiently and safely while also enjoying the flexibility imparted by LLMs to specify and adjust the task through natural language. In this work, we demonstrate how a careful layering of an LLM in combination with a Model Predictive Control (MPC) formulation allows for accurate and flexible robotic control via natural language while taking into consideration safety constraints. In particular, we rely on the LLM to effectively frame constraints and objective functions as mathematical expressions, which are later used in the motor-control module via MPC. The transparency of the optimization formulation allows for interpretability of the task and enables adjustments through human feedback. We demonstrate the validity of our method through extensive experiments on long-horizon reasoning, contact-rich, and multi-object interaction tasks. Our evaluations show that NARRATE outperforms current existing methods on these benchmarks and effectively transfers to the real world on two different embodiments.Videos, Code and Prompts at narrate-mpc.github.io Seif Ismail, Antonio Arbues, Ryan Cotterell, René Zurbrügg, Carmen Amo Alonso |
IROS | 3 |
| 2024 | The Role of n-gram Smoothing in the Age of Neural NetworksabstractLuca Malagutti, Andrius Buinovskij, Anej Svete, Clara Meister, Afra Amini, Ryan Cotterell. Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers). 2024. Luca Malagutti, Andrius Buinovskij, Anej Svete, Clara Meister, Afra Amini, Ryan Cotterell |
NAACL-HLT | 6 |
| 2024 | Transformers Can Represent n-gram Language ModelsabstractAnej Svete, Ryan Cotterell. Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers). 2024. Anej Svete, Ryan Cotterell |
NAACL-HLT | 2 |
| 2024 | Lower Bounds on the Expressivity of Recurrent Neural Language ModelsabstractAnej Svete, Franz Nowak, Anisha Sahabdeen, Ryan Cotterell. Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers). 2024. Anej Svete, Franz Nowak, Anisha Mohamed Sahabdeen, Ryan Cotterell |
NAACL-HLT | 4 |
| 2024 | Towards Explainability in Legal Outcome Prediction ModelsabstractJosef Valvoda, Ryan Cotterell. Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers). 2024. Josef Valvoda, Ryan Cotterell |
NAACL-HLT | 2 |
| 2024 | On Affine Homotopy between Language EncodersabstractPre-trained language encoders---functions that represent text as vectors---are an integral component of many NLP tasks.
We tackle a natural question in language encoder analysis: What does it mean for two encoders to be similar?
We contend that a faithful measure of similarity needs to be \emph{intrinsic}, that is, task-independent, yet still be informative of \emph{extrinsic} similarity---the performance on downstream tasks.
It is common to consider two encoders similar if they are \emph{homotopic}, i.e., if they can be aligned through some transformation.
In this spirit, we study the properties of \emph{affine} alignment of language encoders and its implications on extrinsic similarity.
We find that while affine alignment is fundamentally an asymmetric notion of similarity, it is still informative of extrinsic similarity.
We confirm this on datasets of natural language representations.
Beyond providing useful bounds on extrinsic similarity, affine intrinsic similarity also allows us to begin uncovering the structure of the space of pre-trained encoders by defining an order over them. Robin Shing Moon Chan, Reda Boumasmoud, Anej Svete, Qipeng Guo, Zhijing Jin 0001, Shauli Ravfogel, Mrinmaya Sachan, Bernhard Schölkopf, Mennatallah El-Assady, Ryan Cotterell |
NeurIPS | 11 |
| 2024 | The Ethics of Automating Legal ActorsabstractAbstract The introduction of large public legal datasets has brought about a renaissance in legal NLP. Many of these datasets are composed of legal judgments—the product of judges deciding cases. Since ML algorithms learn to model the data they are trained on, several legal NLP models are models of judges. While some have argued for the automation of judges, in this position piece, we argue that automating the role of the judge raises difficult ethical challenges, in particular for common law legal systems. Our argument follows from the social role of the judge in actively shaping the law, rather than merely applying it. Since current NLP models are too far away from having the facilities necessary for this task, they should not be used to automate judges. Furthermore, even in the case that the models could achieve human-level capabilities, there would still be remaining ethical concerns inherent in the automation of the legal process. Josef Valvoda, Alec Thompson, Ryan Cotterell, Simone Teufel |
Trans. Assoc. Comput. Linguistics | 3 |
| 2023 | A Latent-Variable Model for Intrinsic ProbingabstractThe success of pre-trained contextualized representations has prompted researchers to analyze them for the presence of linguistic information. Indeed, it is natural to assume that these pre-trained representations do encode some level of linguistic knowledge as they have brought about large empirical improvements on a wide variety of NLP tasks, which suggests they are learning true linguistic generalization. In this work, we focus on intrinsic probing, an analysis technique where the goal is not only to identify whether a representation encodes a linguistic attribute but also to pinpoint where this attribute is encoded. We propose a novel latent-variable formulation for constructing intrinsic probes and derive a tractable variational approximation to the log-likelihood. Our results show that our model is versatile and yields tighter mutual information estimates than two intrinsic probes previously proposed in the literature. Finally, we find empirical evidence that pre-trained representations develop a cross-lingually entangled notion of morphosyntax. Karolina Stanczak, Lucas Torroba Hennigen, Adina Williams, Ryan Cotterell, Isabelle Augenstein |
AAAI | 4 |
| 2023 | Convergence and Diversity in the Control HierarchyabstractWeir has defined a hierarchy of language classes whose second member (L 2 ) is generated by tree-adjoining grammars (TAG), linear indexed grammars (LIG), combinatory categorial grammars, and head grammars.The hierarchy is obtained using the mechanism of control, and L 2 is obtained using a contextfree grammar (CFG) whose derivations are controlled by another CFG.We adapt Weir's definition of a controllable CFG to give a definition of controllable pushdown automata (PDAs).This yields three new characterizations of L 2 as the class of languages generated by PDAs controlling PDAs, PDAs controlling CFGs, and CFGs controlling PDAs.We show that these four formalisms are not only weakly equivalent but equivalent in a stricter sense that we call d-weak equivalence.Furthermore, using an even stricter notion of equivalence called d-strong equivalence, we make precise the intuition that a CFG controlling a CFG is a TAG, a PDA controlling a PDA is an embedded PDA, and a PDA controlling a CFG is a LIG.The fourth member of this family, a CFG controlling a PDA, does not correspond to any formalism we know of, so we invent one and call it a Pushdown Adjoining Automaton. Alexandra Butoi, Ryan Cotterell, David Chiang 0001 |
ACL (1) | 2 |
| 2023 | A Measure-Theoretic Characterization of Tight Language ModelsabstractLi Du, Lucas Torroba Hennigen, Tiago Pimentel, Clara Meister, Jason Eisner, Ryan Cotterell. Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 2023. Lucas Torroba Hennigen, Tiago Pimentel, Clara Meister, Jason Eisner, Ryan Cotterell |
ACL (1) | 6 |
| 2023 | Generalizing Backpropagation for Gradient-Based InterpretabilityabstractMany popular feature-attribution methods for interpreting deep neural networks rely on computing the gradients of a model's output with respect to its inputs.While these methods can indicate which input features may be important for the model's prediction, they reveal little about the inner workings of the model itself.In this paper, we observe that the gradient computation of a model is a special case of a more general formulation using semirings.This observation allows us to generalize the backpropagation algorithm to efficiently compute other interpretable statistics about the gradient graph of a neural network, such as the highest-weighted path and entropy.We implement this generalized algorithm, evaluate it on synthetic datasets to better understand the statistics it computes, and apply it to study BERT's behavior on the subject-verb number agreement task (SVA).With this method, we (a) validate that the amount of gradient flow through a component of a model reflects its importance to a prediction and (b) for SVA, identify which pathways of the self-attention mechanism are most important. Kevin Du, Lucas Torroba Hennigen, Niklas Stoehr, Alex Warstadt, Ryan Cotterell |
ACL (1) | 5 |
| 2023 | Discourse-Centric Evaluation of Document-level Machine Translation with a New Densely Annotated Parallel Corpus of NovelsabstractYuchen Eleanor Jiang, Tianyu Liu, Shuming Ma, Dongdong Zhang, Mrinmaya Sachan, Ryan Cotterell. Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 2023. Yuchen Eleanor Jiang, Tianyu Liu 0004, Shuming Ma, Dongdong Zhang 0001, Mrinmaya Sachan, Ryan Cotterell |
ACL (1) | 6 |
| 2023 | On the Efficacy of Sampling AdaptersabstractSampling is a common strategy for generating text from probabilistic models, yet standard ancestral sampling often results in text that is incoherent or ungrammatical.To alleviate this issue, various modifications to a model's sampling distribution, such as nucleus or top-k sampling, have been introduced and are now ubiquitously used in language generation systems.We propose a unified framework for understanding these techniques, which we term sampling adapters.Sampling adapters often lead to qualitatively better text, which raises the question: From a formal perspective, how are they changing the (sub)word-level distributions of language generation models?And why do these local changes lead to higher-quality text?We argue that the shift they enforce can be viewed as a trade-off between precision and recall: while the model loses its ability to produce certain strings, its precision rate on desirable text increases.While this trade-off is not reflected in standard metrics of distribution quality (such as perplexity), we find that several precision-emphasizing measures indeed indicate that sampling adapters can lead to probability distributions more aligned with the true distribution.Further, these measures correlate with higher sequence-level quality scores, specifically, MAUVE.https://github.com/rycolab/ sampling-adapters Clara Meister, Tiago Pimentel, Luca Malagutti, Ethan Wilcox, Ryan Cotterell |
ACL (1) | 5 |
| 2023 | Efficient Semiring-Weighted Earley ParsingabstractThis paper provides a reference description, in the form of a deduction system, of Earley's (1970) context-free parsing algorithm with various speed-ups.Our presentation includes a known worst-case runtime improvement from Earley's O N 3 |G||R| , which is unworkable for the large grammars that arise in natural language processing, to O N 3 |G| , which matches the runtime of CKY on a binarized version of the grammar G.Here N is the length of the sentence, |R| is the number of productions in G, and |G| is the total length of those productions.We also provide a version that achieves runtime of O N 3 |M| with |M| ≤ |G| when the grammar is represented compactly as a single finite-state automaton M (this is partly novel).We carefully treat the generalization to semiring-weighted deduction, preprocessing the grammar like Stolcke (1995) to eliminate deduction cycles, and further generalize Stolcke's method to compute the weights of sentence prefixes.We also provide implementation details for efficient execution, ensuring that on a preprocessed grammar, the semiring-weighted versions of our methods have the same asymptotic runtime and space requirements as the unweighted methods, including sub-cubic runtime on some grammars.https://github.com/rycolab/ earleys Andreas Opedal, Ran Zmigrod, Tim Vieira, Ryan Cotterell, Jason Eisner |
ACL (1) | 4 |
| 2023 | Linear Guardedness and its ImplicationsabstractMethods for erasing human-interpretable concepts from neural representations that assume linearity have been found to be tractable and useful.However, the impact of this removal on the behavior of downstream classifiers trained on the modified representations is not fully understood.In this work, we formally define the notion of log-linear guardedness as the inability of an adversary to predict the concept directly from the representation, and study its implications.We show that, in the binary case, under certain assumptions, a downstream log-linear model cannot recover the erased concept.However, we demonstrate that a multiclass log-linear model can be constructed that indirectly recovers the concept in some cases, pointing to the inherent limitations of log-linear guardedness as a downstream bias mitigation technique.These findings shed light on the theoretical limitations of linear erasure methods and highlight the need for further research on the connections between intrinsic and extrinsic bias in neural models. Shauli Ravfogel, Yoav Goldberg, Ryan Cotterell |
ACL (1) | 3 |
| 2023 | An Ordinal Latent Variable Model of Conflict IntensityabstractNiklas Stoehr, Lucas Torroba Hennigen, Josef Valvoda, Robert West, Ryan Cotterell, Aaron Schein. Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 2023. Niklas Stoehr, Lucas Torroba Hennigen, Josef Valvoda, Robert West 0001, Ryan Cotterell, Aaron Schein |
ACL (1) | 5 |
| 2023 | Tokenization and the Noiseless ChannelabstractVilém Zouhar, Clara Meister, Juan Gastaldi, Li Du, Mrinmaya Sachan, Ryan Cotterell. Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 2023. Vilém Zouhar, Clara Meister, Juan Luis Gastaldi, Mrinmaya Sachan, Ryan Cotterell |
ACL (1) | 6 |
| 2023 | The Ordered Matrix Dirichlet for State-Space ModelsabstractMany dynamical systems in the real world are naturally described by latent states with intrinsic ordering, such as “ally”, “neutral”, and “enemy” relationships in international relations. These latent states manifest through countries’ cooperative versus conflictual interactions over time. State-space models (SSMs) explicitly relate the dynamics of observed measurements to transitions in latent states. For discrete data, SSMs commonly do so through a state-to-action emission matrix and a state-to-state transition matrix. This paper introduces the Ordered Matrix Dirichlet (OMD) as a prior distribution over ordered stochastic matrices wherein the discrete distribution in the kth row is stochastically dominated by the (k+1)th, such that probability mass is shifted to the right when moving down rows. We illustrate the OMD prior within two SSMs: a hidden Markov model, and a novel dynamic Poisson Tucker decomposition model tailored to international relations data. We find that models built on the OMD recover interpretable ordered latent structure without forfeiting predictive performance. We suggest future applications to other domains where models with stochastic matrices are popular (e.g., topic modeling), and publish user-friendly code. Niklas Stoehr, Benjamin J. Radford, Ryan Cotterell, Aaron Schein |
AISTATS | 3 |
| 2023 | On the Intersection of Context-Free and Regular LanguagesabstractClemente Pasti, Andreas Opedal, Tiago Pimentel, Tim Vieira, Jason Eisner, Ryan Cotterell. Proceedings of the 17th Conference of the European Chapter of the Association for Computational Linguistics. 2023. Clemente Pasti, Andreas Opedal, Tiago Pimentel, Tim Vieira, Jason Eisner, Ryan Cotterell |
EACL | 6 |
| 2023 | Sentiment as an Ordinal Latent VariableabstractSentiment analysis has become a central tool in various disciplines outside of natural language processing.In particular in applied and domain-specific settings with strong requirements for interpretable methods, dictionary-based approaches are still a popular choice.However, existing dictionaries are often limited in coverage, static once annotation is completed and sentiment scales differ widely; some are discrete others continuous.We propose a Bayesian generative model that learns a composite sentiment dictionary as an interpolation between six existing dictionaries with different scales.We argue that sentiment is a latent concept with intrinsically ranking-based characteristics -the word "excellent" may be ranked more positive than "great" and "okay", but it is hard to express how much more exactly.This prompts us to enforce an ordinal scale of ordered discrete sentiment values in our dictionary.We achieve this through an ordering transformation in the priors of our model.We evaluate the model intrinsically by imputing missing values in existing dictionaries.Moreover, we conduct extrinsic evaluations through sentiment classification tasks.Finally, we present two extension: first, we present a method to augment dictionary-based approaches with word embeddings to construct sentiment scales along new semantic axes.Second, we demonstrate a Latent Dirichlet Allocation-inspired variant of our model that learns document topics that are ordered by sentiment. Niklas Stoehr, Ryan Cotterell, Aaron Schein |
EACL | 2 |
| 2023 | Linear-Time Modeling of Linguistic Structure: An Order-Theoretic PerspectiveabstractTasks that model the relation between pairs of tokens in a string are a vital part of understanding natural language.Such tasks, in general, require exhaustive pair-wise comparisons of tokens, thus having a quadratic runtime complexity in the length of the string.We show that these exhaustive comparisons can be avoided, and, moreover, the complexity of such tasks can be reduced to linear by casting the relation between tokens as a partial order over the string.Our method predicts real numbers for each token in a string in parallel and sorts the tokens accordingly, resulting in total orders of the tokens in the string.Each total order implies a set of arcs oriented from smaller to greater tokens, sorted by their predicted numbers.The intersection of total orders results in a partial order over the set of tokens in the string, which is then decoded into a directed graph representing the desired linguistic structure.Our experiments on dependency parsing and coreference resolution show that our method achieves state-of-the-art or comparable performance.Moreover, the linear complexity and parallelism of our method double the speed of graph-based coref- erence resolution models, and bring a 10-times speed-up over graph-based dependency parsers. Tianyu Liu 0004, Afra Amini, Mrinmaya Sachan, Ryan Cotterell |
EMNLP | 4 |
| 2023 | Efficient Algorithms for Recognizing Weighted Tree-Adjoining LanguagesabstractThe class of tree-adjoining languages can be characterized by various two-level formalisms, consisting of a context-free grammar (CFG) or pushdown automaton (PDA) controlling another CFG or PDA.These four formalisms are equivalent to tree-adjoining grammars (TAG), linear indexed grammars (LIG), pushdownadjoining automata (PAA), and embedded pushdown automata (EPDA).We define semiringweighted versions of the above two-level formalisms, and we design new algorithms for computing their stringsums (the weight of all derivations of a string) and allsums (the weight of all derivations).From these, we also immediately obtain stringsum and allsum algorithms for TAG, LIG, PAA, and EPDA.For LIG, our algorithm is more time-efficient by a factor of O(n|N |) (where n is the string length and |N | is the size of the nonterminal set) and more space-efficient by a factor of O(|Γ|) (where Γ is the size of the stack alphabet) than the algorithm of Vijay-Shanker and Weir (1989).For EPDA, our algorithm is both more spaceefficient and time-efficient than the algorithm of Alonso et al. (2001) by factors of O(|Γ| 2 ) and O(|Γ| 3 ), respectively.Finally, we give the first PAA stringsum and allsum algorithms. Alexandra Butoi, Tim Vieira, Ryan Cotterell, David Chiang 0001 |
EMNLP | 3 |
| 2023 | On the Representational Capacity of Recurrent Neural Language ModelsabstractThis work investigates the computational expressivity of language models (LMs) based on recurrent neural networks (RNNs).Siegelmann and Sontag (1992) famously showed that RNNs with rational weights and hidden states and unbounded computation time are Turing complete.However, LMs define weightings over strings in addition to just (unweighted) language membership and the analysis of the computational power of RNN LMs (RLMs) should reflect this.We extend the Turing completeness result to the probabilistic case, showing how a rationally weighted RLM with unbounded computation time can simulate any deterministic probabilistic Turing machine (PTM) with rationally weighted transitions.Since, in practice, RLMs work in real-time, processing a symbol at every time step, we treat the above result as an upper bound on the expressivity of RLMs.We also provide a lower bound by showing that under the restriction to real-time computation, such models can simulate deterministic real-time rational PTMs. Franz Nowak, Anej Svete, Ryan Cotterell |
EMNLP | 4 |
| 2023 | An Exploration of Left-Corner TransformationsabstractThe left-corner transformation (Rosenkrantz and Lewis, 1970) is used to remove left recursion from context-free grammars, which is an important step towards making the grammar parsable top-down with simple techniques.This paper generalizes prior left-corner transformations to support semiring-weighted production rules and to provide finer-grained control over which left corners may be moved.Our generalized left-corner transformation (GLCT) arose from unifying the left-corner transformation and speculation transformation (Eisner and Blatz, 2007), originally for logic programming.Our new transformation and speculation define equivalent weighted languages.Yet, their derivation trees are structurally different in an important way: GLCT replaces left recursion with right recursion, and speculation does not.We also provide several technical results regarding the formal relationships between the outputs of GLCT, speculation, and the original grammar.Lastly, we empirically investigate the efficiency of GLCT for left-recursion elimination from grammars of nine languages. Andreas Opedal, Eleftheria Tsipidi, Tiago Pimentel, Ryan Cotterell, Tim Vieira |
EMNLP | 4 |
| 2023 | Revisiting the Optimality of Word LengthsabstractZipf (1935) posited that wordforms are optimized to minimize utterances' communicative costs.Under the assumption that cost is given by an utterance's length, he supported this claim by showing that words' lengths are inversely correlated with their frequencies.Communicative cost, however, can be operationalized in different ways.Piantadosi et al. (2011) claim that cost should be measured as the distance between an utterance's information rate and channel capacity, which we dub the channel capacity hypothesis (CCH) here.Following this logic, they then proposed that a word's length should be proportional to the expected value of its surprisal (negative log-probability in context).In this work, we show that Piantadosi et al.'s derivation does not minimize CCH's cost, but rather a lower bound, which we term CCH ↓ .We propose a novel derivation, suggesting an improved way to minimize CCH's cost.Under this method, we find that a language's word lengths should instead be proportional to the surprisal's expectation plus its variance-tomean ratio.Experimentally, we compare these three communicative cost functions: Zipf's, CCH ↓ , and CCH.Across 13 languages and several experimental settings, we find that length is better predicted by frequency than either of the other hypotheses.In fact, when surprisal's expectation, or expectation plus variance-to-mean ratio, is estimated using better language models, it leads to worse word length predictions.We take these results as evidence that Zipf's longstanding hypothesis holds.https://github.com/tpimentelms/ optimality-of-word-lengths Tiago Pimentel, Clara Meister, Ethan Wilcox, Kyle Mahowald, Ryan Cotterell |
EMNLP | 5 |
| 2023 | Recurrent Neural Language Models as Probabilistic Finite-state AutomataabstractStudying language models (LMs) in terms of well-understood formalisms allows us to precisely characterize their abilities and limitations.Previous work has investigated the representational capacity of recurrent neural network (RNN) LMs in terms of their capacity to recognize unweighted formal languages.However, LMs do not describe unweighted formal languages-rather, they define probability distributions over strings.In this work, we study what classes of such probability distributions RNN LMs can represent, which allows us to make more direct statements about their capabilities.We show that simple RNNs are equivalent to a subclass of probabilistic finitestate automata, and can thus model a strict subset of probability distributions expressible by finite-state models.Furthermore, we study the space complexity of representing finite-state LMs with RNNs.We show that, to represent an arbitrary deterministic finite-state LM with N states over an alphabet Σ, an RNN requires Ω pN |Σ|q neurons.These results present a first step towards characterizing the classes of distributions RNN LMs can represent and thus help us understand their capabilities and limitations.https://github.com/rycolab/ weighted-minsky Anej Svete, Ryan Cotterell |
EMNLP | 2 |
| 2023 | Language Model Quality Correlates with Psychometric Predictive Power in Multiple LanguagesabstractSurprisal theory (Hale, 2001;Levy, 2008) posits that a word's reading time is proportional to its surprisal (i.e., to its negative log probability given the proceeding context).It has been empirically tested using surprisal estimates from language models (LMs).Under the premise that surprisal theory holds, we would expect that higher quality language models, whose predictions are more accurate, provide more powerful predictors of human reading behavior-a conjecture we dub the quality-power (QP) hypothesis.Unfortunately, empirical support for the QP hypothesis is mixed.Some studies in English have found correlations between LM quality and psychometric predictive power, but other studies using Japanese data, as well as using larger English LMs, find no such correlations.In this work, we conduct a systematic crosslinguistic assessment of the QP hypothesis.We train LMs from scratch on small-and medium-sized datasets from 13 languages (across five language families) and assess their ability to predict eye tracking data.We find correlations between LM quality and psychometric predictive power in eleven of these thirteen languages, suggesting that, within the range of model classes and sizes tested, better language models provide better predictors of human language processing behaviors.https://github.com/rycolab/ quality-power-hypothesis Ethan Wilcox, Clara Meister, Ryan Cotterell, Tiago Pimentel |
EMNLP | 3 |
| 2023 | Quantifying the redundancy between prosody and textabstractProsody-the suprasegmental component of speech, including pitch, loudness, and tempocarries critical aspects of meaning.However, the relationship between the information conveyed by prosody vs. by the words themselves remains poorly understood.We use large language models (LLMs) to estimate how much information is redundant between prosody and the words themselves.Using a large spoken corpus of English audiobooks, we extract prosodic features aligned to individual words and test how well they can be predicted from LLM embeddings, compared to non-contextual word embeddings.We find a high degree of redundancy between the information carried by the words and prosodic information across several prosodic features, including intensity, duration, pauses, and pitch contours.Furthermore, a word's prosodic information is redundant with both the word itself and the context preceding as well as following it.Still, we observe that prosodic features can not be fully predicted from text, suggesting that prosody carries information above and beyond the words.Along with this paper, we release a general-purpose data processing pipeline for quantifying the relationship between linguistic information and extra-linguistic features.https://github.com/lu-wo/ quantifying-redundancy Lukas Wolf, Tiago Pimentel, Evelina Fedorenko, Ryan Cotterell, Alex Warstadt, Ethan Wilcox, Tamar I. Regev |
EMNLP | 4 |
| 2023 | On the Usefulness of Embeddings, Clusters and Strings for Text Generation Evaluation
Tiago Pimentel, Clara Meister, Ryan Cotterell |
ICLR | 3 |
| 2023 | Controlled Text Generation with Natural Language InstructionsabstractLarge language models can be prompted to pro- duce fluent output for a wide range of tasks without being specifically trained to do so. Nevertheless, it is notoriously difficult to control their generation in such a way that it satisfies user-specified constraints. In this paper, we present InstructCTG, a simple controlled text generation framework that incorporates different constraints by verbalizing them as natural language instructions. We annotate natural texts through a combination of off-the-shelf NLP tools and simple heuristics with the linguistic and extra-linguistic constraints they satisfy. Then, we verbalize the constraints into natural language instructions to form weakly supervised training data, i.e., we prepend the natural language verbalizations of the constraints in front of their corresponding natural language sentences. Next, we fine-tune a pre-trained language model on the augmented corpus. Compared to existing methods, InstructCTG is more flexible in terms of the types of constraints it allows the practitioner to use. It also does not require any modification of the decoding procedure. Finally, InstructCTG allows the model to adapt to new constraints without re-training through the use of in-context learning. Wangchunshu Zhou, Yuchen Eleanor Jiang, Ethan Wilcox, Ryan Cotterell, Mrinmaya Sachan |
ICML | 4 |
| 2023 | Structured Voronoi SamplingabstractGradient-based sampling algorithms have demonstrated their effectiveness in text generation, especially in the context of controlled text generation. However, there exists a lack of theoretically grounded and principled approaches for this task. In this paper, we take an important step toward building a principled approach for sampling from language models with gradient-based methods. We use discrete distributions given by language models to define densities and develop an algorithm based on Hamiltonian Monte Carlo to sample from them. We name our gradient-based technique Structured Voronoi Sampling (SVS). In an experimental setup where the reference distribution is known, we show that the empirical distribution of SVS samples is closer to the reference distribution compared to alternative sampling schemes. Furthermore, in a controlled generation task, SVS is able to generate fluent and diverse samples while following the control targets significantly better than other methods. Afra Amini, Ryan Cotterell |
NeurIPS | 3 |
| 2023 | LEACE: Perfect linear concept erasure in closed formabstractConcept erasure aims to remove specified features from a representation. It can improve fairness (e.g. preventing a classifier from using gender or race) and interpretability (e.g. removing a concept to observe changes in model behavior). We introduce LEAst-squares Concept Erasure (LEACE), a closed-form method which provably prevents all linear classifiers from detecting a concept while changing the representation as little as possible, as measured by a broad class of norms. We apply LEACE to large language models with a novel procedure called concept scrubbing, which erases target concept information from _every_ layer in the network. We demonstrate our method on two tasks: measuring the reliance of language models on part-of-speech information, and reducing gender bias in BERT embeddings. Our code is available at https://github.com/EleutherAI/concept-erasure. Nora Belrose, David Schneider-Joseph, Shauli Ravfogel, Ryan Cotterell, Edward Raff, Stella Biderman |
NeurIPS | 4 |
| 2023 | Naturalistic Causal Probing for Morpho-SyntaxabstractAbstract Probing has become a go-to methodology for interpreting and analyzing deep neural models in natural language processing. However, there is still a lack of understanding of the limitations and weaknesses of various types of probes. In this work, we suggest a strategy for input-level intervention on naturalistic sentences. Using our approach, we intervene on the morpho-syntactic features of a sentence, while keeping the rest of the sentence unchanged. Such an intervention allows us to causally probe pre-trained models. We apply our naturalistic causal probing framework to analyze the effects of grammatical gender and number on contextualized representations extracted from three pre-trained models in Spanish, the multilingual versions of BERT, RoBERTa, and GPT-2. Our experiments suggest that naturalistic interventions lead to stable estimates of the causal effects of various linguistic properties. Moreover, our experiments demonstrate the importance of naturalistic causal probing when analyzing pre-trained models. https://github.com/rycolab/naturalistic-causal-probing Afra Amini, Tiago Pimentel, Clara Meister, Ryan Cotterell |
Trans. Assoc. Comput. Linguistics | 4 |
| 2023 | A Cross-Linguistic Pressure for Uniform Information Density in Word OrderabstractAbstract While natural languages differ widely in both canonical word order and word order flexibility, their word orders still follow shared cross-linguistic statistical patterns, often attributed to functional pressures. In the effort to identify these pressures, prior work has compared real and counterfactual word orders. Yet one functional pressure has been overlooked in such investigations: The uniform information density (UID) hypothesis, which holds that information should be spread evenly throughout an utterance. Here, we ask whether a pressure for UID may have influenced word order patterns cross-linguistically. To this end, we use computational models to test whether real orders lead to greater information uniformity than counterfactual orders. In our empirical study of 10 typologically diverse languages, we find that: (i) among SVO languages, real word orders consistently have greater uniformity than reverse word orders, and (ii) only linguistically implausible counterfactual orders consistently exceed the uniformity of real orders. These findings are compatible with a pressure for information uniformity in the development and usage of natural languages.1 Thomas Hikaru Clark, Clara Meister, Tiago Pimentel, Michael Hahn 0001, Ryan Cotterell, Richard Futrell, Roger Levy |
Trans. Assoc. Comput. Linguistics | 5 |
| 2023 | Locally Typical SamplingabstractAbstract Today’s probabilistic language generators fall short when it comes to producing coherent and fluent text despite the fact that the underlying models perform well under standard metrics (e.g., perplexity). This discrepancy has puzzled the language generation community for the last few years. In this work, we posit that the abstraction of natural language generation as a discrete stochastic process—which allows for an information-theoretic analysis—can provide new insights into the behavior of probabilistic language generators, for example, why high-probability texts can be dull or repetitive. Humans use language as a means of communicating information, aiming to do so in a simultaneously efficient and error-minimizing manner; in fact, psycholinguistics research suggests humans choose each word in a string with this subconscious goal in mind. We formally define the set of strings that meet this criterion: Those for which each word has an information content close to the expected information content, namely, the conditional entropy of our model. We then propose a simple and efficient procedure for enforcing this criterion when generating from probabilistic models, which we call locally typical sampling. Automatic and human evaluations show that, in comparison to nucleus and top-k sampling, locally typical sampling offers competitive performance (in both abstractive summarization and story generation) in terms of quality while consistently reducing degenerate repetitions. Clara Meister, Tiago Pimentel, Gian Wiher, Ryan Cotterell |
Trans. Assoc. Comput. Linguistics | 4 |
| 2023 | On the Effect of Anticipation on Reading TimesabstractAbstract Over the past two decades, numerous studies have demonstrated how less-predictable (i.e., higher surprisal) words take more time to read. In general, these studies have implicitly assumed the reading process is purely responsive: Readers observe a new word and allocate time to process it as required. We argue that prior results are also compatible with a reading process that is at least partially anticipatory: Readers could make predictions about a future word and allocate time to process it based on their expectation. In this work, we operationalize this anticipation as a word’s contextual entropy. We assess the effect of anticipation on reading by comparing how well surprisal and contextual entropy predict reading times on four naturalistic reading datasets: two self-paced and two eye-tracking. Experimentally, across datasets and analyses, we find substantial evidence for effects of contextual entropy over surprisal on a word’s reading time (RT): In fact, entropy is sometimes better than surprisal in predicting a word’s RT. Spillover effects, however, are generally not captured by entropy, but only by surprisal. Further, we hypothesize four cognitive mechanisms through which contextual entropy could impact RTs—three of which we are able to design experiments to analyze. Overall, our results support a view of reading that is not just responsive, but also anticipatory.1 Tiago Pimentel, Clara Meister, Ethan Wilcox, Roger Levy, Ryan Cotterell |
Trans. Assoc. Comput. Linguistics | 5 |
| 2023 | On the Role of Negative Precedent in Legal Outcome PredictionabstractAbstract Every legal case sets a precedent by developing the law in one of the following two ways. It either expands its scope, in which case it sets positive precedent, or it narrows it, in which case it sets negative precedent. Legal outcome prediction, the prediction of positive outcome, is an increasingly popular task in AI. In contrast, we turn our focus to negative outcomes here, and introduce a new task of negative outcome prediction. We discover an asymmetry in existing models’ ability to predict positive and negative outcomes. Where the state-of-the-art outcome prediction model we used predicts positive outcomes at 75.06 F1, it predicts negative outcomes at only 10.09 F1, worse than a random baseline. To address this performance gap, we develop two new models inspired by the dynamics of a court process. Our first model significantly improves positive outcome prediction score to 77.15 F1 and our second model more than doubles the negative outcome prediction performance to 24.01 F1. Despite this improvement, shifting focus to negative outcomes reveals that there is still much room for improvement for outcome prediction models. https://github.com/valvoda/Negative-Precedent-in-Legal-Outcome-Prediction Josef Valvoda, Ryan Cotterell, Simone Teufel |
Trans. Assoc. Comput. Linguistics | 2 |
| 2023 | Testing the Predictions of Surprisal Theory in 11 LanguagesabstractAbstract Surprisal theory posits that less-predictable words should take more time to process, with word predictability quantified as surprisal, i.e., negative log probability in context. While evidence supporting the predictions of surprisal theory has been replicated widely, much of it has focused on a very narrow slice of data: native English speakers reading English texts. Indeed, no comprehensive multilingual analysis exists. We address this gap in the current literature by investigating the relationship between surprisal and reading times in eleven different languages, distributed across five language families. Deriving estimates from language models trained on monolingual and multilingual corpora, we test three predictions associated with surprisal theory: (i) whether surprisal is predictive of reading times, (ii) whether expected surprisal, i.e., contextual entropy, is predictive of reading times, and (iii) whether the linking function between surprisal and reading times is linear. We find that all three predictions are borne out crosslinguistically. By focusing on a more diverse set of languages, we argue that these results offer the most robust link to date between information theory and incremental language processing across languages. Ethan Wilcox, Tiago Pimentel, Clara Meister, Ryan Cotterell, Roger Levy |
Trans. Assoc. Comput. Linguistics | 4 |
| 2023 | Visual Comparison of Language Model AdaptationabstractNeural language models are widely used; however, their model parameters often need to be adapted to the specific domains and tasks of an application, which is time- and resource-consuming. Thus, adapters have recently been introduced as a lightweight alternative for model adaptation. They consist of a small set of task-specific parameters with a reduced training time and simple parameter composition. The simplicity of adapter training and composition comes along with new challenges, such as maintaining an overview of adapter properties and effectively comparing their produced embedding spaces. To help developers overcome these challenges, we provide a twofold contribution. First, in close collaboration with NLP researchers, we conducted a requirement analysis for an approach supporting adapter evaluation and detected, among others, the need for both intrinsic (i.e., embedding similarity-based) and extrinsic (i.e., prediction-based) explanation methods. Second, motivated by the gathered requirements, we designed a flexible visual analytics workspace that enables the comparison of adapter properties. In this paper, we discuss several design iterations and alternatives for interactive, comparative visual explanation methods. Our comparative visualizations show the differences in the adapted embedding vectors and prediction outcomes for diverse human-interpretable concepts (e.g., person names, human qualities). We evaluate our workspace through case studies and show that, for instance, an adapter trained on the language debiasing task according to context-0 (decontextualized) embeddings introduces a new type of bias where words (even gender-independent words such as countries) become more similar to female- than male pronouns. We demonstrate that these are artifacts of context-0 embeddings, and the adapter effectively eliminates the gender information from the contextualized word representations. Rita Sevastjanova, Eren Cakmak, Shauli Ravfogel, Ryan Cotterell, Mennatallah El-Assady |
IEEE Trans. Vis. Comput. Graph. | 4 |
| 2022 | Probing as Quantifying Inductive BiasabstractPre-trained contextual representations have led to dramatic performance improvements on a range of downstream tasks.Such performance improvements have motivated researchers to quantify and understand the linguistic information encoded in these representations.In general, researchers quantify the amount of linguistic information through probing, an endeavor which consists of training a supervised model to predict a linguistic property directly from the contextual representations.Unfortunately, this definition of probing has been subject to extensive criticism in the literature, and has been observed to lead to paradoxical and counterintuitive results.In the theoretical portion of this paper, we take the position that the goal of probing ought to be measuring the amount of inductive bias that the representations encode on a specific task.We further describe a Bayesian framework that operationalizes this goal and allows us to quantify the representations' inductive bias.In the empirical portion of the paper, we apply our framework to a variety of NLP tasks.Our results suggest that our proposed framework alleviates many previous problems found in probing.Moreover, we are able to offer concrete evidence that-for some tasks-fastText can offer a better inductive bias than BERT. 1 * Equal contribution. 1 Our code is available at https://github.com/ rycolab/evidence-probing. Alexander Immer, Lucas Torroba Hennigen, Vincent Fortuin, Ryan Cotterell |
ACL (1) | 4 |
| 2022 | Probing for the Usage of Grammatical NumberabstractA central quest of probing is to uncover how pre-trained models encode a linguistic property within their representations.An encoding, however, might be spurious-i.e., the model might not rely on it when making predictions.In this paper, we try to find an encoding that the model actually uses, introducing a usage-based probing setup.We first choose a behavioral task which cannot be solved without using the linguistic property.Then, we attempt to remove the property by intervening on the model's representations.We contend that, if an encoding is used by the model, its removal should harm the performance on the chosen behavioral task.As a case study, we focus on how BERT encodes grammatical number, and on how it uses this encoding to solve the number agreement task.Experimentally, we find that BERT relies on a linear encoding of grammatical number to produce the correct behavioral output.We also find that BERT uses a separate encoding of grammatical number for nouns and verbs.Finally, we identify in which layers information about grammatical number is transferred from a noun to its head verb. Karim Lasri, Tiago Pimentel, Alessandro Lenci, Thierry Poibeau, Ryan Cotterell |
ACL (1) | 5 |
| 2022 | Benchmarking Compositionality with Formal LanguagesabstractRecombining known primitive concepts into larger novel combinations is a quintessentially human cognitive capability. Whether large neural models in NLP acquire this ability while learning from data is an open question. In this paper, we look at this problem from the perspective of formal languages. We use deterministic finite-state transducers to make an unbounded number of datasets with controllable properties governing compositionality. By randomly sampling over many transducers, we explore which of their properties (number of states, alphabet size, number of transitions etc.) contribute to learnability of a compositional relation by a neural network. In general, we find that the models either learn the relations completely or not at all. The key is transition coverage, setting a soft learnability limit at 400 examples per transition. Josef Valvoda, Naomi Saphra, Jonathan Rawski, Adina Williams, Ryan Cotterell |
COLING | 5 |
| 2022 | Equivariant Transduction through Invariant AlignmentabstractThe ability to generalize compositionally is key to understanding the potentially infinite number of sentences that can be constructed in a human language from only a finite number of words. Investigating whether NLP models possess this ability has been a topic of interest: SCAN (Lake and Baroni, 2018) is one task specifically proposed to test for this property. Previous work has achieved impressive empirical results using a group-equivariant neural network that naturally encodes a useful inductive bias for SCAN (Gordon et al., 2020). Inspired by this, we introduce a novel group-equivariant architecture that incorporates a group-invariant hard alignment mechanism. We find that our network’s structure allows it to develop stronger equivariance properties than existing group-equivariant approaches. We additionally find that it outperforms previous group-equivariant networks empirically on the SCAN task. Our results suggest that integrating group-equivariance into a variety of neural architectures is a potentially fruitful avenue of research, and demonstrate the value of careful analysis of the theoretical properties of such architectures. Jennifer C. White, Ryan Cotterell |
COLING | 2 |
| 2022 | On Parsing as TaggingabstractThere have been many proposals to reduce constituency parsing to tagging in the literature.To better understand what these approaches have in common, we cast several existing proposals into a unifying pipeline consisting of three steps: linearization, learning, and decoding.In particular, we show how to reduce tetratagging, a state-of-the-art constituency tagger, to shift-reduce parsing by performing a right-corner transformation on the grammar and making a specific independence assumption.Furthermore, we empirically evaluate our taxonomy of tagging pipelines with different choices of linearizers, learners, and decoders.Based on the results in English and a set of 8 typologically diverse languages, we conclude that the linearization of the derivation tree and its alignment with the input sequence is the most critical factor in achieving accurate taggers.https://github.com/rycolab/ parsing-as-tagging Afra Amini, Ryan Cotterell |
EMNLP | 2 |
| 2022 | Algorithms for Weighted Pushdown AutomataabstractWeighted pushdown automata (WPDAs) are at the core of many natural language processing tasks, like syntax-based statistical machine translation and transition-based dependency parsing.As most existing dynamic programming algorithms are designed for context-free grammars (CFGs), algorithms for PDAs often resort to a PDA-to-CFG conversion.In this paper, we develop novel algorithms that operate directly on WPDAs.Our algorithms are inspired by Lang's algorithm, but use a more general definition of pushdown automaton and either reduce the space requirements by a factor of |Γ| (the size of the stack alphabet) or reduce the runtime by a factor of more than |𝑄| (the number of states).When run on the same class of PDAs as Lang's algorithm, our algorithm is both more space-efficient by a factor of |Γ| and more time-efficient by a factor of |𝑄| • |Γ|. Alexandra Butoi, Brian DuSell, Tim Vieira, Ryan Cotterell, David Chiang 0001 |
EMNLP | 4 |
| 2022 | Attentional Probe: Estimating a Module's Functional PotentialabstractIn this paper, we seek to measure how much information a component in a neural network could extract from the representations fed into it.Our work stands in contrast to prior probing work, most of which investigates how much information a model's representations contain.This shift in perspective leads us to propose a new principle for probing, the architectural bottleneck principle: In order to estimate how much information a given component could extract, a probe should look exactly like the component.Relying on this principle, we estimate how much syntactic information is available to transformers through our attentional probe, a probe that exactly resembles a transformer's self-attention head.Experimentally, we find that, in three models (BERT, ALBERT, and RoBERTa), a sentence's syntax tree is mostly extractable by our probe, suggesting these models have access to syntactic information while composing their contextual representations.Whether this information is actually used by these models, however, remains an open question. Tiago Pimentel, Josef Valvoda, Niklas Stoehr, Ryan Cotterell |
EMNLP | 4 |
| 2022 | Mutual Information Alleviates Hallucinations in Abstractive SummarizationabstractDespite significant progress in the quality of language generated from abstractive summarization models, these models still exhibit the tendency to hallucinate, i.e., output content not supported by the source document.A number of works have tried to fix-or at least uncover the source of-the problem with limited success.In this paper, we identify a simple criterion under which models are significantly more likely to assign more probability to hallucinated content during generation: high model uncertainty.This finding offers a potential explanation for hallucinations: models default to favoring text with high marginal probability, i.e., high-frequency occurrences in the training set, when uncertain about a continuation.It also motivates possible routes for real-time intervention during decoding to prevent such hallucinations.We propose a decoding strategy that switches to optimizing for pointwise mutual information of the source and target token-rather than purely the probability of the target token-when the model exhibits uncertainty.Experiments on the XSUM dataset show that our method decreases the probability of hallucinated tokens while maintaining the ROUGE and BERTS scores of top-performing decoding strategies. Liam van der Poel, Ryan Cotterell, Clara Meister |
EMNLP | 2 |
| 2022 | Adversarial Concept Erasure in Kernel SpaceabstractThe representation space of neural models for textual data emerges in an unsupervised manner during training.Understanding how those representations encode human-interpretable concepts is a fundamental problem.One prominent approach for the identification of concepts in neural representations is searching for a linear subspace whose erasure prevents the prediction of the concept from the representations.However, while many linear erasure algorithms are tractable and interpretable, neural networks do not necessarily represent concepts in a linear manner.To identify non-linearly encoded concepts, we propose a kernelization of a linear minimax game for concept erasure.We demonstrate that it is possible to prevent specific nonlinear adversaries from predicting the concept.However, the protection does not transfer to different nonlinear adversaries.Therefore, exhaustively erasing a non-linearly encoded concept remains an open problem. Shauli Ravfogel, Francisco Vargas 0001, Yoav Goldberg, Ryan Cotterell |
EMNLP | 4 |
| 2022 | Algorithms for Acyclic Weighted Finite-State Automata with Failure ArcsabstractWeighted finite-state automata (WSFAs) are commonly used in NLP.Failure transitions are a useful extension for compactly representing backoffs or interpolation in n-gram models and CRFs, which are special cases of WFSAs.The pathsum in ordinary acyclic WFSAs is efficiently computed by the backward algorithm in time O(|E|), where E is the set of transitions.However, this does not allow failure transitions, and preprocessing the WFSA to eliminate failure transitions could greatly increase |E|.We extend the backward algorithm to handle failure transitions directly.Our approach is efficient when the average state has outgoing arcs for only a small fraction s ≪ 1 of the alphabet Σ.We propose an algorithm for general acyclic WFSAs which runs in O(|E| + s|Σ||Q||T max | log |Σ|), where Q is the set of states and |T max | is the size of the largest connected component of failure transitions.When the failure transition topology satisfies a condition exemplified by CRFs, the |T max | factor can be dropped, and when the weight semiring is a ring, the log |Σ| factor can be dropped.In the latter case (ring-weighted acyclic WFSAs), we also give an alternative algorithm with complexity O(|E| + |Σ||Q| min(1, s|π max |)), where |π max | is the size of the longest failure path.https://github.com/rycolab/ failure-backward Anej Svete, Benjamin Dayan, Ryan Cotterell, Tim Vieira, Jason Eisner |
EMNLP | 3 |
| 2022 | Linear Adversarial Concept ErasureabstractModern neural models trained on textual data rely on pre-trained representations that emerge without direct supervision. As these representations are increasingly being used in real-world applications, the inability to control their content becomes an increasingly important problem. In this work, we formulate the problem of identifying a linear subspace that corresponds to a given concept, and removing it from the representation. We formulate this problem as a constrained, linear minimax game, and show that existing solutions are generally not optimal for this task. We derive a closed-form solution for certain objectives, and propose a convex relaxation that works well for others. When evaluated in the context of binary gender removal, the method recovers a low-dimensional subspace whose removal mitigates bias by intrinsic and extrinsic evaluation. Surprisingly, we show that the method—despite being linear—is highly expressive, effectively mitigating bias in the output layers of deep, nonlinear classifiers while maintaining tractability and interpretability. Shauli Ravfogel, Michael Twiton, Yoav Goldberg, Ryan Cotterell |
ICML | 4 |
| 2022 | UniMorph 4.0: Universal MorphologyabstractThe Universal Morphology (UniMorph) project is a collaborative effort providing broad-coverage instantiated normalized morphological inflection tables for hundreds of diverse world languages. The project comprises two major thrusts: a language-independent feature schema for rich morphological annotation, and a type-level resource of annotated data in diverse languages realizing that schema. This paper presents the expansions and improvements on several fronts that were made in the last couple of years (since McCarthy et al. (2020)). Collaborative efforts by numerous linguists have added 66 new languages, including 24 endangered languages. We have implemented several improvements to the extraction pipeline to tackle some issues, e.g., missing gender and macrons information. We have amended the schema to use a hierarchical structure that is needed for morphological phenomena like multiple-argument agreement and case stacking, while adding some missing morphological features to make the schema more inclusive. In light of the last UniMorph release, we also augmented the database with morpheme segmentation for 16 languages. Lastly, this new release makes a push towards inclusion of derivational morphology in UniMorph by enriching the data and annotation schema with instances representing derivational processes from MorphyNet. Khuyagbaatar Batsuren, Omer Goldman, Salam Khalifa, Nizar Habash, Witold Kieras, Gábor Bella, Brian Leonard, Garrett Nicolai, Kyle Gorman, Yustinus Ghanggo Ate, Maria Ryskina, Sabrina J. Mielke, Elena Budianskaya, Charbel El-Khaissi, Tiago Pimentel, Michael Gasser, William Lane 0002, Mohit Raj, Matt Coler, Jaime Rafael Montoya Samame, Delio Siticonatzi Camaiteri, Esaú Zumaeta Rojas, Didier López Francis, Arturo Oncevay, Juan López Bautista, Gema Celeste Silva Villegas, Lucas Torroba Hennigen, Adam Ek, David Guriel, Peter Dirix, Jean-Philippe Bernardy, Andrey Scherbakov, Aziyana Bayyr-ool, Antonios Anastasopoulos, Roberto Zariquiey, Karina Sheifer, Sofya Ganieva, Hilaria Cruz, Ritván Karahóga, Stella Markantonatou, George Pavlidis, Matvey Plugaryov, Elena Klyachko, Ali Salehi, Candy Angulo, Jatayu Baxi, Andrew Krizhanovsky, Natalia Krizhanovskaya, Elizabeth Salesky, Clara Vania, Sardana Ivanova, Jennifer C. White, Rowan Hall Maudslay, Josef Valvoda, Ran Zmigrod, Paula Czarnowska, Irene Nikkarinen, Aelita Salchak, Brijesh Bhatt, Christopher Straughn, Zoey Liu, Jonathan Washington, Yuval Pinter, Duygu Ataman, Marcin Wolinski, Totok Suhardijanto, Anna Yablonskaya, Niklas Stoehr, Hossep Dolatian, Zahroh Nuriah, Shyam Ratan, Francis M. Tyers, Edoardo Maria Ponti, Grant Aiton, Aryaman Arora, Richard J. Hatcher, Ritesh Kumar 0002, Jeremiah Young, Daria Rodionova, Anastasia Yemelina, Taras Andrushko, Igor Marchenko, Polina Mashkovtseva, Alexandra Serova, Emily Tucker Prud'hommeaux, Maria Nepomniashchaya, Fausto Giunchiglia, Eleanor Chodroff, Mans Hulden, Miikka Silfverberg, Arya McCarthy, David Yarowsky, Ryan Cotterell, Reut Tsarfaty, Ekaterina Vylomova |
LREC | 93 |
| 2022 | BlonDe: An Automatic Evaluation Metric for Document-level Machine TranslationabstractYuchen Jiang, Tianyu Liu, Shuming Ma, Dongdong Zhang, Jian Yang, Haoyang Huang, Rico Sennrich, Ryan Cotterell, Mrinmaya Sachan, Ming Zhou. Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies. 2022. Tianyu Liu 0004, Shuming Ma, Dongdong Zhang 0001, Jian Yang 0030, Haoyang Huang, Rico Sennrich, Ryan Cotterell, Mrinmaya Sachan, Ming Zhou 0001 |
NAACL-HLT | 8 |
| 2022 | Probing via PromptingabstractProbing is a popular method to discern what linguistic information is contained in the representations of pre-trained language models.However, the mechanism of selecting the probe model has recently been subject to intense debate, as it is not clear if the probes are merely extracting information or modeling the linguistic property themselves.To address this challenge, this paper introduces a novel model-free approach to probing, by formulating probing as a prompting task.We conduct experiments on five probing tasks and show that our approach is comparable or better at extracting information than diagnostic probes while learning much less on its own.We further combine the probing via prompting approach with attention head pruning to analyze where the model stores the linguistic information in its architecture.We then examine the usefulness of a specific linguistic property for pre-training by removing the heads that are essential to that property and evaluating the resulting model's performance on language modeling. Jiaoda Li, Ryan Cotterell, Mrinmaya Sachan |
NAACL-HLT | 2 |
| 2022 | A Structured Span SelectorabstractTianyu Liu, Yuchen Jiang, Ryan Cotterell, Mrinmaya Sachan. Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies. 2022. Tianyu Liu 0004, Yuchen Eleanor Jiang, Ryan Cotterell, Mrinmaya Sachan |
NAACL-HLT | 3 |
| 2022 | Same Neurons, Different Languages: Probing Morphosyntax in Multilingual Pre-trained ModelsabstractKarolina Stanczak, Edoardo Ponti, Lucas Torroba Hennigen, Ryan Cotterell, Isabelle Augenstein. Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies. 2022. Karolina Stanczak, Edoardo Maria Ponti, Lucas Torroba Hennigen, Ryan Cotterell, Isabelle Augenstein |
NAACL-HLT | 4 |
| 2022 | On the Machine Learning of Ethical Judgments from Natural LanguageabstractZeerak Talat, Hagen Blix, Josef Valvoda, Maya Indira Ganesh, Ryan Cotterell, Adina Williams. Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies. 2022. Zeerak Talat, Hagen Blix, Josef Valvoda, Maya Indira Ganesh, Ryan Cotterell, Adina Williams |
NAACL-HLT | 5 |
| 2022 | Exact Paired-Permutation Testing for Structured Test StatisticsabstractSignificance testing-especially the pairedpermutation test-has played a vital role in developing NLP systems to provide confidence that the difference in performance between two systems (i.e., the test statistic) is not due to luck.However, practitioners rely on Monte Carlo approximation to perform this test due to a lack of a suitable exact algorithm.In this paper, we provide an efficient exact algorithm for the paired-permutation test for a family of structured test statistics.Our algorithm runs in O(GN (log GN )(log N )) time where N is the dataset size and G is the range of the test statistic.We found that our exact algorithm was 10x faster than the Monte Carlo approximation with 20000 samples on a common dataset. Ran Zmigrod, Tim Vieira, Ryan Cotterell |
NAACL-HLT | 3 |
| 2022 | On Decoding Strategies for Neural Text GeneratorsabstractAbstract When generating text from probabilistic models, the chosen decoding strategy has a profound effect on the resulting text. Yet the properties elicited by various decoding strategies do not always transfer across natural language generation tasks. For example, while mode-seeking methods like beam search perform remarkably well for machine translation, they have been observed to lead to incoherent and repetitive text in story generation. Despite such observations, the effectiveness of decoding strategies is often assessed on only a single task. This work—in contrast—provides a comprehensive analysis of the interaction between language generation tasks and decoding strategies. Specifically, we measure changes in attributes of generated text as a function of both decoding strategy and task using human and automatic evaluation. Our results reveal both previously observed and novel findings. For example, the nature of the diversity–quality trade-off in language generation is very task-specific; the length bias often attributed to beam search is not constant across tasks. https://github.com/gianwiher/decoding-NLG Clara Meister, Gian Wiher, Ryan Cotterell |
Trans. Assoc. Comput. Linguistics | 3 |
| 2021 | Language Model Evaluation Beyond PerplexityabstractClara Meister, Ryan Cotterell. Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers). 2021. Clara Meister, Ryan Cotterell |
ACL/IJCNLP (1) | 2 |
| 2021 | Determinantal Beam SearchabstractBeam search is a go-to strategy for decoding neural sequence models. The algorithm can naturally be viewed as a subset optimization problem, albeit one where the corresponding set function does not reflect interactions between candidates. Empirically, this leads to sets often exhibiting high overlap, e.g., strings may differ by only a single word. Yet in use-cases that call for multiple solutions, a diverse or representative set is often desired. To address this issue, we propose a reformulation of beam search, which we call determinantal beam search. Determinantal beam search has a natural relationship to determinantal point processes (DPPs), models over sets that inherently encode intra-set interactions. By posing iterations in beam search as a series of subdeterminant maximization problems, we can turn the algorithm into a diverse subset selection process. In a case study, we use the string subsequence kernel to explicitly encourage n-gram coverage in text generated from a sequence model. We observe that our algorithm offers competitive performance against other diverse set generation strategies in the context of language generation, while providing a more general approach to optimizing for diversity. Clara Meister, Martina Forster, Ryan Cotterell |
ACL/IJCNLP (1) | 3 |
| 2021 | A Cognitive Regularizer for Language ModelingabstractJason Wei, Clara Meister, Ryan Cotterell. Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers). 2021. Jason Wei, Clara Meister, Ryan Cotterell |
ACL/IJCNLP (1) | 3 |
| 2021 | Examining the Inductive Bias of Neural Language Models with Artificial LanguagesabstractJennifer C. White, Ryan Cotterell. Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers). 2021. Jennifer C. White, Ryan Cotterell |
ACL/IJCNLP (1) | 2 |
| 2021 | On Finding the K-best Non-projective Dependency TreesabstractRan Zmigrod, Tim Vieira, Ryan Cotterell. Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers). 2021. Ran Zmigrod, Tim Vieira, Ryan Cotterell |
ACL/IJCNLP (1) | 3 |
| 2021 | Searching for Search Errors in Neural Morphological InflectionabstractNeural sequence-to-sequence models are currently the predominant choice for language generation tasks.Yet, on word-level tasks, exact inference of these models reveals the empty string is often the global optimum.Prior works have speculated this phenomenon is a result of the inadequacy of neural models for language generation.However, in the case of morphological inflection, we find that the empty string is almost never the most probable solution under the model.Further, greedy search often finds the global optimum.These observations suggest that the poor calibration of many neural models may stem from characteristics of a specific subset of tasks rather than general ill-suitedness of such models for language generation. Martina Forster, Clara Meister, Ryan Cotterell |
EACL | 3 |
| 2021 | Disambiguatory Signals are Stronger in Word-initial PositionsabstractPsycholinguistic studies of human word processing and lexical access provide ample evidence of the preferred nature of word-initial versus word-final segments, e.g., in terms of attention paid by listeners (greater) or the likelihood of reduction by speakers (lower).This has led to the conjecture-as in Wedel et al. (2019b), but common elsewhere-that languages have evolved to provide more information earlier in words than later.Informationtheoretic methods to establish such tendencies in lexicons have suffered from several methodological shortcomings that leave open the question of whether this high word-initial informativeness is actually a property of the lexicon or simply an artefact of the incremental nature of recognition.In this paper, we point out the confounds in existing methods for comparing the informativeness of segments early in the word versus later in the word, and present several new measures that avoid these confounds.When controlling for these confounds, we still find evidence across hundreds of languages that indeed there is a cross-linguistic tendency to front-load information in words. 1 Tiago Pimentel, Ryan Cotterell, Brian Roark |
EACL | 2 |
| 2021 | Applying the Transformer to Character-level TransductionabstractThe transformer (Vaswani et al., 2017) has been shown to outperform recurrent neural network-based sequence-to-sequence models in various word-level NLP tasks.Yet for character-level transduction tasks, e.g.morphological inflection generation and historical text normalization, there are few works that outperform recurrent models using the transformer.In an empirical study, we uncover that, in contrast to recurrent sequenceto-sequence models, the batch size plays a crucial role in the performance of the transformer on character-level tasks, and we show that with a large enough batch size, the transformer does indeed outperform recurrent models.We also introduce a simple technique to handle feature-guided character-level transduction that further improves performance.With these insights, we achieve state-of-the-art performance on morphological inflection and historical text normalization.We also show that the transformer outperforms a strong baseline on two other character-level transduction tasks: grapheme-to-phoneme conversion and transliteration. Ryan Cotterell, Mans Hulden |
EACL | 2 |
| 2021 | Conditional Poisson Stochastic BeamsabstractBeam search is the default decoding strategy for many sequence generation tasks in NLP.The set of approximate K-best items returned by the algorithm is a useful summary of the distribution for many applications; however, the candidates typically exhibit high overlap and may give a highly biased estimate for expectations under our model.These problems can be addressed by instead using stochastic decoding strategies.In this work, we propose a new method for turning beam search into a stochastic process: Conditional Poisson stochastic beam search.Rather than taking the maximizing set at each iteration, we sample K candidates without replacement according to the conditional Poisson sampling design.We view this as a more natural alternative to Kool et al. (2019)'s stochastic beam search (SBS).Furthermore, we show how samples generated under the CPSBS design can be used to build consistent estimators and sample diverse sets from sequence models.In our experiments, we observe CPSBS produces lower variance and more efficient estimators than SBS, even showing improvements in high entropy settings.1 Clara Meister, Afra Amini, Tim Vieira, Ryan Cotterell |
EMNLP (1) | 4 |
| 2021 | Revisiting the Uniform Information Density HypothesisabstractThe uniform information density (UID) hypothesis posits a preference among language users for utterances structured such that information is distributed uniformly across a signal.While its implications on language production have been well explored, the hypothesis potentially makes predictions about language comprehension and linguistic acceptability as well.Further, it is unclear how uniformity in a linguistic signal-or lack thereof-should be measured, and over which linguistic unit, e.g., the sentence or language level, this uniformity should hold.Here we investigate these facets of the UID hypothesis using reading time and acceptability data.While our reading time results are generally consistent with previous work, they are also consistent with a weakly super-linear effect of surprisal, which would be compatible with UID's predictions.For acceptability judgments, we find clearer evidence that non-uniformity in information density is predictive of lower acceptability.We then explore multiple operationalizations of UID, motivated by different interpretations of the original hypothesis, and analyze the scope over which the pressure towards uniformity is exerted.The explanatory power of a subset of the proposed operationalizations suggests that the strongest trend may be a regression towards a mean surprisal across the language, rather than the phrase, sentence, or document-a finding that supports a typical interpretation of UID, namely that it is the byproduct of language users maximizing the use of a (hypothetical) communication channel. 1 Clara Meister, Tiago Pimentel, Patrick Haller 0001, Lena A. Jäger, Ryan Cotterell, Roger Levy |
EMNLP (1) | 5 |
| 2021 | A Bayesian Framework for Information-Theoretic ProbingabstractPimentel et al. (2020b) recently analysed probing from an information-theoretic perspective.They argue that probing should be seen as approximating a mutual information.This led to the rather unintuitive conclusion that representations encode exactly the same information about a target task as the original sentences.The mutual information, however, assumes the true probability distribution of a pair of random variables is known, leading to unintuitive results in settings where it is not.This paper proposes a new framework to measure what we term Bayesian mutual information, which analyses information from the perspective of Bayesian agents-allowing for more intuitive findings in scenarios with finite data.For instance, under Bayesian MI we have that data can add information, processing can help, and information can hurt, which makes it more intuitive for machine learning applications.Finally, we apply our framework to probing where we believe Bayesian mutual information naturally operationalises ease of extraction by explicitly limiting the available background knowledge to solve a task. Tiago Pimentel, Ryan Cotterell |
EMNLP (1) | 2 |
| 2021 | A surprisal-duration trade-off across and within the world's languagesabstractWhile there exist scores of natural languages, each with its unique features and idiosyncrasies, they all share a unifying theme: enabling human communication.We may thus reasonably predict that human cognition shapes how these languages evolve and are used.Assuming that the capacity to process information is roughly constant across human populations, we expect a surprisal-duration trade-off to arise both across and within languages.We analyse this trade-off using a corpus of 600 languages and, after controlling for several potential confounds, we find strong supporting evidence in both settings.Specifically, we find that, on average, phones are produced faster in languages where they are less surprising, and vice versa.Further, we confirm that more surprising phones are longer, on average, in 319 languages out of the 600.We thus conclude that there is strong evidence of a surprisal-duration trade-off in operation, both across and within the world's languages. Tiago Pimentel, Clara Meister, Elizabeth Salesky, Simone Teufel, Damián E. Blasi, Ryan Cotterell |
EMNLP (1) | 6 |
| 2021 | On Homophony and Rényi EntropyabstractHomophony's widespread presence in natural languages is a controversial topic.Recent theories of language optimality have tried to justify its prevalence, despite its negative effects on cognitive processing time; e.g., Piantadosi et al. (2012) argued homophony enables the reuse of efficient wordforms and is thus beneficial for languages.This hypothesis has recently been challenged by Trott and Bergen (2020), who posit that good wordforms are more often homophonous simply because they are more phonotactically probable.In this paper, we join in on the debate.We first propose a new information-theoretic quantification of a language's homophony: the sample Rényi entropy.Then, we use this quantification to revisit Trott and Bergen's claims.While their point is theoretically sound, a specific methodological issue in their experiments raises doubts about their results.After addressing this issue, we find no clear pressure either towards or against homophony-a much more nuanced result than either Piantadosi et al.'s or Trott and Bergen's findings. Tiago Pimentel, Clara Meister, Simone Teufel, Ryan Cotterell |
EMNLP (1) | 4 |
| 2021 | Classifying Dyads for Militarized Conflict AnalysisabstractUnderstanding the origins of militarized conflict is a complex, yet important undertaking.Existing research seeks to build this understanding by considering bi-lateral relationships between entity pairs (dyadic causes) and multi-lateral relationships among multiple entities (systemic causes).The aim of this work is to compare these two causes in terms of how they correlate with conflict between two entities.We do this by devising a set of textual and graph-based features which represent each of the causes.The features are extracted from Wikipedia and modeled as a large graph.Nodes in this graph represent entities connected by labeled edges representing ally or enemy-relationships.This allows casting the problem as an edge classification task, which we term dyad classification.We propose and evaluate classifiers to determine if a particular pair of entities are allies or enemies.Our results suggest that our systemic features might be slightly better correlates of conflict.Further, we find that Wikipedia articles of allies are semantically more similar than enemies. 1 Niklas Stoehr, Lucas Torroba Hennigen, Samin Ahbab, Robert West 0001, Ryan Cotterell |
EMNLP (1) | 5 |
| 2021 | Efficient Sampling of Dependency StructureabstractProbabilistic distributions over spanning trees in directed graphs are a fundamental model of dependency structure in natural language processing, syntactic dependency trees.In NLP, dependency trees often have an additional root constraint: only one edge may emanate from the root.However, no sampling algorithm has been presented in the literature to account for this additional constraint.In this paper, we adapt two spanning tree sampling algorithms to sample dependency trees from a graph subject to the root constraint.Wilson (1996)'s sampling algorithm has a running time of O(H) where H is the mean hitting time of the graph.Colbourn et al. (1996)'s sampling algorithm has a running time of O(N 3 ), which is often greater than the mean hitting time of a directed graph.Additionally, we build upon Colbourn's algorithm and present a novel extension that can sample K trees without replacement in O(KN 3 + K 2 N ) time.To the best of our knowledge, no algorithm has been given for sampling spanning trees without replacement from a directed graph. 1 Ran Zmigrod, Tim Vieira, Ryan Cotterell |
EMNLP (1) | 3 |
| 2021 | Do Syntactic Probes Probe Syntax? Experiments with Jabberwocky ProbingabstractAnalysing whether neural language models encode linguistic information has become popular in NLP.One method of doing so, which is frequently cited to support the claim that models like BERT encode syntax, is called probing; probes are small supervised models trained to extract linguistic information from another model's output.If a probe is able to predict a particular structure, it is argued that the model whose output it is trained on must have implicitly learnt to encode it.However, drawing a generalisation about a model's linguistic knowledge about a specific phenomena based on what a probe is able to learn may be problematic: in this work, we show that semantic cues in training data means that syntactic probes do not properly isolate syntax.We generate a new corpus of semantically nonsensical but syntactically well-formed Jabberwocky sentences, which we use to evaluate two probes trained on normal data.We train the probes on several popular language models (BERT, GPT-2, and RoBERTa), and find that in all settings they perform worse when evaluated on these data, for one probe by an average of 15.4 UUAS points absolute.Although in most cases they still outperform the baselines, their lead is reduced substantially, e.g. by 53% in the case of BERT for one probe.This begs the question: what empirical scores constitute knowing syntax? Rowan Hall Maudslay, Ryan Cotterell |
NAACL-HLT | 2 |
| 2021 | How (Non-)Optimal is the Lexicon?abstractTiago Pimentel, Irene Nikkarinen, Kyle Mahowald, Ryan Cotterell, Damián Blasi. Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies. 2021. Tiago Pimentel, Irene Nikkarinen, Kyle Mahowald, Ryan Cotterell, Damián E. Blasi |
NAACL-HLT | 4 |
| 2021 | Finding Concept-specific Biases in Form-Meaning AssociationsabstractTiago Pimentel, Brian Roark, Søren Wichmann, Ryan Cotterell, Damián Blasi. Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies. 2021. Tiago Pimentel, Brian Roark, Søren Wichmann, Ryan Cotterell, Damián E. Blasi |
NAACL-HLT | 4 |
| 2021 | What About the Precedent: An Information-Theoretic Analysis of Common LawabstractJosef Valvoda, Tiago Pimentel, Niklas Stoehr, Ryan Cotterell, Simone Teufel. Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies. 2021. Josef Valvoda, Tiago Pimentel, Niklas Stoehr, Ryan Cotterell, Simone Teufel |
NAACL-HLT | 4 |
| 2021 | A Non-Linear Structural ProbeabstractProbes are models devised to investigate the encoding of knowledge—e.g. syntactic structure—in contextual representations. Probes are often designed for simplicity, which has led to restrictions on probe design that may not allow for the full exploitation of the structure of encoded information; one such restriction is linearity. We examine the case of a structural probe (Hewitt and Manning, 2019), which aims to investigate the encoding of syntactic structure in contextual representations through learning only linear transformations. By observing that the structural probe learns a metric, we are able to kernelize it and develop a novel non-linear variant with an identical number of parameters. We test on 6 languages and find that the radial-basis function (RBF) kernel, in conjunction with regularization, achieves a statistically significant improvement over the baseline in all languages—implying that at least part of the syntactic knowledge is encoded non-linearly. We conclude by discussing how the RBF kernel resembles BERT’s self-attention layers and speculate that this resemblance leads to the RBF-based probe’s stronger performance. Jennifer C. White, Tiago Pimentel, Naomi Saphra, Ryan Cotterell |
NAACL-HLT | 4 |
| 2021 | Multimodal Pretraining Unmasked: A Meta-Analysis and a Unified Framework of Vision-and-Language BERTsabstractAbstract Large-scale pretraining and task-specific fine- tuning is now the standard methodology for many tasks in computer vision and natural language processing. Recently, a multitude of methods have been proposed for pretraining vision and language BERTs to tackle challenges at the intersection of these two key areas of AI. These models can be categorized into either single-stream or dual-stream encoders. We study the differences between these two categories, and show how they can be unified under a single theoretical framework. We then conduct controlled experiments to discern the empirical differences between five vision and language BERTs. Our experiments show that training data and hyperparameters are responsible for most of the differences between the reported results, but they also reveal that the embedding layer plays a crucial role in these massive models. Emanuele Bugliarello, Ryan Cotterell, Naoaki Okazaki, Desmond Elliott |
Trans. Assoc. Comput. Linguistics | 2 |
| 2021 | Differentiable Subset Pruning of Transformer HeadsabstractAbstract Multi-head attention, a collection of several attention mechanisms that independently attend to different parts of the input, is the key ingredient in the Transformer. Recent work has shown, however, that a large proportion of the heads in a Transformer’s multi-head attention mechanism can be safely pruned away without significantly harming the performance of the model; such pruning leads to models that are noticeably smaller and faster in practice. Our work introduces a new head pruning technique that we term differentiable subset pruning. ntuitively, our method learns per- head importance variables and then enforces a user-specified hard constraint on the number of unpruned heads. he importance variables are learned via stochastic gradient descent. e conduct experiments on natural language inference and machine translation; we show that differentiable subset pruning performs comparably or better than previous works while offering precise control of the sparsity level.1 Jiaoda Li, Ryan Cotterell, Mrinmaya Sachan |
Trans. Assoc. Comput. Linguistics | 2 |
| 2021 | Parameter Space Factorization for Zero-Shot Learning across Tasks and LanguagesabstractAbstract Most combinations of NLP tasks and language varieties lack in-domain examples for supervised training because of the paucity of annotated data. How can neural models make sample-efficient generalizations from task–language combinations with available data to low-resource ones? In this work, we propose a Bayesian generative model for the space of neural parameters. We assume that this space can be factorized into latent variables for each language and each task. We infer the posteriors over such latent variables based on data from seen task–language combinations through variational inference. This enables zero-shot classification on unseen combinations at prediction time. For instance, given training data for named entity recognition (NER) in Vietnamese and for part-of-speech (POS) tagging in Wolof, our model can perform accurate predictions for NER in Wolof. In particular, we experiment with a typologically diverse sample of 33 languages from 4 continents and 11 families, and show that our model yields comparable or better results than state-of-the-art, zero-shot cross-lingual transfer methods. Our code is available at github.com/cambridgeltl/parameter-factorization. Edoardo Maria Ponti, Ivan Vulic, Ryan Cotterell, Marinela Parovic, Roi Reichart, Anna Korhonen |
Trans. Assoc. Comput. Linguistics | 3 |
| 2021 | On the Relationships Between the Grammatical Genders of Inanimate Nouns and Their Co-Occurring Adjectives and VerbsabstractAbstract We use large-scale corpora in six different gendered languages, along with tools from NLP and information theory, to test whether there is a relationship between the grammatical genders of inanimate nouns and the adjectives used to describe those nouns. For all six languages, we find that there is a statistically significant relationship. We also find that there are statistically significant relationships between the grammatical genders of inanimate nouns and the verbs that take those nouns as direct objects, as indirect objects, and as subjects. We defer deeper investigation of these relationships for future work. Adina Williams, Lawrence Wolf-Sonkin, Damián E. Blasi, Hanna M. Wallach, Ryan Cotterell |
Trans. Assoc. Comput. Linguistics | 5 |
| 2021 | Efficient Computation of Expectations under Spanning Tree DistributionsabstractAbstract We give a general framework for inference in spanning tree models. We propose unified algorithms for the important cases of first-order expectations and second-order expectations in edge-factored, non-projective spanning-tree models. Our algorithms exploit a fundamental connection between gradients and expectations, which allows us to derive efficient algorithms. These algorithms are easy to implement with or without automatic differentiation software. We motivate the development of our framework with several cautionary tales of previous research, which has developed numerous inefficient algorithms for computing expectations and their gradients. We demonstrate how our framework efficiently computes several quantities with known algorithms, including the expected attachment score, entropy, and generalized expectation criteria. As a bonus, we give algorithms for quantities that are missing in the literature, including the KL divergence. In all cases, our approach matches the efficiency of existing algorithms and, in several cases, reduces the runtime complexity by a factor of the sentence length. We validate the implementation of our framework through runtime experiments. We find our algorithms are up to 15 and 9 times faster than previous algorithms for computing the Shannon entropy and the gradient of the generalized expectation objective, respectively. Ran Zmigrod, Tim Vieira, Ryan Cotterell |
Trans. Assoc. Comput. Linguistics | 3 |
| 2020 | It's Easier to Translate out of English than into it: Measuring Neural Translation Difficulty by Cross-Mutual InformationabstractThe performance of neural machine translation systems is commonly evaluated in terms of BLEU. However, due to its reliance on target language properties and generation, the BLEU metric does not allow an assessment of which translation directions are more difficult to model. In this paper, we propose cross-mutual information (XMI): an asymmetric information-theoretic metric of machine translation difficulty that exploits the probabilistic nature of most neural machine translation models. XMI allows us to better evaluate the difficulty of translating text into the target language while controlling for the difficulty of the target-side generation component independent of the translation task. We then present the first systematic and controlled study of cross-lingual translation difficulties using modern neural translation systems. Code for replicating our experiments is available online at https://github.com/e-bug/nmt-difficulty. Emanuele Bugliarello, Sabrina J. Mielke, Antonios Anastasopoulos, Ryan Cotterell, Naoaki Okazaki |
ACL | 4 |
| 2020 | The Paradigm Discovery ProblemabstractThis work treats the paradigm discovery problem (PDP)-the task of learning an inflectional morphological system from unannotated sentences.We formalize the PDP and develop evaluation metrics for judging systems.Using currently available resources, we construct datasets for the task.We also devise a heuristic benchmark for the PDP and report empirical results on five diverse languages.Our benchmark system first makes use of word embeddings and string similarity to cluster forms by cell and by paradigm.Then, we bootstrap a neural transducer on top of the clustered data to predict words to realize the empty paradigm slots.An error analysis of our system suggests clustering by cell across different inflection classes is the most pressing challenge for future work.Our code and data are available at https://github.com/ alexerdmann/ParadigmDiscovery. Alexander Erdmann, Micha Elsner, Ryan Cotterell, Nizar Habash |
ACL | 4 |
| 2020 | A Tale of a Probe and a ParserabstractMeasuring what linguistic information is encoded in neural models of language has become popular in NLP.Researchers approach this enterprise by training "probes"supervised models designed to extract linguistic structure from another model's output.One such probe is the structural probe (Hewitt and Manning, 2019), designed to quantify the extent to which syntactic information is encoded in contextualised word representations.The structural probe has a novel design, unattested in the parsing literature, the precise benefit of which is not immediately obvious.To explore whether syntactic probes would do better to make use of existing techniques, we compare the structural probe to a more traditional parser with an identical lightweight parameterisation.The parser outperforms structural probe on UUAS in seven of nine analysed languages, often by a substantial amount (e.g. by 11.1 points in English).Under a second less common metric, however, there is the opposite trend-the structural probe outperforms the parser.This begs the question: which metric should we prefer? Rowan Hall Maudslay, Josef Valvoda, Tiago Pimentel, Adina Williams, Ryan Cotterell |
ACL | 5 |
| 2020 | Generalized Entropy Regularization or: There's Nothing Special about Label SmoothingabstractPrior work has explored directly regularizing the output distributions of probabilistic models to alleviate peaky (i.e.over-confident) predictions, a common sign of overfitting.This class of techniques, of which label smoothing is one, has a connection to entropy regularization.Despite the consistent success of label smoothing across architectures and datasets in language generation tasks, two problems remain open:(1) there is little understanding of the underlying effects entropy regularizers have on models, and (2) the full space of entropy regularization techniques is largely unexplored.We introduce a parametric family of entropy regularizers, which includes label smoothing as a special case, and use it to gain a better understanding of the relationship between the entropy of a trained model and its performance on language generation tasks.We also find that variance in model performance can be explained largely by the resulting entropy of the model.Lastly, we find that label smoothing provably does not allow for sparse distributions, an undesirable property for language generation models, and therefore advise the use of other entropy regularization methods in its place.Our code is available online at https://github.com/ rycolab/entropyRegularization.2 H(p, q) := -z∈Z p(z) log q(z) is cross-entropy and H(p) := H(p, p) = -z∈Z p(z) log p(z) is the Shannon entropy, for which log = log 2 and Z = supp(p).3 The notation used by Pereyra et al. (2017) is imprecise. Clara Meister, Elizabeth Salesky, Ryan Cotterell |
ACL | 3 |
| 2020 | Information-Theoretic Probing for Linguistic StructureabstractThe success of neural networks on a diverse set of NLP tasks has led researchers to question how much these networks actually "know" about natural language.Probes are a natural way of assessing this.When probing, a researcher chooses a linguistic task and trains a supervised model to predict annotations in that linguistic task from the network's learned representations.If the probe does well, the researcher may conclude that the representations encode knowledge related to the task.A commonly held belief is that using simpler models as probes is better; the logic is that simpler models will identify linguistic structure, but not learn the task itself.We propose an information-theoretic operationalization of probing as estimating mutual information that contradicts this received wisdom: one should always select the highest performing probe one can, even if it is more complex, since it will result in a tighter estimate, and thus reveal more of the linguistic information inherent in the representation.The experimental portion of our paper focuses on empirically estimating the mutual information between a linguistic property and BERT, comparing these estimates to several baselines.We evaluate on a set of ten typologically diverse languages often underrepresented in NLP research-plus Englishtotalling eleven languages.Our implementation is available in https://github.com/ rycolab/info-theoretic-probing. Tiago Pimentel, Josef Valvoda, Rowan Hall Maudslay, Ran Zmigrod, Adina Williams, Ryan Cotterell |
ACL | 6 |
| 2020 | A Corpus for Large-Scale Phonetic TypologyabstractA major hurdle in data-driven research on typology is having sufficient data in many languages to draw meaningful conclusions. We present VoxClamantis v1.0, the first large-scale corpus for phonetic typology, with aligned segments and estimated phoneme-level labels in 690 readings spanning 635 languages, along with acoustic-phonetic measures of vowels and sibilants. Access to such data can greatly facilitate investigation of phonetic typology at a large scale and across many languages. However, it is non-trivial and computationally intensive to obtain such alignments for hundreds of languages, many of which have few to no resources presently available. We describe the methodology to create our corpus, discuss caveats with current methods and their impact on the utility of this data, and illustrate possible research directions through a series of case studies on the 48 highest-quality readings. Our corpus and scripts are publicly available for non-commercial use at https://voxclamantisproject.github.io. Elizabeth Salesky, Eleanor Chodroff, Tiago Pimentel, Matthew Wiesner, Ryan Cotterell, Alan W. Black, Jason Eisner |
ACL | 5 |
| 2020 | Predicting Declension Class from Form and MeaningabstractThe noun lexica of many natural languages are divided into several declension classes with characteristic morphological properties.Class membership is far from deterministic, but the phonological form of a noun and its meaning can often provide imperfect clues.Here, we investigate the strength of those clues.More specifically, we operationalize "strength" as measuring how much information, in bits, we can glean about declension class from knowing the form and meaning of nouns.We know that form and meaning are often also indicative of grammatical gender-which, as we quantitatively verify, can itself share information with declension class-so we also control for gender.We find for two Indo-European languages (Czech and German) that form and meaning share a significant amount of information with class (and contribute additional information beyond gender).The three-way interaction between class, form, and meaning (given gender) is also significant.Our study is important for two reasons: First, we introduce a new method that provides additional quantitative support for a classic linguistic finding that form and meaning are relevant for the classification of nouns into declensions.Second, we show not only that individual declension classes vary in the strength of their clues within a language, but also that the variations between classes vary across languages.The code is publicly available at https://github.com/ rycolab/declension-mi. Adina Williams, Tiago Pimentel, Hagen Blix, Arya McCarthy, Eleanor Chodroff, Ryan Cotterell |
ACL | 6 |
| 2020 | Morphologically Aware Word-Level TranslationabstractWe propose a novel morphologically aware probability model for bilingual lexicon induction, which jointly models lexeme translation and inflectional morphology in a structured way.Our model exploits the basic linguistic intuition that the lexeme is the key lexical unit of meaning, while inflectional morphology provides additional syntactic information.This approach leads to substantial performance improvements-19% average improvement in accuracy across 6 language pairs over the state of the art in the supervised setting and 16% in the weakly supervised setting.As another contribution, we highlight issues associated with modern BLI that stem from ignoring inflectional morphology, and propose three suggestions for improving the task. Paula Czarnowska, Sebastian Ruder, Ryan Cotterell, Ann A. Copestake |
COLING | 3 |
| 2020 | Intrinsic Probing through Dimension SelectionabstractMost modern NLP systems make use of pretrained contextual representations that attain astonishingly high performance on a variety of tasks.Such high performance should not be possible unless some form of linguistic structure inheres in these representations, and a wealth of research has sprung up on probing for it.In this paper, we draw a distinction between intrinsic probing, which examines how linguistic information is structured within a representation, and the extrinsic probing popular in prior work, which only argues for the presence of such information by showing that it can be successfully extracted.To enable intrinsic probing, we propose a novel framework based on a decomposable multivariate Gaussian probe that allows us to determine whether the linguistic information in word embeddings is dispersed or focal.We then probe fastText and BERT for various morphosyntactic attributes across 36 languages.We find that most attributes are reliably encoded by only a few neurons, with fastText concentrating its linguistic structure more than BERT. 1 Lucas Torroba Hennigen, Adina Williams, Ryan Cotterell |
EMNLP (1) | 3 |
| 2020 | Investigating Cross-Linguistic Adjective Ordering Tendencies with a Latent-Variable ModelabstractAcross languages, multiple consecutive adjectives modifying a noun (e.g."the big red dog") follow certain unmarked ordering rules.While explanatory accounts have been put forward, much of the work done in this area has relied primarily on the intuitive judgment of native speakers, rather than on corpus data.We present the first purely corpus-driven model of multi-lingual adjective ordering in the form of a latent-variable model that can accurately order adjectives across 24 different languages, even when the training and testing languages are different.We utilize this novel statistical model to provide strong converging evidence for the existence of universal, cross-linguistic, hierarchical adjective ordering tendencies. Jun Yen Leung, Guy Emerson, Ryan Cotterell |
EMNLP (1) | 3 |
| 2020 | Measuring the Similarity of Grammatical Gender Systems by Comparing PartitionsabstractA grammatical gender system divides a lexicon into a small number of relatively fixed grammatical categories.How similar are these gender systems across languages?To quantify the similarity, we define gender systems extensionally, thereby reducing the problem of comparisons between languages' gender systems to cluster evaluation.We borrow a rich inventory of statistical tools for cluster evaluation from the field of community detection (Driver and Kroeber, 1932;Cattell, 1945), that enable us to craft novel information-theoretic metrics for measuring similarity between gender systems.We first validate our metrics, then use them to measure gender system similarity in 20 languages.Finally, we ask whether our gender system similarities alone are sufficient to reconstruct historical relationships between languages.Towards this end, we make phylogenetic predictions on the popular, but thorny, problem from historical linguistics of inducing a phylogenetic tree over extant Indo-European languages.Languages on the same branch of our phylogenetic tree are notably similar, whereas languages from separate branches are no more similar than chance. Arya McCarthy, Adina Williams, Shijia Liu, David Yarowsky, Ryan Cotterell |
EMNLP (1) | 5 |
| 2020 | If beam search is the answer, what was the question?abstractQuite surprisingly, exact maximum a posteriori (MAP) decoding of neural language generators frequently leads to low-quality results (Stahlberg and Byrne, 2019).Rather, most state-of-the-art results on language generation tasks are attained using beam search despite its overwhelmingly high search error rate.This implies that the MAP objective alone does not express the properties we desire in text, which merits the question: if beam search is the answer, what was the question?We frame beam search as the exact solution to a different decoding objective in order to gain insights into why high probability under a model alone may not indicate adequacy.We find that beam search enforces uniform information density in text, a property motivated by cognitive science.We suggest a set of decoding objectives that explicitly enforce this property and find that exact decoding with these objectives alleviates the problems encountered when decoding poorly calibrated language generation models.Additionally, we analyze the text produced using various decoding strategies and see that, in our neural machine translation experiments, the extent to which this property is adhered to strongly correlates with BLEU. Clara Meister, Ryan Cotterell, Tim Vieira |
EMNLP (1) | 2 |
| 2020 | Speakers Fill Lexical Semantic Gaps with ContextabstractLexical ambiguity is widespread in language, allowing for the reuse of economical word forms and therefore making language more efficient.If ambiguous words cannot be disambiguated from context, however, this gain in efficiency might make language less clearresulting in frequent miscommunication.For a language to be clear and efficiently encoded, we posit that the lexical ambiguity of a word type should correlate with how much information context provides about it, on average.To investigate whether this is the case, we operationalise the lexical ambiguity of a word as the entropy of meanings it can take, and provide two ways to estimate this-one which requires human annotation (using WordNet), and one which does not (using BERT), making it readily applicable to a large number of languages.We validate these measures by showing that, on six high-resource languages, there are significant Pearson correlations between our BERT-based estimate of ambiguity and the number of synonyms a word has in Word-Net (e.g.ρ = 0.40 in English).We then test our main hypothesis-that a word's lexical ambiguity should negatively correlate with its contextual uncertainty-and find significant correlations on all 18 typologically diverse languages we analyse.This suggests that, in the presence of ambiguity, speakers compensate by making contexts more informative. Tiago Pimentel, Rowan Hall Maudslay, Damián E. Blasi, Ryan Cotterell |
EMNLP (1) | 4 |
| 2020 | Pareto Probing: Trading Off Accuracy for ComplexityabstractThe question of how to probe contextual word representations for linguistic structure in a way that is both principled and useful has seen significant attention recently in the NLP literature.In our contribution to this discussion, we argue for a probe metric that reflects the fundamental trade-off between probe complexity and performance: the Pareto hypervolume.To measure complexity, we present a number of parametric and non-parametric metrics.Our experiments using Pareto hypervolume as an evaluation metric show that probes often do not conform to our expectations-e.g., why should the non-contextual fastText representations encode more morpho-syntactic information than the contextual BERT representations?These results suggest that common, simplistic probing tasks, such as part-of-speech labeling and dependency arc labeling, are inadequate to evaluate the linguistic structure encoded in contextual word representations.This leads us to propose full dependency parsing as a probing task.In support of our suggestion that harder probing tasks are necessary, our experiments with dependency parsing reveal a wide gap in syntactic knowledge between contextual and non-contextual representations.Our code can be found at https://github. com/rycolab/pareto-probing. Tiago Pimentel, Naomi Saphra, Adina Williams, Ryan Cotterell |
EMNLP (1) | 4 |
| 2020 | Exploring the Linear Subspace Hypothesis in Gender Bias MitigationabstractBolukbasi et al. (2016) presents one of the first gender bias mitigation techniques for word embeddings.Their method takes pre-trained word embeddings as input and attempts to isolate a linear subspace that captures most of the gender bias in the embeddings.As judged by an analogical evaluation task, their method virtually eliminates gender bias in the embeddings.However, an implicit and untested assumption of their method is that the bias subspace is actually linear.In this work, we generalize their method to a kernelized, non-linear version.We take inspiration from kernel principal component analysis and derive a nonlinear bias isolation technique.We discuss and overcome some of the practical drawbacks of our method for non-linear gender bias mitigation in word embeddings and analyze empirically whether the bias subspace is actually linear.Our analysis shows that gender bias is in fact well captured by a linear subspace, justifying the assumption of Bolukbasi et al. (2016). Francisco Vargas 0001, Ryan Cotterell |
EMNLP (1) | 2 |
| 2020 | Please Mind the Root: Decoding Arborescences for Dependency ParsingabstractThe connection between dependency trees and spanning trees is exploited by the NLP community to train and to decode graph-based dependency parsers.However, the NLP literature has missed an important difference between the two structures: only one edge may emanate from the root in a dependency tree.We analyzed the output of state-of-the-art parsers on many languages from the Universal Dependency Treebank: although these parsers are often able to learn that trees which violate the constraint should be assigned lower probabilities, their ability to do so unsurprisingly degrades as the size of the training set decreases.In fact, the worst constraint-violation rate we observe is 24%.Prior work has proposed an inefficient algorithm to enforce the constraint, which adds a factor of n to the decoding runtime.We adapt an algorithm due to Gabow and Tarjan (1984) to dependency parsing, which satisfies the constraint without compromising the original runtime. 1 Ran Zmigrod, Tim Vieira, Ryan Cotterell |
EMNLP (1) | 3 |
| 2020 | UniMorph 3.0: Universal MorphologyabstractThe Universal Morphology (UniMorph) project is a collaborative effort providing broad-coverage instantiated normalized morphological paradigms for hundreds of diverse world languages. The project comprises two major thrusts: a language-independent feature schema for rich morphological annotation and a type-level resource of annotated data in diverse languages realizing that schema. We have implemented several improvements to the extraction pipeline which creates most of our data, so that it is both more complete and more correct. We have added 66 new languages, as well as new parts of speech for 12 languages. We have also amended the schema in several ways. Finally, we present three new community tools: two to validate data for resource creators, and one to make morphological data available from the command line. UniMorph is based at the Center for Language and Speech Processing (CLSP) at Johns Hopkins University in Baltimore, Maryland. This paper details advances made to the schema, tooling, and dissemination of project resources since the UniMorph 2.0 release described at LREC 2018. Arya McCarthy, Christo Kirov, Matteo Grella, Amrit Nidhi, Patrick Xia 0002, Kyle Gorman, Ekaterina Vylomova, Sabrina J. Mielke, Garrett Nicolai, Miikka Silfverberg, Timofey Arkhangelskiy, Nataly Krizhanovsky, Andrew Krizhanovsky, Elena Klyachko, Alexey Sorokin, John Mansfield, Valts Ernstreits, Yuval Pinter, Cassandra L. Jacobs, Ryan Cotterell, Mans Hulden, David Yarowsky |
LREC | 20 |
| 2020 | Best-First Beam SearchabstractDecoding for many NLP tasks requires an effective heuristic algorithm for approximating exact search because the problem of searching the full output space is often intractable, or impractical in many settings. The default algorithm for this job is beam search—a pruned version of breadth-first search. Quite surprisingly, beam search often returns better results than exact inference due to beneficial search bias for NLP tasks. In this work, we show that the standard implementation of beam search can be made up to 10x faster in practice. Our method assumes that the scoring function is monotonic in the sequence length, which allows us to safely prune hypotheses that cannot be in the final set of hypotheses early on. We devise effective monotonic approximations to popular nonmonontic scoring functions, including length normalization and mutual information decoding. Lastly, we propose a memory-reduced variant of best-first beam search, which has a similar beneficial search bias in terms of downstream performance, but runs in a fraction of the time. Clara Meister, Ryan Cotterell, Tim Vieira |
Trans. Assoc. Comput. Linguistics | 2 |
| 2020 | Phonotactic Complexity and its Trade-offsabstractWe present methods for calculating a measure of phonotactic complexity—bits per phoneme— that permits a straightforward cross-linguistic comparison. When given a word, represented as a sequence of phonemic segments such as symbols in the international phonetic alphabet, and a statistical model trained on a sample of word types from the language, we can approximately measure bits per phoneme using the negative log-probability of that word under the model. This simple measure allows us to compare the entropy across languages, giving insight into how complex a language’s phonotactics is. Using a collection of 1016 basic concept words across 106 languages, we demonstrate a very strong negative correlation of − 0.74 between bits per phoneme and the average length of words. Tiago Pimentel, Brian Roark, Ryan Cotterell |
Trans. Assoc. Comput. Linguistics | 3 |
| 2019 | Uncovering Probabilistic Implications in Typological Knowledge BasesabstractThe study of linguistic typology is rooted in the implications we find between linguistic features, such as the fact that languages with object-verb word ordering tend to have postpositions. Uncovering such implications typically amounts to time-consuming manual processing by trained and experienced linguists, which potentially leaves key linguistic universals unexplored. In this paper, we present a computational model which successfully identifies known universals, including Greenberg universals, but also uncovers new ones, worthy of further linguistic investigation. Our approach outperforms baselines previously used for this problem, as well as a strong baseline from knowledge base population. Johannes Bjerva, Yova Kementchedjhieva, Ryan Cotterell, Isabelle Augenstein |
ACL (1) | 3 |
| 2019 | On the Distribution of Deep Clausal Embeddings: A Large Cross-linguistic StudyabstractEmbedding a clause inside another ("the girl [who likes cars [that run fast]] has arrived") is a fundamental resource that has been argued to be a key driver of linguistic expressiveness.As such, it plays a central role in fundamental debates on what makes human language unique, and how they might have evolved.Empirical evidence on the prevalence and the limits of embeddings has however been based on either laboratory setups or corpus data of relatively limited size.We introduce here a collection of large, dependencyparsed written corpora in 17 languages, that allow us, for the first time, to capture clausal embedding through dependency graphs and assess their distribution.Our results indicate that there is no evidence for hard constraints on embedding depth: the tail of depth distributions is heavy.Moreover, although deeply embedded clauses tend to be shorter, suggesting processing load issues, complex sentences with many embeddings do not display a bias towards less deep embeddings.Taken together, the results suggest that deep embeddings are not disfavored in written language.More generally, our study illustrates how resources and methods from latest-generation big-data NLP can provide new perspectives on fundamental questions in theoretical linguistics. Damián E. Blasi, Ryan Cotterell, Lawrence Wolf-Sonkin, Sabine Stoll, Balthasar Bickel, Marco Baroni |
ACL (1) | 2 |
| 2019 | Unsupervised Discovery of Gendered Language through Latent-Variable ModelingabstractStudying the ways in which language is gendered has long been an area of interest in sociolinguistics.Studies have explored, for example, the speech of male and female characters in film and the language used to describe male and female politicians.In this paper, we aim not to merely study this phenomenon qualitatively, but instead to quantify the degree to which the language used to describe men and women is different and, moreover, different in a positive or negative way.To that end, we introduce a generative latent-variable model that jointly represents adjective (or verb) choice, with its sentiment, given the natural gender of a head (or dependent) noun.We find that there are significant differences between descriptions of male and female nouns and that these differences align with common gender stereotypes: Positive adjectives used to describe women are more often related to their bodies than adjectives used to describe men. Alexander Miserlis Hoyle, Lawrence Wolf-Sonkin, Hanna M. Wallach, Isabelle Augenstein, Ryan Cotterell |
ACL (1) | 5 |
| 2019 | What Kind of Language Is Hard to Language-Model?abstractHow language-agnostic are current state-ofthe-art NLP tools?Are there some types of language that are easier to model with current methods?In prior work (Cotterell et al., 2018) we attempted to address this question for language modeling, and observed that recurrent neural network language models do not perform equally well over all the highresource European languages found in the Europarl corpus.We speculated that inflectional morphology may be the primary culprit for the discrepancy.In this paper, we extend these earlier experiments to cover 69 languages from 13 language families using a multilingual Bible corpus.Methodologically, we introduce a new paired-sample multiplicative mixed-effects model to obtain language difficulty coefficients from at-least-pairwise parallel corpora.In other words, the model is aware of inter-sentence variation and can handle missing data.Exploiting this model, we show that "translationese" is not any easier to model than natively written language in a fair comparison.Trying to answer the question of what features difficult languages have in common, we try and fail to reproduce our earlier (Cotterell et al., 2018) observation about morphological complexity and instead reveal far simpler statistics of the data that seem to drive complexity in a much larger sample. Difficulty estimation from sentence surprisal Sabrina J. Mielke, Ryan Cotterell, Kyle Gorman, Brian Roark, Jason Eisner |
ACL (1) | 2 |
| 2019 | Meaning to Form: Measuring Systematicity as InformationabstractA longstanding debate in semiotics centers on the relationship between linguistic signs and their corresponding semantics: is there an arbitrary relationship between a word form and its meaning, or does some systematic phenomenon pervade?For instance, does the character bigram gl have any systematic relationship to the meaning of words like glisten, gleam and glow?In this work, we offer a holistic quantification of the systematicity of the sign using mutual information and recurrent neural networks.We employ these in a data-driven and massively multilingual approach to the question, examining 106 languages.We find a statistically significant reduction in entropy when modeling a word form conditioned on its semantic representation.Encouragingly, we also recover wellattested English examples of systematic affixes.We conclude with the meta-point: Our approximate effect size (measured in bits) is quite small-despite some amount of systematicity between form and meaning, an arbitrary relationship and its resulting benefits dominate human language. Tiago Pimentel, Arya McCarthy, Damián E. Blasi, Brian Roark, Ryan Cotterell |
ACL (1) | 5 |
| 2019 | Exact Hard Monotonic Attention for Character-Level TransductionabstractMany common character-level, string-tostring transduction tasks, e.g.graphemeto-phoneme conversion and morphological inflection, consist almost exclusively of monotonic transduction.Neural sequence-tosequence models with soft attention, which are non-monotonic, often outperform popular monotonic models.In this work, we ask the following question: Is monotonicity really a helpful inductive bias in these tasks?We develop a hard attention sequence-to-sequence model that enforces strict monotonicity and learns a latent alignment jointly while learning to transduce.With the help of dynamic programming, we are able to compute the exact marginalization over all monotonic alignments.Our models achieve state-of-the-art performance on morphological inflection.Furthermore, we find strong performance on two other character-level transduction tasks.Code is available at https://github.com/ shijie-wu/neural-transducer. Ryan Cotterell |
ACL (1) | 2 |
| 2019 | Morphological Irregularity Correlates with FrequencyabstractWe present a study of morphological irregularity. Following recent work, we define an information-theoretic measure of irregularity based on the predictability of forms in a language. Using a neural transduction model, we estimate this quantity for the forms in 28 languages. We first present several validatory and exploratory analyses of irregularity. We then show that our analyses provide evidence for a correlation between irregularity and frequency: higher frequency items are more likely to be irregular and irregular items are more likely be highly frequent. To our knowledge, this result is the first of its breadth and confirms longstanding proposals from the linguistics literature. The correlation is more robust when aggregated at the level of whole paradigms—providing support for models of linguistic structure in which inflected forms are unified by abstract underlying stems or lexemes. Ryan Cotterell, Timothy J. O'Donnell |
ACL (1) | 2 |
| 2019 | Counterfactual Data Augmentation for Mitigating Gender Stereotypes in Languages with Rich MorphologyabstractGender stereotypes are manifest in most of the world's languages and are consequently propagated or amplified by NLP systems.Although research has focused on mitigating gender stereotypes in English, the approaches that are commonly employed produce ungrammatical sentences in morphologically rich languages.We present a novel approach for converting between masculine-inflected and feminineinflected sentences in such languages.For Spanish and Hebrew, our approach achieves F 1 scores of 82% and 73% at the level of tags and accuracies of 90% and 87% at the level of forms.By evaluating our approach using four different languages, we show that, on average, it reduces gender stereotyping by a factor of 2.5 without any sacrifice to grammaticality. Ran Zmigrod, Sabrina J. Mielke, Hanna M. Wallach, Ryan Cotterell |
ACL (1) | 4 |
| 2019 | Weird Inflects but OK: Making Sense of Morphological Generation ErrorsabstractWe conduct a manual error analysis of the CoNLL-SIGMORPHON 2017 Shared Task on Morphological Reinflection.In this task, systems are given a word in citation form (e.g., hug) and asked to produce the corresponding inflected form (e.g., the simple past hugged).This design lets us analyze errors much like we might analyze children's production errors.We propose an error taxonomy and use it to annotate errors made by the top two systems across twelve languages.Many of the observed errors are related to inflectional patterns sensitive to inherent linguistic properties such as animacy or affect; many others are failures to predict truly unpredictable inflectional behaviors.We also find nearly one quarter of the residual "errors" reflect errors in the gold data. Kyle Gorman, Arya McCarthy, Ryan Cotterell, Ekaterina Vylomova, Miikka Silfverberg, Magdalena Markowska |
CoNLL | 3 |
| 2019 | Don't Forget the Long Tail! A Comprehensive Analysis of Morphological Generalization in Bilingual Lexicon InductionabstractPaula Czarnowska, Sebastian Ruder, Edouard Grave, Ryan Cotterell, Ann Copestake. Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP). 2019. Paula Czarnowska, Sebastian Ruder, Edouard Grave, Ryan Cotterell, Ann A. Copestake |
EMNLP/IJCNLP (1) | 4 |
| 2019 | It's All in the Name: Mitigating Gender Bias with Name-Based Counterfactual Data SubstitutionabstractRowan Hall Maudslay, Hila Gonen, Ryan Cotterell, Simone Teufel. Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP). 2019. Rowan Hall Maudslay, Hila Gonen, Ryan Cotterell, Simone Teufel |
EMNLP/IJCNLP (1) | 3 |
| 2019 | Towards Zero-shot Language ModelingabstractEdoardo Maria Ponti, Ivan Vulić, Ryan Cotterell, Roi Reichart, Anna Korhonen. Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP). 2019. Edoardo Maria Ponti, Ivan Vulic, Ryan Cotterell, Roi Reichart, Anna Korhonen |
EMNLP/IJCNLP (1) | 3 |
| 2019 | Quantifying the Semantic Core of Gender SystemsabstractAdina Williams, Damian Blasi, Lawrence Wolf-Sonkin, Hanna Wallach, Ryan Cotterell. Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP). 2019. Adina Williams, Damián E. Blasi, Lawrence Wolf-Sonkin, Hanna M. Wallach, Ryan Cotterell |
EMNLP/IJCNLP (1) | 5 |
| 2019 | Examining Gender Bias in Languages with Grammatical GenderabstractPei Zhou, Weijia Shi, Jieyu Zhao, Kuan-Hao Huang, Muhao Chen, Ryan Cotterell, Kai-Wei Chang. Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP). 2019. Jieyu Zhao 0001, Kuan-Hao Huang, Muhao Chen 0001, Ryan Cotterell, Kai-Wei Chang 0001 |
EMNLP/IJCNLP (1) | 6 |
| 2019 | On the Complexity and Typology of Inflectional Morphological SystemsabstractWe quantify the linguistic complexity of different languages’ morphological systems. We verify that there is a statistically significant empirical trade-off between paradigm size and irregularity: A language’s inflectional paradigms may be either large in size or highly irregular, but never both. We define a new measure of paradigm irregularity based on the conditional entropy of the surface realization of a paradigm— how hard it is to jointly predict all the word forms in a paradigm from the lemma. We estimate irregularity by training a predictive model. Our measurements are taken on large morphological paradigms from 36 typologically diverse languages. Ryan Cotterell, Christo Kirov, Mans Hulden, Jason Eisner |
Trans. Assoc. Comput. Linguistics | 1 |
| 2018 | A Structured Variational Autoencoder for Contextual Morphological InflectionabstractStatistical morphological inflectors are typically trained on fully supervised, type-level data.One remaining open research question is the following: How can we effectively exploit raw, token-level data to improve their performance?To this end, we introduce a novel generative latent-variable model for the semi-supervised learning of inflection generation.To enable posterior inference over the latent variables, we derive an efficient variational inference procedure based on the wake-sleep algorithm.We experiment on 23 languages, using the Universal Dependencies corpora in a simulated low-resource setting, and find improvements of over 10% absolute accuracy in some cases. Lawrence Wolf-Sonkin, Jason Naradowsky, Sabrina J. Mielke, Ryan Cotterell |
ACL (1) | 4 |
| 2018 | Generalizing Procrustes Analysis for Better Bilingual Dictionary InductionabstractMost recent approaches to bilingual dictionary induction find a linear alignment between the word vector spaces of two languages. We show that projecting the two languages onto a third, latent space, rather than directly onto each other, while equivalent in terms of expressivity, makes it easier to learn approximate alignments. Our modified approach also allows for supporting languages to be included in the alignment process, to obtain an even better performance in low resource settings. Yova Kementchedjhieva, Sebastian Ruder, Ryan Cotterell, Anders Søgaard |
CoNLL | 3 |
| 2018 | A Discriminative Latent-Variable Model for Bilingual Lexicon InductionabstractWe introduce a novel discriminative latentvariable model for the task of bilingual lexicon induction.Our model combines the bipartite matching dictionary prior of Haghighi et al. (2008) with a state-of-the-art embeddingbased approach.To train the model, we derive an efficient Viterbi EM algorithm.We provide empirical improvements on six language pairs under two metrics and show that the prior theoretically and empirically helps to mitigate the hubness problem.We also demonstrate how previous work may be viewed as a similarly fashioned latent-variable model, albeit with a different prior. 1 * The first two authors contributed equally. Sebastian Ruder, Ryan Cotterell, Yova Kementchedjhieva, Anders Søgaard |
EMNLP | 2 |
| 2018 | Hard Non-Monotonic Attention for Character-Level TransductionabstractCharacter-level string-to-string transduction is an important component of various NLP tasks.The goal is to map an input string to an output string, where the strings may be of different lengths and have characters taken from different alphabets.Recent approaches have used sequence-to-sequence models with an attention mechanism to learn which parts of the input string the model should focus on during the generation of the output string.Both soft attention and hard monotonic attention have been used, but hard non-monotonic attention has only been used in other sequence modeling tasks such as image captioning (Xu et al., 2015) and has required a stochastic approximation to compute the gradient.In this work, we introduce an exact, polynomial-time algorithm for marginalizing over the exponential number of non-monotonic alignments between two strings, showing that hard attention models can be viewed as neural reparameterizations of the classical IBM Model 1.We compare soft and hard non-monotonic attention experimentally and find that the exact algorithm significantly improves performance over the stochastic approximation and outperforms soft attention. Pamela Shapiro, Ryan Cotterell |
EMNLP | 3 |
| 2018 | UniMorph 2.0: Universal Morphology
Christo Kirov, Ryan Cotterell, John Sylak-Glassman, Géraldine Walther, Ekaterina Vylomova, Patrick Xia 0002, Manaal Faruqui, Sabrina J. Mielke, Arya McCarthy, Sandra Kübler, David Yarowsky, Jason Eisner, Mans Hulden |
LREC | 2 |
| 2018 | A Deep Generative Model of Vowel Formant TypologyabstractRyan Cotterell, Jason Eisner. Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers). 2018. Ryan Cotterell, Jason Eisner |
NAACL-HLT | 1 |
| 2018 | Joint Semantic Synthesis and Morphological Analysis of the Derived WordabstractMuch like sentences are composed of words, words themselves are composed of smaller units. For example, the English word questionably can be analyzed as question+ able+ ly. However, this structural decomposition of the word does not directly give us a semantic representation of the word’s meaning. Since morphology obeys the principle of compositionality, the semantics of the word can be systematically derived from the meaning of its parts. In this work, we propose a novel probabilistic model of word formation that captures both the analysis of a word w into its constituent segments and the synthesis of the meaning of w from the meanings of those segments. Our model jointly learns to segment words into morphemes and compose distributional semantic vectors of those morphemes. We experiment with the model on English CELEX data and German DErivBase (Zeller et al., 2013) data. We show that jointly modeling semantics increases both segmentation accuracy and morpheme F 1 by between 3% and 5%. Additionally, we investigate different models of vector composition, showing that recurrent neural networks yield an improvement over simple additive models. Finally, we study the degree to which the representations correspond to a linguist’s notion of morphological productivity. Ryan Cotterell, Hinrich Schütze |
Trans. Assoc. Comput. Linguistics | 1 |
| 2018 | Recurrent Neural Networks in Linguistic Theory: Revisiting Pinker and Prince (1988) and the Past Tense DebateabstractCan advances in NLP help advance cognitive modeling? We examine the role of artificial neural networks, the current state of the art in many common NLP tasks, by returning to a classic case study. In 1986, Rumelhart and McClelland famously introduced a neural architecture that learned to transduce English verb stems to their past tense forms. Shortly thereafter in 1988, Pinker and Prince presented a comprehensive rebuttal of many of Rumelhart and McClelland’s claims. Much of the force of their attack centered on the empirical inadequacy of the Rumelhart and McClelland model. Today, however, that model is severely outmoded. We show that the Encoder-Decoder network architectures used in modern NLP systems obviate most of Pinker and Prince’s criticisms without requiring any simplification of the past tense mapping problem. We suggest that the empirical performance of modern networks warrants a reexamination of their utility in linguistic and cognitive modeling. Christo Kirov, Ryan Cotterell |
Trans. Assoc. Comput. Linguistics | 2 |
| 2017 | Probabilistic Typology: Deep Generative Models of Vowel InventoriesabstractLinguistic typology studies the range of structures present in human language.The main goal of the field is to discover which sets of possible phenomena are universal, and which are merely frequent.For example, all languages have vowels, while most-but not all-languages have an [u] sound.In this paper we present the first probabilistic treatment of a basic question in phonological typology: What makes a natural vowel inventory?We introduce a series of deep stochastic point processes, and contrast them with previous computational, simulation-based approaches.We provide a comprehensive suite of experiments on over 200 distinct languages. Ryan Cotterell, Jason Eisner |
ACL (1) | 1 |
| 2017 | One-Shot Neural Cross-Lingual Transfer for Paradigm CompletionabstractWe present a novel cross-lingual transfer method for paradigm completion, the task of mapping a lemma to its inflected forms, using a neural encoder-decoder model, the state of the art for the monolingual task.We use labeled data from a high-resource language to increase performance on a lowresource language.In experiments on 21 language pairs from four different language families, we obtain up to 58% higher accuracy than without transfer and show that even zero-shot and one-shot learning are possible.We further find that the degree of language relatedness strongly influences the ability to transfer morphological knowledge. Katharina Kann, Ryan Cotterell, Hinrich Schütze |
ACL (1) | 2 |
| 2017 | Neural Multi-Source Morphological ReinflectionabstractWe explore the task of multi-source morphological reinflection, which generalizes the standard, single-source version.The input consists of (i) a target tag and (ii) multiple pairs of source form and source tag for a lemma.The motivation is that it is beneficial to have access to more than one source form since different source forms can provide complementary information, e.g., different stems.We further present a novel extension to the encoder-decoder recurrent neural architecture, consisting of multiple encoders, to better solve the task.We show that our new architecture outperforms single-source reinflection models and publish our dataset for multi-source morphological reinflection to facilitate future research. Katharina Kann, Ryan Cotterell, Hinrich Schütze |
EACL (1) | 2 |
| 2017 | Cross-lingual Character-Level Neural Morphological TaggingabstractEven for common NLP tasks, sufficient supervision is not available in many languages-morphological tagging is no exception.In the work presented here, we explore a transfer learning scheme, whereby we train character-level recurrent neural taggers to predict morphological taggings for high-resource languages and low-resource languages together.Learning joint character representations among multiple related languages successfully enables knowledge transfer from the high-resource languages to the low-resource ones, improving accuracy by up to 30%. Ryan Cotterell, Georg Heigold |
EMNLP | 1 |
| 2017 | Paradigm Completion for Derivational MorphologyabstractThe generation of complex derived word forms has been an overlooked problem in NLP; we fill this gap by applying neural sequence-to-sequence models to the task.We overview the theoretical motivation for a paradigmatic treatment of derivational morphology, and introduce the task of derivational paradigm completion as a parallel to inflectional paradigm completion.State-of-the-art neural models, adapted from the inflection task, are able to learn a range of derivation patterns, and outperform a non-neural baseline by 16.4%.However, due to semantic, historical, and lexical considerations involved in derivational morphology, future work will be needed to achieve performance parity with inflection-generating systems. Ryan Cotterell, Ekaterina Vylomova, Huda Khayrallah, Christo Kirov, David Yarowsky |
EMNLP | 1 |
| 2016 | Morphological Smoothing and Extrapolation of Word EmbeddingsabstractLanguages with rich inflectional morphology exhibit lexical data sparsity, since the word used to express a given concept will vary with the syntactic context.For instance, each count noun in Czech has 12 forms (where English uses only singular and plural).Even in large corpora, we are unlikely to observe all inflections of a given lemma.This reduces the vocabulary coverage of methods that induce continuous representations for words from distributional corpus information.We solve this problem by exploiting existing morphological resources that can enumerate a word's component morphemes.We present a latentvariable Gaussian graphical model that allows us to extrapolate continuous representations for words not observed in the training corpus, as well as smoothing the representations provided for the observed words.The latent variables represent embeddings of morphemes, which combine to create embeddings of words.Over several languages and training sizes, our model improves the embeddings for words, when evaluated on an analogy task, skip-gram predictive accuracy, and word similarity. Ryan Cotterell, Hinrich Schütze, Jason Eisner |
ACL (1) | 1 |
| 2016 | Morphological Segmentation Inside-OutabstractMorphological segmentation has traditionally been modeled with non-hierarchical models, which yield flat segmentations as output.In many cases, however, proper morphological analysis requires hierarchical structureespecially in the case of derivational morphology.In this work, we introduce a discriminative, joint model of morphological segmentation along with the orthographic changes that occur during word formation.To the best of our knowledge, this is the first attempt to approach discriminative segmentation with a context-free model.Additionally, we release an annotated treebank of 7454 English words with constituency parses, encouraging future research in this area.1 Ryan Cotterell, Arun Kumar 0011, Hinrich Schütze |
EMNLP | 1 |
| 2016 | Neural Morphological Analysis: Encoding-Decoding Canonical SegmentsabstractCanonical morphological segmentation aims to divide words into a sequence of standardized segments.In this work, we propose a character-based neural encoderdecoder model for this task.Additionally, we extend our model to include morphemelevel and lexical information through a neural reranker.We set the new state of the art for the task improving previous results by up to 21% accuracy.Our experiments cover three languages: English, German and Indonesian.RR ED Joint WFST UB error en .19(.01) .25 (.01) 0.27 (.02) 0.63 (.01) .06(.01) de .20 (.01) .26(.02) 0.41 (.03) 0.74 (.01) .04(.01) id .05(.01) .09(.01) 0.10 (.01) 0.71 (.01) .02(.01) edit en .21(.02) .47(.02) 0.98 (.34) 1.35 (.01) .10(.02) de .29 (.02) .51(.03) 1.01 (.07) 4.24 (.20) .06(.01) id .05(.00) .12(.01) 0.15 (.02) 2.13 (.01) .02(.01) F1 Katharina Kann, Ryan Cotterell, Hinrich Schütze |
EMNLP | 2 |
| 2016 | Speed-Accuracy Tradeoffs in Tagging with Variable-Order CRFs and Structured SparsityabstractWe propose a method for learning the structure of variable-order CRFs, a more flexible variant of higher-order linear-chain CRFs.Variableorder CRFs achieve faster inference by including features for only some of the tag ngrams.Our learning method discovers the useful higher-order features at the same time as it trains their weights, by maximizing an objective that combines log-likelihood with a structured-sparsity regularizer.An active-set outer loop allows the feature set to grow as far as needed.On part-of-speech tagging in 5 randomly chosen languages from the Universal Dependencies dataset, our method of shrinking the model achieved a 2-6x speedup over a baseline, with no significant drop in accuracy. Tim Vieira, Ryan Cotterell, Jason Eisner |
EMNLP | 2 |
| 2016 | A Joint Model of Orthography and Morphological SegmentationabstractWe present a model of morphological segmentation that jointly learns to segment and restore orthographic changes, e.g., funniest → fun-y-est.We term this form of analysis canonical segmentation and contrast it with the traditional surface segmentation, which segments a surface form into a sequence of substrings, e.g., funniest → funn-i-est.We derive an importance sampling algorithm for approximate inference in the model and report experimental results on English, German and Indonesian. Ryan Cotterell, Tim Vieira, Hinrich Schütze |
HLT-NAACL | 1 |
| 2016 | Weighting Finite-State Transductions With Neural ContextabstractHow should one apply deep learning to tasks such as morphological reinflection, which stochastically edit one string to get another?A recent approach to such sequence-to-sequence tasks is to compress the input string into a vector that is then used to generate the output string, using recurrent neural networks.In contrast, we propose to keep the traditional architecture, which uses a finite-state transducer to score all possible output strings, but to augment the scoring function with the help of recurrent networks.A stack of bidirectional LSTMs reads the input string from leftto-right and right-to-left, in order to summarize the input context in which a transducer arc is applied.We combine these learned features with the transducer to define a probability distribution over aligned output strings, in the form of a weighted finite-state automaton.This reduces hand-engineering of features, allows learned features to examine unbounded context in the input string, and still permits exact inference through dynamic programming.We illustrate our method on the tasks of morphological reinflection and lemmatization. Pushpendre Rastogi, Ryan Cotterell, Jason Eisner |
HLT-NAACL | 2 |
| 2015 | Labeled Morphological Segmentation with Semi-Markov ModelsabstractWe present labeled morphological segmentation-an alternative view of morphological processing that unifies several tasks.We introduce a new hierarchy of morphotactic tagsets and CHIPMUNK, a discriminative morphological segmentation system that, contrary to previous work, explicitly models morphotactics.We show improved performance on three tasks for all six languages: (i) morphological segmentation, (ii) stemming and (iii) morphological tag classification.For morphological segmentation our method shows absolute improvements of 2-6 points F 1 over a strong baseline. Ryan Cotterell, Thomas Müller 0009, Alexander Fraser 0001, Hinrich Schütze |
CoNLL | 1 |
| 2015 | Joint Lemmatization and Morphological Tagging with LemmingabstractWe present LEMMING, a modular loglinear model that jointly models lemmatization and tagging and supports the integration of arbitrary global features.It is trainable on corpora annotated with gold standard tags and lemmata and does not rely on morphological dictionaries or analyzers.LEMMING sets the new state of the art in token-based statistical lemmatization on six languages; e.g., for Czech lemmatization, we reduce the error by 60%, from 4.05 to 1.58.We also give empirical evidence that jointly modeling morphological tags and lemmata is mutually beneficial. Thomas Müller 0009, Ryan Cotterell, Alexander Fraser 0001, Hinrich Schütze |
EMNLP | 2 |
| 2015 | Dual Decomposition Inference for Graphical Models over StringsabstractWe investigate dual decomposition for joint MAP inference of many strings.Given an arbitrary graphical model, we decompose it into small acyclic sub-models, whose MAP configurations can be found by finite-state composition and dynamic programming.We force the solutions of these subproblems to agree on overlapping variables, by tuning Lagrange multipliers for an adaptively expanding set of variable-length n-gram count features.This is the first inference method for arbitrary graphical models over strings that does not require approximations such as random sampling, message simplification, or a bound on string length.Provided that the inference method terminates, it gives a certificate of global optimality (though MAP inference in our setting is undecidable in general).On our global phonological inference problems, it always terminates, and achieves more accurate results than max-product and sum-product loopy belief propagation. Nanyun Peng 0001, Ryan Cotterell, Jason Eisner |
EMNLP | 2 |
| 2015 | Penalized Expectation Propagation for Graphical Models over StringsabstractWe present penalized expectation propagation (PEP), a novel algorithm for approximate inference in graphical models. Expectation propagation is a variant of loopy belief propagation that keeps messages tractable by projecting them back into a given family of functions. Our extension, PEP, uses a structuredsparsity penalty to encourage simple messages, thus balancing speed and accuracy. We specifically show how to instantiate PEP in the case of string-valued random variables, where we adaptively approximate finite-state distributions by variable-order n-gram models. On phonological inference problems, we obtain substantial speedup over previous related algorithms with no significant loss in accuracy. Ryan Cotterell, Jason Eisner |
HLT-NAACL | 1 |
| 2015 | Morphological Word-EmbeddingsabstractLinguistic similarity is multi-faceted.For instance, two words may be similar with respect to semantics, syntax, or morphology inter alia.Continuous word-embeddings have been shown to capture most of these shades of similarity to some degree.This work considers guiding word-embeddings with morphologically annotated data, a form of semisupervised learning, encouraging the vectors to encode a word's morphology, i.e., words close in the embedded space share morphological features.We extend the log-bilinear model to this end and show that indeed our learned embeddings achieve this, using German as a case study. Ryan Cotterell, Hinrich Schütze |
HLT-NAACL | 1 |
| 2015 | Modeling Word Forms Using Latent Underlying Morphs and PhonologyabstractThe observed pronunciations or spellings of words are often explained as arising from the “underlying forms” of their morphemes. These forms are latent strings that linguists try to reconstruct by hand. We propose to reconstruct them automatically at scale, enabling generalization to new words. Given some surface word types of a concatenative language along with the abstract morpheme sequences that they express, we show how to recover consistent underlying forms for these morphemes, together with the (stochastic) phonology that maps each concatenation of underlying forms to a surface form. Our technique involves loopy belief propagation in a natural directed graphical model whose variables are unknown strings and whose conditional distributions are encoded as finite-state machines with trainable weights. We define training and evaluation paradigms for the task of surface word prediction, and report results on subsets of 7 languages. Ryan Cotterell, Nanyun Peng 0001, Jason Eisner |
Trans. Assoc. Comput. Linguistics | 1 |
| 2014 | A Multi-Dialect, Multi-Genre Corpus of Informal Written Arabic
Ryan Cotterell, Chris Callison-Burch |
LREC | 1 |