Abstract
Retrieval-Augmented Generation (RAG) typically relies on external knowledge sources like Wikipedia to mitigate hallucinations in Large Language Models (LLMs). However, external retrieval often suffers from stylistic mismatches and noise. This paper explores "Self-Docs"—pseudo-documents generated by the LLM itself from its internal knowledge. By applying Systemic Functional Linguistics (SFL), we categorize Self-Docs across three dimensions: ideational (granularity), interpersonal (tone), and textual (structure). Our findings indicate that tailoring these features to specific tasks significantly improves performance. Furthermore, aligning external sources to match the style of high-performing Self-Docs (Style-Transformation Mix) provides substantial gains over standard RAG baselines.
Introduction
While RAG is a standard solution for grounding LLM outputs, it is heavily dependent on the quality of external databases. Retrieved snippets can be noisy or poorly formatted, failing to provide the necessary nuance for complex queries. Recent approaches suggest using LLM-generated "pseudo-documents" to bridge this gap. However, the specific linguistic features that make these Self-Docs effective remain under-explored. This study moves beyond simply using Self-Docs to strategically designing them based on their inherent stylistic and structural features.
Methodology
The researchers proposed a three-stage framework to evaluate and optimize Self-Docs:
- Taxonomy via Systemic Functional Linguistics (SFL): Self-Docs were categorized into eight types based on three metafunctions: Ideational (Fine-grained vs. Coarse-grained), Interpersonal (Authoritative vs. Conversational), and Textual (Structured vs. Unstructured).
- Generation Pipeline: Using the "GenRead" method, specific document types were produced via few-shot prompting.
- Integration Strategies: Two methods for combining Self-Docs with external Wikipedia knowledge were tested: a Direct Mix (concatenation) and a Style-Transformation Mix (rewriting external entries to match the stylistic format of the most effective Self-Doc type).
Experimental Setup
The framework was evaluated on four knowledge-intensive benchmarks: TriviaQA (TQA) for open-domain QA, HotpotQA for multi-hop reasoning, FEVER for fact verification, and ELI5 for long-form explanatory question answering.
Results and Discussion
The study revealed several critical insights into the nature of effective Self-Docs:
The Superiority of Unstructured Text
Surprisingly, unstructured, free-flowing Self-Docs consistently outperformed structured formats like bulleted lists. The flexibility of narrative text likely allows models to synthesize information more effectively than rigid hierarchical structures.
Task-Specific Tone and Granularity
The optimal tone depends heavily on the task. For fact-verification (FEVER), an Authoritative tone is superior. Conversely, for explanatory tasks (ELI5), a Conversational tone yields better results. In many scenarios, using only Self-Docs outperformed the Wikipedia-only baseline, particularly on FEVER where the best Self-Doc configuration achieved an 85.2 EM compared to Wikipedia's 66.8 EM.
Addressing the Style Gap
A significant hurdle in RAG is the stylistic mismatch between encyclopedic text and the model's internal reasoning style. The "Style-Transformation Mix" addresses this by aligning external documents with the preferred Self-Doc style. On TriviaQA, this method reached 59.4 EM, significantly higher than the Wikipedia baseline (52.6) and the Direct Mix approach (57.6).
Scaling and Capacity
Performance generally improves with model size, with a noticeable "net gain" threshold occurring around 14B-32B parameters. However, increasing the number of generated documents beyond a certain point (e.g., 5 to 10) often leads to diminishing returns or increased noise in complex reasoning tasks.
Conclusion
Strategically designing the style and structure of self-generated documents can significantly enhance RAG systems. While the "Style-Transformation Mix" introduces additional computational costs due to the rewriting step, the performance gains suggest it is a viable path for high-accuracy applications. Future work will focus on generating these optimized documents "on-the-fly" and testing the framework in specialized domains like medicine or law.
Summary updated