LMPriors: Pre-Trained Language Models as Task-Specific Priors
Kristy Choi, Chris Cundy, Sanjari Srivastava, Stefano Ermon
TL;DR
Language Model Priors (LMPriors) propose to extract task-specific priors from pretrained LMs using natural-language metadata to bias downstream learning, particularly in low-data regimes. The method formulates prompts that translate metadata into priors to guide feature selection, causal discovery, and safe reinforcement learning. Empirical results show substantial gains in feature selection under data corruption, improved safety in RL via reward shaping, and state-of-the-art-like performance in causal direction discovery when combined with data-driven methods. The work highlights both the promise and the risks of prompt-based priors, underscoring the need for careful prompt design and human oversight.
Abstract
Particularly in low-data regimes, an outstanding challenge in machine learning is developing principled techniques for augmenting our models with suitable priors. This is to encourage them to learn in ways that are compatible with our understanding of the world. But in contrast to generic priors such as shrinkage or sparsity, we draw inspiration from the recent successes of large-scale language models (LMs) to construct task-specific priors distilled from the rich knowledge of LMs. Our method, Language Model Priors (LMPriors), incorporates auxiliary natural language metadata about the task -- such as variable names and descriptions -- to encourage downstream model outputs to be consistent with the LM's common-sense reasoning based on the metadata. Empirically, we demonstrate that LMPriors improve model performance in settings where such natural language descriptions are available, and perform well on several tasks that benefit from such prior knowledge, such as feature selection, causal inference, and safe reinforcement learning.
