Timothy J. O'Donnell
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Research Subjects
Timothy J. O'Donnell has a total of 55 co-authors. Here are the top co-authors by number of shared publications:
- Morgan Sonderegger
Department of Linguistics, McGill University, Montreal, Quebec, Canada
2 shared publications - Ryan Cotterell
ETH Zurich
2 shared publications Alena A. Egner
Department of Psychology, Harvard University, Cambridge, MA 02138, USA
1 shared publication- Alessandro Sordoni
Microsoft Research Montreal
1 shared publication - Alexander K. Lew
Yale
1 shared publication - Amanda Doucette
Dept. of Linguistics McGill University
1 shared publication
Latest Publications
- Open Access
Syntactic and Semantic Control of Large Language Models via Sequential Monte Carlo
A 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 8x 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 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.
Open AccessSyntactic and Semantic Control of Large Language Models via Sequential Monte Carlo
A 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 8x 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 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.
- Open Access
- 1 January 2025
- Published by Association for Computational Linguistics (ACL)
- p. 27995-28013
Information Locality as an Inductive Bias for Neural Language Models
Taiga 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.
- 1 January 2025
- Published by Association for Computational Linguistics (ACL)
- p. 27995-28013
Open AccessInformation Locality as an Inductive Bias for Neural Language Models
Taiga 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.
- Open Access
- 1 January 2025
- Published by Association for Computational Linguistics (ACL)
- p. 66-76
Unzipping the Causality of Zipf’s Law and Other Lexical Trade-offs
Amanda Doucette, Timothy J. O’Donnell, Morgan Sonderegger. Proceedings of the Workshop on Cognitive Modeling and Computational Linguistics. 2025.
- 1 January 2025
- Published by Association for Computational Linguistics (ACL)
- p. 66-76
Open AccessUnzipping the Causality of Zipf’s Law and Other Lexical Trade-offs
Amanda Doucette, Timothy J. O’Donnell, Morgan Sonderegger. Proceedings of the Workshop on Cognitive Modeling and Computational Linguistics. 2025.
- Open Access
When does word order matter and when doesn't it?
Language models (LMs) may appear insensitive to word order changes in natural language understanding (NLU) tasks. In this paper, we propose that linguistic redundancy can explain this phenomenon, whereby word order and other linguistic cues such as case markers provide overlapping and thus redundant information. Our hypothesis is that models exhibit insensitivity to word order when the order provides redundant information, and the degree of insensitivity varies across tasks. We quantify how informative word order is using mutual information (MI) between unscrambled and scrambled sentences. Our results show the effect that the less informative word order is, the more consistent the model's predictions are between unscrambled and scrambled sentences. We also find that the effect varies across tasks: for some tasks, like SST-2, LMs' prediction is almost always consistent with the original one even if the Pointwise-MI (PMI) changes, while for others, like RTE, the consistency is near random when the PMI gets lower, i.e., word order is really important.
Open AccessWhen does word order matter and when doesn't it?
Language models (LMs) may appear insensitive to word order changes in natural language understanding (NLU) tasks. In this paper, we propose that linguistic redundancy can explain this phenomenon, whereby word order and other linguistic cues such as case markers provide overlapping and thus redundant information. Our hypothesis is that models exhibit insensitivity to word order when the order provides redundant information, and the degree of insensitivity varies across tasks. We quantify how informative word order is using mutual information (MI) between unscrambled and scrambled sentences. Our results show the effect that the less informative word order is, the more consistent the model's predictions are between unscrambled and scrambled sentences. We also find that the effect varies across tasks: for some tasks, like SST-2, LMs' prediction is almost always consistent with the original one even if the Pointwise-MI (PMI) changes, while for others, like RTE, the consistency is near random when the PMI gets lower, i.e., word order is really important.
- Open Access
- 7 January 2024
- Published by Open Library of the Humanities in Glossa: A Journal of General Linguistics
- Vol. 9 (1)
Investigating the universality of consonant and vowel co-occurrence restrictions
Certain phonotactic constraints on the co-occurrence of segments appear to be much more common across the world’s languages than others. In many languages, similar consonant co-occurrence is restricted through Obligatory Contour Principle (OCP) effects, while there are some exceptions for identical consonants. In vowels, the opposite pattern appears to hold: many languages have vowel harmony processes, where vowels within a domain are required to share some feature. Languages that encourage similar consonant co-occurrence or restrict similar vowel co-occurrence appear to be exceedingly uncommon. However, evidence of this pattern so far only comes from studies of individual languages or families, or of only consonants or vowels. We investigate patterns of co-occurrence in vowels and consonants in 107 Northern Eurasian languages across 21 families using Bayesian negative binomial regression to explicitly model the effects of aggregate similarity and segment identity on co-occurrence counts (the results of which can be interpreted similarly to observed/expected ratios). We find that the effect of similarity is remarkably consistent across languages: Similar consonant co-occurrence is disfavored, while aggregate similarity has no effect on vowel co-occurrence. Identical segment co-occurrence effects are much more variable across languages, with a tendency towards disfavoring identical consonants, and favoring identical vowels. We also find larger effects in consonants than in vowels, suggesting that consonant co-occurrence is more strongly constrained than vowel co-occurrence. We also find that there is no evidence for or against any correlations between vowel and consonant co-occurrence, suggesting that more data is needed to evaluate this possibility.
- 7 January 2024
- Published by Open Library of the Humanities in Glossa: A Journal of General Linguistics
- Vol. 9 (1)
Open AccessInvestigating the universality of consonant and vowel co-occurrence restrictions
Certain phonotactic constraints on the co-occurrence of segments appear to be much more common across the world’s languages than others. In many languages, similar consonant co-occurrence is restricted through Obligatory Contour Principle (OCP) effects, while there are some exceptions for identical consonants. In vowels, the opposite pattern appears to hold: many languages have vowel harmony processes, where vowels within a domain are required to share some feature. Languages that encourage similar consonant co-occurrence or restrict similar vowel co-occurrence appear to be exceedingly uncommon. However, evidence of this pattern so far only comes from studies of individual languages or families, or of only consonants or vowels. We investigate patterns of co-occurrence in vowels and consonants in 107 Northern Eurasian languages across 21 families using Bayesian negative binomial regression to explicitly model the effects of aggregate similarity and segment identity on co-occurrence counts (the results of which can be interpreted similarly to observed/expected ratios). We find that the effect of similarity is remarkably consistent across languages: Similar consonant co-occurrence is disfavored, while aggregate similarity has no effect on vowel co-occurrence. Identical segment co-occurrence effects are much more variable across languages, with a tendency towards disfavoring identical consonants, and favoring identical vowels. We also find larger effects in consonants than in vowels, suggesting that consonant co-occurrence is more strongly constrained than vowel co-occurrence. We also find that there is no evidence for or against any correlations between vowel and consonant co-occurrence, suggesting that more data is needed to evaluate this possibility.
- Open Access
- 28 December 2022
- Published by Institute of Computer Science, Polish Academy of Sciences in Journal of Language Modelling
- Vol. 10 (2) , 241–286
Simplicity and learning to distinguish arguments from modifiers
We present a learnability analysis of the argument-modifier distinction, asking whether there is information in the distribution of English constituents that could allow learners to identify which constituents are arguments and which are modifiers. We first develop a general description of some of the ways in which arguments and modifiers differ in distribution. We then identify two models from the literature that can capture these differences, which we call the argument-only model and the argument-modifier model. We employ these models using a common learning framework based on two simplicity biases which tradeoff against one another. The first bias favors a small lexicon with highly reusable lexical items, and the second, opposing, bias favors simple derivations of individual forms – those using small numbers of lexical items. Our first empirical study shows that the argument-modifier model is able to recover the argument-modifier status of many individual constituents when evaluated against a gold standard. This provides evidence in favor of our general account of the distributional differences between arguments and modifiers. It also suggests a kind of lower bound on the amount of information that a suitably equipped learner could use to identify which phrases are arguments or modifiers. We then present a series of analyses investigating how and why the argument-modifier model is able to recover the argument-modifier status of some constituents. In particular, we show that the argumentmodifier model is able to provide a simpler description of the input corpus than the argument-only model, both in terms of lexicon size, and in terms of the complexity of individual derivations. Intuitively, the argument-modifier model is able to do this because it is able to ignore spurious modifier structure when learning the lexicon. These analyses further support our general account of the differences between arguments and modifiers, as well as our simplicity-based approach to learning.
- 28 December 2022
- Published by Institute of Computer Science, Polish Academy of Sciences in Journal of Language Modelling
- Vol. 10 (2) , 241–286
Open AccessSimplicity and learning to distinguish arguments from modifiers
We present a learnability analysis of the argument-modifier distinction, asking whether there is information in the distribution of English constituents that could allow learners to identify which constituents are arguments and which are modifiers. We first develop a general description of some of the ways in which arguments and modifiers differ in distribution. We then identify two models from the literature that can capture these differences, which we call the argument-only model and the argument-modifier model. We employ these models using a common learning framework based on two simplicity biases which tradeoff against one another. The first bias favors a small lexicon with highly reusable lexical items, and the second, opposing, bias favors simple derivations of individual forms – those using small numbers of lexical items. Our first empirical study shows that the argument-modifier model is able to recover the argument-modifier status of many individual constituents when evaluated against a gold standard. This provides evidence in favor of our general account of the distributional differences between arguments and modifiers. It also suggests a kind of lower bound on the amount of information that a suitably equipped learner could use to identify which phrases are arguments or modifiers. We then present a series of analyses investigating how and why the argument-modifier model is able to recover the argument-modifier status of some constituents. In particular, we show that the argumentmodifier model is able to provide a simpler description of the input corpus than the argument-only model, both in terms of lexicon size, and in terms of the complexity of individual derivations. Intuitively, the argument-modifier model is able to do this because it is able to ignore spurious modifier structure when learning the lexicon. These analyses further support our general account of the differences between arguments and modifiers, as well as our simplicity-based approach to learning.
- Open Access
Characterizing Idioms: Conventionality and Contingency
Idioms are unlike most phrases in two important ways. First, the words in an idiom have non-canonical meanings. Second, the non-canonical meanings of words in an idiom are contingent on the presence of other words in the idiom. Linguistic theories differ on whether these properties depend on one another, as well as whether special theoretical machinery is needed to accommodate idioms. We define two measures that correspond to the properties above, and we implement them using BERT (Devlin et al., 2019) and XLNet(Yang et al., 2019). We show that idioms fall at the expected intersection of the two dimensions, but that the dimensions themselves are not correlated. Our results suggest that special machinery to handle idioms may not be warranted.
Open AccessCharacterizing Idioms: Conventionality and Contingency
Idioms are unlike most phrases in two important ways. First, the words in an idiom have non-canonical meanings. Second, the non-canonical meanings of words in an idiom are contingent on the presence of other words in the idiom. Linguistic theories differ on whether these properties depend on one another, as well as whether special theoretical machinery is needed to accommodate idioms. We define two measures that correspond to the properties above, and we implement them using BERT (Devlin et al., 2019) and XLNet(Yang et al., 2019). We show that idioms fall at the expected intersection of the two dimensions, but that the dimensions themselves are not correlated. Our results suggest that special machinery to handle idioms may not be warranted.
- Open Access
Linguistic Dependencies and Statistical Dependence
Are pairs of words that tend to occur together also likely to stand in a linguistic dependency? This empirical question is motivated by a long history of literature in cognitive science, psycholinguistics, and NLP. In this work we contribute an extensive analysis of the relationship between linguistic dependencies and statistical dependence between words. Improving on previous work, we introduce the use of large pretrained language models to compute contextualized estimates of the pointwise mutual information between words (CPMI). For multiple models and languages, we extract dependency trees which maximize CPMI, and compare to gold standard linguistic dependencies. Overall, we find that CPMI dependencies achieve an unlabelled undirected attachment score of at most $\approx 0.5$. While far above chance, and consistently above a non-contextualized PMI baseline, this score is generally comparable to a simple baseline formed by connecting adjacent words. We analyze which kinds of linguistic dependencies are best captured in CPMI dependencies, and also find marked differences between the estimates of the large pretrained language models, illustrating how their different training schemes affect the type of dependencies they capture.Open AccessLinguistic Dependencies and Statistical Dependence
Are pairs of words that tend to occur together also likely to stand in a linguistic dependency? This empirical question is motivated by a long history of literature in cognitive science, psycholinguistics, and NLP. In this work we contribute an extensive analysis of the relationship between linguistic dependencies and statistical dependence between words. Improving on previous work, we introduce the use of large pretrained language models to compute contextualized estimates of the pointwise mutual information between words (CPMI). For multiple models and languages, we extract dependency trees which maximize CPMI, and compare to gold standard linguistic dependencies. Overall, we find that CPMI dependencies achieve an unlabelled undirected attachment score of at most $\approx 0.5$. While far above chance, and consistently above a non-contextualized PMI baseline, this score is generally comparable to a simple baseline formed by connecting adjacent words. We analyze which kinds of linguistic dependencies are best captured in CPMI dependencies, and also find marked differences between the estimates of the large pretrained language models, illustrating how their different training schemes affect the type of dependencies they capture. - 5 January 2022
- Published by MIT Press in Linguistic Inquiry
- Vol. 53 (1) , 87-120
Statistical Evidence for Learnable Lexical Subclasses in Japanese
It has been proposed that the Japanese lexicon can be divided into etymologically defined sublexica on phonotactic and other grounds. However, the psychological reality of this sublexical analysis has been challenged by some authors who have appealed to putative problem with the learnability of the system. In this study, we apply a commonly used clustering method to Japanese words and show that there is robust statistical evidence for the sublexica and, thereby, that such sublexica are learnable. The model is able to recover phonotactic properties of sublexica previously discussed in the literature, and also reveals hitherto unnoticed phonotactic properties which are characteristic of sublexical membership and which can serve as a basis for future experimental investigations. The proposed approach is general and based purely on phonotactic information and thus can be applied to other languages. It has been proposed that the Japanese lexicon can be divided into etymologically defined sublexica on phonotactic and other grounds. However, the psychological reality of this sublexical analysis has been challenged by some authors who have appealed to putative problem with the learnability of the system. In this study, we apply a commonly used clustering method to Japanese words and show that there is robust statistical evidence for the sublexica and, thereby, that such sublexica are learnable. The model is able to recover phonotactic properties of sublexica previously discussed in the literature, and also reveals hitherto unnoticed phonotactic properties which are characteristic of sublexical membership and which can serve as a basis for future experimental investigations. The proposed approach is general and based purely on phonotactic information and thus can be applied to other languages. It has been proposed that the Japanese lexicon can be divided into etymologically defined sublexica on phonotactic and other grounds. However, the psychological reality of this sublexical analysis has been challenged by some authors who have appealed to putative problem with the learnability of the system. In this study, we apply a commonly used clustering method to Japanese words and show that there is robust statistical evidence for the sublexica and, thereby, that such sublexica are learnable. The model is able to recover phonotactic properties of sublexica previously discussed in the literature, and also reveals hitherto unnoticed phonotactic properties which are characteristic of sublexical membership and which can serve as a basis for future experimental investigations. The proposed approach is general and based purely on phonotactic information and thus can be applied to other languages.
- 5 January 2022
- Published by MIT Press in Linguistic Inquiry
- Vol. 53 (1) , 87-120
Statistical Evidence for Learnable Lexical Subclasses in Japanese
It has been proposed that the Japanese lexicon can be divided into etymologically defined sublexica on phonotactic and other grounds. However, the psychological reality of this sublexical analysis has been challenged by some authors who have appealed to putative problem with the learnability of the system. In this study, we apply a commonly used clustering method to Japanese words and show that there is robust statistical evidence for the sublexica and, thereby, that such sublexica are learnable. The model is able to recover phonotactic properties of sublexica previously discussed in the literature, and also reveals hitherto unnoticed phonotactic properties which are characteristic of sublexical membership and which can serve as a basis for future experimental investigations. The proposed approach is general and based purely on phonotactic information and thus can be applied to other languages. It has been proposed that the Japanese lexicon can be divided into etymologically defined sublexica on phonotactic and other grounds. However, the psychological reality of this sublexical analysis has been challenged by some authors who have appealed to putative problem with the learnability of the system. In this study, we apply a commonly used clustering method to Japanese words and show that there is robust statistical evidence for the sublexica and, thereby, that such sublexica are learnable. The model is able to recover phonotactic properties of sublexica previously discussed in the literature, and also reveals hitherto unnoticed phonotactic properties which are characteristic of sublexical membership and which can serve as a basis for future experimental investigations. The proposed approach is general and based purely on phonotactic information and thus can be applied to other languages. It has been proposed that the Japanese lexicon can be divided into etymologically defined sublexica on phonotactic and other grounds. However, the psychological reality of this sublexical analysis has been challenged by some authors who have appealed to putative problem with the learnability of the system. In this study, we apply a commonly used clustering method to Japanese words and show that there is robust statistical evidence for the sublexica and, thereby, that such sublexica are learnable. The model is able to recover phonotactic properties of sublexica previously discussed in the literature, and also reveals hitherto unnoticed phonotactic properties which are characteristic of sublexical membership and which can serve as a basis for future experimental investigations. The proposed approach is general and based purely on phonotactic information and thus can be applied to other languages.
- Open Access
Probing Linguistic Systematicity
Recently, there has been much interest in the question of whether deep natural language understanding models exhibit systematicity; generalizing such that units like words make consistent contributions to the meaning of the sentences in which they appear. There is accumulating evidence that neural models often generalize non-systematically. We examined the notion of systematicity from a linguistic perspective, defining a set of probes and a set of metrics to measure systematic behaviour. We also identified ways in which network architectures can generalize non-systematically, and discuss why such forms of generalization may be unsatisfying. As a case study, we performed a series of experiments in the setting of natural language inference (NLI), demonstrating that some NLU systems achieve high overall performance despite being non-systematic.
Open AccessProbing Linguistic Systematicity
Recently, there has been much interest in the question of whether deep natural language understanding models exhibit systematicity; generalizing such that units like words make consistent contributions to the meaning of the sentences in which they appear. There is accumulating evidence that neural models often generalize non-systematically. We examined the notion of systematicity from a linguistic perspective, defining a set of probes and a set of metrics to measure systematic behaviour. We also identified ways in which network architectures can generalize non-systematically, and discuss why such forms of generalization may be unsatisfying. As a case study, we performed a series of experiments in the setting of natural language inference (NLI), demonstrating that some NLU systems achieve high overall performance despite being non-systematic.