cd /news/large-language-models/coffeqa-counterfactual-guided-few-sh… · home › topics › large-language-models › article
[ARTICLE · art-149441] src=arxiv.org ↗ pub= topic=large-language-models verified=true sentiment=↑ positive

COFFEQA: Counterfactual-Guided Few-Shot Distillation for LLM Question Answering

Researchers proposed COFFEQA, a counterfactual-guided few-shot distillation strategy for open-book question answering that improves over factual-only distillation baselines under the same few-shot budget. On TriviaQA with 32 few-shot pairs in the T5 setting, COFFEQA gained 8.77 average EM points and 9.98 average F1 points, according to the arXiv paper 2610.12837v1. The work also introduces Context Following Difficulty (CFD), a metric that validates counterfactuals before distillation, and reports gains across five in-domain and three out-of-domain QA benchmarks using T5 and Qwen2.5 model families.

by read1 min views1 publishedOct 12, 2026

arXiv:2610.12837v1 Announce Type: new Abstract: Knowledge distillation aims to train a smaller student model to mimic a larger teacher model for resource-constrained environments. However, the process of distillation is typically data-intensive and computationally expensive, particularly for generative tasks. Few-shot distillation offers an alternative by transferring teacher knowledge using limited training samples. However, we observe that few-shot distillation performance is heavily dependent on the choice of these training samples. In fact, we demonstrate that using more uncertain samples near the teacher's decision boundary can significantly deteriorate distillation performance. Motivated by this observation, we propose Counterfactual-guided Few-shot Distillation in Open-book Question Answering (COFFEQA), a novel strategy that aptly uses counterfactuals to provide additional supervision around challenging factual samples. In the generative QA setting, we define a counterfactual as a minimally modified context that induces the teacher to change its response to an alternative answer. We provide geometric insights on how factual-counterfactual pairs can constrain the deviation between the teacher's and student's decision boundaries. We further introduce a new metric, Context Following Difficulty (CFD) that further validates counterfactuals prior to distillation based on agreement with the intended alternative answer and dependence on the modified context. COFFEQA uses CFD-validated factual-counterfactual pairs for few-shot distillation. Experiments across five in-domain and three out-of-domain QA benchmarks using T5 and Qwen2.5 families show that COFFEQA outperforms factual-only distillation baselines under the same few-shot budget. For instance, on TriviaQA, COFFEQA improves over the factual-only baseline by 8.77 average EM points and 9.98 average F1 points under the T5 setting with 32 few-shot pairs.

── more in #large-language-models 4 stories · sorted by recency
── more on @coffeqa 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/coffeqa-counterfactu…] indexed:0 read:1min 2026-10-12 · —