When Dimensionality Hurts: The Role of LLM Embedding Compression for Noisy Regression Tasks

Felix Drinkall, Janet B. Pierrehumbert, Stefan ZohrenarXiv 2025 · DOI

Abstract

Recent advancements in Large Language Models (LLMs) have been characterized by a trend toward increasingly high-dimensional text representations. While beneficial for linguistic tasks, this study demonstrates that high dimensionality can be detrimental in noisy regression environments, such as financial market prediction. By employing autoencoders to compress embeddings, we find that aggressive dimensionality reduction serves as a vital regularizer, preventing models from overfitting on noise. Our results suggest that the success of traditional interpretable features like sentiment may be primarily due to their low dimensionality rather than their specific semantic content.

Introduction

The prevailing paradigm in natural language processing involves scaling both model parameters and the dimensionality of hidden representations, often exceeding 16,000 dimensions in state-of-the-art models. While high dimensionality is essential for capturing complex linguistic nuances, it presents a significant challenge for "noisy" downstream regression tasks. In domains like finance, where the causal link between text (e.g., news) and target (e.g., stock returns) is weak, high-dimensional embeddings often lead to overfitting, as models memorize noise rather than learning generalizable patterns. This paper investigates the optimal dimensionality for text embeddings across tasks with varying signal-to-noise ratios.

Methodology

The researchers developed a pipeline to evaluate the performance of text embeddings at various compression levels:

  1. Text Encoding: Standard 768-dimensional embeddings were generated using the all-mpnet-base-v2 encoder.
  2. Dimensionality Reduction: A simple autoencoder was trained to compress these vectors into a bottleneck latent dimension ($d_z$), ranging from 1 to 512.
  3. Regression: Compressed embeddings were fed into a Random Forest regressor. This model was chosen for its stability compared to Multi-Layer Perceptrons on noisy data.
  4. Baselines: Unsupervised latent features were compared against "interpretable" features: sentiment and emotion class probabilities from fine-tuned DistilRoBERTa models.

The Signal-to-Noise Dichotomy

The study evaluated performance across two distinct task profiles: noisy tasks (Stock Returns) and high-signal tasks (Review Scoring and Writing Quality). The results reveal a stark contrast in how dimensionality impacts these domains.

As shown in the figure above, high-signal tasks like essay grading and review scoring exhibit a negative exponential loss curve, where performance improves or plateaus as dimensionality increases. In contrast, the noisy financial returns task follows a U-shaped curve, where both extremely low and high dimensions lead to poor performance.

The Regularizing Effect of Compression and the Sentiment Illusion

For the noisy stock returns task, the optimal compression level was found at $d_z = 8$. Beyond this point, increasing dimensionality led to a significant degradation in performance, confirming that high-dimensional embeddings facilitate overfitting on market noise.

A particularly striking finding concerns the use of sentiment and emotion features. The financial industry has long relied on these features for market prediction. However, this study suggests their efficacy is an "illusion" of dimensionality. When matched for dimensionality, these interpretable features did not outperform the unsupervised autoencoder features. Their success appears to be a byproduct of the massive regularization provided by reducing a 768-dimensional vector to a handful of classes, rather than the intrinsic predictive power of "sentiment" itself.

Conclusion

This research highlights a critical trade-off in LLM application: while high dimensionality drives linguistic competence, it can be a liability in noisy regression tasks. Aggressive compression to an "intrinsic dimension" (often between 8 and 32) provides necessary regularization and computational efficiency without sacrificing significant performance, even in high-signal tasks. Future work should explore adaptive compression methods that dynamically adjust dimensionality based on the observed signal-to-noise ratio of a given dataset.

Summary updated

Abstract

Large language models (LLMs) have shown remarkable success in language modelling due to scaling laws found in model size and the hidden dimension of the model's text representation. Yet, we demonstrate that compressed representations of text can yield better performance in LLM-based regression tasks. In this paper, we compare the relative performance of embedding compression in three different signal-to-noise contexts: financial return prediction, writing quality assessment and review scoring. Our results show that compressing embeddings, in a minimally supervised manner using an autoencoder's hidden representation, can mitigate overfitting and improve performance on noisy tasks, such as financial return prediction; but that compression reduces performance on tasks that have high causal dependencies between the input and target data. Our results suggest that the success of interpretable compressed representations such as sentiment may be due to a regularising effect.
BibTeX
@misc{drinkall2025when,
  author = {Felix Drinkall and Janet B. Pierrehumbert and Stefan Zohren},
  title = {{When Dimensionality Hurts: The Role of LLM Embedding Compression for Noisy Regression Tasks}},
  year = {2025},
  eprint = {2502.02199},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.02199},
}
Figure