IRepair: An Intent-Aware Approach to Repair Data-Driven Errors in Large Language Models
Not on the map. Why?
Abstract (arXiv)
Not a day goes by without hearing about the impressive feats of large language models (LLMs), and equally, not a day passes without hearing about their challenges. LLMs are notoriously vulnerable to biases in their dataset, leading to issues such as toxicity. While domain-adaptive training has been employed to mitigate these issues, these techniques often address all model parameters indiscriminately during the repair process, resulting in poor repair quality and reduced model versatility. In this paper, we introduce a novel dynamic slicing-based intent-aware LLM repair strategy, IRepair. This approach selectively targets the most error-prone sections of the model for repair. Specifically, we propose dynamically slicing the model's most sensitive layers that require immediate attention, concentrating repair efforts on those areas. This method enables more effective repairs with potentially less impact on the model's overall performance by altering a smaller portion of the model. We evaluated our technique on three models from the GPT2 and GPT-Neo families, with parameters ranging from 800M to 1.6B, in a toxicity mitigation setup. Our results show that IRepair repairs errors 43.6% more effectively while causing 46% less disruption to general performance compared to the closest baseline, direct preference optimization. Our empirical analysis also reveals that errors are more concentrated in a smaller section of the model, with the top 20% of layers exhibiting 773% more error density than the remaining 80%. This highlights the need for selective repair. Additionally, we demonstrate that a dynamic selection approach is essential for addressing errors dispersed throughout the model, ensuring a robust and efficient repair.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 37 of its 55 references that are in the map. First posted on arXiv 10 Feb 2025.
Builds on
37 of 55 references.
References · 37
- 2017Attention Is All You Needcited by 59,932
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2016Overcoming catastrophic forgetting in neural networkscited by 4,718
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2022Survey of Hallucination in Natural Language Generationcited by 2,056
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,829
- 2023A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questionscited by 1,582
- 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,548
25 more
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,235
- 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 960
- 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 793
- 2023Large Language Modelscited by 774
- 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 522
- 2021Fast Model Editing at Scalecited by 491
- 2021DExperts: Decoding-Time Controlled Text Generation with Experts and Anti-Expertscited by 434
- 2021Self-Diagnosis and Self-Debiasing: A Proposal for Reducing Corpus-Based Bias in NLPcited by 336
- 2022Large Language Models are Better Reasoners with Self-Verificationcited by 304
- 2022Prompting GPT-3 To Be Reliablecited by 258
- 2023Pretraining Language Models with Human Preferencescited by 245
- 2023Automatically Correcting Large Language Models: Surveying the landscape of diverse self-correction strategiescited by 236
- 2021Process for Adapting Language Models to Society (PALMS) with Values-Targeted Datasetscited by 179
- 2023The Capacity for Moral Self-Correction in Large Language Modelscited by 171
- 2019An Energy and GPU-Computation Efficient Backbone Network for Real-Time Object Detectioncited by 163
- 2023Chain of Hindsight Aligns Language Models with Feedbackcited by 147
- 2024Detoxifying Large Language Models via Knowledge Editingcited by 86
- 2023Exposing Attention Glitches with Flip-Flop Language Modelingcited by 74
- 2022Exploring the Limits of Domain-Adaptive Training for Detoxifying Large-Scale Language Modelscited by 67
- 2023Self-Detoxifying Language Models via Toxification Reversalcited by 45
- 2022Unified Detoxifying and Debiasing in Language Generation via Inference-time Adaptive Optimizationcited by 32
- 2021DeepDiagnosis: Automatically Diagnosing Faults and Recommending Actionable Fixes in Deep Learning Programscited by 19
- 2022Leashing the Inner Demons: Self-Detoxification for Language Modelscited by 19
- 2024Parameter-Efficient Detoxification with Contrastive Decodingcited by 18
- 2020Dynamic Slicing for Deep Neural Networkscited by 16
Built on by
Citing papers per year: 2025: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026Safety at One Shot: Patching Fine-Tuned LLMs with A Single Instance
- 2025Towards Alignment-Centric Paradigm: A Survey of Instruction Tuning in Large Language Models
- 2026An Efficient and Modular Framework for Targeted Harm Mitigation in LLMS
- 2023Gaining Wisdom from Setbacks: Aligning Large Language Models via Mistake Analysis
- 2026Safe Error Correction for Language Models: Frozen-Base Adjustment with Capability Preservation
- 2024Aligning the Objective of LLM-based Program Repair
- 2025AuPair: Golden Example Pairs for Code Repair
- 2025SafeMERGE: Preserving Safety Alignment in Fine-Tuned Large Language Models via Selective Layer-Wise Model Merging