IRCAN: Mitigating Knowledge Conflicts in LLM Generation via Identifying and Reweighting Context-Aware Neurons

It is widely acknowledged that large language models (LLMs) encode a vast reservoir of knowledge after being trained on mass data. Recent studies disclose knowledge conflicts in LLM generation, wherein outdated or incorrect parametric knowledge (i.e., encoded knowledge) contradicts new knowledge provided in the context. To mitigate such knowledge conflicts, we propose a novel framework, IRCAN (Identifying and Reweighting Context-Aware Neurons) to capitalize on neurons that are crucial in processing contextual cues. Specifically, IRCAN first identifies neurons that significantly contribute to context processing, utilizing a context-aware attribution score derived from integrated gradients. Subsequently, the identified context-aware neurons are strengthened via reweighting. In doing so, we steer LLMs to generate context-sensitive outputs with respect to the new knowledge provided in the context. Extensive experiments conducted across a variety of models and tasks demonstrate that IRCAN not only achieves remarkable improvements in handling knowledge conflicts but also offers a scalable, plug-and-play solution that can be integrated seamlessly with existing models. Our codes are released at https://github.com/danshi777/IRCAN.

Paper

References (50)

Scroll for more · 38 remaining

Similar papers

Peer review

Reviewer CBV28/10 · confidence 4/52024-07-10

Summary

This work presented a framework IRCAN to locate key neurons for processing contextual cues, thereby mitigating conflicts between knowledge obtained from pre-training and knowledge within the context. Experiments on completion and multi-choice tasks showed that the IRCAN benefits the base model in knowledge conflict tasks.

Strengths

1. This paper is well-written and easy to read, and the authors present their methods and experiments very clearly. 2. The paper innovatively addresses the knowledge conflict issues by manipulating neurons. Experimental results validate the effectiveness of the method. Particularly, the improvement in results on knowledge completion tasks is quite significant. 3. Ablation analysis is sufficient for understanding the proposed method in depth.

Weaknesses

1. While the paper has demonstrated the effectiveness of the proposed IRCAN on 3 datasets, its performance on additional datasets remains unexplored. It would be beneficial for the authors to include more knowledge-related datasets in future versions of the paper to further validate the generalizability of the model. 2. In the completion task, the experiments compared the accuracy of the proposed IRCAN and baselines, and the IRCAN improved the performance by a large margin. However, the experiments are conducted on merely one dataset, weakening the generalization of the IRCAN, and there is no computing comparison, for example, GPU time-consuming.

Questions

1. This paper assumed that contextual knowledge was more reliable than parametric knowledge, and what if the context itself was fake or misleading? 2. How did the authors construct knowledge datasets along with the context? 3. The paper mentioned: “To calculate the attribution score Attr(n^{l}_{i}), we gradually change the activation value of a neuron n^{l}_{i} from v^{l}_{q_{i}} to v^{l}_{(c,q)_{i}}…”, what are the details of the activation value’s change process? 4. In section 3.3, what is the object W(n^{l}_{i}) for the reweighting? Activation value or the attention matrix? 5. For the evaluation of general abilities, results in Table 3 show that IRCAN can cause other knowledge-related tasks like MMLU and Winograd to fluctuate. What could be the cause of this fluctuation? Does that demonstrate that emphasizing the context may bring knowledge degradation?

Rating

8

Confidence

4

Soundness

3

Presentation

4

Contribution

3

Limitations

Various LLMs were employed in this paper, however, most of the models were 7B/8B. The authors could validate the proposed IRCAN in larger LLMs to complete the work in the future.

Reviewer NbaM6/10 · confidence 4/52024-07-11

Summary

The paper addresses the valuable problem of mitigating parametric and contextual knowledge conflicts in LLM generation with a novel and reasonable method. It is well-written, with a comprehensive experimental design showing significant improvements in completion and multi-choice tasks. However, the evaluation is limited to short contexts, raising concerns about scalability to longer contexts. The assumption that contexts are contradictory to parametric knowledge may not always hold, and the method's performance on RAG tasks and its impact on inference speed needs further exploration. Additionally, unexpected performance results between llama3-8b and llama2-7b require explanation.

Strengths

- S1: The studied problem of mitigating parametric and contextual knowledge conflicts is of great value - S2: The paper is well-written and easy to follow - S3: Though simple, the proposed method is novel and reasonable for mitigating knowledge conflicts - S4: The experimental design is comprehensive and rigorous, and the results show significant improvement in completion and multi-choice tasks - S5: The discussion and results on preserving performances on other tasks are highly appreciated

Weaknesses

- W1: The evaluation is limited to datasets with relatively short contexts, it is questionable whether the proposed method can scale to long contexts. - W2: The paper assumes that the contexts are contradictory to the parametric knowledge. However, in many cases, only a tiny fraction of the context is inconsistent with the parametric knowledge, while the others are consistent or unknown. Is the proposed method still valid under these situations? - W3: The (partly) contradiction may frequently occur in RAG, it would be great to know how this method performs on RAG tasks. - W4: It seems the proposed method has to select neurons first before answering and this involves forward passes once with and once without contexts, will this process make the inference significantly slower? Some results and discussions on time complexity would be highly appreciated. - W5: As shown in Table 1, llama3-8b performs worse than llama2-7b, which is not as expected. Is there any explanation for this? - W6: Are the salient neurons selected specifically for each question (with or without context), or are shared across data points like this: https://arxiv.org/abs/2311.15983, why or why not?

Questions

Please refer to W1-W6.

Rating

6

Confidence

4

Soundness

3

Presentation

3

Contribution

3

Limitations

Yes.

Reviewer kYip6/10 · confidence 3/52024-07-13

Summary

The paper proposed a new framework, IRCAN, to enable LLMs to pay more attention to new knowledge in context and generate context-sensitive outputs. The framework first identifies neurons that significantly contribute to context processing by utilizing a context-aware attribution score derived from integrated gradients and then reweighting these neurons. Experiments show the framework can effectively mitigate knowledge conflicts while not harming the general abilities of LLMs.

Strengths

1. The proposed framework is novel and effective. 2. The analysis of the framework is comprehensive. 3. The paper is well written and easy to follow.

Weaknesses

1. The authors state they have discussed the limitations in the checklist, but no limitation section is found.

Questions

1. Why the paper does not compare the proposed framework with fine-tuning? How will instruction-tuning the model to be more sensitive to new knowledge in context help? While the proposed framework and fine-tuning both involve updating parameters and the proposed framework costs many hours that might not be much more efficient than fine-tuning, it seems natural to consider fine-tuning as a baseline. 2. What is the performance of instructing the LLM to pay more attention to the knowledge in context in the prompt? For the multi-choice task, it seems that simply instructing the model to adopt the knowledge in the context will be effective enough, which will cost much less compared to the framework.

Rating

6

Confidence

3

Soundness

3

Presentation

3

Contribution

3

Limitations

The authors state they have discussed the limitations in the checklist, but no limitation section is found.

Reviewer kYip2024-08-09

Thanks for your reply

Thanks for your reply. The new experiments address my concerns well. I have one more question about your limitation section. > For instance, by enhancing the model’s sensitivity and fidelity to retrieved documents in context, IRCAN is expected to significantly improve the performance of generation models in RAG systems In RAG systems, the retrieved text can sometimes be noisy. Would enhancing the model’s sensitivity and fidelity to retrieved documents help in these scenarios?

Authorsrebuttal2024-08-10

Thank you for your prompt and insightful response. We appreciate the time and effort you've taken to review our rebuttal. The RAG technology supplements models by fetching external data in response to queries, thus ensuring more accurate and current outputs. In fact, in the field of RAG, researchers have recognized that noise in retrieved external data can adversely affect the quality of generated content. To address this, they often employ post-retrieval processing techniques to remove noise from the retrieved documents. For instance, some researchers incorporate a **re-ranking** stage subsequent to the initial retrieval process, where the retrieved documents are reassessed, scored, and reorganized to more effectively emphasize those most relevant to the query while diminishing the influence of less relevant ones. Methods such as sequence pair classification and re-scoring are introduced to re-rank documents [1-5], thereby improving the relevance between the retrieved content and the query. Additionally, some approaches involve **filtering** phase to remove documents that fail to meet specified quality or relevance standards. For example, FiD-TF [6] and RECOMP [7] focus on removing irrelevant or redundant tokens and information from retrieved documents. Self-RAG [8] introduces a self-reflection mechanism to efficiently filter out irrelevant content. Therefore, we believe that addressing the noise problem in retrieved text is a critical issue that the RAG field is actively tackling and one that the RAG community should indeed resolve. Our IRCAN method can complement these efforts by enhancing the model’s sensitivity and fidelity to re-ranked or filtered text, thereby further improving the effectiveness of RAG and its ability to deliver more accurate and current outputs. [1] Glass et al. Re2g: Retrieve, Rerank, Generate. NAACL 2022. [2] Dai et al. Promptagator: Few-shot Dense Retrieval From 8 Examples. ICLR 2023. [3] Ram et al. In-Context Retrieval-Augmented Language Models. TACL 2023. [4] Shao et al. Enhancing Retrieval-Augmented Large Language Models with Iterative Retrieval-Generation Synergy. EMNLP 2023. [5] Hofstätter et al. Fid-light: Efficient and effective retrieval-augmented text generation. SIGIR 2023. [6] Berchansky et al. Optimizing Retrieval-augmented Reader Models via Token Elimination. EMNLP 2023. [7] Xu et al. RECOMP: Improving Retrieval-Augmented LMs with Compression and Selective Augmentation. arXiv, abs/2310.04408. [8] Asai et al. Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflection. arXiv, abs/2310.11511.

Reviewer kYip2024-08-11

Thanks for your response. I will improve the score from 5 to 6. Please make sure these new experiments are appropriately included in the revised version. I would recommend the authors discuss the application scenarios of the proposed method in the limitation or discussion section.

Authorsrebuttal2024-08-11

Thank you very much for your positive feedback and for improving the score of our paper. We sincerely appreciate your valuable comments and suggestions, which have greatly contributed to enhancing the quality of our work.

Reviewer qHtz6/10 · confidence 4/52024-07-14

Summary

The paper introduces a novel framework, IRCAN, aimed at addressing knowledge conflicts in Large Language Models (LLMs). By identifying and enhancing neurons that are crucial for processing contextual cues using an attribution score derived from integrated gradients, the framework significantly improves the generation of context-sensitive outputs. Tested across various models and tasks, IRCAN not only enhances model performance notably but also integrates seamlessly as a plug-and-play solution with existing models, establishing new performance benchmarks in handling knowledge conflicts.

Strengths

1. The proposed method is plug-and-play and does not need additional training. 2. The authors conduct comprehensive experiments. 3. Steering the context-aware neurons seems effective on many large language models and many down-stream tasks.

Weaknesses

1. Lack comparisons between other steering methods, like steering probed directions or steering SAE's features. 2. The propose methods will cost more inference time. 3. I think knowledge conflict also has its benefits. It may help LLMs defend some jailbreaking or harmful uses. So increase the model's faithfulness to its context may introduce some safety problems.

Questions

Who you choose neurons? How do neurons compare with probed directions (https://arxiv.org/abs/2306.03341) or features from SAEs (https://transformer-circuits.pub/2024/scaling-monosemanticity/index.html#assessing-interp/) ?

Rating

6

Confidence

4

Soundness

3

Presentation

3

Contribution

2

Limitations

As mentioned in weaknesses.

Reviewer qHtz2024-08-13

Thanks for the rebuttal!

Thanks for the responses, which addressed my questions. I will retain my positive scores.

Authorsrebuttal2024-08-14

Thank you for your supportive comments and positive evaluations. We sincerely appreciate the time and effort you have dedicated to reviewing our responses.

Reviewer NbaM2024-08-13

Thanks for the rebuttal and I will keep my evaluation.

Authorsrebuttal2024-08-14

We sincerely appreciate the time and effort you have dedicated to reviewing our paper and our rebuttal. We are grateful for your constructive comments and valuable insights.

Reviewer CBV22024-08-14

Thank you for the detailed responses, my concerns were addressed, and I will change my previous score.

Authorsrebuttal2024-08-14

We sincerely thank you for your constructive feedback and for the revised score. Your insightful comments and suggestions have been instrumental in refining the quality of our paper.

Program Chairsdecision2024-09-25

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC