From Context-Aware to Conflict-Aware: Generalizing Contrastive Decoding for Knowledge Conflict in LLMs

TL;DR

Proposed Adaptive Regime Routing (ARR) to address LLM knowledge conflicts, improving resistance EM from 6 to 16-33.

cs.AI 🔴 Advanced 2026-06-09 2 views
Runze Jiang Taiqiang Wu Yan Wang Bingyu Zhu Longtao Huang
large language models contrastive decoding knowledge conflict adaptive mechanism evaluation protocol

Key Findings

Methodology

The study introduces Adaptive Regime Routing (ARR), a novel method for dynamically allocating weights between context and prior during LLM generation. ARR determines whether to use interpolation or extrapolation based on conflict signals at each step.

Key Results

  • ARR improved resistance EM on TriState-Bench from below 6 to 16-33 without sacrificing correction or agreement.
  • On standard QA datasets, ARR outperformed existing contrastive decoding methods like CAD and CoCoA.
  • ARR maintained robustness across different model families, applicable to various decoding scenarios.

Significance

This research introduces a conflict-aware decoding paradigm that significantly enhances the reliability of LLMs by resolving conflicts between context and prior knowledge. It holds substantial significance for both academia and industry, offering a more robust decoding strategy.

Technical Contribution

Technical contributions include proposing a new conflict-aware decoding framework, defining asymmetry between interpolation and extrapolation, and implementing ARR to dynamically route decoding strategies, significantly improving performance in knowledge conflict scenarios.

Novelty

This is the first introduction of a conflict-aware dynamic routing mechanism in contrastive decoding. Compared to traditional context-aware methods, ARR effectively handles conflicts between context and prior.

Limitations

  • ARR may overly rely on context in certain scenarios, leading to error amplification.
  • Further validation on larger-scale models is needed.

Future Work

Future research could explore ARR's application in other generative tasks and optimize its adaptability across different model architectures.

AI Executive Summary

Large language models often face conflicts between external context and parametric priors during generation, posing a significant reliability bottleneck. Existing contrastive decoding methods typically assume context is more reliable than priors, which can lead to issues when the context is incorrect.

This paper proposes a new decoding paradigm—conflict-aware decoding—through Adaptive Regime Routing (ARR), which dynamically allocates weights between context and prior at each step. ARR uses conflict signals to determine whether to employ interpolation or extrapolation, finding a balance between correction and resistance.

Experimental results show that ARR improved resistance EM on TriState-Bench from below 6 to 16-33 without sacrificing correction or agreement. This method significantly enhances LLM performance in knowledge conflict scenarios, providing a new approach to addressing this longstanding challenge.

Deep Analysis

Background

Large language models often need to retrieve information from external contexts, which may conflict with the model's internal priors. Traditional contrastive decoding methods typically assume context is more reliable, but this assumption can lead to problems when the context is incorrect.

Core Problem

The core problem is how to dynamically allocate weights between context and prior to resolve conflicts between them. This issue is crucial as it directly affects the accuracy and reliability of model generation.

Innovation

The core innovation of this paper is the introduction of a conflict-aware decoding paradigm through Adaptive Regime Routing (ARR), which dynamically allocates weights between context and prior based on conflict signals.

Methodology

  • �� Introduce Adaptive Regime Routing (ARR) to dynamically allocate weights between context and prior at each step.
  • �� Use conflict signals to determine whether to employ interpolation or extrapolation.
  • �� Validate ARR's performance on TriState-Bench.

Experiments

The experimental design includes evaluations on multiple standard QA datasets and TriState-Bench. Baselines include CAD, COIECD, AdaCAD, and CoCoA. Key hyperparameters involve weights for interpolation and extrapolation.

Results

ARR improved resistance EM on TriState-Bench from below 6 to 16-33 without sacrificing correction or agreement. On standard QA datasets, ARR outperformed existing contrastive decoding methods.

Applications

ARR can enhance the reliability of LLMs in knowledge conflict scenarios, applicable to industrial applications requiring high accuracy and stability.

Limitations & Outlook

ARR may overly rely on context in certain scenarios, leading to error amplification. Further validation on larger-scale models is needed.

Plain Language Accessible to non-experts

Imagine a kitchen where a chef needs to cook based on a recipe (context) and their own experience (prior). If the recipe and experience conflict, the chef must decide whether to trust the recipe or their experience. ARR acts like a smart assistant, helping the chef make the best choice at each step to ensure the dish is delicious.

ELI14 Explained like you're 14

Imagine you're playing a game with two mentors: one is an experienced player (prior), and the other is a newbie guide (context). Sometimes they give different advice. ARR is like a smart AI helper that helps you choose which mentor's advice is more reliable, making you perform better in the game!

Glossary

Contrastive Decoding

A method that adjusts generation results by contrasting context and prior output distributions.

Used to resolve conflicts between context and prior knowledge.

Adaptive Regime Routing

A method for dynamically allocating weights between context and prior, choosing interpolation or extrapolation based on conflict signals.

Used to select the appropriate strategy at each decoding step.

TriState-Bench

An evaluation protocol measuring model performance in correction, resistance, and agreement conflict states.

Used to validate ARR's performance.

Interpolation

A method of weight allocation between context and prior, typically used in correction states.

Used in ARR to handle situations where context is correct.

Extrapolation

A method of weight allocation beyond context, typically used in resistance states.

Used in ARR to handle situations where prior is correct.

Open Questions Unanswered questions from this research

  • 1 How can ARR be effectively applied to larger-scale models?
  • 2 How does ARR perform in other generative tasks?

Applications

Immediate Applications

Knowledge QA Systems

ARR can improve the accuracy of QA systems when faced with inconsistent information, suitable for high-reliability applications.

Long-term Vision

Smart Assistants

ARR can be used to develop smarter virtual assistants capable of making more accurate decisions in complex information environments.

Abstract

When large language models generate from retrieved or augmented contexts, conflicts between external context and parametric priors remain a central reliability bottleneck. Existing contrastive decoding methods follow a \emph{context-aware} paradigm that unilaterally amplifies context over parametric priors, overwriting correct priors when the context is erroneous. We generalize this to the \textbf{conflict-aware} paradigm that dynamically allocates authority between prior and context based on conflict signals, rather than presupposing context trustworthiness. We show that the affine combination of prior and context logits yields a \textbf{power family} with an inherent \textbf{regime asymmetry}: extrapolation amplifies errors unboundedly when the prior is correct, interpolation under-corrects when the context is correct, and no static regime covers both. Existing contrastive decoding methods are instances of this family, mostly extrapolative. To evaluate both conflict directions, we propose TriState-Bench, a model-aware evaluation protocol that calibrates per-model prior knowledge to measure three conflict states: correction, resistance, and agreement. To resolve the asymmetry, we propose Adaptive Regime Routing (ARR), which routes between regimes at each step, lifting resistance EM from below 6 to 16--33 without sacrificing correction or agreement. Our code is available at https://github.com/keith-Jiang/conflict-aware-decoding.

cs.AI cs.CL