NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Language Models Resist Alignment: Evidence From Data Compression

Jiaming Ji, Kaile Wang, Tianyi Alex Qiu, Boyuan Chen, Jiayi Zhou, Changye Li, Hantao Lou, Josef Dai, Yunhuai Liu, Yaodong Yang

Abstract

Large Language Models (LLMs) exhibit a phenomenon termed "elasticity," where they inherently resist alignment due to mathematical biases toward their massive pre-training distributions. By modeling LLMs as lossless data compressors and drawing an analogy to Hooke's Law, this research demonstrates that alignment is often superficial and easily reversible. Experimental results across multiple models show that "inverse alignment"—reverting a model to its pre-trained state—is consistently more efficient than the initial alignment process, highlighting the fragility of current safety and instruction-following fine-tuning.

Introduction

Significant resources are dedicated to aligning LLMs to be helpful, harmless, and honest through Supervised Fine-Tuning (SFT) and Reinforcement Learning from Human Feedback (RLHF). Despite these efforts, alignment remains remarkably fragile. Minimal exposure to adversarial or even noisy benign data can cause a model to shed its safety guards and revert to its pre-trained behaviors. This paper investigates the mechanical roots of this fragility, proposing that LLMs act as "elastic" systems that naturally resist staying in an aligned state.

Theoretical Framework: The Elasticity of LLMs

The authors bridge machine learning and information theory by treating LLMs as lossless data compressors. In this view, training is the process of maximizing the compression rate of a dataset.

The Hooke’s Law Analogy

A central contribution of this work is the analogy between LLM training and a series spring system. In physics, Hooke's Law ($k_1 \cdot \Delta l_1 = k_2 \cdot \Delta l_2$) describes how a spring resists displacement. In the context of LLMs:

  • Stiffness ($k$): Corresponds to the volume (mass) of the dataset.
  • Displacement ($\Delta l$): Corresponds to the change in the model's distribution (alignment).

Because pre-training datasets are orders of magnitude larger than alignment datasets, the pre-training "spring" is significantly stiffer. Alignment "stretches" the model away from its natural state, creating potential energy that drives the model to snap back when perturbed.

Conceptual framework linking LLM alignment to Hooke's Law and data compression.

Experimental Methodology

To validate the elasticity hypothesis, the researchers developed a "Forward vs. Inverse Alignment" pipeline. The process involves first aligning a model (Forward) and then attempting to "un-align" it using its own previous checkpoints (Inverse). If the inverse process requires less effort (lower training loss), it indicates a mathematical bias toward the original state. Experiments were conducted using the TinyLlama corpus (ranging from 0.1T to 3.0T tokens) to observe how pre-training volume affects resistance, alongside benchmarks like Alpaca, TruthfulQA, and Beavertails.

Key Results and Insights

The empirical findings consistently support the elasticity model across various architectures, including Llama 2, Llama 3, Qwen, and Gemma.

The Rebound Effect and Scaling

A counterintuitive discovery is the "Rebound Effect": the more thoroughly a model is aligned, the faster it collapses when exposed to negative data. As shown in safety benchmarks, even a small amount of unsafe data (100–500 samples) can cause a significant drop in the average safe score, eventually reverting the model toward its pre-trained baseline.

Safety performance degradation as a function of unsafe data exposure, illustrating the fragility of alignment.

Loss Disparity and the 0.5T Tipping Point

In every test case, the training loss for inverse alignment was significantly lower than for forward alignment. This "loss disparity" suggests that the model is inherently biased toward its origin. Furthermore, as models scale in parameters and pre-training data volume, their elasticity increases. The researchers identified a tipping point around 500 billion tokens where this resistance becomes notably pronounced; below this threshold, models are more malleable but significantly less capable.

Limitations and Future Work

While the results are robust, the theoretical proofs rely on the assumption that dataset mass follows a Pareto distribution. While consistent with Zipf's Law in linguistics, further empirical validation is needed. Additionally, the study focused on text; future work should explore if multimodal models (vision-language) exhibit similar elastic properties. To mitigate elasticity, the authors suggest "balancing the springs" by significantly increasing the volume of alignment data, potentially through synthetic generation, to match the stiffness of the pre-training corpus.

Summary updated

BibTeX
@inproceedings{ji2025language,
  author = {Jiaming Ji and Kaile Wang and Tianyi Alex Qiu and Boyuan Chen and Jiayi Zhou and Changye Li and Hantao Lou and Josef Dai and Yunhuai Liu and Yaodong Yang},
  title = {{Language Models Resist Alignment: Evidence From Data Compression}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure