paper-with-me

홈 › Papers

Explorations of Self-Repair in Language Models

2024-02-23 · Cody Rushing, Neel Nanda

Prior interpretability research studying narrow distributions has preliminarily identified self-repair, a phenomena where if components in large language models are ablated, later components will change their behavior to compensate. Our work builds off this past literature, demonstrating that self-repair exists on a variety of models families and sizes when ablating individual attention heads on the full training distribution. We further show that on the full training distribution self-repair is imperfect, as the original direct effect of the head is not fully restored, and noisy, since the degree of self-repair varies significantly across different prompts (sometimes overcorrecting beyond the original effect). We highlight two different mechanisms that contribute to self-repair, including changes in the final LayerNorm scaling factor and sparse sets of neurons implementing Anti-Erasure. We additionally discuss the implications of these results for interpretability practitioners and close with a more speculative discussion on the mystery of why self-repair occurs in these models at all, highlighting evidence for the Iterative Inference hypothesis in language models, a framework that predicts self-repair.

📄 PDF Abstract BibTeX arXiv:2402.15390

Code (1)

starship006/backup_research 공식 구현 jax

Similar Papers 제목 키워드 기반

Spoken Language Treebanks in Universal Dependencies: an Overview

2022-06-01 · LREC 2022 6 · Kaja Dobrovoljc

Given the benefits of syntactically annotated collections of transcribed speech in spoken language research and applications, many spoken language treebanks have been developed in the last decades, with divergent annotat…

Is Self-Repair a Silver Bullet for Code Generation?

2023-06-16 · Theo X. Olausson, Jeevana Priya Inala, Chenglong Wang, Jianfeng Gao 외

Large language models have shown remarkable aptitude in code generation, but still struggle to perform complex tasks. Self-repair -- in which the model debugs and repairs its own code -- has recently become a popular way…

Code GenerationHumanEval

How Many Tries Does It Take? Iterative Self-Repair in LLM Code Generation Across Model Scales and Benchmarks

2026-04-12 · Johin Johny Arimbur arxiv

Large language models frequently fail to produce correct code on their first attempt, yet most benchmarks evaluate them in a single-shot setting. We investigate iterative self-repair (feeding execution errors back to the…

Code Generation

Repairing Language Model Pipelines by Meta Self-Refining Competing Constraints at Runtime

2025-07-11 · Mojtaba Eshghie

Language Model (LM) pipelines can dynamically refine their outputs against programmatic constraints. However, their effectiveness collapses when faced with competing soft constraints, leading to inefficient backtracking …

Language ModelingLanguage Modelling

QiMeng-PRepair: Precise Code Repair via Edit-Aware Reward Optimization

2026-04-07 · Changxin Ke, Rui Zhang, Jiaming Guo, Yuanbo Wen 외 arxiv

Large Language Models (LLMs) achieve strong program repair performance but often suffer from over-editing, where excessive modifications overwrite correct code and hinder bug localization. We systematically quantify its …

Program RepairCode Repair