McGill University
Beyond maximum-likelihood training: analysis and methods for building robust language generation models
Abstract
dc:description.abstractLarge language generation models have seen a step change in their capabilities in the last few years, and these models are now being widely deployed in user-facing applications such as search, email, and customer support. Despite these apparent successes, these models suffer from robustness issues such as degeneration, self-repetition, or copying from context, and sensitivity to prompts and decoding hyperparameters. Additionally, given the user-facing nature of these applications, there is a significant concern with the lack of controllability and safety with these models, such as them exhibiting toxicity during generation, amplifying societal and cultural biases, and suffering from hallucinations. This thesis analyzes and alleviates some of these robustness and safety issues by linking them to two major weaknesses of standard maximum likelihood training. The first weakness we study in this thesis is the myopia of the maximum likelihood paradigm, i.e.; it reduces model training for language generation—a sequential decision-making problem, to a per-step classification problem. The second weakness we highlight is the inability of maximum likelihood paradigm to explicitly incorporating user preferences, i.e.; its rigidity.We analyze the first weakness from a theoretically grounded imitation learning perspective and an entropy-centric perspective. These analyses partially explain how maximum likelihood training results in language degeneration and sensitivity to decoding hyperparameters, especially degeneration under greedy decoding and robustness under stochastic decoding methods. We also use our learnings from the entropy-centric analysis to propose an entropy-aware sampling method that overcomes language degeneration despite acting greedily most of the time.We address the second weakness by proposing an architecture and a training approach that augments the maximum likelihood objective and allows for explicitly incorporating human preferences. This helps the model avoid degenerate, harmful, and undesirable behavior such as repetition, toxicity, and self-contradiction during generation
Degree
thesis:*- Name thesis:degree_name
- Doctor of Philosophy
- Grantor dc:publisher
- McGill University
- Year dc:date.issued
- 2025
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Arora, Kushal
- Advisors dc:contributor.advisor
-
- Cheung, Jackie (Supervisor2)
- Precup, Doina (Supervisor1)
Subjects
dc:subject × 1Rights
dc:rights- Statement dc:rights
-
- All items in eScholarship@McGill are protected by copyright with all rights reserved unless otherwise indicated.
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- OCLC
- 1535346382
- Identifier URI
- https://hdl.handle.net/20.500.14905/94966
- Dc Identifier Other
- hyrax:6q182r93r