analiza aiqbench
This research introduces DearICL, a novel framework that treats in-context learning sample selection as a dynamic subset ranking problem rather than a static offline task. By employing a gap-index bandit algorithm with a non-linear surrogate, the method achieves significant accuracy gains on open-source LLMs while reducing sample complexity. The approach effectively models the complex relationship between demonstration examples and downstream performance to better generalize across unseen queries.
Data Efficient Sample Selection for In-Context Learning
De la arXiv
Text integralThe In-context learning (ICL) paradigm aids large language models (LLMs) to adapt to new tasks without need for fine-tuning. However, selecting an optimal combination of demonstration examples from a large pool of example subsets is a challenging problem. Existing approaches for selection do not model the complex relationship between ICL samples and downstream LLM performance. They typically perform static task-level selection, choosing subsets once offline, which can fail to generalize to unseen queries.
We introduce DearICL (Data Efficient Algorithm for Ranking) ICL samples, a new framework that models demonstration example selection as a subset ranking problem. DearICL employs a non-linear surrogate employing a differentiable sorting objective within a gap-index bandit algorithm. The gap-index based approach enables fine-grained separation of good arms and borderline arms, which is used as an auxiliary objective to train the non-linear surrogate through sufficient sampling of borderline arms, supporting instance-level subset ranking. On exemplar selection benchmarks with open-source LLMs, DearICL achieves 8.08-15.9% accuracy gains over strong linear bandit baselines, with low sample complexity. Code and data: this https URL.
Text integral sub licența deschisă a publicației · 173 cuvinte