Enhancing Q&A with Domain-Specific Fine-Tuning and Iterative Reasoning: A Comparative Study
Authors:
- Zooey NguyenZNZooey Nguyen
- Anthony AnnunziataAAAnthony Annunziata
- Vinh LuongVLVinh Luong
- Sang DinhSDSang Dinh
- Quynh LeQLQuynh Le
- Anh Hai HaAHAnh Hai Ha
- Chanh LeCLChanh Le
- Hong An PhanHPHong An Phan
- Shruti RaghavanSRShruti Raghavan
- Christopher NguyenCNChristopher Nguyen
Preprint
Abstract
This paper investigates the impact of domain-specific model fine-tuning and of reasoning mechanisms on the performance of question-answering (Q&A) systems powered by large language models (LLMs) and Retrieval-Augmented Generation (RAG). Using the FinanceBench SEC financial filings dataset, we observe that, for RAG, combining a fine-tuned embedding model with a fine-tuned LLM achieves better accuracy than generic models, with relatively greater gains attributable to fine-tuned embedding models. Additionally, employing reasoning iterations on top of RAG delivers an even bigger jump in performance, enabling the Q&A systems to get closer to human-expert quality. We discuss the implications of such findings, propose a structured technical design space capturing major technical components of Q&A AI, and provide recommendations for making high-impact technical choices for such components. We plan to follow up on this work with actionable guides for AI teams and further investigations into the impact of domain-specific augmentation in RAG and into agentic AI capabilities such as advanced planning and reasoning.Keywords
All Related Versions
This publication has 8 references indexed in Scilit:
- Retrieval-Generation Synergy Augmented Large Language Models2024
- SELF-DISCOVER: Large Language Models Self-Compose Reasoning Structures2024
- Prompt-Guided Retrieval Augmentation for Non-Knowledge-Intensive Tasks2023
- HybridQA: A Dataset of Multi-Hop Question Answering over Tabular and Textual Data2020
- UNIFIEDQA: Crossing Format Boundaries with a Single QA System2020
- BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding2019
- Transformer-XL: Attentive Language Models beyond a Fixed-Length Context2019
- The OODA LoopHome Health Care Management & Practice, 2012