Task Matters: Knowledge Requirements Shape LLM Responses to Context-Memory Conflict
Kaiser Sun, Fan Bai, Mark Dredze
TL;DR
The paper investigates how context-memory conflict in LLMs depends on the knowledge demands of the task. It introduces a model-agnostic diagnostic framework that fixes parametric knowledge while manipulating task formulations and evidence plausibility to create task-specific conflict datasets. Across multiple open-source models, it finds that conflicts severely impair knowledge-intensive tasks, while simpler, knowledge-free tasks are less affected; strategies like rationales or reiteration can either help or harm depending on the task. The work also shows that using LLMs as evaluators can be biased by their own parametric knowledge, underscoring the need for task-aware evaluation and deployment that balances contextual and parametric knowledge. Overall, the study provides a unified, task-aware view of context-memory conflict with practical implications for evaluation, prompting dynamic, task-driven control of context and memory in LLM systems.
Abstract
Large language models (LLMs) draw on both contextual information and parametric memory, yet these sources can conflict. Prior studies have largely examined this issue in contextual question answering, implicitly assuming that tasks should rely on the provided context, leaving unclear how LLMs behave when tasks require different types and degrees of knowledge utilization. We address this gap with a model-agnostic diagnostic framework that holds underlying knowledge constant while introducing controlled conflicts across tasks with varying knowledge demands. Experiments on representative open-source LLMs show that performance degradation under conflict is driven by both task-specific knowledge reliance and conflict plausibility; that strategies such as rationales or context reiteration increase context reliance, helping context-only tasks but harming those requiring parametric knowledge; and that these effects bias model-based evaluation, calling into question the reliability of LLMs as judges. Overall, our findings reveal that context-memory conflict is inherently task-dependent and motivate task-aware approaches to balancing context and memory in LLM deployment and evaluation.
