atlas

Research map / Large language models / Language, safety and interpretability

Mixture of Demonstrations for In-Context Learning

NeurIPS 2024 · Large language models › Language, safety and interpretability · approach: In-context learning analysis · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes MoD, a mixture-of-experts demonstration retriever for in-context learning that clusters the demonstration pool into expert groups and trains each expert with a coordinate-descent-inspired contrastive objective.

Problem

Demonstration selection for in-context learning suffers from a huge combinatorial search space over demonstration sets and from noisy training signals when unhelpful demonstrations are sampled alongside the candidate being scored.

Approach

Partition the demonstration pool via K-means into expert groups, train a retriever per expert, and use expert-wise (coordinate-descent-style) training that fixes the other selected demonstrations while scoring one candidate, so the supervision signal comes from a set of already-good demonstrations; at inference, experts jointly contribute demonstrations in proportion to query-centroid similarity.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use MoD instead of CEILICL retriever with GPT-Neo · CMSQA validationaccuracy: 37.18 -> 43.24Helped
use MoD instead of CEILICL retriever with GPT-Neo · SST-5 validationaccuracy: 47.05 -> 48.12Helped
use MoD instead of CEILICL retriever with GPT-Neo · GeoQuery validationexact match: 73.21 -> 73.75Helped
use MoD instead of CEILICL retriever with GPT-Neo · MTOP validationexact match: 67.43 -> 69.32Helped
add few-shot scoring (ablation)MoD · SST-5accuracy: 44.07 -> 48.12Helped
add few-shot scoring (ablation)MoD · CMSQAaccuracy: 41.65 -> 43.24Helped
add few-shot scoring (ablation)MoD · GeoQueryexact match: 71.35 -> 73.75Helped
add few-shot scoring (ablation)MoD · MTOPexact match: 64.36 -> 69.32Helped
select the highest-scored fixed demonstrations instead of random ones (ablation)MoD · SST-5accuracy: 46.42 -> 48.12Helped
select the highest-scored fixed demonstrations instead of random ones (ablation)MoD · CMSQAaccuracy: 42.69 -> 43.24Helped
select the highest-scored fixed demonstrations instead of random ones (ablation)MoD · GeoQueryexact match: 72.77 -> 73.75Helped
select the highest-scored fixed demonstrations instead of random ones (ablation)MoD · MTOPexact match: 66.89 -> 69.32Helped

Surprising findings

Limitations

Experimental setup

Datasets: SST-5 MRPC MNLI QNLI CMSQA HellaSwag WebQs GeoQuery NL2Bash Break MTOP SMCalFlow

Benchmarks: SST-5 MRPC QNLI MNLI CMSQA HellaSwag WebQs GeoQuery NL2Bash Break MTOP SMCalFlow

Metrics: accuracy exact match LF-EM

Baselines: Random TopK-BM25 TopK-Contriver TopK-SimCSE TopK-BERT EPR CEIL

Builds on: CEIL EPR mixture of experts contrastive learning

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy