atlas

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

PEARL: Towards Permutation-Resilient LLMs

ICLR 2025 · Large language models › Language, safety and interpretability · approach: Safety alignment of LLMs · 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 PEARL, a distributionally robust training framework in which a Sinkhorn-based permutation-proposal network adversarially reorders ICL demonstrations, making LLMs robust to demonstration-order attacks.

Problem

LLMs' in-context learning is highly sensitive to the order of demonstrations, enabling permutation-based attacks that are hard to detect and degrade worst-case performance.

Approach

Frames training as a min-max DRO game over the set of all demonstration permutations; a P-Net (encoder + cross-demonstration layer + Sinkhorn operator with Gumbel sampling and entropy regularization) proposes worst-case permutations while the LLM is trained to minimize loss on them, with only the LLM kept at inference.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Train with PEARL's adversarial permutation DRO instead of ERMLlama3-8B · 2-shot held-out tasksAverage ROUGE-L: 57.3 -> 62.9Helped
Train with PEARL's adversarial permutation DRO instead of ERMLlama3-8B · 2-shot held-out tasksWorst-case ROUGE-L: 49.4 -> 56.4Helped
Train with PEARL's adversarial permutation DRO instead of ERMLlama3-8B · 3-shot held-out tasksWorst-case ROUGE-L: 38.3 -> 46.9Helped
Train with PEARL's adversarial permutation DRO instead of ERMLlama3-8B · 4-shot held-out tasksWorst-case ROUGE-L: 30.6 -> 39.6Helped
Train with PEARL on 5-shot demonstrations and evaluate at higher shot countsLlama3-8B · 8-shot held-out tasksWorst-case ROUGE-L: 21.3 -> 29.7Helped
Train with PEARL on 5-shot demonstrations and evaluate at higher shot countsLlama3-8B · 16-shot held-out tasksWorst-case ROUGE-L: 21.3 -> 26.3Helped
Train with PEARL on 5-shot demonstrations and evaluate at higher shot countsLlama3-8B · 32-shot held-out tasksWorst-case ROUGE-L: 19.3 -> 26.4Helped
Train with PEARL on 5-shot demonstrations and evaluate at higher shot countsLlama3-8B · 64-shot held-out tasksWorst-case ROUGE-L: 20.6 -> 28.2Helped
Vary Sinkhorn iteration count and temperature (ablation)PEARL · Instruction fine-tuning held-out tasksAverage and worst-case performanceNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: Super-Natural Instructions FLAN v2 synthetic linear-function ICL data

Benchmarks: CommonsenseQA Curiosity Dialogue (CurDial) CoLA Tell Me Why (TMW)

Metrics: ROUGE-L worst-case performance average performance attack success rate normalized squared error

Baselines: ERM ERM+DS ERM+IM InfoAC ERM+CL

Builds on: distributionally robust optimization InfoAC Gumbel-Sinkhorn permutation 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