The Missing Coefficients: Bayesian Pairwise Merging for Model Personalization

Yaling Shen, Tongtong Wu, Siyuan Yan, Gholamreza HaffariarXiv 2026

TL;DR

Bayesian Pairwise Merging (BPM) is a new framework for personalizing generative models by inferring a user's preferred reward trade-offs from simple pairwise choices. By treating these unknown preferences as latent variables, BPM calculates optimal merge coefficients for a library of specialized "expert" models, enabling high-quality personalization without the need for expensive per-user policy training.

What Problem Does This Paper Address?

Modern AI models often need to balance competing objectives—for example, a medical summarizer must be both concise and clinically accurate. While techniques like "Rewarded Soups" can merge specialized experts to hit specific trade-offs, they require a precise vector of numerical weights (e.g., 0.7 conciseness, 0.3 accuracy).

In the real world, users are terrible at providing these numbers but excellent at saying, "I prefer summary A over summary B." The challenge lies in translating these subjective, often ambiguous pairwise choices into the concrete coefficients needed to merge models. Furthermore, when a user only provides a few comparisons, there is significant uncertainty about their true preferences that standard point-estimation methods (like Maximum Likelihood) fail to capture.

Methods

The authors propose Bayesian Pairwise Merging (BPM), which connects preference inference with model construction in a three-step pipeline:

  1. Expert Library Construction: They train a set of LoRA (Low-Rank Adaptation) experts, each fine-tuned to maximize a specific reward dimension (e.g., prose elegance, factual consistency, or brevity).
  2. Bayesian Inference: When a user provides pairwise feedback, BPM treats the reward weights as latent variables. It uses a Bradley-Terry likelihood model to update a Dirichlet prior, resulting in a posterior distribution that represents the user's preferences.
  3. Posterior-Guided Merging: Instead of picking a single "best" weight, BPM uses the posterior mean as the merge coefficients to combine the LoRA adapters into a single personalized model.
The BPM workflow: from pairwise inputs to inferred posteriors and personalized merged models.

Crucially, the spread of the posterior (the "Uncertainty") provides a mathematical measure of how much the model still doesn't know about the user, which can be used to decide if more feedback is needed.

Datasets

The researchers evaluated BPM across three diverse generation tasks:

  • Radiology Summarization: Using the MIMIC-CXR dataset to generate clinical impressions from findings.
  • Image Captioning: Using the COCO dataset to describe images for different personas (e.g., an "Indexer" vs. a "Picture Book" author).
  • Story Generation: Using the Writing Prompts dataset to generate short stories with specific stylistic leanments.

They used both simulated personas (LLMs prompted with specific "personalities") and a human proof-of-concept to validate the results.

Key Insights and Ideas

  • Stability over Optimization: One of the biggest "aha" moments is that the Bayesian posterior mean is significantly more stable than Maximum Likelihood Estimation (MLE) when feedback is limited ($n < 100$). MLE often overfits to a few choices, leading to erratic model behavior, whereas BPM's prior keeps the coefficients grounded.
  • Uncertainty as a Feature: BPM doesn't just give you a model; it tells you how confident it is. The authors found that lower posterior uncertainty generally correlates with higher win rates, meaning the model "knows" when it has successfully captured a user's style.
  • Zero-Training Personalization: Because BPM works by merging pre-trained adapters, it requires zero gradient-based training for new users. You simply run a quick MCMC sampling (which can happen on a CPU) and merge the weights.

Key Results

BPM consistently outperformed uniform merging (averaging all experts equally) and several strong baselines:

  • Win Rates: Against a uniform merge, BPM achieved win rates of 91.7% in summarization, 77.1% in captioning, and 64.3% in story generation (with 100 feedback samples).
  • Efficiency: The system shows significant gains with as few as 10 comparisons, making it practical for real-world applications where user patience is limited.
  • Preference Matching: In head-to-head tests, models personalized for a "Librarian" persona were overwhelmingly preferred by the Librarian judge, while "Literary" models were preferred by the Literary judge, demonstrating that the inferred coefficients actually translate to distinct, persona-specific behaviors.
BPM shows strong win rates that scale with the feedback budget and successfully match specific persona preferences.

Limitations and Future Work

  • The Correspondence Assumption: The method assumes that the way experts are merged (parameter space) corresponds linearly to the way rewards are traded off (objective space). While this holds well for LoRA adapters, it might not be universal for all model architectures.
  • Library Dependency: BPM is limited by the "expert library." If a user wants a style that isn't represented by any of the pre-trained experts, the model can only approximate it.
  • Computational Overhead: While faster than fine-tuning, NUTS (the sampling algorithm used) is more computationally intensive than simple point estimation. Future work could explore faster variational inference techniques.
  • Human Scaling: The current study relies heavily on simulated LLM personas. While the human proof-of-concept was successful, broader studies with diverse human populations are needed to confirm these results at scale.

Summary updated

BibTeX
@misc{shen2026missing,
  author = {Yaling Shen and Tongtong Wu and Siyuan Yan and Gholamreza Haffari},
  title = {{The Missing Coefficients: Bayesian Pairwise Merging for Model Personalization}},
  year = {2026},
  eprint = {2609.39055},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.39055},
}
Figure