atlas

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

Set-LLM: A Permutation-Invariant LLM

NeurIPS 2025 · Large language models › Language, safety and interpretability · approach: Uncertainty quantification for 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 Set-LLM, a decoder-only LLM adaptation (removing causal mask and sequential positions, adding set positional encoding and set attention mask) that is provably permutation-invariant to answer-choice order, and evaluates it on four multiple-choice benchmarks with five base models.

Problem

LLMs are sensitive to the order of options in multiple-choice questions and LLM judges, so answers change under reordering of choices; existing mitigations like majority vote over all permutations incur exponential runtime cost.

Approach

Build permutation invariance into the architecture: replace causal masking with prefix masking, drop sequential positions (NoPE), add set position encodings that number set elements from a shared start position, and add a set attention mask that blocks attention between different elements of the same set, with a proof of set permutation equivariance and invariance.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add SetMask to Prefix Mask+SetPE (ablation)Set-LLM (Gemma 2B) · PIQA, ARC-Challenge, CommonsenseQA, and SIQAaccuracy (%): 81.23 -> 84.33; 51.28 -> 57.76; 77.31 -> 79.93; 71.24 -> 75.38Helped
Remove sequential positional encoding (NoPE) while retaining causal mask (ablation)Gemma 2B · PIQA, ARC-Challenge, CommonsenseQA, and SIQArandom-order accuracy (%): 84.11 -> 74.37; 55.20 -> 35.70; 78.31 -> 68.49; 74.80 -> 63.21Hurt
Replace causal mask with prefix mask while using NoPE (ablation)Gemma 2B · PIQA, ARC-Challenge, CommonsenseQA, and SIQArandom-order accuracy (%): 74.37 -> 74.54; 35.70 -> 32.08; 68.49 -> 49.14; 63.21 -> 51.02Mixed
Add SetPE and SetMask to Prefix Mask+NoPE (ablation)Gemma 2B · PIQA, ARC-Challenge, CommonsenseQA, and SIQArandom-order accuracy (%): 74.54 -> 84.33; 32.08 -> 57.76; 49.14 -> 79.93; 51.02 -> 75.38Helped
Add UltraFeedback additional pretraining (ablation)SetMask+SetPE (Gemma 2B) · PIQA, ARC-Challenge, CommonsenseQA, and SIQArandom-order accuracy (%): 84.33 -> 85.80; 57.76 -> 65.02; 79.93 -> 80.18; 75.38 -> 76.15Helped
Add UltraFeedback additional pretraining (ablation)Causal Mask+PE, finetuned Gemma 2B · PIQA, ARC-Challenge, CommonsenseQA, and SIQArandom-order accuracy (%): 84.11 -> 83.98; 55.20 -> 56.32; 78.31 -> 77.89; 74.80 -> 74.33Mixed
Add SetMask+SetPE instead of Causal Mask+PE Ultra single runGemma 2B · PIQA, ARC-Challenge, CommonsenseQA, and SIQA adversarial orderaccuracy (%): 77.31 -> 85.80; 26.88 -> 65.02; 68.47 -> 80.18; 63.97 -> 76.15Helped
Use SetMask+SetPE rather than Causal Mask+PE Ultra single runGemma 2B · PIQA random orderaccuracy (%): 83.98 -> 85.80Helped
Use SetMask+SetPE rather than Causal Mask+PE Ultra single runGemma 2B · ARC-Challenge random orderaccuracy (%): 56.32 -> 65.02Helped
Use SetMask+SetPE rather than Causal Mask+PE Ultra single runGemma 2B · CommonsenseQA random orderaccuracy (%): 77.89 -> 80.18Helped
Use SetMask+SetPE rather than Causal Mask+PE Ultra single runGemma 2B · SIQA random orderaccuracy (%): 74.33 -> 76.15Helped

Surprising findings

Limitations

Experimental setup

Datasets: UltraFeedback PIQA ARC-Challenge CommonsenseQA SIQA

Benchmarks: PIQA ARC-Challenge CommonsenseQA SIQA

Metrics: accuracy (random-order average) accuracy (adversarial-order worst case)

Baselines: Causal Mask+PE finetuned Causal Mask+PE majority vote Causal Mask+PE Ultra finetuned Prefix Mask+PE

Builds on: RoPE LoRA prefix masking (T5) Deep Sets majority vote over permutations

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