Introduction
Current Retrieval-Augmented Generation (RAG) systems are often "book smart" but "street naive." While they excel at retrieving factual information from structured databases, they frequently struggle to interpret the sarcasm, irony, and emotional nuances prevalent in real-world internet text. This paper introduces Reading with Intent (RwI), a framework designed to help Large Language Models (LLMs) navigate pragmatically complex contexts, resulting in performance gains of up to 10.2% on emotionally inflected data.
The Challenge of Pragmatic Reasoning
Most RAG benchmarks rely on neutral, factual sources like Wikipedia. However, production systems often pull from the "Open Internet," a landscape rife with emotional bias. The core challenge is pragmatic reasoning: the ability to understand how context and intent shape meaning beyond literal definitions. When an LLM retrieves a sarcastic passage, it may take the text literally, leading to hallucinations or misinformation. This "query-context split" occurs when LLMs fail to recognize intentional factual distortions conveyed through tone.
The Reading with Intent Framework
The authors propose a three-pronged approach to enhance LLM interpretation:
- Prompt-Based Pragmatic Reading: A specialized prompt instructs the LLM to consider both denotative (literal) and connotative (intended) meanings.
- Intent Tags: A RoBERTa-based classifier generates tags (e.g.,
Language Tone: Sarcastic) that are prepended to retrieved passages to prime the model's interpretation. - Intent Neutralization (The Intent-Translator): A fine-tuned Llama-3.1-8B model acts as an "emotion translator," converting emotionally charged or sarcastic passages into plain, factual statements before they reach the answering LLM.
Data Synthesis and Evaluation
To support this framework, the researchers developed the Synthetic Emotional RAG Dataset, a corpus of 3.6 million passages. By taking neutral Wikipedia snippets and using a suite of LLMs (including Llama 3, Qwen 2.5, and Gemma), they transformed factual data into 11 distinct emotional tones, such as anger, condescension, and surprise. Notably, human evaluators found the Gemma model to be the most realistic at generating these emotional transformations.
Key Results and Insights
The RwI framework demonstrated clear quantitative benefits across multiple model families. On the Llama 2 family, the specialized prompt increased QA accuracy by an average of 9%, with the Llama2-7B model achieving a 10.2% improvement.
A key insight from the study is that neutralization (stripping emotion) is often more effective than interpretation (asking the model to explain the emotion). By simplifying the input, the model can focus entirely on factual extraction. Furthermore, the fine-tuned Intent-Translator significantly outperformed zero-shot LLM baselines, proving that specialized tone-shifting models are superior at preserving facts while altering style.
The researchers also identified a Primacy Bias in sarcasm: if a factually distorted sarcastic passage appears before a correct neutral one, the LLM is much more likely to be misled.
Limitations and Future Directions
The current framework treats emotions as categorical. Future work will explore "intensity sliders" to account for the spectrum of emotional expression. Additionally, the authors plan to expand "Intent Tags" to include the full range of 11 emotions explored in their synthetic dataset, further refining the pragmatic reasoning capabilities of edge-deployed models.
Summary updated