Understanding the Logic of Direct Preference Alignment through Logic
Kyle Richardson, Vivek Srikumar, Ashish Sabharwal
TL;DR
This paper addresses the lack of a principled framework for understanding direct preference alignment (DPA) losses used to align large language models with human preferences. It introduces a symbolic, probabilistic approach that treats model outputs as logical propositions and uses weighted model counting to define semantic losses, then develops a decompilation procedure to recover a modular preference-structure representation from any given loss. By defining Preference Structures $(\mathsf{P},\mathsf{P}_{\mathbf{C}},\mathsf{P}_{\mathbf{A}})$ and extending semantic loss to $\ell_{sl}(\overline{\mathsf{P}},\theta,D)$, the authors reveal a doubly-exponential space of definable losses ($4^{2^{n}}$ for $n$ predictions) organized into an entailment lattice. A case study demonstrates how the framework can guide the discovery of empirically competitive losses (e.g., $\ell_{cCPO}$) and shows how losses with different constraining semantics behave across datasets, offering a roadmap for systematic loss design in human-AI alignment.
Abstract
Recent direct preference alignment algorithms (DPA), such as DPO, have shown great promise in aligning large language models to human preferences. While this has motivated the development of many new variants of the original DPO loss, understanding the differences between these recent proposals, as well as developing new DPA loss functions, remains difficult given the lack of a technical and conceptual framework for reasoning about the underlying semantics of these algorithms. In this paper, we attempt to remedy this by formalizing DPA losses in terms of discrete reasoning problems. Specifically, we ask: Given an existing DPA loss, can we systematically derive a symbolic program that characterizes its semantics? We propose a novel formalism for characterizing preference losses for single model and reference model based approaches, and identify symbolic forms for a number of commonly used DPA variants. Further, we show how this formal view of preference learning sheds new light on both the size and structure of the DPA loss landscape, making it possible to not only rigorously characterize the relationships between recent loss proposals but also to systematically explore the landscape and derive new loss functions from first principles. We hope our framework and findings will help provide useful guidance to those working on human AI alignment.
