arXiv(opens in a new tab)cs.CLAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.26676

FOCUS & RePAIR: Mitigating Text Degeneration via Token-Level Guidance for Pruned Large Language Models

Junyoung Lee, Sehyeon Park, Shinhyoung Jang, Seonha Ryu, Hojeong Kim, Hyunsei Lee, Il Hong Suh, Yeseong Kim

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Pruning is a practical approach to compress large language models (LLMs), but it can amplify text degeneration, especially repetition loops, even when perplexity and task accuracy remain largely unchanged. In this work, we present a token-level analysis of this failure mode by viewing decoding as a dynamical process that enters and persists in a small set of recurrent contexts. Our analysis decomposes degeneration into loop entry risk and loop persistence, and shows that persistence is controlled by the escape mass assigned to plausible alternatives within the token sampling set. Motivated by these findings, we propose two token-level guidance objectives for post-pruning fine-tuning. FOCUS reweights distillation toward high-confidence teacher regions to suppress leakage, while RePAIR uses onset-centered positive/negative continuation pairs with a margin loss to promote plausible alternatives and prevent early commitment to repetition loops. Experiments on open-ended continuation and instruction-based generation show that both methods consistently reduce repetition and improve generation quality.

1. Introduction

Large language models (LLMs) have become foundational in a broad spectrum of applications, ranging from dialogue systems and code assistants to knowledge-intensive question-answering and content generation (Minaee et al., 2025; Jiang et al., 2024; Yue, 2025). In practical deploy-

1^{1}Department of Electrical Engineering and Computer Science, POSTECH, Pohang, Republic of Korea 2^{2}Department of Electrical Engineering and Computer Science, Daegu Gyeongbuk Institute of Science and Technology (DGIST), Daegu, Republic of Korea 3^{3}Hanyang University, Seoul, Republic of Korea. Correspondence to: Junyoung Lee lolcy3205@postech.ac.kr, Yeseong Kim yeseongkim@postech.ac.kr.

Proceedings of the 43rd43^{rd} International Conference on Machine Learning, Seoul, South Korea. PMLR 306, 2026. Copyright 2026 by the author(s).

Table 1. Comparison of repetition rates between unpruned and pruned models. The pruned model is finetuned on the Alpaca dataset. For decoding, we employ top-p sampling with p = 0.9.

ConditionSamplingGreedy
Unpruned5.9%26.6%
Width pruned12.4%63.1%
Depth pruned15.4%63.7%

ments, the execution of large models is far from straightforward: Inference latency escalates dramatically under constrained serving budgets, and memory requirements often exceed the limits of commodity hardware (Chitty-Venkata et al., 2024; Pope et al., 2022). To manage these constraints, prior research has developed pruning strategies, ranging from depth pruning, which eliminates entire transformer blocks, to width pruning, which removes internal submodules such as attention heads or MLP channels (Ma et al., 2023; Kim et al., 2024; Frantar & Alistarh, 2023; Lee et al., 2025). Because pruning inevitably discards parameters that encode useful behaviors, practitioners typically perform a post-pruning finetuning stage to restore degraded capabilities. For example, these techniques recover knowledge in pruning settings with a relatively small dataset, e.g., the Alpaca dataset with its instruction–response pairs (Taori et al., 2023).

Most prior work on pruning has focused on knowledge preservation (Li et al., 2024; Park et al., 2024). Standard evaluations assess whether a pruned model preserves perplexity, zero-shot accuracy, and downstream task performance relative to its unpruned counterpart. However, there is growing empirical evidence that pruning can also introduce undesirable side effects, even when principal metrics such as perplexity or accuracy appear to be intact (Liebenwein et al., 2021; Jordao & Pedrini, 2021; Jaiswal et al., 2024). A primary issue is text degeneration, where the model repeatedly generates the same words or phrases, for example: "<prefix> ... for the deceased. The cemetery is designed to be a peaceful place. The cemetery is designed to be a peaceful place. The cemetery is designed to be a peaceful place. ...". To demonstrate this, we generate 200 tokens from the WikiText-103 dataset using a 50-token prefix with both the unpruned Llama model and the pruned model after fine-tuning. A sentence is classified as repetitive if repeated segments account for the majority of the generated text, as further discussed in Section 3. As shown in Table 1, the degeneration phenomenon becomes more severe after pruning in both cases. This observation indicates that, although simple fine-tuning can recover knowledge to some extent, it remains essential to mitigate the side effects that arise during text generation.

Previous studies have noted that text degeneration occurs when previously generated tokens increase the likelihood of the model producing the same tokens again (Holtzman et al., 2020; Welleck et al., 2019; Xu et al., 2022). To address this, these approaches lower the probabilities of previously generated tokens while increasing those of tokens that have not appeared. Although this strategy is effective in reducing repetition, it does not provide guidance on which tokens should be generated to produce a coherent continuation, resulting in degraded perplexity.

In this work, we identify repetition-loop degeneration as a token-level dynamical phenomenon induced by the interaction between the next-token distribution and the decoding rule. Using a coverage-based view of repetition, we find that degeneration typically behaves as a sharp entry event: replacing only a small number of high-probability tokens at the loop onset is often sufficient to steer generation away from a repetitive trajectory. We formalize this behavior by decomposing repetition into (i) loop entry risk and (ii) loop persistence, where persistence dominates long-horizon repetition because it compounds over consecutive in-loop transitions. This analysis also explains why pruning and naive distillation can exacerbate degeneration by simultaneously increasing leakage into teacher-suppressed tokens (raising entry risk) and collapsing near-tie alternatives at loop-sensitive contexts (raising persistence).

These findings suggest that mitigating degeneration after pruning requires training-time control over token probabilities at loop-sensitive contexts: suppressing leakage toward teacher-suppressed tokens to reduce loop entry, while preserving plausible alternatives to prevent early commitment and reduce loop persistence. We therefore propose two complementary token-level guidance methods, FOCUS and RePAIR. FOCUS modifies standard distillation by reweighting tokens to emphasize high-confidence teacher regions, discouraging probability mass from drifting into low-support (leakage) areas under capacity constraints. In contrast, RePAIR constructs paired continuations around degeneration onsets, i.e., a repetitive negative sample and a non-degenerate regeneration, and applies a margin-based objective that explicitly promotes plausible alternatives at the onset. We evaluate our proposed method in the post-pruning pipeline by pruning Llama-family models and fine-tuning with LoRA. Across open-ended continuation (WikiText-103) and instruction-based generation (Self-Instruct), FOCUS and RePAIR consistently reduce repetition and improve distributional and semantic quality (e.g., MAUVE, CREP, EAD 1_{1}, and BERTScore), while incurring only a small perplexity increase. Moreover, FOCUS is compatible with existing training-based mitigation objectives and improves their generation quality when combined.

We summarize our contributions as follows:

• We introduce a token-level framework for repetition-loop degeneration that separates loop entry from loop persistence, and derive nucleus-decoding diagnostics that expose how probability allocation among nucleus-contained alternatives governs repetition.

• We propose two complementary token-level guidance objectives, FOCUS and RePAIR: FOCUS suppresses distillation-induced leakage by emphasizing high-confidence teacher regions, while RePAIR uses onset-centered positive/negative continuation pairs to promote plausible alternatives at loop-sensitive contexts.

• Across open-ended continuation and instruction-based generation, our methods consistently reduce degeneration and improve generation quality (e.g., MAUVE and EAD 1_{1}) with only a small perplexity increase.

References (1)

  • - The two candidates correspond to the same example and must be compared directly