atlas

Research map / Large language models / Retrieval and knowledge

MIR-Bench: Can Your LLM Recognize Complicated Patterns via Many-Shot In-Context Reasoning?

NeurIPS 2025 · Large language models › Retrieval and knowledge · approach: Long-context and personalized retrieval · 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.

Introduces MIR-Bench, a many-shot (up to 2048 shots) in-context pattern recognition benchmark built from introductory coding functions with LLM-written data generators, and evaluates ~21 LLMs on it.

Problem

Existing pattern recognition benchmarks for LLMs use few examples (<10), while many-shot in-context reasoning, aggregating information from hundreds to thousands of input-output examples, is largely unevaluated beyond classification.

Approach

Generate many-shot inductive/transductive tasks automatically from existing coding-benchmark solution functions by having GPT-4o write data generators (20000 shots and 10 test cases per function), then select a hard MIR-Core subset whose difficulty grows most from few to many shots.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Omit CoT rather than produce CoT (ablation)MIR-Core evaluated with Claude-3.5-Sonnet, GPT-4o-0806, and o1-mini-0912 · MIR-Core, averaged over 4–2048 shotsaccuracy: Claude-3.5-Sonnet: 0.585 -> 0.775; GPT-4o-0806: 0.488 -> 0.540; o1-mini-0912: 0.334 -> 0.696Helped
Use SolverLearner (write code, then execute) (ablation)MIR-Core; effect differs across models · MIR-Core, 16–1024 shotsaccuracy: DeepSeek-R1: +0.022, +0.007, +0.018, +0.003; GPT4o-0806: +0.012, -0.033, -0.029, +0.004; Gemini-1.5 Pro-002: -0.029, -0.Mixed
Select 64 shots by embedding similarity rather than random selection (ablation)MIR-Core with GPT-4o-0806 and Gemini-1.5 Pro · MIR-Core, 128–2048 candidate shotsaccuracy: GPT-4o: 51.77 vs 50.40; 49.83 vs 50.17; 49.33 vs 50.90; 49.60 vs 51.03; 50.53 vs 51.63; Gemini-1.5-Pro: 51.53 vs 51.20; No clear effect
Increase the number of shots beyond 512Most evaluated LLMs on MIR-Extended · MIR-Extended, many-shot ICLaccuracyHurt
Add incorrect examples to the in-context shots (ablation)LLMs on MIR-Core · MIR-Core, 64 shots and error ratios through 3/4accuracyHurt
Provide out-of-domain meta-shot reasoning demonstrations (ablation)Gemini-1.5 Pro-002 and Gemini-1.5 Flash-002 · MIR-Core, forced-CoT accuracyaccuracy: Gemini-1.5 Pro-002, 4 shots: 38.67 -> 42.97 (0 to 32 meta-shots); Gemini-1.5 Flash-002, 4 shots: 37.93 -> 40.74Mixed
Force CoT instead of no CoT (ablation)Most non-thinking LLMs on MIR-Core · MIR-Core, forced CoT vs no CoTaccuracyHurt
Use forced CoT instead of forced nonsense (ablation)GPT-4o, Gemini, and Mistral models on MIR-Core · MIR-Core, forced CoT vs forced nonsenseaccuracyHelped

Surprising findings

Limitations

Experimental setup

Datasets: HumanEval+ MBPP+ APPS

Benchmarks: MIR-Extended MIR-Core

Metrics: exact match accuracy accuracy gap D between few-shot and many-shot

Baselines: o1-preview o1-mini GPT-4o Claude-3.5-Sonnet Gemini-1.5 Pro Mistral-Large-2 SolverLearner

Builds on: SolverLearner many-shot in-context learning HumanEval+ MBPP+ APPS

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