mlsanityData to 14 Oct 2026

Context Engineering for Trustworthiness: Rescorla Wagner Steering Under Mixed and Inappropriate Contexts

arXiv 2509.04500 ↗First posted 2 Sep 2025cs.CL cs.AIcited by 3

Not on the map. Why?

Abstract (arXiv)

Incorporating external context can significantly enhance the response quality of Large Language Models (LLMs). However, real-world contexts often mix relevant information with disproportionate inappropriate content, posing reliability risks. How do LLMs process and prioritize mixed context? To study this, we introduce the Poisoned Context Testbed, pairing queries with real-world contexts containing relevant and inappropriate content. Inspired by associative learning in animals, we adapt the Rescorla-Wagner (RW) model from neuroscience to quantify how competing contextual signals influence LLM outputs. Our adapted model reveals a consistent behavioral pattern: LLMs exhibit a strong tendency to incorporate information that is less prevalent in the context. This susceptibility is harmful in real-world settings, where small amounts of inappropriate content can substantially degrade response quality. Empirical evaluations on our testbed further confirm this vulnerability. To tackle this, we introduce RW-Steering, a two-stage finetuning-based approach that enables the model to internally identify and ignore inappropriate signals. Unlike prior methods that rely on extensive supervision across diverse context mixtures, RW-Steering generalizes robustly across varying proportions of inappropriate content. Experiments show that our best fine-tuned model improves response quality by 39.8% and reverses the undesirable behavior curve, establishing RW-Steering as a robust, generalizable context engineering solution for improving LLM safety in real-world use.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 20 of its 37 references that are in the map. First posted on arXiv 2 Sep 2025.

Builds on

20 of 37 references.

References · 20

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  3. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
  4. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  5. 2022Locating and Editing Factual Associations in GPTcited by 2,691
  6. 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,212
  7. 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 1,947
  8. 2022A Survey on In-context Learningcited by 721
  9. 2021Learning To Retrieve Prompts for In-Context Learningcited by 648
  10. 2017"Liar, Liar Pants on Fire": A New Benchmark Dataset for Fake News Detectioncited by 363
  11. 2023MINT: Evaluating LLMs in Multi-turn Interaction with Tools and Language Feedbackcited by 297
  12. 2020Look at the First Sentence: Position Bias in Question Answeringcited by 84
8 more
  1. 2024If LLM Is the Wizard, Then Code Is the Wand: A Survey on How Code Empowers Large Language Models to Serve as Intelligent Agentscited by 79
  2. 2018A Survey on Natural Language Processing for Fake News Detectioncited by 67
  3. 2020ETHOS: an Online Hate Speech Detection Datasetcited by 66
  4. 2025SafeSwitch: Steering Unsafe LLM Behavior via Internal Activation Signalscited by 29
  5. 2025U-NIAH: Unified RAG and LLM Evaluation for Long Context Needle-In-A-Haystackcited by 20
  6. 2024EVEDIT: Event-based Knowledge Editing with Deductive Editing Boundariescited by 16
  7. 2024Do LLMs Know to Respect Copyright Notice?cited by 13
  8. 2024Measuring Copyright Risks of Large Language Model via Partial Information Probingcited by 9

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 2.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Emergence of Context Characteristics Sensitivity in Large Language Models
  2. 2026Context Dependence and Reliability in Autoregressive Language Models
  3. 2024Towards Tracing Trustworthiness Dynamics: Revisiting Pre-training Period of Large Language Models
  4. 2026ContextFocus: Activation Steering for Contextual Faithfulness in Large Language Models
  5. 2025Resisting Correction: How RLHF Makes Language Models Ignore External Safety Signals in Natural Conversation
  6. 2026Which Knowledge Should LLMs Trust? Uncovering a Generalizable Steering Direction Across Knowledge Conflicts
  7. 2025Belief Dynamics Reveal the Dual Nature of In-Context Learning and Activation Steering
  8. 2025Emergent Misalignment via In-Context Learning: Narrow in-context examples can produce broadly misaligned LLMs