Understanding LLM Embeddings for Regression

Eric Tang, Bangding Yang, Xingyou Song
11/22/2024
cs.LGcs.AIcs.CL

No confident code implementation found for this paper.

Abstract

With the rise of large language models (LLMs) for flexibly processing information as strings, a natural application is regression, specifically by preprocessing string representations into LLM embeddings as downstream features for metric prediction. In this paper, we provide one of the first comprehensive investigations into embedding-based regression and demonstrate that LLM embeddings as features can be better for high-dimensional regression tasks than using traditional feature engineering. This regression performance can be explained in part due to LLM embeddings over numeric data inherently preserving Lipschitz continuity over the feature space. Furthermore, we quantify the contribution of different model effects, most notably model size and language understanding, which we find surprisingly do not always improve regression performance.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{tang2024understanding,
  title  = {Understanding LLM Embeddings for Regression},
  author = {Eric Tang and Bangding Yang and Xingyou Song},
  year   = {2024},
  eprint = {2411.14708},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.14708v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.14708.svg)](https://codeofpaper.com/paper/2411.14708)

Discussion