Compression Hacking: A Supplementary Perspective on Informatics Metric of Language Models from Geometric Distortion

Jianxiang Zang, Meiling Ning, Yongda Wei, Shihan Dou, Jiazheng Zhang, Nijia Mo, Binhong Li, Tao Gui, Qi Zhang, Xuanjing HuangarXiv 2025 · DOI

Abstract

The "compression as intelligence" hypothesis posits that the efficacy of large language models (LLMs) is intrinsically linked to their ability to compress data. However, empirical observations often reveal a disconnect where older, larger models exhibit superior compression metrics despite inferior reasoning capabilities. This paper identifies Compression Hacking—a phenomenon where geometric distortion (anisotropy) in the representation space creates a mathematical illusion of high compression. We propose refined metrics, including Spectral Entropy (SE) and Principal Component Smoothing (PCS), which account for this distortion and achieve significantly higher alignment (Spearman $\rho > 0.9$) with ground-truth model performance across diverse architectures.

Introduction

In recent years, the AI community has increasingly viewed intelligence through the lens of information theory, specifically the idea that a model's capacity to represent data in a minimal, structured space is a proxy for its intelligence. This is typically measured using the differential entropy (DE) of internal representations.

However, a critical flaw exists in this paradigm. When comparing models across different families—such as the older OPT series versus the modern Qwen2.5-Instruct—traditional compression metrics often favor the former, even when the latter demonstrates vastly superior performance on benchmarks like MMLU or MATH. This paper investigates the root cause: a geometric phenomenon known as anisotropy, where the model's representation space collapses into a narrow cone, inflating compression scores without adding semantic value.

The Phenomenon of Compression Hacking

The authors introduce the concept of "Compression Hacking" to describe how models can inadvertently (or through training artifacts) sacrifice spatial uniformity to feign high compression rates. In these "hacked" models, the representation space is dominated by a few major components, while the minor principal components (noise) have infinitesimal eigenvalues.

Geometric visualization of representation spaces and eigenvalue distributions across different model families.

As shown in Figure 2, the eigenvalue distributions (bottom row) reveal that as models scale or undergo instruction tuning, the "tail" of the spectrum often drops precipitously. When calculating compression via negative log-determinants, these near-zero eigenvalues produce massive, inflated scores. This creates a "compression-anisotropy synchronicity," where appearing more compressed is merely a byproduct of becoming more geometrically distorted.

Methodology: Refined Informatics Metrics

To decouple actual information compression from geometric noise, the authors propose three primary refinements to informatics metrics:

  1. Spectral Entropy (SE): This metric weights compression by the eigenvalues of the representation's covariance matrix. By focusing on the distribution of variance, it effectively ignores the noise-dominated directions that lead to hacking.
  2. Semantic Coefficient of Variation (Semantic CV): This measures the ratio of anisotropy to compression, quantifying the "cost" of distortion a model pays to achieve its perceived compression level.
  3. Principal Component Smoothing (PCS): This protocol acts as an "anisotropy razor." It utilizes a manifold correction technique to flatten the feature spectrum, ensuring the metric relies on core semantic components rather than numerical artifacts in the minor components.

Experimental Evaluation

The study evaluated 18 open-source language models across three major families: LLaMA 3.1/3.2 (1B to 8B), Qwen 2.5-Instruct (0.5B to 32B), and OPT (0.125B to 30B). Ground-truth intelligence was established using a comprehensive suite of benchmarks covering factuality (TruthfulQA), mathematics (MATH), reasoning (CommonsenseQA), and general knowledge (MMLU).

Results and Discussion

The refined metrics demonstrate a dramatic improvement in predicting actual model capabilities compared to traditional differential entropy.

Comparison of global alignment between various informatics metrics and ground-truth model capabilities.

As illustrated in Figure 6, the original compression metric (DE) shows a weak global correlation (Spearman $\rho = 0.445$) with ground-truth performance, largely because it cannot compare models across different families effectively. In contrast, the proposed Compression (PCS) and Semantic CV metrics achieve correlations of 0.965 and 0.926, respectively. These metrics are the first to provide a stable, task-agnostic evaluation that holds true even when comparing models with vastly different architectures and training paradigms.

Conclusion

This research provides a necessary "geometric reality check" for the compression-as-intelligence hypothesis. By identifying and correcting for compression hacking, we can develop more robust, output-free evaluation methods for LLMs. Future work will explore how these geometric indicators can be integrated into model optimization processes, such as pruning and quantization, to ensure that efficiency gains do not come at the cost of genuine semantic intelligence.

Summary updated

BibTeX
@misc{zang2025compression,
  author = {Jianxiang Zang and Meiling Ning and Yongda Wei and Shihan Dou and Jiazheng Zhang and Nijia Mo and Binhong Li and Tao Gui and Qi Zhang and Xuanjing Huang},
  title = {{Compression Hacking: A Supplementary Perspective on Informatics Metric of Language Models from Geometric Distortion}},
  year = {2025},
  eprint = {2505.17793},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.17793},
}
Figure