mlsanityData to 14 Oct 2026

LeanContext: Cost-Efficient Domain-Specific Question Answering Using LLMs

arXiv 2309.00841 ↗First posted 2 Sep 2023cs.CL cs.AI cs.IRcited by 40

Not on the map. Why?

Abstract (arXiv)

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 k key sentences from the context that are closely aligned with the query. The choice of k is neither static nor random; we introduce a reinforcement learning technique that dynamically determines k based on the query and context. The rest of the less important sentences are reduced using a free open source text reduction method. We evaluate LeanContext against several recent query-aware and query-unaware context reduction approaches on prominent datasets (arxiv papers and BBC news articles). Despite cost reductions of 37.29% to 67.81%, LeanContext's ROUGE-1 score decreases only by 1.41% to 2.65% compared to a baseline that retains the entire context (no summarization). Additionally, if free pretrained LLM-based summarizers are used to reduce context (into human consumable summaries), LeanContext can further modify the reduced context to enhance the accuracy (ROUGE-1 score) by 13.22% to 24.61%.

Key facts. Cited by 40 papers in the map (data through 14 Oct 2026). Builds on 18 of its 31 references that are in the map. First posted on arXiv 2 Sep 2023.

Builds on

18 of 31 references.

References · 18

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  3. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  4. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  5. 2022Scaling Instruction-Finetuned Language Modelscited by 3,024
  6. 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performancecited by 853
  7. 2017The NarrativeQA Reading Comprehension Challengecited by 597
  8. 2023TidyBot: Personalized Robot Assistance with Large Language Modelscited by 221
  9. 2023Exploring the Limits of ChatGPT for Query or Aspect-based Text Summarizationcited by 122
  10. 2023Unlocking Context Constraints of LLMs: Enhancing Context Efficiency of LLMs with Self-Information-Based Content Filteringcited by 65
  11. 2019Leveraging BERT for Extractive Text Summarization on Lecturescited by 63
  12. 2023Extractive Summarization via ChatGPT for Faithful Summary Generationcited by 59
6 more
  1. 2023An Iterative Optimizing Framework for Radiology Report Summarization with ChatGPTcited by 57
  2. 2023SummIt: Iterative Text Summarization via ChatGPTcited by 54
  3. 2023GPT-3.5, GPT-4, or BARD? Evaluating LLMs Reasoning Ability in Zero-Shot Setting and Performance Boosting Through Promptscited by 34
  4. 2023Semantic Compression With Large Language Modelscited by 17
  5. 2023Large Language Model Programscited by 11
  6. 2023CQSumDP: A ChatGPT-Annotated Resource for Query-Focused Abstractive Summarization Based on Debatepediacited by 7

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 3; 2024: 18; 2025: 15; 2026: 4.

40 papers.

Sort:

By area:

  1. 2024Two Tales of Persona in LLMs: A Survey of Role-Playing and Personalizationcited by 208
  2. 2024Aya Dataset: An Open-Access Collection for Multilingual Instruction Tuningcited by 177
  3. 2025Sketch-of-Thought: Efficient LLM Reasoning with Adaptive Cognitive-Inspired Sketchingcited by 117
  4. 2025A Survey of Graph Retrieval-Augmented Generation for Customized Large Language Modelscited by 88
  5. 2024Retrieval-Augmented Generation for Natural Language Processing: A Surveycited by 71
  6. 2023EcoAssistant: Using LLM Assistant More Affordably and Accuratelycited by 49
  7. 2025When to use Graphs in RAG: A Comprehensive Analysis for Graph Retrieval-Augmented Generationcited by 48
  8. 2025A Survey on Knowledge-Oriented Retrieval-Augmented Generationcited by 36
  9. 2024BIDER: Bridging Knowledge Inconsistency for Efficient Retrieval-Augmented LLMs via Key Supporting Evidencecited by 28
  10. 2025RbFT: Robust Fine-tuning for Retrieval-Augmented Generation against Retrieval Defectscited by 27
  11. 2024DomainRAG: A Chinese Benchmark for Evaluating Domain-specific Retrieval-Augmented Generationcited by 16
  12. 2024CigaR: Cost-efficient Program Repair with LLMscited by 15
28 more
  1. 2024BLADE: Enhancing Black-box Large Language Models with Small Domain-Specific Modelscited by 15
  2. 2024iRAG: Advancing RAG for Videos with an Incremental Approachcited by 15
  3. 2023Adapting Large Language Models for Education: Foundational Capabilities, Potentials, and Challengescited by 13
  4. 2025ProPerSim: Developing Proactive and Personalized AI Assistants through User-Assistant Simulationcited by 11
  5. 2024Affordable Generative Agentscited by 9
  6. 2024VGA: Vision GUI Assistant -- Minimizing Hallucinations through Image-Centric Fine-Tuningcited by 9
  7. 2025Rescuing the Unpoisoned: Efficient Defense against Knowledge Corruption Attacks on RAG Systemscited by 9
  8. 2024QUITO: Accelerating Long-Context Reasoning through Query-Guided Context Compressioncited by 7
  9. 2024XMainframe: A Large Language Model for Mainframe Modernizationcited by 6
  10. 2025Evaluating the Robustness of Retrieval-Augmented Generation to Adversarial Evidence in the Health Domaincited by 6
  11. 2024Exploring Prompt Engineering: A Systematic Review with SWOT Analysiscited by 5
  12. 2025RedactOR: An LLM-Powered Framework for Automatic Clinical Data De-Identificationcited by 5
  13. 2023Benchmarking Large Language Model Volatilitycited by 4
  14. 2024Enhancing and Accelerating Large Language Models via Instruction-Aware Contextual Compressioncited by 4
  15. 2025GANQ: GPU-Adaptive Non-Uniform Quantization for Large Language Modelscited by 3
  16. 2024Cost-efficient Knowledge-based Question Answering with Large Language Modelscited by 2
  17. 2024A Convex-optimization-based Layer-wise Post-training Pruner for Large Language Modelscited by 2
  18. 2024Evaluating ChatGPT on Nuclear Domain-Specific Datacited by 2
  19. 2025Foundations of GenIRcited by 1
  20. 2025Context-Adaptive Synthesis and Compression for Enhanced Retrieval-Augmented Generation in Complex Domainscited by 1
  21. 2025TrafficLens: Multi-Camera Traffic Video Analysis Using LLMscited by 1
  22. 2026TSCG: Deterministic Tool-Schema Compilation for Agentic LLM Deploymentscited by 1
  23. 2026DamageScope: Vision-Language Retrieval at Scale for Disaster Damage Assessment from Satellite Imagerycited by 1
  24. 2024Evaluating the Efficacy of Foundational Models: Advancing Benchmarking Practices to Enhance Fine-Tuning Decision-Makingcited by 0
  25. 2025Fusing Knowledge and Language: A Comparative Study of Knowledge Graph-Based Question Answering with LLMscited by 0
  26. 2025BAPPA: Benchmarking Agents, Plans, and Pipelines for Automated Text-to-SQL Generationcited by 0
  27. 2026Open-SAT: LLM-Guided Query Embedding Refinement for Open-Vocabulary Object Retrieval in Satellite Imagerycited by 0
  28. 2026MITRE-SAGE: A Multi-Agent Cybersecurity Question-Answering Modelcited by 0