Fundamental Limitations of Alignment in Large Language Models

Yotam Wolf, Noam Wies, Oshri Avnery, Yoav Levine, Amnon Shashua

This paper, titled "Fundamental Limitations of Alignment in Large Language Models," provides a sobering theoretical perspective on why our current methods for making AI "behave" are inherently fragile. The authors introduce a mathematical framework to prove that as long as a model can exhibit a bad behavior, an adversarial user can eventually find a prompt to trigger it.

TL;DR

The authors introduce the Behavior Expectation Bounds (BEB) framework, proving that alignment in LLMs is not a "removal" of bad behavior but a probabilistic suppression. They demonstrate that any behavior with a non-zero probability can be triggered by a sufficiently long adversarial prompt, providing a theoretical explanation for why "jailbreaks" are a fundamental limitation of current LLM architectures.

What Problem Does This Paper Address?

We want Large Language Models (LLMs) to be helpful, honest, and harmless. To achieve this, researchers use "alignment" techniques like Reinforcement Learning from Human Feedback (RLHF) or safety prompting. However, the AI community has been plagued by "jailbreaks"—cleverly crafted prompts (like the "DAN" persona) that trick models into bypassing their safety guardrails.

Until now, these jailbreaks were seen as cat-and-mouse security flaws. This paper asks a deeper question: Is perfect alignment even possible on frozen, pretrained models? The authors argue that alignment is often just a "veneer" over a model that still contains a vast "superposition" of both good and bad personas learned during pretraining.

Methods

The authors propose the Behavior Expectation Bounds (BEB) framework. The core idea is to treat the LLM's probability distribution ($P$) as a mixture of two components:

  1. $P_+$ (Well-behaved): The distribution of helpful, safe text.
  2. $P_-$ (Ill-behaved): The distribution of toxic, biased, or harmful text.

They define alignment as the model having a very low "prior" ($\alpha$) for the ill-behaved component. However, through the lens of Bayesian updating, a prompt acts as evidence that reweights these priors.

Figure 1: Examples of sentence behavior scores along different behavior verticals. Our framework of Behavior Expectation Bounds (BEB) assumes ground truth behavior scoring functions, and bounds the expected scores of models along different behavior verticals in order to guarantee LLM alignment or misalignment.

As shown in Figure 1, the framework assumes we can score sentences on "behavior verticals" (like politeness or helpfulness) from -1 to +1. The authors then use information theory—specifically KL-divergence—to prove four key theorems about the impossibility of absolute safety against adversarial prompting, preset guardrails, multi-turn conversations, and even "best-of-n" sampling strategies.

Datasets

To validate their theory, the authors used:

  • LLaMA-2 Family (7B, 13B, 30B): Both the base pretrained models and the RLHF-aligned "chat" versions.
  • Perez et al. (2022) Dataset: A collection of 1,000 prompts per behavior vertical (e.g., "agreeableness," "anti-immigration") used to evaluate model tendencies.
  • LoRA Proxies: Since the "true" ill-behaved component ($P_-$) isn't directly accessible, the authors created proxies by finetuning LLaMA models on the negative examples from the Perez dataset using Low-Rank Adaptation (LoRA).

Key Insights and Ideas

  • The Logarithmic Vulnerability: The length of a successful adversarial prompt scales logarithmically with the inverse of the bad behavior's prior probability ($\alpha^{-1}$). This means that even if you make a bad behavior a billion times less likely, a user only needs a slightly longer prompt to bring it back to the surface.
  • Alignment as a Probability Shift: Alignment doesn't delete knowledge; it just shifts the model's starting point. The "bad" model is still there, waiting for enough "contextual evidence" (the prompt) to become the most likely explanation for the next token.
  • The RLHF Paradox: The authors suggest that RLHF might actually make models easier to jailbreak in some ways. While it reduces the probability of bad behavior ($\alpha$), it might increase the "distinguishability" ($\beta$) of that behavior, making the model more sensitive to prompts that target that specific latent persona.
  • Conversation Resistance: In a dialogue, if a model gives a "good" response, it actually reinforces its own alignment, making it harder for the user to misalign it in the next turn. This creates a "tug-of-war" between the user's adversarial prompts and the model's own safe outputs.

Key Results

  • Theorem 1 (Alignment Impossibility): Proves that for any behavior with a finite probability, there exists a prompt that can trigger it with high probability.
  • Empirical Convergence: Testing on LLaMA-2 13B Chat showed that as adversarial prompts (sampled from the $P_-$ proxy) grew longer, the model's behavior score dropped following a "reverse sigmoid" curve, exactly as the BEB theory predicted.
  • Parameter Estimation: For the behavior "agreeableness," they found that the distinguishability ($\beta$) was roughly 20. This high value explains why these models are so susceptible to in-context steering.

Limitations and Future Work

  • Sentence-Level Granularity: The current proofs focus on the "next sentence" being misaligned. Future work could extend this to long-form outputs where coherence over time is the metric.
  • Access to $P_-$: The theory assumes we can sample from the "bad" distribution to create the attack. In the real world, attackers don't have the model's internal weights, though the success of "black-box" jailbreaks suggests this isn't a major hurdle.
  • Inference-Time Controls: The authors conclude that because alignment on "frozen" weights is fundamentally limited, we must look toward inference-time alignment (like representation engineering) that actively monitors and steers the model's internal states during generation.

Summary updated

Abstract

An important aspect in developing language models that interact with humans is aligning their behavior to be useful and unharmful for their human users. This is usually achieved by tuning the model in a way that enhances desired behaviors and inhibits undesired ones, a process referred to as alignment. In this paper, we propose a theoretical approach called Behavior Expectation Bounds (BEB) which allows us to formally investigate several inherent characteristics and limitations of alignment in large language models. Importantly, we prove that within the limits of this framework, for any behavior that has a finite probability of being exhibited by the model, there exist prompts that can trigger the model into outputting this behavior, with probability that increases with the length of the prompt. This implies that any alignment process that attenuates an undesired behavior but does not remove it altogether, is not safe against adversarial prompting attacks. Furthermore, our framework hints at the mechanism by which leading alignment approaches such as reinforcement learning from human feedback make the LLM prone to being prompted into the undesired behaviors. This theoretical result is being experimentally demonstrated in large scale by the so called contemporary "chatGPT jailbreaks", where adversarial users trick the LLM into breaking its alignment guardrails by triggering it into acting as a malicious persona. Our results expose fundamental limitations in alignment of LLMs and bring to the forefront the need to devise reliable mechanisms for ensuring AI safety.
BibTeX
@inproceedings{wolf2024fundamental,
  author = {Yotam Wolf and Noam Wies and Oshri Avnery and Yoav Levine and Amnon Shashua},
  title = {{Fundamental Limitations of Alignment in Large Language Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=KXsUCgn9Ks},
}
Figure