Retrieval · Safety

Reducing Hallucination in Structured Outputs via RAG

First page
Reducing Hallucination in Structured Outputs via RAG
Paper summary

This paper deploys a compact RAG pipeline - small retriever plus small LM - for an enterprise workflow-generation task and shows it reduces hallucination while improving out-of-domain generalization vs a baseline LLM.

Ask this paper

Key points
01

Target setting: A production system that turns natural-language requirements into executable workflows, where hallucinated fields or missing steps break the downstream pipeline.

02

Small retriever + small LM: Instead of a massive generator, the authors train a specialized retriever encoder and pair it with a much smaller LM, cutting compute and memory without losing output quality.

03

Hallucination and generalization gains: The RAG-augmented small system reduces factual errors in the structured output and generalizes better to out-of-domain inputs than the baseline LM alone.

04

Deployment implication: The setup shows that high-quality structured generation does not require frontier-sized LLMs - a disciplined retriever + small LM can be cheaper to run and easier to productionize.

Abstract

A common and fundamental limitation of Generative AI (GenAI) is its propensity to hallucinate. While large language models (LLM) have taken the world by storm, without eliminating or at least reducing hallucinations, real-world GenAI systems may face challenges in user adoption. In the process of deploying an enterprise application that produces workflows based on natural language requirements, we devised a system leveraging Retrieval Augmented Generation (RAG) to greatly improve the quality of the structured output that represents such workflows. Thanks to our implementation of RAG, our proposed system significantly reduces hallucinations in the output and improves the generalization of our LLM in out-of-domain settings. In addition, we show that using a small, well-trained retriever encoder can reduce the size of the accompanying LLM, thereby making deployments of LLM-based systems less resource-intensive.

Every Monday
Get next week’s papers.
Subscribe on Substack