Ensembling Language Models with Sequential Monte Carlo

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Chan, Robin Shing Moon, Liu, Tianyu, Kiegeland, Samuel, Pasti, Clemente, Vigly, Jacob Hoover, O'Donnell, Timothy J., Cotterell, Ryan, Vieira, Tim
Format: Preprint
Veröffentlicht: 2026
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866912945588404224
author Chan, Robin Shing Moon
Liu, Tianyu
Kiegeland, Samuel
Pasti, Clemente
Vigly, Jacob Hoover
O'Donnell, Timothy J.
Cotterell, Ryan
Vieira, Tim
author_facet Chan, Robin Shing Moon
Liu, Tianyu
Kiegeland, Samuel
Pasti, Clemente
Vigly, Jacob Hoover
O'Donnell, Timothy J.
Cotterell, Ryan
Vieira, Tim
contents 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 $K$ language models into $f$-ensemble distributions for a wide range of functions $f\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 $f$-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.
format Preprint
id arxiv_https___arxiv_org_abs_2603_05432
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Ensembling Language Models with Sequential Monte Carlo
Chan, Robin Shing Moon
Liu, Tianyu
Kiegeland, Samuel
Pasti, Clemente
Vigly, Jacob Hoover
O'Donnell, Timothy J.
Cotterell, Ryan
Vieira, Tim
Computation and Language
Artificial Intelligence
Machine Learning
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 $K$ language models into $f$-ensemble distributions for a wide range of functions $f\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 $f$-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.
title Ensembling Language Models with Sequential Monte Carlo
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2603.05432