Skip to main content
QUICK REVIEW

[Paper Review] LLM Processes: Numerical Predictive Distributions Conditioned on Natural Language

James Requeima, John Bronskill|arXiv (Cornell University)|May 21, 2024
Neural Networks and ApplicationsComputer Science6 citations
TL;DR

This paper defines LLM Processes (LLMPs) that elicit joint numerical predictive distributions from large language models conditioned on both numerical data and natural language text, and shows they can compete with Gaussian Processes across multi-dimensional regression, density estimation, and various applications.

ABSTRACT

Machine learning practitioners often face significant challenges in formally integrating their prior knowledge and beliefs into predictive models, limiting the potential for nuanced and context-aware analyses. Moreover, the expertise needed to integrate this prior knowledge into probabilistic modeling typically limits the application of these models to specialists. Our goal is to build a regression model that can process numerical data and make probabilistic predictions at arbitrary locations, guided by natural language text which describes a user's prior knowledge. Large Language Models (LLMs) provide a useful starting point for designing such a tool since they 1) provide an interface where users can incorporate expert insights in natural language and 2) provide an opportunity for leveraging latent problem-relevant knowledge encoded in LLMs that users may not have themselves. We start by exploring strategies for eliciting explicit, coherent numerical predictive distributions from LLMs. We examine these joint predictive distributions, which we call LLM Processes, over arbitrarily-many quantities in settings such as forecasting, multi-dimensional regression, black-box optimization, and image modeling. We investigate the practical details of prompting to elicit coherent predictive distributions, and demonstrate their effectiveness at regression. Finally, we demonstrate the ability to usefully incorporate text into numerical predictions, improving predictive performance and giving quantitative structure that reflects qualitative descriptions. This lets us begin to explore the rich, grounded hypothesis space that LLMs implicitly encode.

Motivation & Objective

  • Motivate the integration of user-provided prior knowledge into probabilistic models via natural language.
  • Define LLMPs as joint predictive distributions elicited from LLMs for multi-dimensional regression and density estimation.
  • Develop prompting strategies to condition LLMs on numerical data and text while ensuring coherent uncertainty.
  • Evaluate LLMPs across synthetic and real tasks, including forecasting, image reconstruction, and black-box optimization.
  • Explore the trade-offs between independent-marginal and autoregressive joint formulations and compare to baselines like Gaussian Processes.

Proposed method

  • Define two joint-predictive-distribution constructions: independent marginals (I-LLMP) and autoregressive (A-LLMP) (Equations 1 and A.3).
  • Elicit continuous likelihoods from LLMs by discretizing target spaces into fine bins and converting mass to density with a uniform within-bin assumption.
  • Prompt LLMs with careful formatting, ordering, and scaling to obtain coherent joint predictions and calibrated uncertainty.
  • Use rejection sampling and a discretized-bins approach to approximate the LLM’s predictive distribution for multiple target points.
  • Show LLMPs can handle missing data, multi-dimensional outputs, and multimodal predictions through flexible prompting and conditioning on text.

Experimental results

Research questions

  • RQ1Can LLMs be prompted to produce coherent, joint numerical predictive distributions over arbitrary target sets?
  • RQ2How do independent-marginal versus autoregressive formulations compare in terms of validity as stochastic processes and predictive performance?
  • RQ3To what extent can conditioning on unstructured text improve numerical predictions and reflect qualitative problem descriptions?
  • RQ4How do LLMPs perform on multi-dimensional regression, density estimation, image reconstruction, and black-box optimization tasks relative to traditional methods like Gaussian Processes?
  • RQ5What prompting strategies (formatting, ordering, scaling) best enable accurate and calibrated LLMP predictions?

Key findings

  • LLMPs produce competitive predictive performance and well-calibrated uncertainty versus Gaussian Processes on multiple tasks.
  • Autoregressive LLMPs (A-LLMP) generally outperform independent-marginal LLMPs (I-LLMP) in predictive accuracy and log-likelihood, though ordering of targets influences performance.
  • Distance-based training-point ordering and careful prompt formatting significantly affect NLL and MAE across prompts and models.
  • LLMPs can incorporate text-based prior information to steer predictions, enabling scenario-conditioned forecasts and labeling/units to leverage side information.
  • LLMPs demonstrate capabilities in multi-dimensional regression, density estimation, image reconstruction, black-box optimization, and in-context learning from related datasets.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.