atlas

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

Rethinking Invariance in In-context Learning

ICLR 2025 · Large language models › Language, safety and interpretability · approach: Reasoning mechanisms and failure modes · 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 Invariant ICL (InvICL), a permutation-invariant in-context learning method that satisfies information non-leakage and context interdependence via leave-one-out pre-encoding with a parallel unrolled implementation.

Problem

In-context learning is sensitive to the ordering of context examples, and existing permutation-invariant ICL variants underperform auto-regressive ICL.

Approach

Identifies information non-leakage and context interdependence as necessary properties for invariant ICL; achieves both with a two-stage leave-one-out (LOO) bag-of-examples pre-encoding, implemented in one forward pass by duplicating the context with a LOO attention mask.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use InvICL instead of AR ICLGPT-2 Large · All target tasks (Avg.)accuracy: 41.9 -> 42.4Helped
use InvICL instead of AR ICLGPT-2 Large · Target tasks in unseen domains (Avg.)accuracy: 43.6 -> 48.4Helped
use InvICL instead of Auto-regressive ICLGPT-Neo 2.7B · All target tasks (Avg.)accuracy: 41.2 -> 41.3Helped
use InvICL instead of Auto-regressive ICLGPT-Neo 2.7B · Target tasks in unseen domains (Avg.)accuracy: 42.1 -> 42.7Helped
use InvICL instead of Auto-regressive ICLPythia-2.8B · All target tasks (Avg.)accuracy: 30.8 -> 31.9Helped
use InvICL instead of Auto-regressive ICLPythia-2.8B · Target tasks in unseen domains (Avg.)accuracy: 30.5 -> 32.4Helped
add symmetric positional encoding (ablation)AR ICL · HR→LRaccuracy: 43.4 -> 38.4 (-5.0)Hurt
add symmetric positional encoding (ablation)AR ICL · HR→LRSensitivity: 0.25 -> 0.30 (+0.05)Hurt
add invariant mask (ablation)AR ICL · HR→LRaccuracy: 43.4 -> 44.8 (+1.4)Helped
add invariant mask (ablation)AR ICL · HR→LRSensitivity: 0.25 -> 0.10 (-0.15)Helped
add invariant mask and symmetric positional encoding (ablation)AR ICL · HR→LRaccuracy: 43.4 -> 45.1 (+1.7)Helped
add invariant mask and symmetric positional encoding (ablation)AR ICL · HR→LRSensitivity: 0.25 -> 0.00 (-0.25)Helped

Surprising findings

Limitations

Experimental setup

Datasets: MetaICL 142 tasks synthetic linear regression, sparse linear regression, decision tree

Benchmarks: MetaICL 7 evaluation settings (HR→LR, Class→Class, non-Class→Class, QA→QA, non-QA→QA, non-NLI→NLI, non-Para→Para)

Metrics: accuracy MSE order sensitivity

Baselines: AR ICL NoPE Prefix ICL PCW SAICL BatchICL

Builds on: MetaICL Prefix LM PCW SAICL BatchICL

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