Manuscript Offprint

arXiv:2610.34242

Alignment via Generalization

Shai Shalev-Shwartz, Amnon Shashua

Abstract

AI systems can become better at achieving the goals we give them without becoming better at doing what we actually want. Studying this alignment problem rigorously requires a framework connecting measurable performance to intended behavior. We propose Aligned-PAC learning, whose central idea is to reduce alignment to generalization: does success on the requirements used for training extend to requirements the system has not encountered? Rather than express our entire intention through a single training objective, we represent its different aspects through a collection of specific requirements. This perspective already yields strong theoretical results. We show how independent evaluation can provide rigorous evidence of alignment across the represented requirements, and establish how much evaluation is needed. We also develop an optimization method that, under explicit assumptions, combines learned models to satisfy the training requirements. The framework does not solve alignment in full: choosing requirements that faithfully capture our intentions, and understanding when learning will generalize to unseen requirements, remain open challenges. It provides a foundation for making these questions precise and studying them with the tools of learning theory.

1 Introduction

AI models have become increasingly powerful, with some of their most impressive achievements in mathematical reasoning. These successes suggest a compelling recipe: specify an outcome, reward the model for achieving it, and let learning discover how to get there. Yet the effectiveness of this recipe depends on a crucial assumption: that the objective we optimize faithfully represents the objective we actually care about. When this assumption fails, a model can become better at optimizing its reward without becoming better at the intended task. We define the alignment problem as the gap between the true objective and the proxy used for learning.

This gap is not new to machine learning. In binary classification, for example, we may care about the probability of a prediction error, measured by the zero-one loss, while optimizing the hinge loss for computational convenience. A gap can also arise from the choice of data. A cow detector trained and evaluated on images of cows in grassy fields may rely on the background and fail to recognize cows standing on sand. Even with the right loss function, success on the selected distribution need not imply success in the situations we care about. Thus, a learning proxy specifies both a loss function and a data distribution. In our framework, we additionally specify an acceptable-loss threshold for each proxy, making explicit when a requirement is satisfied.

Mathematics offers an exceptional case in which this gap can disappear. If the task is to prove a precisely stated theorem and success is determined by a sound proof checker, the criterion used to evaluate the model coincides with the desired outcome: a valid proof. This does not mean that every reward used in mathematical training is perfectly aligned, but it illustrates the advantage of a domain in which correctness can be specified precisely and verified independently. In many other domains, defining an equally faithful criterion is itself a central difficulty.

The alignment problem becomes more challenging as both our ambitions and our models grow. First, we ask models to perform tasks whose objectives are harder to specify and whose failures are harder to diagnose. “Detect a cow” admits a relatively direct assessment. In autonomous driving, however, our true objective is “drive safely and comfortably”. This requires judgments across a much broader range of situations and tradeoffs, and we do not know how to fully express this objective as a loss function. A seemingly natural proxy is to imitate human drivers. Yet human behavior is not always desirable, and better imitation does not necessarily mean safer driving: a model may improve its average imitation loss by predicting routine trajectories more accurately, while responding less safely to rare hazards. Thus, improvement under the proxy can come at the expense of the true objective.

Second, more capable models can exploit subtler gaps in the proxy. A model asked to optimize code may produce a sophisticated implementation that passes every supplied test and achieves excellent benchmark performance, yet contains a subtle bug on an untested input [1]. Such failures can arise from exploiting weaknesses in the evaluation procedure—a phenomenon known as reward hacking—or simply from failing to generalize beyond the supplied tests. Deliberate deception is not necessary for either failure: optimizing an incomplete criterion can be enough [2, 3]. Greater capability therefore makes the quality of the proxy more consequential.

Discussions of AI alignment often emphasize the three desiderata of being honest, harmless, and helpful. These are important objectives, but naming them does not resolve the underlying difficulty. We still need to translate them into criteria that can guide learning and evaluation, and those criteria may leave gaps. The same difficulty arises in classification, code generation, and autonomous driving, even when the desired behavior is not naturally described by these three terms. Our focus is the more general problem of relating success under an operational proxy to success under the intended objective.

Alignment is difficult in part because we lack a general theory that makes this relationship precise and yields useful guarantees. Our central proposal is to reduce alignment to generalization. Instead of attempting to encode the true objective in a single loss and distribution, we consider a family of proxies, each capturing an aspect of the intended behavior through its own loss function, data distribution, and acceptable-loss threshold. The learner observes some of these proxies; the question is whether its success extends to proxies it has not observed. This shifts attention from fitting a fixed proxy to generalizing across the requirements that the proxy is meant to represent. Generalization provides both a well-developed theoretical language and a practical evaluation principle: assess performance on held-out proxies, as well as on held-out examples within a proxy.

We formalize this perspective through Aligned-PAC learning, a generalization of the Probably Approximately Correct learning framework. Ordinary PAC learning studies performance under a fixed loss and distribution using sampled examples. Aligned-PAC extends this view to a distribution over proxies, each specifying a loss function, an example distribution, and an acceptable-loss threshold, with a rule for combining performance across proxies. This introduces a question of proxy complexity: how many proxies must a learner observe to perform well on the broader family? The resulting guarantees necessarily depend on how that family represents the intended objective and on the assumptions connecting observed and unobserved proxies. Aligned-PAC does not eliminate the need to specify meaningful requirements; it provides a framework for studying when learning from a limited set of such requirements can generalize to the others. In this way, we aim to bring the tools of learning theory to the alignment problem.