cs.CLMar 5, 2026

Ensembling Language Models with Sequential Monte Carlo

Authors: Robin Shing Moon Chan, Tianyu Liu, Samuel Kiegeland, Clemente Pasti, Jacob Hoover Vigly, Timothy J. O'Donnell, Ryan Cotterell, Tim Vieira

Organizations: ETH Zürich · CHI-FRO · McGill University · Mila · 

Abstract

Practitioners have access to an abundance of language models and prompting strategies for solving many language modeling tasks; yet prior work shows that modeling performance is highly sensitive to both choices. Classical machine learning ensembling techniques offer a principled approach: aggregate predictions from multiple sources to achieve better performance than any single one. However, applying ensembling to language models during decoding is challenging: naively aggregating next-token probabilities yields samples from a locally normalized, biased approximation of the generally intractable ensemble distribution over strings. In this work, we introduce a unified framework for composing KK language models into ff-ensemble distributions for a wide range of functions f ⁣:R≥0K→R≥0f\colon\mathbb{R}_{\geq 0}^{K}\to\mathbb{R}_{\geq 0}. To sample from these distributions, we propose a byte-level sequential Monte Carlo (SMC) algorithm that operates in a shared character space, enabling ensembles of models with mismatching vocabularies and consistent sampling in the limit. We evaluate a family of ff-ensembles across prompt and model combinations for various structured text generation tasks, highlighting the benefits of alternative aggregation strategies over traditional probability averaging, and showing that better posterior approximations can yield better ensemble performance.

Figures & tables

Appendix figures & tables11 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Rethinking LLM Ensembling from the Perspective of Mixture Models

    May 1, 2026Jiale Fu, Yuchu Jiang, Peijun Wu +3LLM Inference AccelerationLLM Routing

  2. Faster LLM Inference via Sequential Monte Carlo

    Apr 17, 2026Yahya Emara, Mauricio Barba da Costa, Chi-Chih Chang +4Speculative DecodingLLM Inference Acceleration

  3. Keep the Lineages Alive: Diversity-Preserving SMC for Diffusion LLM Decoding

    Oct 19, 2026Minoo Ahmadi, Seyedarmin Azizi, Mehdi Kamal +1Language Model DecodingDiffusion Language Model Decoding