LeanContext: Cost-Efficient Domain-Specific Question Answering Using LLMs
Md Adnan Arefeen, Biplob Debnath, Srimat Chakradhar

TL;DR
LeanContext is a cost-efficient method for domain-specific question answering that intelligently extracts key sentences using reinforcement learning, significantly reducing costs while maintaining high answer accuracy.
Contribution
This paper introduces LeanContext, a novel reinforcement learning-based approach for dynamic context reduction tailored for LLMs in domain-specific QA tasks.
Findings
Cost reductions of 37.29% to 67.81% with minimal accuracy loss.
ROUGE-1 score decreases only by 1.41% to 2.65% compared to full context.
Further accuracy improvements when combining LeanContext with pretrained summarizers.
Abstract
Question-answering (QA) is a significant application of Large Language Models (LLMs), shaping chatbot capabilities across healthcare, education, and customer service. However, widespread LLM integration presents a challenge for small businesses due to the high expenses of LLM API usage. Costs rise rapidly when domain-specific data (context) is used alongside queries for accurate domain-specific LLM responses. One option is to summarize the context by using LLMs and reduce the context. However, this can also filter out useful information that is necessary to answer some domain-specific queries. In this paper, we shift from human-oriented summarizers to AI model-friendly summaries. Our approach, LeanContext, efficiently extracts key sentences from the context that are closely aligned with the query. The choice of is neither static nor random; we introduce a reinforcement learning…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Natural Language Processing Techniques · AI in Service Interactions
Methodstravel james
