atlas

Research map / Large language models / AI and society

Context is Environment

ICLR 2024 · Large language models › AI and society · approach: Critiques of LLM claims and judging · 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 In-Context Risk Minimization (ICRM), which treats domain generalization as next-token prediction with unlabeled test-environment context, and shows gains over ERM, ARM and TENT on four image DG benchmarks.

Problem

Domain generalization methods fail to beat ERM across real-world benchmarks; existing invariance and marginal-transfer methods discard or coarsely summarize environment information at the example level.

Approach

Treat environments as context: train a transformer to predict each label from the input plus preceding unlabeled examples from the same environment, so the model adaptively "zooms in" on the test-environment risk minimizer and can exploit example-level signals; the extended input-context feature space also reveals invariances that ERM misses.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add 25 unlabeled same-environment test examples as contextICRM · FEMNISTaverage test accuracy: 78.7 -> 87.2Helped
Add 25 unlabeled same-environment test examples as contextICRM · Rotated MNISTaverage test accuracy: 93.6 -> 96.1Helped
Add 25 unlabeled same-environment test examples as contextICRM · WILDS Camelyon17average test accuracy: 92.0 -> 90.7Hurt
Add 25 unlabeled same-environment test examples as contextICRM · Tiny ImageNet-Caverage test accuracy: 38.3 -> 39.2Helped
Use pooled iid samples rather than same-environment examples in training context sequences (ablation)ICRM · FEMNISTaverage test accuracy: 87.2 -> 81.1Hurt
Use pooled iid samples rather than same-environment examples in training context sequences (ablation)ICRM · Rotated MNISTaverage test accuracy: 96.1 -> 92.6Hurt
Use pooled iid samples rather than same-environment examples in training context sequences (ablation)ICRM · WILDS Camelyon17average test accuracy: 90.7 -> 90.7No clear effect
Use pooled iid samples rather than same-environment examples in training context sequences (ablation)ICRM · Tiny ImageNet-Caverage test accuracy: 39.2 -> 39.3No clear effect
Use the ICRM Transformer architecture without context (ablation)ERM · WILDS Camelyon17average test accuracy: 68.6 -> 50.1Hurt
Use the ICRM Transformer architecture without context (ablation)ERM · FEMNISTaverage test accuracy: 79.3 -> 77.4Hurt
Use the ICRM Transformer architecture for ARM (ablation)ARM · Tiny ImageNet-Caverage test accuracy: 30.8 -> 5.5Hurt
Use the ICRM Transformer architecture for ARM (ablation)ARM · FEMNISTaverage test accuracy: 49.5 -> 71.4Helped

Surprising findings

Limitations

Experimental setup

Datasets: FEMNIST Rotated MNIST WILDS Camelyon17 Tiny ImageNet-C

Benchmarks: FEMNIST Rotated MNIST WILDS Camelyon17 Tiny ImageNet-C

Metrics: average test accuracy worst-case test accuracy

Baselines: ERM ARM TENT ICRM-Mix ERM+ ARM+

Builds on: empirical risk minimization adaptive risk minimization GPT-2 DomainBed

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