ClusterFewshot: Improving Few-shot Optimization for LLMs workflow

📅 2026-09-22
📈 Citations: 0
✨ Influential: 0
📄 PDF
🤖 AI Summary
本文提出ClusterFewshot方法,通过结合语义结构和效用评分来选择少量示例,以优化大型语言模型的工作流程,提高准确性和降低成本。
📝 Abstract
The performance of large language model (LLM) workflows often depends on selecting a small set of in-context demonstrations to guide model behavior on new tasks. Recent methods improve this process by augmenting prompts with successful reasoning paths. However, their demonstration selection relies on random sampling or metric-based rankings, overlooking the semantic structure of the task. We propose ClusterFewshot, a strategy that combines semantic structuring with utility-aware scoring to construct representative and effective few-shot demonstration sets. Evaluated within DSPy-based pipelines, ClusterFewshot substantially reduces optimization cost across multiple benchmarks, while consistently improving accuracy relative to prior bootstrap-based methods in both standalone prompt tuning and hybrid prompt-weight optimization.
Problem

Research questions and friction points this paper is trying to address.

few-shot optimization
semantic structure
demonstration selection
Innovation

Methods, ideas, or system contributions that make the work stand out.

semantic structuring
utility-aware scoring
few-shot demonstrations
O
Omri Bar Haim
Blavatnik School of Computer Science, Tel Aviv University
S
Shahar Katz
Blavatnik School of Computer Science, Tel Aviv University
Lior Wolf
Lior Wolf
The School of Computer Science at Tel Aviv University