Context engineering for LLM trustworthiness: Rescorla-Wagner Steering under mixed and inappropriate contextsContext Engineering for Trustworthiness: Rescorla Wagner Steering Under Mixed and Inappropriate Contexts
AI summary
Two-stage fine-tuning with RW-Steering enables LLMs to recognize and ignore inappropriate signals in context; the best fine-tuned model improves response quality by 39.8% and generalizes across different proportions of inappropriate content. Using the Poisoned Context Testbed and the Rescorla-Wagner model, the research finds that LLMs tend to adopt information that makes up a lower proportion of the context, and that a small amount of inappropriate content can significantly degrade response quality.