When Dimensionality Hurts: The Role of LLM Embedding Compression for Noisy Regression Tasks
Felix Drinkall, Janet B. Pierrehumbert, Stefan Zohren
TL;DR
The paper investigates how the dimensionality of LLM embeddings affects downstream regression under varying noise levels, using an autoencoder to compress embeddings to a latent space of dimension $d_z$ and a random forest regressor with Huber loss. Across noisy stock-return prediction and high-signal text tasks, it finds that an appropriately small $d_z$ (notably $d_z = 8$ for finance) often yields better performance, highlighting a regularisation effect from compression. The authors introduce the notion of intrinsic dimension, showing that strong predictive signals can be captured at dimensions far smaller than the original embedding, and they find that interpretable features like sentiment do not inherently outperform learned latent representations. These findings suggest adaptive dimensionality strategies for embedding-based regression and caution against assuming high-dimensional embeddings automatically improve performance in noisy settings.
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.
