Alignment through Meta-Weighted Online Sampling: Bridging the Gap between Data Generation and Preference Optimization

Junming Yang, Ning Xu, Biao Liu, Shiqi Qiao, Xin Geng
9/27/2025
cs.CLcs.AIcs.LG

Official code: junming-yang/MetaAPO (2 stars, Apache-2.0, last commit 2026-02-28).

Abstract

Preference optimization is crucial for aligning large language models (LLMs) with human values and intentions. A significant challenge in this process is the distribution mismatch between pre-collected offline preference data and the evolving model policy. Existing methods attempt to reduce this gap using static heuristics or decoupled online sampling strategies, but they often fail to adapt to the model's dynamic learning state. To bridge this gap, we propose Meta-Weighted Adaptive Preference Optimization (MetaAPO), a novel framework that dynamically couples data generation with model training. MetaAPO employs a lightweight meta-learner, as an "alignment gap estimator", to evaluate the potential benefits of on-policy sampling in relation to offline data. This guides targeted online generation and assigns sample-wise meta-weights to the optimization objective, dynamically balancing the quality and distribution of online and offline data. Experiments on AlpacaEval 2, Arena-Hard and MT-Bench demonstrate that MetaAPO consistently outperforms existing preference optimization approaches across various settings, while reducing 42% in online annotation costs.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Official implementation of MetaAPO: Alignment through Meta-Weighted Online Sampling (ICLR 2026).

20Shell, PythonFeb 28, 20267 months agoApache-2.0

Cite this paper

@article{yang2025alignment,
  title  = {Alignment through Meta-Weighted Online Sampling: Bridging the Gap between Data Generation and Preference Optimization},
  author = {Junming Yang and Ning Xu and Biao Liu and Shiqi Qiao and Xin Geng},
  year   = {2025},
  eprint = {2509.23371},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.23371v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.23371.svg)](https://codeofpaper.com/paper/2509.23371)

Discussion