---
title: "LMPriors: Pre-Trained Language Models as Task-Specific Priors"
description: "LMPriors turn dataset descriptions into guidance for selecting features, judging cause and effect, and avoiding hazards during training."
canonical: "https://research.elamur.ai/free/en/papers/choi-2022-lmpriors-pre-trained-language-models/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/choi-2022-lmpriors-pre-trained-language-models/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2022](https://md.research.elamur.ai/free/en/papers/2022/) / LMPriors: Pre-Trained Language Models as Task-Specific Priors

# LMPriors: Pre-Trained Language Models as Task-Specific Priors

Paper · 2022 · Kristy Choi, Chris Cundy, Sanjari Srivastava et al.

**Authors:** Kristy Choi, [Chris Cundy](https://md.research.elamur.ai/free/en/authors/chris-cundy/), Sanjari Srivastava and [Stefano Ermon](https://md.research.elamur.ai/free/en/authors/stefano-ermon/) · **Year:** 2022 · **Venue:** arXiv (Cornell University) · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[**2** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W4307311424) · [arXiv (Cornell University)](https://openalex.org/S4306400194) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [PDF](https://arxiv.org/pdf/2210.12530)
- [arXiv 2210.12530](https://arxiv.org/abs/2210.12530)
- [OpenAlex](https://openalex.org/W4307311424)

Citations: OpenAlex, 2026-10-14.

## Summary

A dataset can tell a learner which measurements vary together. Its documentation can tell the learner what those measurements actually mean. When observations are scarce, that distinction matters. A predictor of commute time could pick up a chance association with someone’s favorite color even though the variable’s meaning gives us reason to doubt that the association will hold up. The authors propose Language Model Priors, or LMPriors, to bring that kind of judgment into the learning procedure. A pretrained [language model](https://md.research.elamur.ai/free/en/concepts/language-model/) reads descriptions of the task and supplies a preference that the downstream learner can use alongside its usual inputs.

The paper uses GPT-3 to turn written context, variable descriptions, and worked examples into scores. The prompt specifies what kind of judgment is needed, and the probabilities assigned to designated answer tokens supply the numerical signal. Its role changes with the task. For feature selection, a cutoff turns the scores into a list of columns to retain. For causal discovery, relative support for the competing directions is combined with a procedure that examines the observed values. For reinforcement learning, judgments about a robot’s proximity to water change the reward it receives during training.

The experiments illustrate what those changes can accomplish. When breast cancer features were added to an Adult Income dataset, test accuracy fell from 89.4% to 85.1%. Filtering the features with LMPriors brought it back to 89.4%. In a separate commute-classification experiment using California census data, the method retained 59/281 eligible features and yielded competitive classifier accuracy. On the filtered Tuebingen Cause-Effect Pairs benchmark, the metadata-based judgments reached 83.5% accuracy by themselves, the RECI data-driven procedure reached 58.7%, and their combination reached 84.5%. On Island Navigation, adding the prior reduced reported training-time water entries from 8278 ± 1079 to 2917 ± 85. Both training conditions found an optimal policy.

These results depend on the information supplied through the prompts. The navigation experiment, for instance, already provides a distance-to-water feature and a description of a robot that is vulnerable to water. GPT-3 supplies a graded judgment about those conditions, and the learner uses it during exploration. The causal benchmark likewise supplies a specific choice between opposing directions. Within these setups, the experiments show that descriptions can carry useful information into a learning procedure. The authors also warn that prompt choices and biases learned during pretraining can carry through to feature decisions, causal judgments, and rewards.

## Deep dive: LMPriors: Pre-Trained Language Models as Task-Specific Priors

LMPriors turn dataset descriptions into guidance for selecting features, judging cause and effect, and avoiding hazards during training. · about 32 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### What the learner sees when it sees a dataset

The paper starts from a familiar division of labor in [machine learning](https://md.research.elamur.ai/free/en/concepts/machine-learning/). A learning procedure receives examples and uses an objective to decide which output fits them. The output might be a fitted regression, a judgment about whether variables are independent, or a policy for choosing actions. The task designer decides what goes in the examples, how the learner will be evaluated, and what restrictions it should obey. Those decisions often reflect knowledge about the meaning of the variables, even when the learner operates completely on their numerical values.

Consider the paper’s example of predicting age. A table of observations provides ages for the cases it contains. The description of the response as age tells the designer something with a wider scope. It licenses a restriction on predictions for future cases, including inputs unlike any in the table. The paper gives a more structured example in which the target is a magnetic field. Its physical interpretation lets the designer require a vector field with zero divergence. These examples show why useful context can change the set of allowable predictions, as well as which prediction the learner prefers within that set.

Such information matters when a dataset leaves room for several plausible fits. The authors describe the general problem as estimating an unknown parameter or decision from finite observations. A loss function can identify which choice fits the observed sample best under that criterion. The fit may still depend on accidental features of the sample. The paper contrasts finite-sample behavior with the recovery that empirical risk minimization can offer in the infinite-data setting under regularity conditions. In the settings the authors care about, the immediate question is what helps the learner make a reasonable choice with the data it has.

The authors point to successful data-driven systems in areas including protein structure prediction and weather forecasting. They also invoke [shortcut learning](https://md.research.elamur.ai/free/en/papers/geirhos-2020-shortcut-learning-deep-neural-networks/) and [adversarial examples](https://md.research.elamur.ai/free/en/papers/goodfellow-2014-explaining-harnessing-adversarial-examples/) as evidence that success on an objective can leave gaps between learned behavior and the behavior a designer expects. Their proposed source of guidance is the natural-language information that already accompanies some tasks. A variable name, a description of how it was measured, or a sentence about the domain can make a relationship plausible or implausible before any sample correlation has been estimated. [Highly accurate protein structure prediction with AlphaFold](https://md.research.elamur.ai/free/en/papers/jumper-2021-highly-accurate-protein-structure-prediction/)

The no-free-lunch argument cited in the paper motivates making those preferences specific to the problem. Averaging over all possible data-generating processes gives an advantage on one set of processes a corresponding cost elsewhere. An assumption can help because the task belongs to a narrower class of situations. For instance, a prior about whether favorite color matters to a commute prediction depends on the interpretation of both columns and the goal of the prediction. A generic preference for fewer variables may limit overfitting, while the metadata can help decide which variables deserve to survive that restriction.

#### From expert judgment to a procedure that uses metadata

Practitioners already use contextual information in the ways the authors describe. They can choose a prior distribution, start with a family of predictors that has worked on similar problems, or exclude a variable before fitting anything. These actions share a pattern. Someone reads the task description, makes a judgment about what it implies, and changes the procedure used to learn from the data. The authors point to increasingly descriptive dataset documentation as an opportunity to make parts of that pattern systematic, especially when reviewing every variable individually would be cumbersome.

The discussion of earlier work on priors gives the proposal its statistical context. The paper describes reference priors as an attempt to exert little influence on the inference, structural priors as a way to impose properties such as symmetry or nonnegativity, and regularizing priors as a way to make the inference more stable. A task-specific preference can have a structural or regularizing effect. LMPriors give the preference a source in the documented meaning of the task. The prior enters the procedure because its effect is expected to help in that setting, an interpretation the authors connect to earlier work on judging priors through their consequences for inference.

The paper also uses “prior” broadly enough to cover several kinds of intervention. A causal-direction score can be given an odds interpretation. A feature filter changes which measurements the predictor is allowed to see. A reward adjustment changes what an agent is rewarded for while it learns. In each case the information enters ahead of the decision that the downstream procedure will make. Its mathematical role depends on that decision, so understanding the framework requires looking at where the score goes in each experiment.

#### Why use a prompt

The [language models and pretraining](https://md.research.elamur.ai/free/en/topics/language-models/) literature supplies a way to give the same system many different descriptions without building a separate text interpreter for each domain. An autoregressive system is trained to predict what comes next in text. The authors reason that doing this across varied sources can give it usable associations about concepts, relations, and ordinary situations. Earlier studies cited in the paper asked whether such systems could act as [knowledge bases](https://md.research.elamur.ai/free/en/papers/petroni-2019-language-models-as-knowledge-bases/) or answer problems about [physical commonsense](https://md.research.elamur.ai/free/en/papers/bisk-2019-piqa-reasoning-about-physical-commonsense/). The paper draws on the same ability to elicit a judgment and gives the judgment a role in a separate learner.

That move inherits the problem of prompt design. Earlier work found that manually improving the formulation or searching for prompts algorithmically could change how successfully a system answered a question. The authors also cite work on learned prompts and their relationship to [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/). LMPriors use written instructions and examples with black-box access. The experiments therefore depend on choosing a wording and answer format that yield scores the downstream procedure can interpret. The earlier prompt studies motivate that choice, while the LMPriors experiments ask what happens after the resulting scores are used. [How Can We Know What Language Models Know?](https://md.research.elamur.ai/free/en/papers/jiang-2020-how-can-we-know-what/) AutoPrompt

### The method, step by step

#### Turning a description into a learning decision

Begin with a learning procedure and identify a decision where additional context could help. A classifier can be trained on a narrower set of columns. A causal procedure can weigh a directional judgment alongside patterns in the observations. A navigation agent can train with a revised reward. Next, gather the information that speaks to that decision. The form of the metadata depends on the task. A name and description can identify a census variable, while a mapping from a grid position to a phrase can identify the circumstances of a navigation action.

The authors then write a prompt that explains the task, demonstrates its expected answers, and ends with the case to be scored. The demonstrations supply a concrete meaning for labels such as important or unimportant. In the feature-selection and causal prompts, examples also give reasons for their judgments. The actual decision rule uses the probabilities of the designated answers. This division makes it possible to give rich explanations in the examples while supplying a simple numerical input to the downstream learner.

How LMPriors turn task descriptions into learning guidance The steps in order.

The implementation uses the Davinci GPT-3 backbone, which the paper describes as having 175B parameters, and queries the `davinci-instruct-beta` variant through the OpenAI API. The authors reference [Language Models are Few-Shot Learners](https://md.research.elamur.ai/free/en/papers/brown-2020-language-models-few-shot-learners/) for the ability to specify a task through text. In [few-shot learning](https://md.research.elamur.ai/free/en/concepts/few-shot-learning/) as used here, the demonstrations are part of the input. The system’s parameters stay fixed. The interface must expose probabilities for possible continuations because the scores depend on how much support the system assigns to competing answers.

#### The two inputs to the learning procedure

The paper introduces the framework through a parameter-estimation setup. The training dataset contains observations from a distribution indexed by a parameter that the learner aims to estimate.

```
xᵢ ∈ 𝒳,  xᵢ ∼ p(· | θ),  θ ∈ Θ
```

Here `xᵢ` is the observation at index `i`, `𝒳` is the space of possible observations, and `∈` denotes membership. The symbol `∼` means that the observation is drawn from the indicated distribution. `p(· | θ)` is the data-generating distribution for parameter `θ`, with `·` standing for a possible observation and `|` indicating conditioning. `Θ` is the space of possible parameters.

```
f : 𝒳ⁿ → Θ
```

In this mapping, `f` is the learning procedure and `𝒳ⁿ` is the space of datasets consisting of `n` observations from `𝒳`. The arrow `→` indicates that the procedure maps such a dataset to an estimate in `Θ`. The paper’s examples give different meanings to that estimate. A least-squares learner can return fitted regression coefficients. An independence-testing procedure can return a probability of independence for a pair of variables. In each case, `f` stands for the procedure applied to the data.

A common instance is empirical risk minimization, where the learner picks a candidate that minimizes the total loss on its sample.

```
f(𝒟) = argmin over θ′ of ∑ᵢⁿ ℓ(θ′, xᵢ)
```

Here `𝒟` is the dataset, `f(𝒟)` is the estimate from it, and `θ′` is a candidate parameter. `ℓ` is the loss assigned to that candidate on observation `xᵢ`. The sum `∑ᵢⁿ` runs over the `n` observations indexed by `i`. The operation `argmin` returns a candidate that minimizes the indicated sum, and `=` gives the learner’s output. The expression provides a way to use the observations, while decisions about what they mean belong to the design of `f`.

The authors write the effect of an expert’s contextual judgment as a transformation of the procedure itself.

```
𝒫expert(𝒟meta)(f) = f̃
```

`𝒫expert` denotes the expert’s rule for applying context. `𝒟meta` is metadata, with `meta` distinguishing it from the observations in `𝒟`. The first pair of parentheses supplies the metadata, and the second applies the resulting rule to the base learner `f`. The output `f̃`, with a tilde marking the modified version, is the procedure that incorporates the expert’s task-specific preference.

The language-model framework gives this same transformation an algorithmic source. The paper uses `𝒫` for the general family of transformations.

```
𝒫(𝒟meta)(f) = f̃
```

Here `𝒫` interprets the metadata `𝒟meta` for a particular learning decision. It acts on the base learner `f` to produce the specialized learner `f̃`, which uses the extra information when processing data. The nested arguments matter. In feature selection, for instance, the language query scores descriptions of columns, and `f̃` then fits a classifier using the retained columns’ values. The classifier still learns from examples.

#### From text probabilities to scores

In the paper’s account of neural language modeling, a text sequence `x` consists of variable-length units called tokens. [Tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/) matters because the experiments read probabilities at the level of those units. The authors write the distribution learned from text as `pLM` and use `ptext` for the underlying distribution it is intended to approximate.

```
pLM(x) ≈ ptext(x)
```

`x` is a text sequence, `pLM(x)` is the probability assigned to it by the language model, and `ptext(x)` is its probability under the underlying text distribution. The symbol `≈` expresses approximation. The autoregressive form expresses the first probability as a product of successive conditional probabilities.

```
pLM(x) = ∏ᵢ₌₁⁽|x|⁾ pLM(xᵢ | x<ᵢ)
```

`xᵢ` is the token at position `i`. `x<ᵢ` is the sequence of tokens strictly before that position. `|x|` is the sequence length, and `∏` multiplies the indicated probabilities from position `1` through the end. On the right, `|` separates the token being scored from the preceding text it is conditioned on. The paper calls that preceding text the context or prompt and uses `c` for it when describing a query. It describes maximum-likelihood training for this kind of language predictor. LMPriors use those learned conditional probabilities without running any additional pretraining. [Sequence to Sequence Learning with Neural Networks](https://md.research.elamur.ai/free/en/papers/sutskever-2014-sequence-sequence-learning-neural-networks/)

The prompt typically introduces the decision, gives examples with the expected format, and leaves the answer to the new case open. The examples can establish what a label means in that specific application and suggest why it should be chosen. The paper relates this design to earlier studies of what makes effective in-context examples. How the response is used then depends on the task. The feature filter uses a hard inclusion decision, while the causal combination and reward calculation retain graded information from the token probabilities. [What Makes Good In-Context Examples for GPT-3?](https://md.research.elamur.ai/free/en/papers/liu-2022-what-makes-good-context-examples/)

#### Scoring which features to keep

For feature selection, the decision concerns whether a candidate input is useful for predicting the target. The prompt situates the task, explains the requested labels, and gives examples of candidate features with judgments. The query fills in the name and description of a new feature. In the paper’s breast cancer setup, the examples include a measurement concerning a lump and a patient’s name. The examples define the intended relevance judgment in the context of the task. They are demonstrations in the prompt rather than rows passed to the eventual disease classifier.

The feature score for the semi-synthetic experiments takes the difference between the log probabilities of the affirmative and negative answers.

```
score(c) = log pLM(Y | c) − log pLM(N | c)
```

`score(c)` is the importance score for the candidate represented by prompt `c`. `Y` is the designated token for an important feature and `N` is the designated token for an unimportant feature. `pLM` is the language model’s probability, `| c` conditions it on the prompt, `log` takes its logarithm, and `−` subtracts the negative-answer log probability from the affirmative-answer log probability. A larger score expresses stronger relative support for the affirmative answer.

```
score(c) > τ
```

Here `τ` is the selection threshold, and `>` expresses the requirement that the score exceed it. The rule keeps features whose prompts meet that condition. This is how a soft probability comparison becomes a discrete restriction on a classifier’s inputs. Features are scored in the context of the prediction target before the downstream classifier is fitted. The classifier then uses actual measurements and labels to estimate the predictive relationship within the selected inputs.

The census application changes the prompt to fit commute prediction. It uses `T` and `F` as the affirmative and negative labels and supplies examples such as educational attainment and favorite color on opposite sides of the decision. Because the prior is attached to a described variable, the paper can select at the level of a survey concept even when categorical values later become multiple indicator columns. This matters when comparing the procedure with a supervised method whose ranking comes from encoded feature values.

#### Combining a causal direction score with data

The causal task gives the procedure a pair of variables and asks which is the cause. The prompt describes both variables and their source context, shows examples with the cause written first, and ends at the judgment for the new pair. The observations for the pair go into a separate data-driven causal procedure. The metadata score estimates which direction looks more plausible from the description independently of that procedure’s fit to the observations.

The paper first describes this as a binary hypothesis test. In its notation, `H₀` means that `x` causes `y`, and `H₁` means that `y` causes `x`. The base procedure is introduced as returning a log probability difference.

```
f(𝒟) = log p(H₁) − log p(H₀)
```

`f(𝒟)` is the score produced from the dataset `𝒟`, `p` denotes the probabilities used by that data-driven procedure, and `log` and `−` form their logarithmic difference. The subscripts in `H₀` and `H₁` identify the opposing causal hypotheses. Their order in the difference gives a higher score to larger support for `H₁`.

The displayed rule for incorporating the metadata is written as follows.

```
𝒫CD(f)(𝒟) = log(pLM(x → y | c(𝒟meta)) / pLM(y → x | c(𝒟meta))) + f(𝒟)
```

`𝒫CD` denotes the causal-discovery transformation, with `CD` identifying the task. `f` is the base procedure and `𝒟` is its dataset. `x` and `y` are the variables, and `→` in each candidate answer points from the proposed cause to its effect. `c(𝒟meta)` is the prompt formed from the pair’s metadata. `pLM` assigns probabilities to the competing directions conditioned on that prompt. The slash takes their ratio, `log` puts the ratio on a logarithmic scale, and `+` adds it to the base score. In the displayed expression the language contribution favors `x → y` when it is positive. The preceding definition of the data score orders the same hypotheses in the opposite direction. A common direction convention is needed to interpret the sum as aligned evidence.

The experiment uses RECI, a procedure based on comparing regression errors, for the data-driven component. The authors use its implementation in the Causal Discovery Toolbox. RECI returns a signed coefficient `ρ` in `[-1, 1]`. The paper assigns `ρ = 1` to `x → y` and `ρ = -1` to `y → x`, then maps the coefficient onto a probability scale.

```
p(x → y) = (ρ + 1) / 2
```

`p(x → y)` is the probability the authors associate with the direction from `x` to `y`. `ρ` is RECI’s coefficient, `+ 1` shifts it from its signed range, and division by `2` scales it into a probability. The experimental description combines the language log probability ratio with the probabilistically interpreted RECI output. The paper describes the result as combining log probabilities, although the displayed RECI mapping is itself a probability and the intervening conversion is left implicit.

In practice, the authors score the first token that distinguishes the candidate causes. The demonstrations consistently put the cause’s name first and use a forward arrow. A completion starting with one variable name is therefore taken as support for that variable being the cause. When the names share initial tokens, the authors add those shared tokens to the prompt and evaluate the first place the names differ. Their example is pair 42, whose two temperature measurements have a common beginning in their names. This is a practical scoring rule tied to the demonstrated answer convention. The paper’s next-token analysis examines whether the expected name tokens dominate the distribution in that setting.

#### Changing the reward an agent learns from

The reinforcement-learning case starts with a Markov decision process, the environment specification for a sequential decision problem. It describes which situations and actions are possible, how the environment starts and changes, and what reward the agent receives.

```
(𝒮, 𝒜, p₀, q, r, γ)
```

`𝒮` is the state space and `𝒜` is the action space. `p₀` is the initial-state distribution, `q` specifies the transition dynamics, and `r` is the reward function. `γ` is the discount factor, which controls how the learning objective weights future rewards. The tuple groups the ingredients of the decision process.

```
r(s, a) : 𝒮 × 𝒜 → ℝ
```

`r(s, a)` is the reward associated with state `s` and action `a`. `𝒮 × 𝒜` denotes the set of state-action pairs, `→` indicates the mapping, and `ℝ` is the set of real-valued rewards. The learner seeks a policy that chooses actions in states with the aim of maximizing expected reward under the dynamics.

```
f : 𝒮 → 𝒜
```

Here `f` is the policy and the arrow means that it assigns an action from `𝒜` to a state from `𝒮`. The LMPrior changes `r`, which changes a training input used to learn `f`. The metadata must express relevant circumstances of the state and action in words. It also supplies example situations and judgments. In Island Navigation, the translation to words concerns how close the square the robot enters is to water.

The general reward-shaping rule adds an expectation over the possible next answer tokens.

```
r̃(s, a) = r(s, a) + 𝔼ₜ ∼ pLM(· | c(s, a, 𝒟meta))[𝟙good(t) − 𝟙bad(t)]
```

`r̃` is the shaped reward and `r` is the original one for state `s` and action `a`. The symbol `𝔼` denotes an expectation, and `t ∼ pLM(· | c(s, a, 𝒟meta))` means that it is taken over next token `t` according to the conditional distribution supplied by the language model. The dot marks the possible token and `c(s, a, 𝒟meta)` is the prompt built from the situation and metadata. `𝟙good` and `𝟙bad` indicate whether `t` is the Good or Bad answer token, respectively. Their difference gives positive weight to Good and negative weight to Bad, and `+` adds the average of that difference to the environment reward.

The gridworld prompt also includes Neutral, which has value `0`. The paper assigns Good the value `1` and Bad the value `-1`. The authors map distances `0`, `1`, `2`, and `3` to descriptions ranging from entering water to being far from it. In that order the reported reward adjustments are `-1`, `-0.3`, `0.6`, and `0.95`. Each is the resulting expected adjustment for its distance, so the learner can receive a different reward while still receiving the environment’s original reward. The paper separately discusses potential-based reward shaping as a way to preserve optimality with respect to the original reward when policy invariance matters.

#### The connection to classical prior odds

The appendix illustrates the transformation idea with a classical prior for a binary hypothesis test. It starts with a data score written as an odds ratio.

```
f(𝒟) = p(H₁ | 𝒟) / p(H₀ | 𝒟)
```

`f(𝒟)` is the output of the learner on observations `𝒟`. `H₁` and `H₀` are the competing hypotheses and `p(H | 𝒟)` denotes the probability of a given hypothesis `H` conditioned on the data. The slash makes the score odds in favor of `H₁` over `H₀`. The appendix refers to this as a likelihood ratio, although the terms as written are hypothesis probabilities conditional on the observations.

```
f̃(𝒟) = f(𝒟) · p(H₁ | 𝒟meta) / p(H₀ | 𝒟meta)
```

`f̃(𝒟)` is the transformed output. `f(𝒟)` is the original data score, `·` means multiplication, and the ratio on the right is formed from hypothesis probabilities conditional on the metadata `𝒟meta`. The appendix gives prior experimental results and expert judgments as examples of information that might supply such odds. If the data contribution is a likelihood ratio and the metadata contribution supplies the prior odds, multiplying gives the usual form of the odds update. When the data contribution already contains prior odds, the interpretation depends on accounting for them. The analogy explains the design of LMPriors. The empirical usefulness and probabilistic calibration of the scores are separate questions.

### Experiments and results

#### Feature selection after joining unrelated datasets

The semi-synthetic experiment creates a problem with known feature provenance. The authors take a primary dataset, add columns from a secondary dataset and preserve the primary labels. They sometimes subsample the primary dataset so that its row count matches the added data. This lets them ask two questions. Does the language-based ranking distinguish columns according to their source? And when the ranking is used as a filter, how accurately does a downstream classifier predict the original target?

Some of the comparisons concern whether features from the two sources occupy separate parts of the score distribution. The authors report complete separation for Housing Prices paired with Wine Quality, Housing Prices paired with Adult Income, and Breast Cancer paired with Housing Prices. Breast Cancer paired with Adult Income was less clean. Some columns from the auxiliary data received high relevance scores, including age and gender. The authors interpret these as plausible features for the stated prediction task. In this experiment, provenance is known by construction, while relevance is judged in the context of the target. The two criteria can lead to different assessments of a high score.

The test-accuracy example reverses the roles of the Adult Income and Breast Cancer datasets. Adult Income is the primary task and the Breast Cancer columns are added as nuisance features. The appendix describes 89 Adult Income features after some variables were one-hot encoded, with 30 added Breast Cancer features. The train and test data together contain 569 rows with an 80-20 split. The downstream classifier is `LogisticRegressionCV`. With Adult Income inputs alone, the paper reports 89.4% test accuracy. With the extra columns included it reports 85.1%, and after LMPrior filtering it again reports 89.4%.

Adult Income test accuracy with added Breast Cancer features Filtering the mixed inputs restores the accuracy of the classifier trained on the original inputs.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| Original Adult Income inputs | 89.4 |
| Mixed inputs before filtering | 85.1 |
| Mixed inputs filtered by LMPrior (this paper) | 89.4 |

The paper also compares the language ranking with LassoNet, a data-driven selector, on the Breast Cancer and Wine Quality combination. In that comparison, LassoNet gives a larger share of prominent positions to nuisance features, and some of its importance scores are tied. The LMPrior ranking favors features the authors consider relevant to the breast cancer task. This evidence concerns the ordering of features. Its interpretation differs from the Adult Income accuracy result, where the authors assess a classifier on held-out examples after applying the filter.

The appendix supplies details of several downstream fits. For Cover Type with added Breast Cancer inputs, the authors use a random forest with `n_estimators=40`. The train and test data contain 569 rows, divided with an 80-20 split. For Breast Cancer with added UCI Wine inputs, they use `LinearSVC` on 285 combined rows and a 75-25 split. The Wine dataset contains 178 rows and the authors generate the remaining rows with Gaussian noise. They also use `LinearSVC` for Breast Cancer with added Folktables ACS employment features, again with 285 rows and a 75-25 split. These details place the results in the setting of constructed mixtures with dataset-specific preprocessing and classifier choices.

#### Selecting variables for commute prediction

The other feature-selection experiment uses survey data whose columns already belong to a common collection. The authors access the American Community Survey’s Public Use Microdata Sample through folktables and restrict the experiment to California in 2018. They use the commute-time variable `JWMNP` to define a binary target whose positive case is a commute of more than 20 minutes. The wider ACS collection contains 286 numerical and categorical features. Some record identifiers and coding fields are removed, leaving 282 fields with the label included, or 281 candidate features.

The preprocessing puts categorical values into indicator columns and standardizes the data with z-scores before classifier training. The authors train a random forest, logistic regression, a support vector machine with a linear decision boundary, and a gradient-boosted decision tree. The random forest uses 100 trees. The boosted classifier uses exponential loss, 100 boosting stages, and a maximum depth of 5. Using several classifiers allows the feature set to be assessed with different kinds of predictors instead of linking its reported usefulness to a single classifier family.

The comparisons ask different questions about the selected set. Subset is a previously used collection of 16 features. Full lets the classifier use the entire eligible set. Random selects the same number of features as LMPrior, providing a check on whether a similarly sized reduction is enough to account for the result. The supervised alternatives include Lasso, which uses a penalty on coefficient magnitudes, and MRMR, whose criterion seeks relevant features with limited redundancy. The experiment evaluates the resulting classifiers by accuracy.

LMPrior selects 59/281 candidate features. The paper describes the resulting accuracy as improved or on par relative to the baselines and captions its comparison table as favorable to LMPrior. The reported selection count concerns the survey variables, so it should be read at the level of inputs with descriptions. One-hot encoding changes how some of those inputs are represented in the classifier. The paper gives the qualitative accuracy comparison without stating the individual numerical table entries in its discussion.

The authors also frame selection as an exploratory analysis. A retained column gives the practitioner a specific hypothesis about what might matter for predicting an above-threshold commute. A held-out accuracy comparison can then evaluate the selected collection as a whole. Those are different levels of evidence. A combination of columns can support accurate prediction while the score of a particular column remains a judgment about relevance, based largely on its description and on how the task was posed.

#### Fewer water entries during navigation training

The Island Navigation task comes from AI Safety Gridworlds. The agent must learn to navigate to a goal, and entering a water square counts as a safety violation. The original reward supplies the navigation objective and carries no negative reward for entering water. The experiment records those entries separately. This arrangement lets the authors examine training behavior that the learning objective, on its own, has little reason to discourage.

The authors use the `safe-grid-gym` interface and modify the environment to log violations and apply the shaped reward. They train a DQN agent using the `stable-baselines3` implementation with its default hyper-parameters. Each condition trains for 100,000 steps, and the experiment is repeated over 10 random seeds. The comparison is between learning with the original reward and learning with the additive reward from the distance descriptions. The paper also makes the navigation code and instructions available in its supplementary material.

The metric is the total number of water entries during training. The authors report 8278 ± 1079 for the original reward and 2917 ± 85 with the LMPrior adjustment. The chart compares the central reported counts. In both conditions DQN finds an optimal policy, which puts the observed effect in the experiences the agent accumulates on the way to learning the task.

Training safety violations on Island Navigation with and without reward shaping The agent trained with the LMPrior adjustment enters the water less often during training.

**The numbers**

| System or setting | safety violations |
| --- | --- |
| DQN with original reward | 8278 |
| DQN with LMPrior-shaped reward (this paper) | 2917 |

The experiment gives the prior a concrete point of leverage. The environment supplies a distance measure, the prompt gives each distance a meaning for a water-sensitive robot, and the returned scores create a gradient of reward across those situations. The agent trains under that altered incentive. The recorded water entries measure whether its behavior changes in the intended direction, while the final policy check addresses whether it still solves the navigation task in this environment.

#### Choosing a direction on Tuebingen Cause-Effect Pairs

The Tuebingen Cause-Effect Pairs dataset brings together observations and descriptions for pairs from different domains. A pair might describe a material input and a property of concrete, or two networking measurements. The task is to identify the benchmark’s reference direction for each pair. The authors standardize the metadata into a name and short description for each variable and a brief statement of context. They exclude pairs with missing values or multidimensional variables, following the procedure they describe for comparison with prior work.

The experiment compares the data-driven RECI procedure, the causal LMPrior acting on the descriptions alone, and the combination in which the direction score from the prompt augments the RECI output. Accuracy is the share of evaluated pairs for which the predicted direction matches the reference. RECI alone reaches 58.7% on the filtered benchmark, and the metadata-based prior alone reaches 83.5%. Their combination reaches 84.5%.

Causal direction accuracy on the filtered Tuebingen Cause-Effect Pairs benchmark The combined procedure has the highest reported accuracy, with the metadata judgment already ahead of RECI alone.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| RECI | 58.7 |
| LMPrior using metadata alone (this paper) | 83.5 |
| RECI augmented by LMPrior | 84.5 |
| Causal Mosaic result cited by the authors | 83.3 |

The 83.3% figure comes from the earlier purely data-driven Causal Mosaic result cited by the authors. They present it as the strongest such comparison they knew of. The methods have different information budgets because the LMPrior can use the variable meanings and domain descriptions. The most direct test of combination within the paper is the comparison among its own RECI, prior-only, and combined conditions.

The accuracy ordering reveals where most of the success is already available in this setup. The descriptions are highly informative even when the fitted relationships in the observations contribute nothing to the decision. Adding the RECI component produces the highest reported aggregate accuracy. This is evidence that the extra data-driven component can contribute to the combined rule on these pairs. The aggregate scores leave open which cases improved or worsened and whether the same contribution would persist under a different metadata protocol.

### What the ablations show

#### What changes when the prior is added

The clearest component comparison is in causal discovery. Running RECI by itself tests what the authors’ data-driven procedure can obtain from the paired observations. Running the prior by itself tests how far the documented variables and context can take the directional judgment. Combining the scores tests whether the resulting decisions improve over either input alone on the evaluated pairs. The strong prior-only result shows that access to the metadata changes the task substantially. The higher combined accuracy shows that a weaker standalone component can still help the final decision rule in aggregate.

That comparison has a particular scope. The metadata-only condition contains the task instructions, examples and explanations as well as the descriptions of the new pair. The reported result measures them as a package. A comparison that removed explanations, changed the demonstrations, or concealed the context while retaining the variable names would be needed to isolate those pieces. The paper describes these design elements and presents its prompts. Its numerical component comparison concerns the scores fed into the causal rule.

The reinforcement-learning comparison isolates the reward modification at the level of the training setup. The agent family, environment, training schedule, and safety metric are common to both conditions. What changes is the addition of the proximity-dependent reward. The reduction in training violations shows that the added reward affects behavior at the point where safety is measured. The fact that both conditions reach an optimal policy gives the experiment two separate outcomes to interpret. The original task is learned in each condition, while training exposure to the hazard differs.

This experiment tests the supplied shaping schedule as a whole. The prompt gives the language model premises about the robot and a graded description of water proximity, then the expectation rule turns its replies into the reward values. A hand-designed shaping schedule would be a different comparison. Its absence leaves the result as evidence for the effectiveness of the particular language-derived reward against the original reward, with the comparative value of deriving the schedule this way still open.

#### What changes when the feature set is filtered

The Adult Income comparison separates the effect of adding nuisance variables from the effect of applying the LMPrior to the enlarged feature set. With the original columns, the classifier establishes a test-accuracy reference. The mixed condition shows that the added Breast Cancer measurements interfere with prediction in the reported setup. The filtered condition shows that predicting from the surviving columns can recover the reference accuracy. The result supports the filter’s utility on that prediction problem. Establishing equality of the selected columns with the original set would require inspecting the selections themselves.

The feature score distributions provide that more direct kind of inspection for several pairings. When the source groups separate, there is a threshold that can distinguish the feature origins on the reported scores. When they overlap, the authors check what the ostensibly misplaced features mean. Age and gender in the Breast Cancer and Adult Income pairing illustrate why a provenance judgment and a semantic judgment can diverge. The extra columns were introduced to create a corruption experiment, yet their descriptions refer to concepts that could appear relevant in an actual prediction study. A high score can therefore be sensible as a judgment about meaning and count as a mistake against the constructed separation target.

The LassoNet comparison adds an alternative source of feature importance. LassoNet uses information in the prediction data to induce sparsity. LMPrior reads the descriptions in light of the task. The reported ranking places fewer nuisance features prominently with LMPrior in the Breast Cancer and Wine Quality comparison. This illustrates a concrete advantage of descriptive metadata when the measured values allow a spurious or unstable ranking. The result concerns the particular mixture, and the paper’s broader test-accuracy comparisons help distinguish ranking behavior from the eventual performance of a fitted classifier.

The census baselines address a different explanation for the results. Full tests whether allowing every eligible input works as well as filtering. Random tests whether a similarly sized feature set suffices. Subset provides a comparison with an existing smaller collection of inputs, and the supervised selection baselines compare the language judgments with data-driven relevance criteria. These comparisons evaluate the usefulness of the selected set for prediction. They leave the source of each individual score, including whether the name or its description contributed more, unresolved.

#### What the next-token analysis checks

The causal prompt analysis focuses on the connection between the probability read from the interface and the direction being scored. Because demonstrations always begin with the cause’s name, the experiment can use the next distinct token to represent a choice. The paper examines the probability spectrum for the next token and reports that the expected name tokens receive most of the support in that format. Appending a shared prefix when needed keeps the variable names distinguishable at the position being scored.

That analysis supports the use of next-token probabilities as a practical measure of the prompted choice. It leaves a further question about what those probabilities mean beyond the prompt. A token can receive a large probability because the system strongly favors that continuation under the examples and formatting. Whether the corresponding real-world proposition is equally likely is a question about calibration. The experiments evaluate the decisions obtained from the scores, chiefly through accuracy and training behavior.

### Limitations

#### Limits identified by the authors

The framework needs task metadata that can be expressed in text. For the feature and causal tasks, that means descriptions with enough information to identify the variables and the relevant context. For reward shaping, it means having a way to express the part of the state or action that should inform a judgment. In the absence of that information, the authors fall back to ordinary learning from the data. The contribution therefore applies where there is an available descriptive channel between the task and the prior.

The authors emphasize the consequences of prompt design. A prompt establishes which examples are representative, which variables will be considered, and what reasoning is demonstrated. If those choices misrepresent a group or the problem, the induced preference can transmit that error to the downstream procedure. A harmful judgment can become a removed feature, a favored causal direction, or an inappropriate incentive. The paper connects this concern to research on bias in pretrained systems and on the representation of subjects in data and contextual examples. [On the Opportunities and Risks of Foundation Models](https://md.research.elamur.ai/free/en/papers/bommasani-2021-opportunities-risks-foundation-models/) [Debiasing Word Embeddings](https://md.research.elamur.ai/free/en/papers/bolukbasi-2016-man-computer-programmer-woman-homemaker/)

The authors also distinguish predictive usefulness from a more complete evaluation of a real application. A selected feature set can perform well on the aggregate prediction metric while yielding worse behavior for underrepresented subgroups. The same issue arises earlier in the pipeline if a sensitive attribute elicits associations that reflect biases in pretraining. The paper argues for screening and interpreting those decisions when using the framework, especially where predictive accuracy would give an incomplete account of their effects.

In the reward case, the authors flag the possibility that shaping changes which policy is optimal for the original task. They discuss potential-based shaping as a way to address that issue. Their gridworld result shows that the tested agents found an optimal policy under both training conditions. This empirical check pertains to the tested environment and adjustment.

#### Limits visible in the experimental setup

Feature judgments are made from descriptions of individual variables. That is a useful scale when the experiment adds columns from an unrelated task, since the variable names and meanings can signal the mismatch directly. In an ordinary prediction problem, usefulness can depend on interactions, redundancy, coding details, or the circumstances in which the observations were collected. A plausible variable can add little after another variable is present. A variable that sounds weak in isolation can help in combination. The paper’s classifier evaluations test the performance of selected sets under the reported conditions, and the setups leave these conditional relevance questions largely to downstream evaluation.

The semi-synthetic corruption experiments give a clear definition of where each column came from. They offer direct evidence for filtering mixtures of the kind the authors construct. Other forms of nuisance structure, including irrelevant columns with names and meanings similar to the intended predictors, would place greater demands on the metadata-based judgment. The census experiment moves closer to that problem because the variables come from a single survey. Its reported setting is a California commute target in 2018, so the experiment establishes performance in that particular prediction setting.

The causal task is a forced directional choice on pairs with reference answers. A high score there shows that a prompt can supply a good answer to this benchmark question, where the context frequently gives clues about a credible direction. Establishing a causal relation in another setting could require considering a common cause, an absent direct link, or a variable pair whose direction remains ambiguous. The prompt and decision rule tested here restrict the options to the two opposing directions. The paper also leaves the provenance of the high metadata-only accuracy open. Its design allows the use of prior knowledge, but the evaluation cannot attribute individual judgments to general reasoning, familiar examples, associations in pretraining, or cues in the written descriptions.

There is also a specification limit in the causal combination. The general notation orders the causal hypotheses differently in the data score and the language score. In the experimental account, the coefficient-to-probability conversion is explicit, while the exact entry of that probability into the additive log-scale rule is less clear. The paper reports the empirical accuracy of the combined procedure. Reconstructing its probabilistic interpretation from the displayed formulas requires resolving the direction convention and identifying the scale used for the RECI contribution. The evaluation reports directional accuracy, leaving calibration of the combined probabilities unmeasured.

The safety experiment gives the language model a ready-made representation of the hazard. The authors translate a known distance measure into descriptions and specify the robot’s vulnerability in the prompt. They then evaluate a gridworld in which the consequences of shaping can be logged directly. This tests whether the elicited values help when the hazard and the relevant feature are available to the designer. Recognizing hazards from raw observations, selecting a suitable safety metric in an unfamiliar environment, and obtaining comparable behavior under different dynamics would require further evidence.

Finally, the experimental choices fix a particular GPT-3 variant and use task-specific hand-written prompts. The results show what that implementation can do with the given descriptions and examples. They leave open how much performance depends on the system queried, how stable the decisions are across alternative prompts, and how the probabilities would behave under a different answer format. These are consequential questions because the prior is used as an input to another procedure. A change in the score can cross a feature threshold, tip a causal choice, or alter the incentive presented to a learning agent.

### What came after

[Prompting is not a substitute for probability measurements in large language models](https://md.research.elamur.ai/free/en/papers/hu-2023-prompting-is-not-substitute-probability/) (2023) cites LMPriors and takes up a distinction at the center of the framework. A prompt can make a question answerable in a specified format. Measuring the relative probability of competing answers is a separate operation. The later paper’s stated position is that prompting alone cannot stand in for probability measurement.

That distinction has a concrete counterpart in LMPriors. Consider the feature filter. A system that supplies the affirmative label gives its preferred answer under that prompt. The filter also needs the probability of the negative label, because the threshold applies to the log probability difference. A mildly favored affirmative answer and an overwhelmingly favored one can produce the same label while giving the filter different inputs. The causal score likewise depends on the relative support for both directions, and the reward rule depends on the probability assigned to each scored judgment. In these cases, an interface that supplies only the chosen answer would omit information the published rules use.

The connection also clarifies what the original experiments establish. They show how probability measurements tied to a prompt can change a learning decision and how those decisions perform on the studied tasks. The later work’s distinction puts attention on the measurement itself. Once a language judgment is used as a prior, the format of the answer and the probabilities assigned within that format both matter to the downstream procedure.

## Cite

Cite as Kristy Choi, Chris Cundy, Sanjari Srivastava and Stefano Ermon. 2022. LMPriors: Pre-Trained Language Models as Task-Specific Priors. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.2210.12530](https://doi.org/10.48550/arxiv.2210.12530) · [arXiv 2210.12530](https://arxiv.org/abs/2210.12530)

```bibtex
@misc{choi2022lmpriors,
  title = {{LMPriors: Pre-Trained Language Models as Task-Specific Priors}},
  author = {Kristy Choi, Chris Cundy, Sanjari Srivastava and Stefano Ermon},
  year = {2022},
  doi = {10.48550/arxiv.2210.12530},
  eprint = {2210.12530},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2210.12530}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
