TL;DR
Retrieval-Augmented Generation (RAG) often chokes on noisy, redundant conversational data like customer support logs. Structure-Aware RAG (SA-RAG) solves this by using LLMs to automatically transform messy chat histories into clean, normalized relational tables offline, serving as a high-density intermediate representation. By retrieving from these structured tables instead of raw text or brittle knowledge graphs, SA-RAG dramatically boosts both retrieval accuracy and response factuality.
What Problem Does This Paper Address?
While Large Language Models (LLMs) excel at conversation, they struggle with domain-specific or rapidly changing information, which is why we use Retrieval-Augmented Generation (RAG). However, real-world conversational data (like IT support tickets or customer service chats) is incredibly messy. It is full of greetings, typos, redundant clarifications, and implicit references.
Standard text-based RAG gets overwhelmed by this noise, pulling in irrelevant text chunks that cause the LLM to hallucinate or lose context. Graph-based RAG tries to map entities and relations, but extracting clean graphs from noisy dialogue is notoriously difficult and error-prone.
The authors ask: Can we find a middle ground? They propose using tables as an intermediate structured representation. Tables offer an attribute-centric organization that can aggregate redundant evidence and gracefully handle missing data, but automatically building high-quality table schemas (metadata) from noisy text without human intervention is a major open challenge.
Methods
SA-RAG introduces a three-stage framework to induce, populate, and retrieve from structured tables:
- Quality-Aware Metadata Generation: Instead of relying on static, human-crafted schemas, SA-RAG uses an iterative optimization process to generate table metadata (column names, types, and constraints). An LLM extracts initial candidate columns from dialogues, normalizes them to resolve synonyms and formatting variations, and evaluates them based on relevance and answerability. Columns are greedily added or merged only if they improve the overall schema quality without exceeding a maximum capacity.
- Table Generation Strategy: Once the schema ($M^*$) is finalized, raw conversations are converted into table rows. The paper explores two approaches:
- Training-free: A large LLM (like LLaMA-70B) generates cell values, which are then passed through a post-hoc semantic and structural validation check. Invalid or hallucinated entries are safely set to
NULL. - Training-based: For smaller, efficiency-constrained models (like Qwen-1.5B), the authors use Direct Preference Optimization (DPO). They fine-tune the model using preference pairs consisting of a clean, human-annotated table vs. a syntactically valid but intentionally corrupted table (e.g., fields swapped or hallucinated).
- Structure-Aware Retrieval and Generation: During online inference, user queries are embedded to perform dense retrieval over the generated table rows. The system iteratively looks up related cells to construct structured triples ($K_q$), which are then fed alongside the query to the response generator.
Datasets
The framework was evaluated on two noisy, multi-turn conversational datasets:
- MSDialog: A public corpus containing over 2,000 information-seeking conversations from Microsoft Community support forums, spanning products like Windows, Office, Bing, and Skype.
- Customer Service Dialogue Dataset (CSDialog): A private, highly specialized multi-turn conversational dataset consisting of professional customer-agent interactions dealing with complex technical troubleshooting.
Key Insights and Ideas
- The Power of the "Middle Ground": Fully unstructured text is too noisy, and fully symbolic knowledge graphs are too rigid. Tables strike a perfect balance—they enforce structural constraints that filter out conversational fluff while remaining flexible enough to handle missing fields via
NULLvalues. - Global vs. Local Schema Induction: Standard LLM extraction looks at data locally, leading to redundant columns (e.g., "OS" vs "Operating System"). SA-RAG’s iterative schema governance ensures a compact, globally normalized metadata structure.
- DPO for Structural Alignment: Direct Preference Optimization isn't just for alignment with human safety preferences; it can actively teach smaller language models to respect structural schemas and resist copying noisy text verbatim.
Key Results
SA-RAG was benchmarked against text-based, graph-based, and simple table-based RAG baselines using three core metrics: Recall, Mean Reciprocal Rank (MRR), and Result Correctness (evaluated via an LLM-as-a-judge protocol).
- Massive Performance Gains: On the MSDialog dataset, SA-RAG achieved a Recall of 0.94 and Correctness of 0.92, vastly outperforming dense text retrieval (TextRAG-emb: 0.70 Recall, 0.70 Correctness).
- Robustness to Extreme Noise: On the highly complex CSDialog dataset, where text-based methods faltered (TextRAG-emb dropped to 0.14 Recall), SA-RAG maintained a Recall of 0.53 and a Correctness score of 0.52—a 136.4% relative improvement in correctness over the baseline.
- Ablation Insights: Removing the metadata construction component (
w/o m) caused the largest performance drop in retrieval metrics, proving that structured guidance is essential for navigating noisy data.
Limitations and Future Work
The primary limitation acknowledged by the authors is the additional computational cost required to induce schemas and generate tables from raw text. Because this preprocessing pipeline must be run offline during data preparation, it does not impact online inference latency. However, it does introduce an upfront overhead when dealing with massive or rapidly updating datasets.
Future work could explore more dynamic, incremental table updating strategies to handle streaming conversational data more efficiently.
Summary updated