Reward Generalization in RLHF: A Topological Perspective
Tianyi Qiu, Fanzhi Zeng, Jiaming Ji, Dong Yan, Kaile Wang, Jiayi Zhou, Yang Han, Josef Dai, Xuehai Pan, Yaodong Yang
TL;DR
This work analyzes reward generalization in RLHF through the topology of information flow, introducing macro-level autoencoding and micro-level induced Bayesian networks (IBN) to understand how preference data shapes RM and LM behavior. It proposes reward modeling from tree-structured preference information, showing a theoretical reduction in reward uncertainty by up to $Θ\left(\frac{\log n}{\log\log n}\right)$ and empirical improvements (~65% win rate) across three NLP tasks. The tree-based topology encodes richer dependencies than chain-based data, enabling more data-efficient learning and better generalization of rewards across diverse contexts. Together, the macro- and micro-level perspectives provide a principled pathway to design reward topologies that improve RLHF without increasing annotation effort, with practical implications for safer, more reliable LLMs.
Abstract
Existing alignment methods share a common topology of information flow, where reward information is collected from humans, modeled with preference learning, and used to tune language models. However, this shared topology has not been systematically characterized, nor have its alternatives been thoroughly explored, leaving the problems of low data efficiency and unreliable generalization unaddressed. As a solution, we introduce a theory of reward generalization in reinforcement learning from human feedback (RLHF), focusing on the topology of information flow at both macro and micro levels. At the macro level, we portray the RLHF information flow as an autoencoding process over behavior distributions, formalizing the RLHF objective of distributional consistency between human preference and model behavior. At the micro level, we present induced Bayesian networks to model the impact of dataset topologies on reward generalization. Combining analysis on both levels, we propose reward modeling from tree-structured preference information. It is shown to reduce reward uncertainty by up to $Θ(\log n/\log\log n)$ times compared to baselines, where $n$ is the dataset size. Validation on three NLP tasks shows that it achieves an average win rate of 65% against baselines, thus improving reward generalization for free via topology design, while reducing the amount of data requiring annotation.
