← Back to all articles
arXiv cs.CLSeptember 23, 2026

ClusterFewshot: Improving Few-shot Optimization for LLMs workflow

Excerpt

arXiv:2609.25939v1 Announce Type: new 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