Abstract
dc:description.abstractFine-tuning large language models (LLMs) typically requires a large number of input-output x, y pairs. In common fine-tuning practices, a model learns from input-output pairs provided by a dataset. However, for many tasks—particularly reasoning tasks—there can be multiple valid ways to express either the input or the output while still solving the same problem. For example, a question might allow several equivalent answers, or rephrasing the input in certain ways could lead the model to generate a better response. This thesis explores methods to augment the original dataset by systematically creating such variations of input-output pairs, with the goal of making reasoning more efficient. In the first part of this thesis, we explore how data augmentation focused on model failure cases can improve reasoning performance. We first identify inputs where the model frequently produces incorrect or inconsistent outputs, and generate augmented training examples that simulate these errors and their corrections. These examples are then used to train specialized prompts—short input patterns that guide the model to correct its own mistakes. At test time, we design a regeneration pipeline: a lightweight semantic checker detects potential errors, and the trained prompts are inserted into the input to help the model revise its output. This augmentation-driven approach teaches the model how to self-correct and leads to improved semantic fidelity without sacrificing fluency. In the second part of our research, we generalize this approach beyond data-to-text tasks and explore how to select the best output (y) given an input (x) across a range of reasoning tasks. We discover that familiarity plays a crucial role in improving model performance. Specifically, target models perform better when trained on LLM-generated responses—whether from the target model itself or another LLM—due to their higher familiarity with this type of response. This is reflected in higher likelihood/ perplexity scores prior to fine-tuning, indicating that the model is more accustomed to generating LLM-style responses. To leverage this insight, we propose a minimum-change strategy, where we minimally edit the target model’s own predictions to ensure correctness while maximizing familiarity. This strategy results in a better balance between familiarity and correctness, leading to improved training performance. In the third part of the research, we focus on optimizing the process of selecting the best strategy for generating outputs. Given an input (x), we examine how to choose the most effective response-generation strategy. We refine the concept of perplexity into self-aligned perplexity, which conditions likelihood on the model’s own stylistic anchor, ensuring that the generated response aligns with the target model’s preferred style. This allows us to efficiently select the optimal response-generation strategy from a set of candidates using only a small sample. By leveraging self-aligned perplexity, we can quickly identify the best strategy for generating responses that are both effective and aligned with the model’s training. Together, these studies show that augmenting failure cases with extra examples boosts performance. We further propose a familiarity-based perspective: fine-tuning works better when target responses align with the model’s native style. Finally, using self-aligned perplexity allows us to cheaply select the best response-generation strategy, enhancing fine-tuning efficiency.
Degree
thesis:*- College dc:contributor.school
- School of Computer and Mathematical Sciences
- Year dc:date.issued
- 2025
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Ren, Xuan
- Advisors dc:contributor.advisor
-
- Liu, Lingqiao
- Xu, Hai-Ming
Subjects
dc:subject × 3Rights
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- Handle dc:identifier.uri
- https://hdl.handle.net/2440/152867