atlas

Research map / Large language models / Instruction and fine-tuning

Order-Independence Without Fine Tuning

NeurIPS 2024 · Large language models › Instruction and fine-tuning · approach: Fine-tuning generalization and delta compression · 1 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-Based Prompting, an inference-time change to attention mask and positional encoding that makes parallel sub-sequences (e.g., MCQ options) order-independent for pretrained transformer LLMs without fine-tuning.

Problem

LLM outputs change significantly when semantically identical sub-sequences (such as multiple-choice options or documents) are reordered, causing order dependency that harms reliability and comparability of benchmark results.

Approach

Remove ordering information between a specified set of sub-sequences by using a non-triangular attention mask (tokens see only their own sub-sequence, shared prefix, and label-free tokens) together with positional indices reset at the start of each sub-sequence, provably making outputs invariant to sub-sequence permutations, applied drop-in at inference time with no training.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply Set-Based Prompting to the answer optionsLLMs on modified CSQA · modified CSQAaccuracyMixed
Apply Set-Based Prompting to the answer optionsLlama 2 models · MMLUaccuracyNo clear effect
Apply Set-Based Prompting to the answer optionsLlama 3 models · MMLUaccuracyMixed
Modify only the attention mask (ablation)Set-Based Prompting · MMLU, first 20 question setsaccuracy variation across normal and reversed option ordersHelped
Modify only the positional encoding (ablation)Set-Based Prompting · MMLU, first 20 question setsaccuracy variation across normal and reversed option ordersMixed
Add option numbers to the inputs (ablation)Set-Based Prompting · MMLU, first 20 questionsaccuracyHelped
Add a chain-of-thought prompt (ablation)Set-Based Prompting and order-dependent prompting · MMLU, first 20 question setsaccuracyHelped
Apply Set-Based Prompting to the in-context examplesLLMs on Financial Phrase Bank sentiment classification · Financial Phrase BankaccuracyHelped
Process documents in parallel rather than sequentiallyLLMs on long-context information retrieval · 10-document information retrievalretrieval accuracyMixed
Process the input as parallel subsequencesLlama 2 7B · 6,018-token document summarizationsummary coherenceHelped

Surprising findings

Limitations

Experimental setup

Datasets: CommonsenseQA MMLU Financial Phrase Bank Long-context retrieval (Liu et al. setup)

Benchmarks: CommonsenseQA MMLU Financial Phrase Bank sentiment ICL long-context document retrieval

Metrics: accuracy worst-of-2 accuracy best-of-2 accuracy accuracy distribution across all 24 MMLU permutations

Baselines: unmodified model with normal ordering unmodified model with reversed ordering partial implementations (attention mask only, positional encoding only)

Builds on: transformer self-attention rotary positional embeddings absolute positional embeddings

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