---
title: "Self-Consistency of Large Language Models under Ambiguity"
description: "Bartsch and colleagues test whether language models give matching rules and next numbers for ambiguous sequences, and whether they…"
canonical: "https://research.elamur.ai/free/en/papers/bartsch-2023-self-consistency-large-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/bartsch-2023-self-consistency-large-language-models/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2023](https://md.research.elamur.ai/free/en/papers/2023/) / Self-Consistency of Large Language Models under Ambiguity

# Self-Consistency of Large Language Models under Ambiguity

Paper · 2023 · Henning Bartsch, Ole Jorgensen, Domenic Rosati et al.

**Authors:** [Henning Bartsch](https://md.research.elamur.ai/free/en/authors/henning-bartsch/), Ole Jorgensen, Domenic Rosati, Jason Hoelscher-Obermaier and [Jacob Pfau](https://md.research.elamur.ai/free/en/authors/jacob-pfau/) · **Year:** 2023 · **Venue:** Proceedings of the 6th BlackboxNLP Workshop: Analyzing and Interpreting Neural Networks for NLP · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[Cited by **7** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/bartsch-2023-self-consistency-large-language-models/cited-by/) · Proceedings of the 6th BlackboxNLP Workshop: Analyzing and Interpreting Neural Networks for NLP · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2023.blackboxnlp-1.7/)
- [PDF](https://aclanthology.org/2023.blackboxnlp-1.7.pdf)
- [DOI 10.18653/v1/2023.blackboxnlp-1.7](https://doi.org/10.18653/v1/2023.blackboxnlp-1.7)

## Summary

A rule can fit every number in a sequence and still disagree with another equally valid rule about what comes next. Bartsch and colleagues use that ambiguity to ask whether [large language models](https://md.research.elamur.ai/free/en/concepts/large-language-models/) make compatible choices when they answer a question and explain it in separate conversations. One prompt asks for the next integer. Another presents the same sequence and asks for a rule in the form of a Python function. Because the researchers specify the families of rules in advance, they can identify sequences with several valid continuations and check whether the function actually produces the number given in the other response.

The authors first check that the systems can perform each task on its own. On the unambiguous test cases, supplying the next integer is easier than reproducing the generating function. In the cross-context experiment, average agreement between the rule and the continuation rises from 66.86% for text-davinci-003 to 74.68% for gpt-3.5-turbo and 82.22% for gpt-4. Each exceeds the corresponding baseline for independent, uniform choices at its measured level of task accuracy. Changes to the prompting instructions, the amount of the sequence shown, and the representation of the integers help test how much that relationship depends on the setup. The systems have more trouble judging their own agreement. The less capable systems tend to report agreement too often, while gpt-4 underestimates how frequently its answers match.

A matching pair leaves open what else the system might have answered. For text-davinci-003, the authors examine which alternatives rank highly in the probabilities available from its interface. Valid alternatives frequently outrank invalid ones in the continuation task, even when greedy decoding selects a different number. The corresponding result is weaker for alternative rules. When asked to list possibilities directly, the systems tend to give valid answers, but recover only part of the available set. The highest reported recall is 0.41 for continuations and 0.49 for explanations.

The experiments thus distinguish agreement across prompts, the ability to assess that agreement, and the ability to recognize or express other valid answers. A system can perform well on the first measure while struggling with the second and still assigning substantial relative weight to alternatives on the third. The arithmetic setting makes those distinctions measurable. The findings about output probabilities come from a single system, and the study leaves open how well the results transfer to ambiguity in ordinary language.

## Deep dive: Self-Consistency of Large Language Models under Ambiguity

Bartsch and colleagues test whether language models give matching rules and next numbers for ambiguous sequences, and whether they can see other answers. · about 33 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

#### When a valid answer can disagree with a valid explanation

An explanation ordinarily creates an expectation about the answer it accompanies. A rule that generates a sequence should yield the predicted next number when applied at the following position. That expectation is easy to check when someone states the rule and number together. Bartsch and colleagues ask whether the same relationship holds when the two requests are made independently, with neither response supplied as context for the other.

Ambiguity makes this a more informative test. Where the sequence determines a unique answer under the permitted rules, improved accuracy already gives the two responses a way to converge. A system that finds the unique rule and obtains the unique next number will agree with itself. Where several rules remain possible, it can do both tasks correctly in isolation and still commit to incompatible answers. The explanation may describe one valid rule while the continuation comes from another. The experiment uses this separation to ask whether a system has a stable preference among permissible choices across different requests.

The distinction matters for [question answering](https://md.research.elamur.ai/free/en/topics/question-answering/) and explanations more broadly. A fluent response may be individually plausible. Its rationale can also be individually plausible. A reader who wants to know whether the rationale supports the answer still needs a way to connect them. In an open-ended question, deciding what counts as an alternative and whether the rationale supports it may already require interpretation. A sequence with an enumerable set of generating rules gives the authors a setting where those decisions can be made before any answers are collected.

The authors motivate their interest in consistency with a property of pretraining. The texts a system learns from come from many speakers, who can express incompatible beliefs. A system that can reproduce those differences need not speak with a single position across contexts. The paper cites work examining whose opinions are reflected in such outputs, while also noting that the idea of attributing beliefs to these systems is contested. Its own test proceeds at the level of behavior. The researcher can compare a number with the output of a function without needing to settle what it would mean for the system to believe either answer. [Whose Opinions Do Language Models Reflect?](https://md.research.elamur.ai/free/en/papers/santurkar-2023-whose-opinions-language-models-reflect/)

#### What earlier consistency tests could establish

The paper situates the task alongside earlier efforts to evaluate truthfulness. TruthfulQA, as described by the authors, uses questions across areas including health, law and politics to examine truthful responding. Agreement alone leaves truth unsettled. The same error could be repeated across prompts, and an inconsistency could reveal a problem without pointing to the correct answer. Bartsch and colleagues use an arithmetic domain where the validity of an answer is available separately from agreement. That separation lets them ask how a system chooses when more than one answer is correct. [TruthfulQA](https://md.research.elamur.ai/free/en/papers/lin-2022-truthfulqa-measuring-how-models-mimic/)

Earlier work on semantic consistency and knowledge probing addressed answers to different formulations of knowledge-focused questions. In those settings, the evaluator has to establish which expressions count as the same answer and which questions ought to elicit it. The sequence benchmark changes the form of the comparison. The two prompts request different kinds of objects, an integer and a function, but the function can be applied to yield an integer. The relationship is consequently testable even though the answers have different surface forms. [Measuring and Improving Consistency in Pretrained Language Models](https://md.research.elamur.ai/free/en/papers/elazar-2021-measuring-improving-consistency-pretrained-language/)

The authors also discuss work that checks logical relationships among responses to different inputs. Their example concerns forecasts of sprint records. Forecasts about successive times should obey an ordering implied by what it means to set a new record. Such a relationship can expose incompatibility even when the actual future results are unavailable. Bartsch and colleagues use related logic in a case where the possible next values can be established in advance. They can therefore add a question that a consistency check on unknown outcomes cannot easily resolve. When the responses disagree, were both choices legitimate under the task?

Other work examined whether systems detect ambiguity in language or notice when a classification task leaves an important feature undetermined. Those studies ask whether a system recognizes an ambiguity and responds appropriately to it. The arithmetic task narrows the interpretive demands. The instructions give the families of permitted functions, and an ambiguous prefix has an exact meaning within that space. Recognizing ambiguity in an ordinary sentence can require deciding what the sentence might mean before any consistency criterion can be applied. In the sequence task, the criterion follows from the possible rules and their outputs. [We're Afraid Language Models Aren't Modeling Ambiguity](https://md.research.elamur.ai/free/en/papers/liu-2023-we-re-afraid-language-models/)

A related line of work, as the paper describes it, studies open-ended questions where a single correct response is unavailable. The sequence experiment gives this problem a bounded form. Several answers may satisfy the question, and the authors can state which they are. It is then possible to distinguish missing a legitimate alternative from returning an invalid one. That distinction becomes important when the authors move from a prompt requesting one next number to a prompt requesting several. [Do Large Language Models Know What They Don't Know?](https://md.research.elamur.ai/free/en/papers/yin-2023-do-large-language-models-know/)

#### The role of an explanation

The paper uses explanation in a specific sense. It is executable code proposed as a generating rule. It accounts for the displayed terms and has an observable consequence at the next position. That definition gives the study a way to test the explanation while leaving a separate question open about how the prediction was produced.

The related work on [reasoning](https://md.research.elamur.ai/free/en/topics/reasoning/) makes that distinction relevant. The authors discuss chain-of-thought prompting as a way of eliciting articulated reasoning. They also describe a study in which a bias can change a response while the accompanying account fails to reflect the influence of that bias. A successful match between a rule and a continuation addresses compatibility. Establishing that the rule was used to arrive at the continuation would require evidence about the computation that produced the choice. [Chain-of-Thought Prompting Elicits Reasoning in Large Language Models](https://md.research.elamur.ai/free/en/papers/wei-2022-chain-thought-prompting-elicits-reasoning/) · [Unfaithful Explanations in Chain-of-Thought Prompting](https://md.research.elamur.ai/free/en/papers/turpin-2023-language-models-don-t-always/)

The paper also points to [interpretability](https://md.research.elamur.ai/free/en/topics/interpretability/) work that searches internal representations for signals related to truthfulness. Its discussion presents that approach as complementary. A behavioral test can identify which prompt changes leave answers aligned and which circumstances expose alternative responses. An investigation of internal representations addresses a different level of evidence. The experiments here begin with observable responses and go only as far inside the system as the available token probabilities allow. [Discovering Latent Knowledge in Language Models Without Supervision](https://md.research.elamur.ai/free/en/papers/burns-2022-discovering-latent-knowledge-language-models/)

### The method, step by step

#### Start with a finite space of rules

The benchmark begins by specifying the rules that count. The authors build a function space from eight templates. Each template has two slots for constants, filled from the integer range [0, 4]. Once the slots are filled, the function takes a position as input and returns the sequence term at that position. The paper reports 197 possible functions in the space searched. The instructions show the permitted families of Python functions so the respondent has access to the vocabulary from which the valid explanations are drawn.

Some families are readily recognizable from familiar sequences. An arithmetic template multiplies the position by one constant and adds another. A template involving a power raises a quantity derived from the position to an exponent, or uses the position to determine the exponent of a constant base. Other templates use remainder, bitwise OR, a filtered list, or recursion. Bitwise OR combines the binary digits of its operands, setting a result bit if either input has that bit set. In the recursive template, the value at a position depends on the result of a call at the preceding position. These mechanisms let different families agree for a run of visible terms while diverging at the next term.

The paper gives the prefix `7, 11, 15` as an illustration. One permitted explanation has this form:

```
f(x) = (4 × x) + 3
```

Here `f` denotes the generating function and `x` is the position supplied to it. The multiplication sign `×` scales that position by the constant `4`, and `+` adds the constant `3`. With the indexing illustrated in the paper, this rule produces the displayed terms and then gives `19`.

A different rule accounts for the same prefix:

```
g(x) = (3 × x) | 3
```

Here `g` is the alternative function and `x` again denotes the position. The `3` inside the parentheses multiplies that position. The symbol `|` takes the bitwise OR of the product with the other `3`. The next value under this rule is `15`. If the separate prediction is `19` and the explanation is `g`, the prefix supports both responses individually, while applying the stated explanation fails to produce the predicted number.

The example clarifies what the authors count as ambiguity. The existence of two different formulas that both fit the prefix is insufficient by itself. They have to imply different next values. Several formulas might fit an observed prefix and still support the same next number. Such a case would give the explanation task several possible answers without creating the choice between continuations that drives the cross-context experiment.

#### Search for agreement that breaks at the next position

The mining algorithm fills the templates, takes pairs of instantiated functions, and tests the pairs at possible starting offsets. An offset shifts the position supplied to a rule. Allowing the offsets to differ lets the search find two matching stretches that begin at different positions in the underlying progressions. The mining appendix reports checking prefixes of length 4 with an offset maximum of 4. It describes the functions as indexed from one. The prompt variants that specify where the displayed sequence begins use their own stated indexing convention, so the relevant starting position is part of the protocol.

For a given pair and pair of offsets, the procedure compares the terms position by position. If the outputs differ anywhere in the proposed prefix, that comparison stops. When they agree throughout the prefix, the procedure evaluates the functions at the following positions. A difference there marks an ambiguous case. The chosen rule space and offsets determine which possibilities are relevant. The same visible numbers might have additional continuations if the researcher enlarged the space.

According to the paper, the dataset contains 140 sequences that are unambiguous and 57 that are ambiguous. The mining appendix describes obtaining unambiguous cases by modifying the search to find sequences with a single generating function in the selected space. At the task level, the main text describes an unambiguous sequence as one with a single valid completion. The search criterion for selecting a sequence with one rule is stronger than requiring a single next value, since two rules can agree through the continuation. Keeping those descriptions distinct helps explain why the paper can use an exact target function for its unambiguous explanation test and compare compatible choices for its ambiguous test. The authors released the sequence dataset and accompanying code.

Building and testing ambiguous sequence cases The steps in order.

#### Elicit the answer and explanation independently

The completion request gives a prefix and asks for the next integer. The explanation request gives the same sequence and asks for a Python lambda. A lambda is a function written as an expression, so the reply identifies a procedure that can be applied to a position. The demonstrated reply formats tell the respondent what a successful answer should look like. The methodological description specifies eight demonstrations per prompt and says the examples are drawn randomly from the same function space used to build the tasks. The appendix illustrates eight examples for completion and six for the example explanation prompt. The accompanying judgments also have their own demonstrated format.

This use of a handful of examples is [few-shot learning](https://md.research.elamur.ai/free/en/concepts/few-shot-learning/), in the sense that the respondent is shown examples in the prompt before it is given a test item. The examples specify the task and the answer format. The paper reports aggregation over multiple runs to reduce the influence of the particular examples randomly drawn for a prompt. Its experimental procedure concerns which cases and instructions are passed to existing systems and which responses are collected.

The tasks take place in separate context windows. The continuation request does not include a formula previously chosen for that item. The explanation request does not supply the chosen continuation as a target. This matters because otherwise the system could condition one answer directly on the other. Separation leaves both prompts with the same prefix and permitted rule space, while allowing each to elicit its own choice.

For the main response experiments, the authors use greedy decoding with temperature 0. Greedy decoding selects the locally most probable next token at each step. A token is a unit of text emitted by the system. Reducing the role of sampling gives the authors a favorable condition for observing a stable choice. The paper notes that greedy decoding through the public interface may still produce variation, so the setting alone cannot guarantee repeatable answers.

The unambiguous experiment starts with four systems. The weakest on the accuracy checks, davinci, is left out of the subsequent experiments. The remaining comparisons use text-davinci-003, gpt-3.5-turbo and gpt-4. For gpt-4, the paper specifies gpt-4-0314. It identifies the gpt-3.5-turbo system as the version available from March to June 2023. The authors chose commonly used public systems that they expected to represent increasing general capability. They acknowledge uncertainty about the details of how those systems were trained. [GPT-4 Technical Report](https://md.research.elamur.ai/free/en/papers/openai-2023-gpt-4-technical-report/)

#### Check accuracy, compatibility and self-judgment

The authors first assess the two tasks on unambiguous cases. Given a prefix of four integers for the completion test, they check the next integer against the known answer. For the explanation test, they check whether the returned Python function exactly matches the one used to generate the sequence. Exact match asks for recovery of the target function in the required form. That is a more demanding output criterion than correctly predicting just the following integer. The paper separately tracks whether an answer can be parsed, so a response can be well formed while failing the accuracy test.

For the ambiguous cases, cross-context consistency is measured by checking whether the explanation produces the sequence with the independently supplied completion appended. This comparison is defined by the relationship between the answers. Correctness is also available against the permitted rule space. An explanation that fits the observed terms but leads to a different next value illustrates why correctness of the individual responses and compatibility of the pair are worth distinguishing.

The authors then ask the system to judge compatibility itself. The judgment task presents a sequence alongside a candidate function and asks for a yes-or-no answer about whether the function generates that sequence. In the experiment, the sequence includes the separately supplied completion. The researchers can compare the share of cases judged consistent by the system with the share found consistent by the external check. They use closeness between these rates as a measure of calibration for this task. Calibration here concerns the correspondence between the system’s overall self-assessment and its measured behavior. An overall rate can be close even when some individual pairs are wrongly classified, a distinction that matters when interpreting the comparison.

To interpret the observed agreement, the paper evaluates a random baseline that incorporates performance on the two unambiguous tasks. It asks how much consistency would be expected if valid choices were made uniformly and the completion choice were independent of the explanation choice, given the measured accuracy for each system. Stronger task performance can therefore raise the baseline. A capable system has more opportunities to select valid answers than one that rarely finds an admissible rule. The benchmark comparison asks whether its separately elicited choices also line up more often than this accuracy-adjusted account would predict.

#### Inspect the alternatives behind a selected answer

The next step changes the evidence being collected. Greedy decoding yields a selected answer. The distributional experiment asks whether the output probabilities favor other valid possibilities that the selected answer leaves invisible. This part uses text-davinci-003 because the authors could access token log probabilities for that system through the public interface. A log probability expresses a probability on a logarithmic scale. It preserves the order of the underlying probabilities, so the authors can use it to check which candidates rank higher.

The paper motivates a ranking criterion in its discussion of reinforcement learning from human feedback, or RLHF. The authors consider the possibility that this form of [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/) concentrates output probability in ways that make the sizes of the probabilities difficult to interpret as degrees of belief. They make a weaker assumption for the test. A higher output probability is taken to indicate greater support, without assigning a meaning to the distance between the scores. The test asks whether an alternative correct response ranks above the incorrect responses. [Deep Reinforcement Learning from Human Preferences](https://md.research.elamur.ai/free/en/papers/christiano-2017-deep-reinforcement-learning-human-preferences/) · [Training Language Models to Follow Instructions with Human Feedback](https://md.research.elamur.ai/free/en/papers/ouyang-2022-training-language-models-follow-instructions/) · [Language Models (Mostly) Know What They Know](https://md.research.elamur.ai/free/en/papers/kadavath-2022-language-models-mostly-know-they/)

```
P(c′ | Sₙ) > P(z | Sₙ) for all z ∈ ℕ ∖ C
```

`P` denotes the system’s output probability and `|` in this formula means given, as in the probability of a candidate given the sequence. `Sₙ` is the observed prefix, with `n` denoting its length. `c′` is a valid continuation other than the one selected by greedy decoding, with the prime marking that alternative. `z` stands for a candidate incorrect continuation, `ℕ` is the paper’s notation for the universe of candidate continuations, and `C` is the set of correct continuations. The symbol `∈` means belongs to, `∖` removes the correct set from the candidate universe, and `>` requires the alternative’s probability to be strictly higher. The `|` here marks a conditional probability, whereas in the earlier Python example it is the bitwise operator.

The inequality defines the comparison over all incorrect continuations. The interface supplies a partial view, returning probabilities for up to 5 leading output tokens. The paper checks the observed ranking and counts a failure if an incorrect answer appears while a possible correct answer is absent from the returned tokens. The continuation experiment uses the sequence completion prompt. For explanations, the authors change the task to multiple choice, so each option can be identified by a single token. That makes a probability comparison feasible for alternatives whose Python expressions would otherwise span many tokens.

The input construction for this analysis uses the full set of 40 functions that produced ambiguous sequences. The researchers vary how they choose the examples in the prompt. They can draw them from the same function class, exclude that class, or sample across classes without the same restriction. They average the evaluations over three runs. This part of the design lets them ask how much the rank of a valid alternative depends on whether the prompt provides demonstrations from the relevant class.

#### Ask for a list of alternatives

The final task makes alternatives an explicit part of the answer. The system receives in-context examples and is asked to list possible continuations or explanations for an ambiguous sequence. The authors use the default ambiguous sequences and consider up to 5 distinct alternatives. The number of different acceptable choices is known from the rule space, so a list can be evaluated both for how many of its entries are valid and for how much of the known answer set it covers.

Precision measures how many of the distinct returned alternatives are correct relative to the alternatives returned. Recall measures how many of the valid alternatives were recovered relative to those available for the item. A short list of correct choices can earn high precision and still leave much of the answer set uncovered. The distinction is especially important because the output probability experiment asks whether an alternative outranks errors at a particular decision point, whereas listing several answers asks the system to produce distinct options in succession. Either task can succeed when the other is difficult.

### Experiments and results

#### Can the systems complete and explain a sequence?

The unambiguous evaluation establishes whether the respondents can perform the tasks used in the consistency experiment. The test set contains 140 cases and the authors report mean accuracy across three runs. When a system answers the completion question, the reference is the next integer. When it answers the explanation question, the reference is the function used to generate the sequence. The paper also reports parseability, which concerns whether the returned text can be read as the type of answer requested.

Next-integer accuracy on the unambiguous sequence test set Completion accuracy rises across the systems in the comparison.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| davinci | 20.20 |
| text-davinci-003 | 65.95 |
| gpt-3.5-turbo | 77.56 |
| gpt-4 (this paper) | 78.64 |

The explanation accuracy scores on the same unambiguous test are 6.00% for davinci, 31.18% for text-davinci-003, 50.25% for gpt-3.5-turbo and 59.05% for gpt-4. Each system does better on completion than on exact rule recovery. The ordered improvement is also visible in explanation accuracy where the completion scores of the most capable systems are relatively close. That makes explanation accuracy a useful additional indicator of task capability when the authors compare it with consistency.

The shares of parseable answers on the unambiguous test are 95.5% for davinci, 99.3% for text-davinci-003, 97.6% for gpt-3.5-turbo and 94.8% for gpt-4. These rates place the accuracy results in context. Davinci frequently gives an answer in a form the evaluator can read, yet it rarely recovers the target function. A high rate of recognizable replies gives little information about whether the underlying choices fit the task. The authors drop davinci after this evaluation because its accuracy on both component tasks is low.

The accuracy measures also set the terms of the later comparison. The ability to predict one additional integer is different from recovering an executable rule. A single predicted number can happen to be right even if the system would misidentify the generating function. Conversely, a system could have a reasonable way to describe the pattern but fail an exact-match test by returning a different expression. The paper’s numerical capability scores should be read with those two evaluation criteria in view.

#### Do separate answers support each other?

The cross-context experiment varies how many initial terms are shown. The paper’s description of the length comparison lists 196 ambiguous sequences for two initial integers, 76 for three and 140 for four. It reports average consistency across the settings shown in its figure. These are the counts given for that comparison. The dataset description separately gives the headline counts for the ambiguous and unambiguous collections.

Observed and random-baseline consistency on the ambiguous sequence settings Every system shows greater cross-context agreement than its accuracy-adjusted random baseline.

**The numbers**

| System or setting | average consistency % |
| --- | --- |
| text-davinci-003, random baseline | 8.50 |
| text-davinci-003, observed | 66.86 |
| gpt-3.5-turbo, random baseline | 10.02 |
| gpt-3.5-turbo, observed | 74.68 |
| gpt-4, random baseline | 15.22 |
| gpt-4, observed (this paper) | 82.22 |

The baseline values rise in the same order as the capability scores. This reflects the comparison the authors chose. The baseline anticipates better agreement when the respondent is more successful at the constituent tasks, even if it chooses independently on the ambiguous cases. The observed rates are well above the baseline throughout. The behavior therefore involves more alignment across contexts than the authors’ independent, uniform selection procedure would predict.

There is a further distinction between the ordering and the cause of the ordering. The figure comparing accuracy with consistency shows that the systems with stronger arithmetic performance also give more compatible pairs. The paper plots both completion accuracy and explanation accuracy against agreement averaged over sequence lengths. The ordering makes an association visible across these systems. Because the system comparisons also change training and other properties, the finding concerns measured capability and consistency together.

The authors then replace the external check with the answer to the judgment prompt, keeping the pair of responses as the object of evaluation. Text-davinci-003 and gpt-3.5-turbo tend to call their responses consistent more often than the external measure warrants. For gpt-4, the gap goes in the other direction. Its independently produced responses are the most consistent by the paper’s external check, yet it underestimates its agreement. The plotted self-judgments fall sharply for that system. Performance on producing compatible outputs and performance on recognizing that compatibility therefore give different orderings.

The calibration result is especially relevant to the intended use of consistency checks. If a respondent is asked whether its own explanation supports its answer, that binary report is itself another task. It requires applying the function correctly to the sequence and judging the result. The arithmetic benchmark offers an external criterion for the comparison. In settings where the criterion is unavailable to the reader, the judgment would be harder to verify. The paper’s experiment supplies a case where the difference between apparent assurance and observed agreement can be measured.

#### What the token probabilities reveal

For text-davinci-003, correct alternatives in the completion task are frequently highly ranked even when the most probable choice is another correct number. The authors find this across their ways of selecting the demonstration examples. In practical terms, the greedy response often exposes only part of the distinction between valid and invalid candidates that is visible in the scores. A valid number can lose the contest for first place and still rank ahead of numbers that do not continue the sequence under the permitted rules.

The result is weaker for alternative explanations. The best reported rate is 0.3 for the test of whether correct alternatives get relatively high probability in the explanation task. This comparison already uses a multiple-choice format to express each candidate with a single token. The paper suggests that evaluating alternative rules may be harder than identifying alternative next values. A rule must account for the displayed terms as well as any next value it implies. The two experiments also use different response formats, so the contrast describes the outcomes of those particular procedures.

To look beyond the ranking test, the authors group completion candidates by whether they are correct and whether greedy decoding selects them. This separates the correct alternative from both the chosen correct answer and the unchosen wrong answer. For the run condition illustrated in the paper, with randomly drawn function classes and 8 demonstrations, the plotted distributions for selected answers are relatively concentrated. Among the answers that were not selected, correct candidates have a median log probability around -13.8 and incorrect candidates have a median around -20.7. These numbers describe the distribution of candidate scores in that condition. They are distinct from the frequency with which a whole sequence receives a valid alternative above every observed wrong one.

The authors also compare the shapes of the score distributions using KL divergence, a way of measuring how much one distribution differs from another in a specified direction. Using the distribution for selected correct answers as the reference, they report 1.71 bits for comparison with unselected correct answers and 3.45 bits for comparison with unselected incorrect answers. The smaller divergence indicates greater similarity to the scores of other correct answers in this analysis. The paper calculates the measure from density histograms on the same grid, with 40 bins and Gaussian smoothing with σ = 1. Here σ is the width parameter of the smoothing distribution. Smoothing allows the comparison to include regions where a density ratio would otherwise be undefined.

A second histogram normalizes densities over all data points rather than within each response category. It also shows that correct candidates concentrate at comparatively high probabilities. The paper describes similar shapes across different demonstration sampling procedures and numbers of examples. These views complement the individual ranking result. The rank test is concerned with whether alternatives beat errors for a given sequence, while a distributional comparison pools scores and describes how the classes look across the evaluated cases.

#### Can the systems say which alternatives are possible?

The direct listing task asks for a broader response than either the greedy prediction or the probability check. Across the systems, the paper reports high precision in the lists. Returned alternatives generally belong to the allowable set. Recall is considerably lower. The maximum recall reported for the completion task is 0.41, and for the explanation task it is 0.49. Those values describe coverage of the known valid alternatives on the default ambiguous sequence cases, with up to 5 distinct answers considered.

The relative ordering is less straightforward than in the consistency evaluation. Text-davinci-003 achieves the highest recall on explanations, and gpt-4 shows relatively high recall for both types of response. The authors also report a precision tradeoff for text-davinci-003. In terms of the metrics used here, lower precision means a larger share of the alternatives it gives are invalid. Lower recall concerns valid alternatives that fail to appear. The two scores tell different parts of the story even when they are calculated from the same lists.

Recall improves as the prompt includes more examples in the tested range. The authors indicate that larger prompts became infeasible when the number of examples was greater than 10 because the prompts exceeded the token limit. The measurements therefore establish improvement over the range observed. The upper end of that range still leaves much of the valid answer set unrecovered. A prompt capable of drawing out several legitimate answers can remain far from a complete account of the ambiguity.

The contrast with the probability analysis is instructive. The completion task often gives favorable rankings to valid alternatives, while the explicit listing task has much lower coverage than its precision. Probabilities for individual candidates and a generated list can diverge because the two procedures ask different questions. The former asks which candidates receive support at the prediction point. The latter asks whether the system can turn those possibilities into a sequence of distinct, valid responses. The paper measures the two behaviors separately.

### What the ablations show

#### Changing what the respondent is asked to do

The prompting experiment changes two components of the instructions. One is the task instruction governing how a choice should be made in ambiguous cases. The other is the speaker the system is asked to simulate. Varying them independently lets the authors examine whether agreement is driven by the default instruction or by assumptions about whose response is being imitated.

The task variants ask for a deliberately consistent pair, the most likely individual answer, or a random choice when several answers qualify. In the explicitly consistent version, the prompt tells the respondent that the companion request will be made separately and asks it to make a compatible choice. That instruction supplies a goal while leaving the other response unavailable. The most-likely version asks for the preferred rule or continuation. The random version tries to elicit a different way of choosing among permissible answers through wording alone.

The authors report little overall change in the proportion of self-consistent answers across the task prompts. This finding holds for the comparisons at lengths 4 and 2. In a condition where the most-likely instruction yielded a relatively high share of incompatible pairs among correct answers, switching task instructions still did not produce a large change in inconsistent responding. The role-prompt comparison likewise contributes to the authors’ conclusion that the observed relationship between capability and agreement is robust across the tested instructions.

The scope of this control is the effect of a prompt. Asking for a random choice at temperature 0 tests whether an instruction to behave randomly changes the selected response. Actually drawing alternatives from an externally specified random distribution serves a different purpose and is represented by the separate baseline. The robustness result has force because fairly direct variations in the stated goal left the pattern broadly intact. It does not require treating the random wording as a successful implementation of random sampling.

#### Changing representation and prefix length

The base experiment asks whether the connection between explanation accuracy and consistency also appears when the same systems face a more difficult representation. The researchers use base 2 instead of base 10 and require functions that produce binary representations of the terms. In the prompt appendix, the base 2 instructions wrap the output in Python’s binary conversion function. The underlying test still requires agreement between a rule and the next value. What changes is how the values are expressed.

The robustness appendix breaks responses down jointly by explanation correctness and consistency. On the generated ambiguous sequences of length 4, for gpt-4 the reported proportion in the correct-and-consistent category is 70 in base 10 and 23 in base 2. For gpt-3.5-turbo on length 4, the corresponding entries are 65 and 11. These are the appendix’s reported proportions for that joint category. They should be interpreted as the share that meets both conditions, instead of the overall consistency score averaged across the main experiment.

The binary representation lowers the proportion of pairs in which a correct explanation and a matching continuation occur together in these comparisons. At the same time, the plot across bases shows a strong association between producing a correct explanation and giving compatible responses. The authors use this as a check within the tested systems. The representation changes the difficulty of the task without swapping one system for another. Similarity in the capability–consistency relationship across representations makes it less dependent on a comparison among different systems alone.

Varying the prefix length asks how the results behave when the visible evidence changes. A longer prefix gives a proposed rule more observations to fit. A shorter prefix can leave more ways for permitted functions to account for the data. The appendix also shows why the result should be read as a relationship across settings rather than a universal ordering by length. For gpt-4 in base 10, the correct-and-consistent proportion is 88 at length 2 and 70 at length 4. For gpt-3.5-turbo in base 10, it is 38 at length 2 and 65 at length 4. The direction differs between the systems in these settings. Length is a useful perturbation of the task even when it fails to act as a uniform difficulty scale.

#### Changing the examples used to elicit alternatives

The distributional controls vary whether the examples resemble the target by function class. An example from the same class can demonstrate the kind of operation that a valid rule might require. Excluding that class leaves examples of other operations, while the random selection can produce a mix. This comparison addresses a narrower question than the speaker and base experiments. It tests the availability of alternatives under different evidence in the prompt, instead of testing agreement between separately generated answers.

For correct alternative completions, the high ranking rates show little sensitivity to these choices. For the more difficult explanation comparison, the authors observe that examples from the same class and randomly sampled examples appear to help as more demonstrations are added. Excluding the class is more challenging. The pattern is consistent with examples helping the respondent handle a form of rule it needs to recognize. The experiment leaves the precise mechanism open, since changing the example classes changes the input the system receives and the authors cannot inspect how it processes those inputs.

The listing analysis gives a complementary demonstration effect. Additional examples improve recall in the observed range. High precision indicates that the answer lists are already quite selective, while rising recall indicates that further examples can draw out more of the valid set. The two experiments consequently attribute different roles to the prompts. Instructions about how to select one answer leave much of the cross-context pattern in place. Examples showing how to express alternatives affect how much of the valid set gets verbalized.

### Limitations

#### Limits identified by the authors

The authors describe ambiguous integer sequences as an idealized domain. A finite rule space makes it possible to enumerate the alternatives and validate answers with arithmetic. Natural-language tasks can introduce disputed interpretations, world knowledge, and social context before the researcher even reaches the problem of checking agreement. The authors call for work on broader linguistic settings and caution about generalizing the sequence results to questions of factual reliability or sociocultural prejudice. The benchmark fixes precisely the ingredients that can be hardest to specify in those applications.

The public interface bounds what can be observed. The authors can inspect token log probabilities for only one of the tested systems, and report that the relevant interface was deprecated by the time of writing. Their distributional analysis consequently provides no comparison of how the treatment of alternatives changes across the system series. The alternatives observed for text-davinci-003 cannot be used to infer how gpt-4 allocates probability to unchosen continuations. The authors also leave open what comparable experiments would show for openly accessible systems whose internals or outputs can be examined more extensively.

The interface introduces uncertainty even in the greedy response experiments. The authors note that generation may be nondeterministic at temperature 0. Random demonstrations introduce another source of variation. Averaging over runs is intended to mitigate the influence of those factors. The paper acknowledges that further controls could have been applied to individual experiments. The observed consistency is therefore a property of responses gathered under the procedure, with both the prompt examples and the interface contributing to the conditions of measurement.

The authors also acknowledge that they do not know the training objectives in sufficient detail to establish how greater consistency arose. They suggest contributions from pretraining and RLHF and raise the possibility that cross-context consistency itself could have been a training objective. For the same reason, their suggestion that less RLHF could help explain the strong alternative recall of text-davinci-003 remains a hypothesis. A comparison among systems with several training differences cannot identify the contribution of one training stage.

Finally, the authors note that they have no access to the distribution of the underlying pretraining material. A preferred continuation could receive high probability because it is frequent in that material. That possibility bears directly on the claim that the system computes several answers internally. The score patterns show relative support for valid alternatives. Recognizing a familiar pattern, computing an answer from a rule, and combining those processes can all be compatible with the measured outputs.

#### Limits that follow from the design

The notion of a valid alternative is conditional on the experiment’s rules. In the example with `7, 11, 15`, the illustrated formulas are valuable because the rules under consideration are fixed and the next values can be checked. When the allowable family changes, the status of the item can change too. Counts of correct alternatives, and hence recall, inherit that dependence. The authors’ decision to advertise the rule families also means that this is a test under declared constraints. Whether a system discovers relevant rule families on its own is a separate question.

The independent uniform baseline sets a useful reference without exhausting the possible accounts of agreement. Two prompts could favor some function classes over others for similar reasons. In that case, the prompts could agree more than a uniform baseline predicts even if the system reached the preferred answers by different procedures. The excess over the baseline supports a claim of shared tendencies across the tasks. Determining whether the same underlying rule representation drives the two responses would require a test with access to evidence beyond the selected outputs.

Exact-match explanation accuracy has a similarly specific interpretation. A response is assessed against the known generating function in the format used for the test. The score measures recovery under that criterion. It gives less information about functionally equivalent descriptions or about a respondent that could explain the pattern accurately in ordinary language. Comparing explanation accuracy and completion accuracy remains worthwhile because the paper needs a measure of each component task, but the difference reflects the demands of producing the prescribed expression as well as the difficulty of identifying the rule.

Aggregate self-judgment rates also leave important details unresolved. An overestimate indicates that a system reports consistency too frequently overall. An underestimate indicates that it reports it too rarely. Even a close aggregate match could conceal wrong positive and negative judgments that offset one another. Conversely, a noticeable aggregate gap does not show which kinds of sequences cause the errors. The paper’s calibration comparison establishes a discrepancy between judged and checked agreement for the evaluated systems. Its figures give less information about item-level reliability as a function of the type of rule or the alternatives available.

The ranking test uses an intentionally modest meaning of probability support. An alternative can outrank the incorrect candidates by a small margin, or do so while falling far below the chosen answer. The inequality alone does not determine how often the alternative would appear under any given sampling policy. The interface’s returned tokens also limit the direct comparison with the full space in the formula. For explanations, using single-token choices avoids the problem of scoring entire functions, while making the analysis conditional on a multiple-choice presentation. A score for an option label in that prompt and a probability for freely generating its corresponding rule answer different questions.

There are also differences in how the paper describes some settings. The main methodology gives eight demonstrations for its prompts, while the appendix illustrates explanation prompts with six. The counts listed for the length-specific ambiguous evaluations differ from the headline description of the dataset. The paper does not reconcile those descriptions in enough detail to reconstruct every condition from the counts alone. The direction of the reported comparisons can be read from the results, while exact replication would require determining which prompt and sequence construction applied to each evaluation.

The cap on the number of alternatives affects the interpretation of recall as well. The task measures the valid possibilities recovered within the requested response format and limit. It does not diagnose, case by case, whether a missing answer failed to receive support, was displaced by another answer in the list, or was omitted because producing it required a harder form of explanation. The paper’s strongest evidence about this distinction comes from measuring probabilities and verbalized answers separately. The separation reveals a gap between support and expression without fully explaining its source.

### What came after

The later citing works address related questions about conflicting information, agreement in evaluation, and ambiguity in classification. Their titles identify those topics and the citation establishes a connection to Bartsch and colleagues. The nature of the connection can be explained at the level of the questions they pose. The citation by itself leaves open whether any of the works reused the sequence benchmark, its consistency baseline, or the probability-ranking test.

[Knowledge Conflicts for LLMs] is a survey centered on conflicts involving large language models. The connection is the need to establish what makes two responses incompatible and what the incompatibility can tell an evaluator. Bartsch and colleagues give a controlled example where individually valid choices can disagree once a rule and continuation are paired. A survey organized around knowledge conflicts addresses a broader problem. The arithmetic case supplies a reason to keep the validity of each answer and the relation between them distinct when discussing what a conflict shows. [Knowledge Conflicts for LLMs: A Survey](https://md.research.elamur.ai/free/en/papers/xu-2024-knowledge-conflicts-llms-survey/)

The Alternative Annotator Test concerns statistical justification for substituting a language-based judge for a human annotator. Its point of contact with the sequence study is the difference between producing a response and making a reliable judgment about responses. In the sequence study the same system can excel at producing compatible outputs and still assess their compatibility poorly. An annotator comparison puts the evaluation question in a different setting, where the proposed substitution calls for statistical justification. The citation connects that question to prior evidence that a system’s ability to judge merits direct measurement. [The Alternative Annotator Test for LLM-as-a-Judge](https://md.research.elamur.ai/free/en/papers/calderon-2025-alternative-annotator-test-llm-as/)

The later study on demographic author information examines [sentiment and emotion](https://md.research.elamur.ai/free/en/topics/sentiment-emotion/) classification of ambiguous text. It brings a contextual variable into an ambiguity problem, asking about the role of information about the text’s author when assigning an emotion. Bartsch and colleagues also vary context, including the speaker specified by a prompt, while working with a set of alternatives defined by arithmetic. The shared question is how a contextual change affects a choice when the input leaves room for alternatives. The emotion classification study places that question in a linguistic setting where identifying a plausible interpretation is itself part of the task. [Less Is More? The Role of Demographic Author Information in Emotion Classification of Ambiguous Text](https://md.research.elamur.ai/free/en/papers/weber-2026-less-is-more-role-demographic/)

## Cite

Cite as Henning Bartsch, Ole Jorgensen, Domenic Rosati, Jason Hoelscher-Obermaier and Jacob Pfau. 2023. Self-Consistency of Large Language Models under Ambiguity. Proceedings of the 6th BlackboxNLP Workshop: Analyzing and Interpreting Neural Networks for NLP.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/2023.blackboxnlp-1.7](https://doi.org/10.18653/v1/2023.blackboxnlp-1.7)

```bibtex
@inproceedings{bartsch2023self,
  title = {{Self-Consistency of Large Language Models under Ambiguity}},
  author = {Henning Bartsch, Ole Jorgensen, Domenic Rosati, Jason Hoelscher-Obermaier and Jacob Pfau},
  booktitle = {Proceedings of the 6th BlackboxNLP Workshop: Analyzing and Interpreting Neural Networks for NLP},
  year = {2023},
  doi = {10.18653/v1/2023.blackboxnlp-1.7},
  url = {https://doi.org/10.18653/v1/2023.blackboxnlp-1.7}
}
```

> 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)
