Abstract
Few-shot question answering (QA) aims to adapt large language models (LLMs) to specific domains using minimal labeled data. However, existing unsupervised data augmentation techniques often introduce noise by treating all sentences as equally informative. This paper presents MINPROMPT, a graph-based framework that identifies a "minimal" subset of information-dense sentences for synthetic data generation. By constructing a sentence graph based on shared entities and deriving an approximate minimal dominating set, MINPROMPT ensures maximum information coverage with minimal data volume. Evaluated across eight diverse benchmarks, MINPROMPT consistently outperforms competitive baselines in extreme low-resource settings, demonstrating improved stability and performance.
1. Introduction
While large language models are powerful, they often require fine-tuning to perform well on specific domains or tasks. In real-world scenarios, obtaining thousands of expert-labeled question-answer pairs is prohibitively expensive. This has led to the rise of few-shot QA, where models are trained on a tiny fraction of data (e.g., 16 to 128 examples). Current few-shot methods typically rely on unsupervised data augmentation—turning raw text into synthetic QA pairs. However, these methods often treat all sentences as equal, leading to a "noisy" training set filled with redundant or low-value information. MINPROMPT addresses this by identifying the most informative "minimal" subset of text to train on, rather than using the entire corpus.
2. Methodology
MINPROMPT introduces a three-stage pipeline to distill raw text into a potent training signal:
- Sentence Graph Construction: The system performs Named Entity Recognition (NER) on the raw text and builds a graph where each node is a sentence. An edge is drawn between two sentences if they share at least one common entity, capturing the "factual density" and interconnectedness of the discourse.
- Data Selection via Minimal Dominating Set: To find the most informative sentences, the authors apply a graph algorithm to find an Approximate Minimal Dominating Set. This identifies the smallest group of sentences that "covers" or connects to every other part of the entity-sharing network, ensuring maximum information coverage with minimum data volume.
- Unsupervised Question Generation: Selected sentences are transformed into QA pairs using two styles: Cloze-style (masking an entity) and Templated "Wh-" (using bigram starters like "Who" or "What" based on entity types).
Finally, the model (using a BART-large backbone) is fine-tuned on a weighted combination of the original few-shot labels and these high-density augmented prompts.
3. Experimental Setup
The authors evaluated MINPROMPT on eight diverse benchmark datasets from the MRQA 2019 shared task, covering various domains including General/Wiki (SQuAD, TriviaQA, NQ, HotpotQA), News (NewsQA), Search/Web (SearchQA), Biomedical (BioASQ), and Education (TextbookQA). The experiments focused on extremely low-resource settings: 16, 32, 64, and 128 training shots.
4. Results and Key Insights
MINPROMPT consistently outperformed competitive baselines like Splinter, FewshotQA, and PMR across almost all datasets. The gains were most notable at the 16 and 32-shot levels; for example, on TriviaQA (16-shot), MINPROMPT helped the base model jump from an F1 score of ~19 to ~35.
Key Findings:
- Information Density > Data Volume: Sentences that link multiple entities act as knowledge "hubs." Training on these hubs provides a cleaner, more efficient signal than training on the entire corpus.
- Graph Theory as a Filter: Framing text selection as a "dominating set" problem provides a mathematical basis for ensuring the selected data covers the most important factual relationships.
- Reduced Variance: MINPROMPT consistently showed lower variance than baselines, suggesting that graph-based augmentation provides a more stable foundation for few-shot learning.
- Qualitative Accuracy: Case studies showed that MINPROMPT-trained models were better at distinguishing between similar entities because the training prompts were anchored specifically to entity relationships.
5. Conclusion and Future Work
MINPROMPT demonstrates that intelligent data selection is as crucial as data generation in few-shot learning. While effective, the system currently depends on the quality of the initial NER model. Future work could involve weighting graph edges based on entity significance and moving toward fully automated, LLM-generated templates to further improve the diversity of augmented data.
Summary updated