atlas

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

PICASO: Permutation-Invariant Context Composition with State Space Models

ICLR 2025 · Large language models › Language, safety and interpretability · approach: Controlled text generation · 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 PICASO, which composes precomputed SSM states of multiple retrieved contexts into one permutation-invariant state (averaging CASO states over permutations), enabling fast RAG-style conditioning without processing context tokens.

Problem

Conditioning a state space language model on multiple retrieved contexts requires processing them online, which is costly; existing SSMs have no principled way to compose multiple precomputed states, and the context order is often uninformative.

Approach

Derives an exact single-layer identity that composes context states into the state of their concatenation (CASO), then averages CASO states over permutations (full symmetric group via dynamic programming, or cyclic group in linear time) to enforce permutation invariance; fine-tuning with backpropagation through or to the composition closes the gap to concatenation.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use PICASO-R instead of concatenation for retrieved contextsMamba2-2.7B · MSMARCO validation, zero-shotlog-perplexityHurt
Use PICASO-R instead of concatenation for retrieved contextsMamba2-2.7B · WikiText-V2, zero-shotperformance improvement: 11.1% -> 10.1%Hurt
Use PICASO-R instead of concatenation for retrieved contextsMamba-2 2.7B · OpenbookQA with retrieved WikiText passagesaccuracy: 40.0% -> 39.9%Hurt
Use PICASO-R instead of CASO by averaging cyclic permutations (ablation)Mamba-2 2.7B · WikiText-V2, zero-shotperformance improvement: 9.2% -> 10.1%Helped
Use PICASO-R instead of CASO by averaging cyclic permutations (ablation)Mamba-2 2.7B · MSMARCO validationlog-perplexity: 1.56 -> 1.52Helped
Replace cyclic permutations with full permutation averaging (ablation)PICASO · MSMARCO validationlog-perplexity: 1.52 -> 1.52No clear effect
Replace cyclic permutations with full permutation averaging (ablation)PICASO · WikiText-V2, zero-shotperformanceNo clear effect
Average independent context states instead of composing CASO states (ablation)Mamba-2 2.7B · WikiText-V2performanceHurt
Fine-tune with BP2C on MSMARCO contexts (ablation)PICASO-R · MSMARCO validationlog-perplexity: 1.52 -> 0.69Helped
Fine-tune with BPTC on MSMARCO contexts (ablation)PICASO-R · MSMARCO validationlog-perplexity: 1.52 -> 0.65Helped
Use BP2C rather than BPTC fine-tuning (ablation)PICASO-R · MSMARCO validationlog-perplexity: 0.65 -> 0.69Hurt
Use stronger context retriever embeddings (ablation)PICASO-R · WikiTextperformanceHelped

Surprising findings

Limitations

Experimental setup

Datasets: WikiText-V2 MSMARCO OpenbookQA HellaSwag PIQA ARC-E ARC-C WinoGrande

Benchmarks: WikiText-V2 MSMARCO OpenbookQA HellaSwag PIQA ARC-E ARC-C WinoGrande

Metrics: log-perplexity latency / composition time precision (data attribution) normalized accuracy

Baselines: Concatenation Soup CASO PIConcat-R No-retrieval baseline

Builds on: Mamba-2 Model Soup CASO

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