Manuscript Offprint

arXiv:2610.31862

Aligning Large Language Models with Human Feedback: Mathematical Foundations and Algorithm Design

Siliang Zeng, Luca Viano, Chenliang Li, Jiaxiang Li, Volkan Cevher, Markus Wulfmeier, Stefano Ermon, Alfredo Garcia, Mingyi Hong

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

This article provides an introduction to the mathematical foundations and algorithmic frameworks used to align Large Language Models (LLMs) with human intentions, preferences, and values. We discuss standard alignment techniques, such as fine-tuning (SFT), reinforcement learning with human feedback (RLHF), and direct preference optimization (DPO). We also explore the theoretical underpinnings of learning from human preferences, drawing connections to inverse reinforcement learning (IRL) and discrete choice models. We present state-of-the-art algorithms in a tutorial style, discuss their advantages and limitations, and offer insights into practical implementation. Our exposition is intended to serve as a comprehensive resource for researchers and practitioners, providing both a foundational understanding of alignment methodologies and a framework for developing more robust and scalable alignment techniques.

1 Introduction

Background. As large language models (LLMs) have taken the world by storm, it is clear that generative AI systems will soon become ubiquitous in our lives. LLMs have been applied beyond chatbots and personal assistants to tackle complex challenges, including video gaming [1][1] and autonomous control [2][2]. After the successful introduction and demonstrated efficacy of alignment training in LLMs [3,4][3, 4], the concept of alignment has been playing an increasingly important role in the design and training of AI systems. Loosely speaking, alignment refers to the performance guarantee that the AI system will generate outcomes that are intended or preferred by the human user without undesirable side effects or behaviors such as deception or manipulation.

More technically, the LLM alignment problem involves fine-tuning or adjusting a base model that was originally trained on extensive, diverse datasets. While such a base model is trained to learn core behaviors and general knowledge, it often falls short when applied to specific tasks or to meeting the nuanced preferences of a human user. To better align the model, additional feedback is

∗^{*}This work has been accepted for publication in IEEE Signal Processing Magazine. This arXiv version includes Volkan Cevher as a coauthor in recognition of his substantial contributions. The IEEE Signal Processing Magazine special issue limits individual authors to appearing on at most two articles within the same issue, which determined the authorship listing in the journal version.

gathered from human experts who evaluate and/or rank the model's performance within a specific task context. As demonstrated in [4,5], reinforcement learning (RL) holds significant promise for LLM alignment by leveraging additional feedback to enhance their performance. This feedback embodies expert judgments regarding both the accuracy of the model's responses and any particular preferences they may have. The goal is to refine the model to better meet these specific requirements, ultimately enhancing its task relevance and user satisfaction. Generally, it is observed that after the alignment process, LLMs can follow human instructions well, and can avoid providing toxic and non-preferable responses. Please refer to Fig. 1 as an illustration of the alignment process.

Contributions of This Work. Despite extensive study of the alignment problem in recent literature, this research area remains young, and it is still evolving rapidly with many unresolved theoretical challenges. A primary contribution of this article is to introduce the signal processing community to the fundamentals of alignment, highlight state-of-the-art algorithms and approaches, and clarify the intersection

between alignment methodologies and various techniques relevant to signal processing (SP). We believe that our article will foster interdisciplinary contributions and expand the role of SP in LLM alignment research. By understanding the alignment problem, SP researchers can leverage their expertise in mathematical modeling, noise handling, inverse problem-solving, and optimization to address a number of key challenges. For instance, similar to reconstructing signals from observed data in SP, many alignment approaches involve solving inverse problems, such as learning the human preference models from the data. Therefore, we expect that introducing the alignment to SP professionals can foster in-

Figure

Figure 1: An illustration of the alignment process.

innovation in AI safety, inspire novel techniques, and accelerate the development of robust, generalizable alignment frameworks that can be applied across diverse applications.

Organization of this work. The article is organized as follows. In Sec. 2, we provide the readers with an overview of the LLM training process. In Sec. 3, we discuss some classical notion and techniques of learning from human preference, which serves as the foundation for many alignment approaches to be discussed subsequently. In Sec. 4, we provide a detailed discussion of a number of state-of-the-art algorithms for different stages of LLM alignment. In Sec. 5, we provide readers with a framework that unifies a few alignment algorithms discussed in the previous section under a single formulation. In Sec. 6, we provide some high-level discussion. In Sec. 8, we conclude with final remarks and open questions.

References (77)