Elamur Research

Enhanced Language Model Truthfulness with Learnable Intervention and Uncertainty Expression

Paper · 2024 · Farima Fatahi Bayat, Xin Liu, H. Jagadish et al.

Summary

A fluent answer to a factual question can still be wrong. One way to address this is to change the internal activity of a large language model as it writes, nudging it in a direction associated with correct answers. But how strong should the nudge be? In the paper’s examples, a setting that recovers the correct answer for one question can fail on another. Some questions remain unanswered correctly at every setting tried. The authors introduce LITO, a method that tries several strengths and decides, separately for each question, whether any resulting answer is worth giving.

LITO first generates a series of answers under increasingly strong interventions. For each answer, it saves both the words and a record of the internal activity that produced them. A classifier reads those internal records in order and estimates which answers are correct. Among the answers it approves, LITO returns the one the generator assigned the highest confidence. If the classifier approves none, the system gives a standard response expressing uncertainty. The steering directions come from an existing method. LITO learns how to choose among their effects.

The experiments cover short-answer and sentence-answer tasks in English, using the Llama and GPT-2 families. The authors distinguish accuracy, which requires a correct answer, from truthfulness, which also credits an explicit expression of uncertainty. Their combined Truthfulness–Accuracy score, or TA, improves over the original generator in every pairing in the main experiment. On the held-out Natural Questions split, Llama2-Chat-7B rises from 29.2 to 38.8 in TA. LITO generally improves on other ways of selecting an answer, although a single fixed intervention or a simpler confidence rule wins in some settings.

The authors also test a different way of finding steering directions and examine whether a selector trained on one dataset still works on another. Both experiments show some transfer, with results varying by dataset. The evidence is strongest for the short answers studied here. LITO depends on the quality of the candidates it can generate, and trying several strengths takes more inference time than answering once.

Deep dive: Enhanced Language Model Truthfulness with Learnable Intervention and Uncertainty Expression

LITO tries several strengths of activation steering, then selects a likely correct answer or abstains when none passes its factuality check. · about 33 minutes to read

The problem and its context

Why the appropriate strength can change

In open-domain question answering, a system receives a real-world question and produces an answer in words. It may produce something grammatical, specific, and plausible even when it has supplied the wrong entity or stated an unsupported fact. The paper uses hallucination for this broad problem of generating content that lacks a real-world basis. Its experiments narrow the problem to answers that can be compared with references. They ask whether a system can recover more correct answers from its own generations and whether it can withhold answers it has reason to doubt.

The problem begins with an observation about steering. A running generator represents its input and the text it has generated as numerical activations. Changing those activations can change which token it writes next. A steering direction specifies how to alter a representation. An intervention strength specifies how far to move it in that direction. If examples of correct and incorrect answers tend to have different activation patterns, a direction derived from those examples can offer a way to make a correct continuation more likely.

The paper illustrates the difficulty with different questions submitted to Llama2-Chat-7B. As intervention intensity increases from 5 to 25, correct answers appear in different ranges for different questions. The authors also show a question asking for the identity of a red flag with a gold star. None of the illustrated interventions gets that question right. The factual answer to the flag question is beside the point of the example. The important observation is that a sweep can reveal a correct candidate for some questions and still leave the system with an entirely unsuccessful set of candidates for others.

Stronger steering need not produce progressively better answers. If a change causes the generator to start writing a different answer, the remainder of that generation is conditioned on those new words. Each run can therefore follow a different continuation. One strength may preserve a good answer, another may recover a missing one, and a stronger intervention may displace it again. The authors suggest that topic, difficulty, and ambiguity could affect the suitable range. Their motivating examples show variation across questions, while the experiments leave the relative influence of those factors open.

One implication is that a system choosing a single setting for a dataset faces a different problem from a system choosing an answer for a particular question. A fixed setting can be effective overall even if its errors and successes are distributed unevenly. A question-specific selector can exploit that unevenness when a different setting supplies a better candidate. It also needs some basis for withholding an answer when every candidate looks unreliable. These are distinct jobs. Generating alternatives expands the choices, while assessing them determines whether the expanded set helps.

How earlier work tried to improve factual answers

The paper describes approaches that change training and approaches that act after training. The former include objectives designed to encourage faithful output and supervised fine-tuning that brings in external knowledge. The authors point to the size of the underlying systems as a practical obstacle to retraining or adapting them for this purpose. LITO instead uses an already trained generator and learns smaller components that act on or inspect its activations.

There are also ways to improve an answer without changing how activations move inside the generator. One family of methods solicits feedback on a draft and feeds that feedback back into the system to elicit a revision. Another supplies information retrieved from outside sources. The paper discusses external grounding as a way to support or check factual claims and notes its dependence on access to suitable sources. The approaches represented by RARR and FLEEK place evidence or revision at the center of the procedure. RARR · FLEEK

Still other methods modify generation as it happens. The paper places context-aware decoding and DoLa in this group. They operate on internal states or prediction distributions during decoding, the process of turning next-token predictions into a response. The authors treat the effects of such changes on other desirable properties of the generator as an open question. Their own experiments concentrate on the narrower question of how factual correctness and abstention change when a selector can inspect several steered outputs. Context-aware decoding · DoLa

The closest line of work asks whether truthfulness is associated with a direction that can be extracted from numerical representations. The paper discusses research on a linear structure for distinguishing true from false examples. It also reviews an unsupervised proposal based on logical consistency. Under that proposal, representations are projected onto a direction learned from constraints that truthful judgments should satisfy. As the authors recount, subsequent criticism showed that those constraints can also be satisfied by irrelevant features. An apparently consistent signal may therefore reflect an incidental property of the examples. The Geometry of Truth

The paper’s main starting point is supervised inference-time intervention, or ITI. Supervision means that the direction is learned from examples with known correct or incorrect answers. ITI fits simple classifiers to the outputs of individual attention heads, which are components inside the generator, and uses the resulting weights as steering directions. During generation, it adds those directions to selected head outputs. An overall strength controls the size of the additions. The resulting technique can influence a response without updating the generator’s learned weights. Inference-Time Intervention

ITI’s design leaves an important choice to its user. The direction indicates how to move an activation, and validation can identify a strong common setting, but each incoming question receives that common setting. Other directional approaches discussed in the paper similarly use shared intervention strengths. The authors also identify selective abstention as a missing part of these steering procedures. LITO addresses both issues by moving the choice downstream. Where an earlier intervention produces an answer at a specified strength, LITO compares the results of applying that intervention at several strengths.

The method, step by step

From a question to a set of candidate answers

LITO starts with a prompt asking the generator to answer a real-world question directly, avoid familiar falsehoods, and express uncertainty if it cannot answer confidently. The prompt contains 5 worked question–answer examples before the target question. These examples establish the requested output style. The phrase-answer tasks use examples with compact responses. TruthfulQA uses examples with sentence-length responses and also demonstrates what abstention looks like. The instruction is shared across experiments. The examples are suited to the particular dataset.

The system then generates a separate response to the same prompt at each scheduled intervention strength. A response is a fresh continuation under its assigned setting. In the main implementation, ITI supplies the directions and the schedule uses 5, 10, 15, 20, and 25. Every selected attention head receives the same strength within a run, applied to that head’s own direction. As the next run begins, the prompt stays the same and the common strength changes.

Three pieces of information are saved for each run. The generated text is the candidate the system could eventually return. The probabilities the generator assigned to its own tokens provide a measure of how confidently it produced that candidate. The last layer’s hidden states, meaning the numerical representations computed for the generated tokens, supply the input to the factuality classifier. The classifier reads the candidates in increasing order of steering strength and predicts an accuracy label for each.

The distinction between an accuracy prediction and generation confidence matters throughout the method. LITO first uses the predicted accuracy to decide which answers qualify. It then uses generation confidence to rank only those answers. If every candidate is rejected, the system outputs the standard no-comment response. The final output is thus either one of the existing generations or the designated expression of uncertainty.

How LITO generates and selects an answer

The steps in order.

How LITO generates and selects an answerStep 1: Build the prompt with worked examples1. Build the prompt with worked examplesStep 2: Apply learned steering directions at increasing strengths2. Apply learned steering directions at increasing strengthsStep 3: Generate and record a candidate at each strength3. Generate and record a candidate at each strengthStep 4: Average each candidate’s final-layer token states4. Average each candidate’s final-layer token statesStep 5: Classify candidates in order of intervention strength5. Classify candidates in order of intervention strengthStep 6: Return the highest-confidence candidate that passes6. Return the highest-confidence candidate that passesStep 7: Express uncertainty if every candidate fails7. Express uncertainty if every candidate fails

Learning the steering directions

An attention head produces a vector as part of a layer’s computation. ITI asks how much information about correctness is present in each head’s output. The training examples prompt the generator with a question paired with either a correct answer or an incorrect one. ITI records the attention activation at the last token of the supplied answer. The label is 1 for a correct answer and 0 for an incorrect answer. Within each layer, a separate probe is fitted to the recorded vectors of each head.

p(xₕₗ) = sigmoid(⟨dₕₗ, xₕₗ⟩)

Here, p is the probe’s predicted probability for the correct label, and xₕₗ is the recorded activation vector of head h in layer l. The vector dₕₗ contains that probe’s learned weights. The brackets ⟨·, ·⟩ denote the inner product, which combines corresponding entries in the weights and the activation into a single score. The sigmoid maps that score to a value that can be interpreted as the probe’s probability. The subscripts keep track of which head and layer own both vectors.

ITI ranks probes by validation accuracy and selects a sparse set of heads whose probes performed best. A weight vector that helped distinguish labeled examples is then used for a different purpose. It becomes a direction along which ITI moves that head’s activation while the generator is answering a question. The paper refers to these weights as truthful directions. The name describes the role assigned to them by the intervention, based on what the trained probes distinguish.

D = {dₕₗ | l ∈ L′, h ∈ H′}

D denotes the collection of directions retained for intervention. The symbol dₕₗ still means the probe weight vector for head h in layer l. The paper uses L and H for the generator’s layer and per-layer head counts, and writes L′ and H′ for the selected layer and head indices. The braces collect the corresponding vectors, the bar means “such that,” and ∈ means “belongs to.” Operationally, the collection comes from the selected heads at their respective layers.

xₕₗ ← xₕₗ + αdₕₗ

The arrow means that the expression on the right replaces the previous activation xₕₗ. The scalar α is the intervention strength, and dₕₗ is the direction associated with the selected head. Multiplying the vector by α scales the size of the displacement. ITI makes this addition for the selected head activations during each next-token prediction. The generator continues the forward computation using the altered activations. LITO repeats this procedure across different values of α while keeping the directions fixed within the sweep.

The token used to train the probe and the tokens affected at inference serve different purposes. The probe is trained on the final position of an answer already present in a training prompt. At inference, the intervention has to take effect as an answer is being written. It is applied repeatedly during generation. Separately, the later classifier summarizes activations across the resulting answer. It is supervised on the outcomes of these interventions, so its training examples reflect what happens when the directions are used to produce text.

Recording the responses and measuring confidence

The authors space the strengths in increments of 5. Their rationale is that ITI targets a sparse group of heads, so changing the coefficient by a small amount may leave the generated response effectively unchanged. The schedule is meant to produce enough variation for a selector to compare responses, while the choice of heads limits the part of the generator that is directly altered. Although LITO picks an answer separately for each question, these trial strengths are set in advance.

αᵢ = 5i

Here, i is the position of a run in the ordered series, and αᵢ is the ITI strength assigned to that run. The multiplier 5 is the spacing used in the main experiment. With k denoting the number of runs, the index starts at 1 and continues through k. The schedule changes when the authors use a different underlying intervention.

aᵢ = LLM₍α₌₅ᵢ₎(x)

In this expression, aᵢ is the response record for run i, and x is the full prompt. The LLM notation denotes the generator running under the subscripted intervention strength. The answer text within that record is yᵢ. The other fields are the internal representations for its generated tokens and a confidence score summarizing their probabilities. Here x denotes the prompt, whereas the indexed xₕₗ in the intervention formula denotes a head activation.

A = {a₁, a₂, …, aₖ}

A is the collection of candidate records, and each a with a subscript is the record from the corresponding run. The ellipsis indicates the intervening records and k is the final index. The response collection is treated as a sequence when it reaches the recurrent classifier. Keeping its order lets the classifier observe what changes as the intervention gets stronger.

A generator assigns a probability to each token it actually produces. That probability is conditional on the prompt and the tokens already generated in the same answer. A simple product of token probabilities would shrink when more probability factors are added, even if their typical values were similar. The authors use the geometric mean to express confidence on a per-token scale. It is still a measure of how readily the generator produced the wording. Whether that wording is factually correct is a separate question.

p(yᵢ | x) = (∏ₜ₌₁ᴺ p(yᵢ,ₜ | x, yᵢ,<ₜ))^(1/N)

On the left, p(yᵢ | x) is the paper’s confidence score for answer yᵢ given prompt x. On the right, p(yᵢ,ₜ | x, yᵢ,<ₜ) is the generator’s probability for token t of that answer, given the prompt and the earlier tokens of the answer. The product sign ∏ multiplies those probabilities from the first token through token N, where N is the length of the particular answer. The exponent 1/N takes the corresponding root of the product. The notation uses p for both the token probabilities and the resulting answer-level score. The normalized score on the left is the quantity used to compare candidates at selection time.

Letting the classifier read the whole sweep

Every token in a generated answer has a last-layer hidden state. An answer containing several tokens therefore supplies several vectors. LITO averages them to produce a single vector per response. The resulting sequence has one position per intervention, even if successive answers have different lengths. The authors choose the last layer because its representations reflect the generation history and the generator’s state as it produces the answer.

h̄ᵢ = (1/N) ∑ⱼ₌₁ᴺ hᵢ,ⱼ

The vector h̄ᵢ is the mean representation for candidate i. Each hᵢ,ⱼ is the final-layer hidden state at generated token j in that candidate. The sum sign ∑ adds those vectors component by component from the first token through the last, and division by N gives their average. As in the confidence formula, N is the token count of the answer currently being processed. The bar distinguishes the response-level average from its token-level inputs.

LITO passes these averages to a 1-layer Long Short-Term Memory network, or LSTM. This is a recurrent network that carries information forward as it reads a sequence. Here its steps correspond to intervention strengths. The token sequence has already been averaged away. When the network processes a candidate, earlier intensities can inform how it interprets the current representation. That gives it a way to use patterns such as a stable run of similar responses followed by a sharp change. The classifier comparison later in the paper tests whether having that sequential context helps.

(hᵣ,₁, …, hᵣ,ₖ) = LSTM(h̄₁, …, h̄ₖ)

LSTM denotes the learned recurrent transformation. Its inputs are the mean candidate representations h̄₁ through h̄ₖ, in order of intervention strength. Its outputs are the recurrent hidden representations hᵣ,₁ through hᵣ,ₖ. The subscript r identifies a recurrent representation and the numerical index associates it with a candidate. The ellipses indicate that the transformation produces a representation at each position through k.

Each recurrent representation goes through a fully connected layer and a sigmoid. This yields a factuality probability for the answer at that intervention position. The probability comes from supervision on answer correctness. The generation confidence comes from the generator’s probabilities for the answer tokens. Keeping the two quantities separate allows the factuality estimate to rule out an answer even when the generator supplied that answer readily.

p𝓌(hᵣ,ᵢ) = δ(⟨w, hᵣ,ᵢ⟩)

Here, p𝓌 is the factuality classifier’s probability and w denotes its learned output parameters. The representation hᵣ,ᵢ is the recurrent output for candidate i. The inner product ⟨w, hᵣ,ᵢ⟩ supplies the score in the paper’s notation, and δ denotes the sigmoid that maps it to a probability. The classifier estimates whether an answer would receive a correct label under the supervision used to train it.

Building training examples for the two learning stages

Direction learning and response selection require different kinds of data. To learn a direction, ITI needs question–answer pairs whose correctness is already specified. To train LITO, the authors need actual generations under the chosen intervention schedule, along with a correctness label for each generation. The first dataset supports a probe on internal activations. The second teaches the selector how a range of intervention strengths plays out when the generator has to compose its own answer.

The experiments use four English-language datasets. The short-answer group comprises Natural Questions, abbreviated NQ, SciQ, and TriviaQA. Their expected answers are phrases such as entity names or short terms. SciQ is a multiple-choice science dataset that the authors use in their question-answering setup. TruthfulQA is the sentence-answer task. Its responses can express a claim as a whole sentence, which makes their wording more variable and changes how the authors judge whether they agree with a reference. Natural Questions · TriviaQA · TruthfulQA

For Natural Questions and TriviaQA, the authors use validation data containing correct answers alongside adversarial incorrect answers generated by GPT-4. From each dataset, they draw a random sample of 1K instances to train the ITI probe and set the other two aside.4K samples for testing. For SciQ, ITI is trained on the 1K validation instances, and the 1K test instances serve as the final evaluation split. For each of these phrase-answer tasks, a random sample of 3K instances from the training split is used to train the LITO selector.

TruthfulQA has no official training split in the paper’s setup. The authors randomly take 408 instances from the original validation set for finding ITI directions, then use those same question instances to train the LITO selector. The remainder is used for evaluation. The common training questions still serve different purposes in the two stages. ITI uses labeled answers in its probe prompts, while LITO uses the text and activations that the generator produces during the intervention sweep.

For the phrase-level tasks, the automatic judge is DeBERTa-large fine-tuned on MultiNLI. MultiNLI supervision trains a system to reason about relations between statements, including entailment, where the information in one supports the other. The judgment in this paper asks whether the generated answer can be inferred from the reference answer. This permits some variation in wording while anchoring the label to the dataset reference. DeBERTaV3

For TruthfulQA, the authors use GPT-4 to judge semantic equivalence. The prompt to the judge includes the question, the reference, and the generated response. It requests a yes-or-no decision followed by an explanation. The label thus depends on whether the two answers convey the same meaning in the context of the question. In the earlier Natural Questions and TriviaQA preparation, GPT-4 has a separate role as the source of incorrect examples for the ITI probes.

The authors use upsampling and downsampling to balance combinations of correct and incorrect answers in LITO’s training data. This changes how frequently different patterns occur in training. The recurrent output dimension is set to 1/8th of the input hidden dimension, with an output size of 512 for Vicuna-7B. The authors apply L2 weight decay with coefficient 0.001. They allow up to 50 training epochs, stop early with a patience of 10 epochs, and save the checkpoint with the best F1 score.

The implementation description reports 100 experiments to collect generator outputs, each taking 1-2 hours on an NVIDIA A40 GPU. The main selector training was run 20 times, with a run for each generator–dataset pairing. Each selector training run used 64 CPU cores and took 3-5 minutes, depending on the data size and hidden dimension. These are preparation costs. Once trained, the selector can score a new sweep without consulting reference answers. The authored implementation is released under the name LITO.

Turning the classifier’s scores into a final answer

At inference, the same sweep produces the candidates, the confidence scores, and the hidden states. Each pooled hidden state enters the trained recurrent classifier. A candidate passes if its factuality probability is strictly greater than 0.5. The paper uses an indicator function to express this decision as a binary label.

I(δ(⟨w, hᵣ,ᵢ⟩) > 0.5)

I is the indicator, yielding 1 when the condition in parentheses is true and 0 otherwise. The probability inside the comparison is the sigmoid δ applied to the score of candidate i, computed from the learned weights w and its recurrent representation hᵣ,ᵢ. The greater-than sign makes the gate strict. The threshold belongs to the factuality classifier and applies before the system consults the candidate confidence ranking.

i∗ = arg maxᵢ p(yᵢ | x), subject to δ(⟨w, hᵣ,ᵢ⟩) > 0.5

i∗ is the index of the answer selected for return. The expression arg maxᵢ asks for the candidate index with the largest value of p(yᵢ | x), the geometric-mean generation confidence given prompt x. The condition restricts this search to candidates whose classifier score exceeds 0.5. Within that eligible set, the highest generation confidence wins. If a single candidate qualifies, it supplies the answer. If the set is empty, the system uses the designated expression of uncertainty.

This ordering clarifies what LITO learns. It learns a filter for outcomes within a sweep, using internal evidence from the candidates. Its choice of strength is implicit in the candidate it returns. Every question still receives the scheduled runs, including the questions for which the system eventually abstains. The design can adapt the final answer to the question even though the cost of collecting the candidates is incurred up front.

Experiments and results

What the scores reward

The main experiments combine phrase-level and sentence-level benchmarks with generators from two families. The Llama group includes Vicuna-7B and two Llama2-Chat sizes, 7B and 13B. The GPT-2 group includes GPT2-large and GPT2-XL. The variety makes it possible to ask whether the same selection procedure helps when the base generator, answer format, or question set changes. The individual runs train the selector for the relevant pairing in the main in-domain setup. Llama 2

The authors distinguish three outcomes. A response can answer correctly, answer incorrectly, or explicitly express uncertainty. Accuracy credits correct answers. Truthfulness credits correct answers and explicit uncertainty. Since defaulting to uncertainty would score well on truthfulness alone, they introduce a combined measure. Its geometric mean makes a method earn credit on both dimensions.

TA = √(Truthfulness × Accuracy)

TA is the combined Truthfulness–Accuracy score. Truthfulness is the share of outputs counted as correct or explicitly uncertain, and Accuracy is the task-specific share counted as correct. The multiplication sign combines these quantities, and √ denotes the square root. Holding accuracy steady while replacing wrong answers with uncertainty can improve TA. Withholding an answer that would have been correct has an accuracy cost. The tradeoff depends on which responses the method suppresses and which candidate answers it recovers.

This definition also determines how to interpret the paper’s main tables. A larger TA score can result from additional correct answers, additional appropriate abstentions, or a mixture of the two. To see whether raw task performance remains close, the paper also plots truthfulness and accuracy separately. Those plots complement the single-number comparisons because the same ordering by TA can arise from different patterns of answering.

Baselines and the questions they answer

The original generator supplies the simplest baseline. It receives the task prompt and answers without ITI steering or LITO selection. The prompt already tells it that it can express uncertainty. The comparison measures the effect of adding the intervention and selection pipeline to that instructed system.

The second baseline runs ITI separately at each of the scheduled strengths. An oracle identifies the strength with the highest aggregate TA in the comparison. This is the best common setting among the evaluated strengths for that pairing. The word oracle here refers to choosing a fixed strength using observed results. It does not describe selecting a known correct candidate separately for each test question. This distinction matters because that latter oracle would measure the coverage of the candidate pool, a different property.

The other baselines have access to the entire candidate set, as LITO does. Majority voting chooses the most frequent text answer, with confidence breaking ties. For sentence answers the authors note that identical wording occurs rarely, so tied candidates usually leave confidence to decide. Maximum Confidence uses that same confidence signal directly. Maximum Confidence > T adds an abstention rule. It returns the highest-confidence candidate only if it clears the threshold T, set to 0.6 in the reported setup based on average performance across datasets and generators.

These comparisons put progressively stronger demands on the learned selector. Beating the original generator shows that the pipeline is beneficial under the paper’s score. Beating the best fixed intensity tests whether adapting the choice to the question helps beyond finding a good common setting. Beating confidence and voting tests whether internal representations and learned correctness judgments contribute beyond access to several generations.

Natural Questions and the GPT-2 results

On the held-out Natural Questions evaluation for Llama2-Chat-7B, the main comparison gives the original generator a TA of 29.2. The best fixed ITI result is 31.7, and the strongest simple candidate-selection result is 33.5 from thresholded maximum confidence. LITO reaches 38.8. The paper reports the comparison to the original generator as a gain of 9.6 TA points. The sequence of comparisons shows that the learned choice contributes beyond both tuning a common strength and applying a confidence threshold to the generated candidates.

Llama2-Chat-7B on the Natural Questions test split by TA score

LITO leads both the best fixed intervention and the simple rules that select among candidates.

Llama2-Chat-7B on the Natural Questions test split by TA scoreOriginal generator: 29.2Original generator29.2Best fixed ITI: 31.7Best fixed ITI31.7Majority vote: 31.7Majority vote31.7Maximum confidence: 31.3Maximum confidence31.3Thresholded maximum confidence: 33.5Thresholded maximum confidence33.5LITO (this paper): 38.8LITO (this paper)38.8
The numbers
System or settingTA score
Original generator29.2
Best fixed ITI31.7
Majority vote31.7
Maximum confidence31.3
Thresholded maximum confidence33.5
LITO (this paper)38.8

Natural Questions shows a similar ordering for the GPT-2 family in the main test results. GPT2-large records 12.2 for the original generator and 15.4 for best fixed ITI, with LITO reaching 27.2. GPT2-XL begins at 15.5, reaches 17.7 with best fixed ITI, and reaches 29.1 with LITO. The confidence-threshold baseline is closer to LITO for GPT2-XL, at 22.0, than it is for GPT2-large, at 14.2. LITO also leads on Natural Questions for the larger Llama2-Chat setting in the results table. Llama2-Chat-13B reaches 41.5, compared with 38.9 for thresholded maximum confidence and 33.9 for best fixed ITI.

Across the four held-out evaluations, the authors report mean TA improvements over the original systems of +14.4 for GPT2-large and +12.0 for GPT2-XL. The gains cover both short answers and the TruthfulQA sentence answers. For example, GPT2-large on the TruthfulQA evaluation goes from 15.9 for both the original generator and best fixed ITI to 24.0 for LITO. For GPT2-XL on that evaluation, the corresponding scores are 20.7, 26.8, and 30.7. The authors attribute much of the GPT-2 improvement to increased truthfulness with accuracy broadly maintained.

Where a simpler comparison wins

On the SciQ test split, GPT2-large reaches 47.0 with LITO, against 39.4 for the original generator and 40.0 for best fixed ITI. GPT2-XL reaches 46.8 with LITO, compared with 40.5 for the original generator and 41.5 for best fixed ITI. The SciQ results for the Llama2-Chat settings are closer. Llama2-Chat-7B reaches 66.2 with LITO and 66.1 with best fixed ITI. For Llama2-Chat-13B, best fixed ITI leads. In that setting the original generator already scores 71.4, and the learned selector reaches 71.6.

Llama2-Chat-13B on the SciQ test split by TA score

Best fixed ITI leads on this pairing, with LITO close behind.

Llama2-Chat-13B on the SciQ test split by TA scoreOriginal generator: 71.4Original generator71.4Best fixed ITI: 72.1Best fixed ITI72.1Majority vote: 71.0Majority vote71.0Maximum confidence: 70.7Maximum confidence70.7Thresholded maximum confidence: 70.6Thresholded maximum confidence70.6LITO (this paper): 71.6LITO (this paper)71.6
The numbers
System or settingTA score
Original generator71.4
Best fixed ITI72.1
Majority vote71.0
Maximum confidence70.7
Thresholded maximum confidence70.6
LITO (this paper)71.6

For TriviaQA, the held-out scores illustrate both a large improvement and a narrow baseline win. GPT2-large goes from 32.3 for the original generator to 50.4 for best fixed ITI and 59.2 for LITO. Llama2-Chat-7B reaches 74.0 with LITO, ahead of the original generator’s 70.0 and thresholded maximum confidence at 72.3. Vicuna-7B reaches 72.0 with LITO, while the confidence-threshold rule reaches 72.5. On SciQ, the same Vicuna-7B baseline scores 62.7 and LITO scores 61.9. The learned selector still exceeds the original Vicuna-7B result in both pairings.

The paper’s prose and main results table disagree about the Vicuna-7B comparison on Natural Questions. The prose names that benchmark as a win for thresholded maximum confidence. The table gives the threshold rule 35.0 and LITO 36.2. The table shows the baseline ahead on SciQ and TriviaQA. The numerical comparisons here follow the table, while the paper’s broader finding remains that a confidence threshold can be competitive with the learned rule.

TruthfulQA supplies another fixed-intensity exception. On the held-out split for Llama2-Chat-7B, best fixed ITI reaches 49.9 TA and LITO reaches 49.6, both above the original generator at 45.1. For Llama2-Chat-13B, LITO reaches 54.3, with majority voting close at 54.2 and best fixed ITI at 52.8. The result depends on the pairing even within the same generator family and answer format.

Accuracy and truthfulness viewed separately

In the separate metric plots, the authors report that LITO ranks among the top 2 in truthfulness across the studied datasets and generators. Its accuracy is within 5% of the ITI comparison in 16 out of 20 experiments. For these plots, ITI is represented by its average across intensities. The main TA table instead gives ITI its best fixed setting. Those different summaries of ITI address different questions and should be kept in mind when reading results from the table and the plots together.

The authors describe thresholded maximum confidence as a strong aggregation baseline because it can retain much of the accuracy available to it while withholding some inaccurate responses. They also observe that it performs poorly on accuracy with GPT-2 in comparison with the unthresholded approach. The paper suggests calibration as a possible explanation. A confidence score is well calibrated when its numerical level corresponds to how often predictions at that level are correct. A cutoff common to several generators can behave differently if their confidence scales differ. Language Models (Mostly) Know What They Know

Majority voting stays close to average ITI in the separate plots. Repetition can tell a selector that a response is stable across settings. It cannot establish that the stable response matches the reference. Furthermore, the vote counts generations produced by related changes to one generator, so repeated strings may reflect a shared error that persists through the sweep. Together, the baseline results show why the paper evaluates a learned factuality signal while keeping confidence and recurrence available as separate ingredients.

What the ablations show

Does reading the sequence help?

In the main component comparison, a fully connected layer feeds into a ReLU and together they take the place of the LSTM. A ReLU is a nonlinear operation that retains positive values and sets negative values to zero. In this comparison it forms part of a simpler classifier that processes candidate representations individually. The authors keep the surrounding experimental setup and use Llama2-Chat-7B as the generator. This comparison tests the value of the recurrent classifier as implemented, including its ability to use earlier positions in the sweep.

The reported metrics here are binary classification accuracy and F1, as distinct from the deployed system’s TA. Classification accuracy counts correct decisions about whether a candidate answer is accurate. F1 combines precision and recall. Precision concerns the reliability of positive predictions, and recall concerns how many actual positives are found. The metrics can move in different directions because they summarize different aspects of the classifier’s mistakes.

For Natural Questions, the recurrent classifier records 71.9 classification accuracy and 50.4 F1, compared with 69.6 and 46.2 for the simpler classifier. For SciQ the corresponding recurrent scores are 66.5 and 71.9, versus 65.1 and 71.8. TriviaQA gives the recurrent classifier 71.4 accuracy and 79.5 F1, versus 70.2 and 77.6. These figures come from the answer-label classification comparison for each task. The paper does not name a separate split for that table. On the short-answer tasks the direction of the comparison is consistent, while the size of the advantage differs by task and metric.

TruthfulQA gives a mixed result in the same classification comparison. The LSTM scores 75.2 accuracy and 55.7 F1. The individual-candidate comparator scores 74.4 accuracy and 59.8 F1. Thus the recurrent version has the higher overall classification accuracy and the lower F1 on candidate judgments. The authors suggest that the limited training data for TruthfulQA may make useful sequential patterns harder to learn. The comparison changes the classifier architecture and holds the dataset fixed, so it cannot establish that supplying more examples would resolve the F1 loss.

The ablation supports reading the ordered sweep in the short-answer setting. It offers less direct evidence about what the recurrent state has learned to recognize. For example, the paper’s account of the LSTM mentions changes in fluency and confidence, but the inputs to the recurrent layer are pooled hidden states. The experiment shows the benefit of the recurrent architecture on the reported tasks. It provides no separate measurement of how strongly the classifier depends on any particular cue inside those states.

How many intervention settings are useful?

Another analysis varies k, the number of responses the selector receives. The authors use Llama2-Chat-7B and validation sets created through 5-fold cross-validation on the training data. Keeping this comparison on validation data lets them choose a schedule without basing the choice on reported final test outcomes. Under the ITI schedule, increasing k also extends the range to a stronger last intervention.

For Natural Questions, the authors describe a clear increase in validation performance from k = 4 to k = 5. On SciQ they see little benefit from exploring beyond 5. The paper reports marginal benefits from including k = 6 on other datasets, which the authors judge insufficient to justify the cost for their main configuration. They settle on k = 5 and acknowledge that a larger sweep could be useful when answer truthfulness carries greater weight than inference efficiency.

This comparison supports the selected schedule as a practical setting for the experiment. Under the reported design, changing k changes both the number of candidates and the maximum intensity reached. The analysis therefore measures the joint value of adding another run at the end of that schedule. It does not separately estimate the effect of sample count at a constant range or the effect of a different spacing between strengths. Nor does it establish which questions would justify an extra candidate on their own.

Does the selector work with different steering directions?

The paper tests the same selection framework with representation engineering, shortened to RepE. Where ITI learns head-level directions from supervised probes, RepE starts with contrasting truthful and untruthful examples and compares their layer representations. The differences within those pairs supply the data from which a layer direction is derived. The paper describes principal component analysis as an unsupervised way to extract a direction from those differences. Principal component analysis identifies an axis along which the supplied vectors vary strongly.

The RepE experiment steers the output of the layer with the strongest measured truthfulness classification. Because the intervention acts at layer level, the paper uses strengths of 1, 2, 3, 4, and 5. The authors choose the smaller coefficients to avoid incoherent generations. Those coefficients act on a different kind of representation from the ITI coefficients, so their magnitudes should be read as settings within their own method. LITO again receives the candidate texts, the probabilities, and the hidden states from the resulting sweep.

The authors report average TA gains over best fixed RepE of +9 on Natural Questions, +2.5 on SciQ, +4.9 on TriviaQA, and +1.5 on TruthfulQA. These are averages over GPT2-XL and Llama2-Chat-7B on the evaluation splits. In the Natural Questions comparison, LITO raises GPT2-XL’s TA from 15.6 with best fixed RepE to 27.5. The Llama2-Chat-7B comparison on the same task moves from 29.4 to 35.5. The table gives the same broad pattern of improvement for TriviaQA, where LITO reaches 40.2 for GPT2-XL and 71.92 for Llama2-Chat-7B.

RepE settings for GPT2-XL on the Natural Questions test split by TA score

LITO leads both the best fixed RepE strength and the simpler ways of selecting from its candidates.

RepE settings for GPT2-XL on the Natural Questions test split by TA scoreOriginal generator: 15.5Original generator15.5Best fixed RepE: 15.6Best fixed RepE15.6Majority vote: 15.6Majority vote15.6Maximum confidence: 15.5Maximum confidence15.5Thresholded maximum confidence: 16.9Thresholded maximum confidence16.9RepE with LITO (this paper): 27.5RepE with LITO (this paper)27.5
The numbers
System or settingTA score
Original generator15.5
Best fixed RepE15.6
Majority vote15.6
Maximum confidence15.5
Thresholded maximum confidence16.9
RepE with LITO (this paper)27.5

The averages hide reversals. On the TruthfulQA evaluation, GPT2-XL goes from 19.1 with best fixed RepE to 26.3 with LITO. Llama2-Chat-7B goes from 43.4 with best fixed RepE to 39.1 with LITO. On SciQ, RepE-based LITO with Llama2-Chat-7B reaches 65.5, while best fixed RepE reaches 66.1. The experiment establishes that the selection procedure can be trained around another direction-finding mechanism. Its benefits still depend on the generator and task.

The authors also explain why they chose RepE for this comparison. They judged Truth Forest too similar in basis to ITI to supply the contrast they were looking for. They investigated Contrast-Consistent Search as another possible source of directions, but on SciQ its separation of true from false examples was near chance. Their supervised logistic regression reached around 80% accuracy in that direction-identification analysis. The authors therefore did not use Contrast-Consistent Search for generation interventions. The resulting RepE comparison tests a promising alternative direction source, while the discarded comparison illustrates the practical dependence on that choice.

What transfers across tasks?

To study transfer, the authors train the ITI-based version on each dataset and test it against other datasets in the study. The transfer figure reports the out-of-domain TA relative to the corresponding in-domain TA, instead of using raw TA as the figure’s color scale. This matters because different target tasks can have different starting scores. The plotted comparison asks how much a training-domain change affects performance on the same target task.

Relative change = 100 × (ood − id) / id

ood is the out-of-domain TA, obtained when training and evaluation use different datasets. id is the companion in-domain TA for the same evaluation task. Subtracting id from ood gives the change, division by id expresses it relative to the in-domain result, and multiplication by 100 places the change on a percentage scale. The sign indicates whether the transferred setup is above or below the matched in-domain result.

The authors describe TriviaQA as a strong source dataset for transfer. Training on it frequently approaches the in-domain performance of the target task, and the paper notes a Natural Questions case with GPT2-large where the transferred result exceeds its in-domain counterpart. They suggest that TriviaQA’s broad subject matter may provide a useful training signal. Training on TruthfulQA transfers less readily. The study leaves open whether this reflects answer length, the differences in supervision, training-set size, the questions themselves, or some combination.

The transfer experiment adds evidence that the selector can learn useful patterns beyond those of a single training benchmark. Its unit of comparison is still the studied generator on a different question dataset. The design does not establish that a selector trained for one generator can be moved directly to another, or that successful transfer identifies a general representation of truth. It shows how well the selection procedure survives a change in task under the conditions the paper tested.

Limitations

Limits the authors identify

The authors restrict their experiments to phrase-length answers and individual sentences. A longer answer can contain many factual claims, with a mixture of correct and incorrect material. The paper leaves performance on such text open. The design pools token states into one vector and supplies one factuality judgment per response. Its usefulness for identifying an error in one part of a longer response would require a different evaluation from the one used here.

The authors also stress that LITO depends on the directions supplied by its underlying intervention. A selector can benefit when an intervention makes a correct answer available, and it can withhold a likely mistake when the candidate set is poor. Its ceiling for returning a correct answer comes from the candidates generated under the schedule. The flag example is a case where none of the trial intensities provides the needed answer. Steering and selection can reduce the number of wrong answers that reach the user in such cases, while factual accuracy remains limited by what the sweep offers.

Inference cost is another stated limitation. LITO queries the generator k times, and the authors describe the procedure as taking k times the inference time of the compared single-pass intervention approaches. The recurrent decision arrives after collecting the alternatives. The proposal in the conclusion is to determine the number and range of strengths dynamically from the prompt. The reported experiments use a preset schedule and leave that more adaptive search for future work.

The authors identify interpretability as unfinished as well. The recurrent classifier gives an answer-level score, but the evidence behind a particular selection or abstention is not explained to the reader. The paper suggests examining how its learned uncertainty changes across intervention intensities. Such an analysis could reveal whether similar score patterns occur for questions of a given kind. The architecture and its ablation permit a claim about predictive performance, while the reason for accepting an individual answer remains unresolved.

The ethics discussion places the work within a broader effort to improve the reliability of generated text. The authors acknowledge continued dependence on the underlying generator and identify bias, toxicity, and misinformation as problems requiring further work. They also note that related steering methods could be misused to induce false outputs. The reported question-answering evaluations measure the behavior of a particular factuality and abstention procedure. They offer no evaluation of protection against misuse.

Limits visible in the experimental setup

The learned factuality probabilities are grounded in benchmark references and automatic judgments. The phrase-level procedure accepts answers that an entailment system judges to follow from a reference. TruthfulQA uses a semantic-equivalence judgment from GPT-4. These procedures can accommodate different wordings, but their decisions can depend on whether the reference is complete and whether the judge handles the specific wording correctly. A classifier trained on such examples learns to predict those correctness labels. The experiment does not substitute a direct check against independent evidence at inference.

Abstention also has a specific meaning in the reported metrics. The truthfulness score treats the designated uncertainty response favorably, and accuracy gives credit only to correct answers. This makes the combined score useful for expressing the cost of abstention in the paper’s setting. It does not distinguish finer kinds of uncertainty, such as whether a question was ambiguous or whether a correct candidate was available but rejected. Two systems with similar TA can answer different subsets of questions. The aggregate plots show the overall balance, while leaving those question-level differences open.

The factuality gate and the final confidence ranking present separate opportunities for error. A correct answer can fall below the classifier threshold. Several candidates can also clear the gate and leave a confidently generated mistake ahead of a correct alternative. The comparison with thresholded confidence shows that a simpler rule can sometimes do better, even when LITO leads on truthfulness broadly. The paper supplies evidence for the full decision procedure, but it does not give a breakdown of how many errors are attributable to missing correct candidates, mistaken classifier decisions, or the final ranking among accepted answers.

The transfer conclusions are bounded by the choice of tasks and systems. All datasets are in English. The move from short phrases to sentences broadens the answer format, while both formats remain short. TruthfulQA also changes several conditions together, including the source of correctness labels and the availability of data for training. Its weaker transfer and mixed classifier ablation cannot be traced to answer length alone. Evidence that transfer often works across these benchmarks is compatible with some training conditions mattering substantially.

Finally, the method assumes access to activations and to a way of editing them during generation. It needs the relevant head or layer outputs to apply steering, the final-layer states to classify candidates, and the token probabilities to rank accepted answers. That access is part of the experimental setup and shapes the scope of the result. The selector studied here gains its information by inspecting the computation that produced the answers. The experiments leave open what can be achieved with an interface that supplies only the final text.

What came after

The later paper Multi-Attribute Steering of Language Models via Targeted Intervention cites LITO and frames its own problem around steering multiple attributes through targeted changes. The connection is the use of intervention during generation to influence a desired output property. LITO studies how strongly to apply directions associated with factual answers and whether to select or withhold the resulting candidates. A multi-attribute formulation asks how intervention can address several desired properties. The citation establishes that connection, while the later paper’s title leaves open whether it adopts LITO’s sweep, recurrent classifier, or abstention rule. Multi-Attribute Steering of Language Models via Targeted Intervention

From Weights to Activations: Is Steering the Next Frontier of Adaptation? also cites LITO. Its title places activation steering in the wider question of how to adapt a generator. LITO provides an instance of the distinction that question draws. The original weights stay fixed while generation is changed through interventions, and the trained selector determines which of the resulting answers reaches the user. The citation connects that design to the broader discussion of adaptation through activations. It leaves any further technical inheritance unspecified. From Weights to Activations: Is Steering the Next Frontier of Adaptation?

Cite

Cite as Farima Fatahi Bayat, Xin Liu, H. Jagadish and Lu Wang. 2024. Enhanced Language Model Truthfulness with Learnable Intervention and Uncertainty Expression. Findings of the Association for Computational Linguistics: ACL 2024.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2024.findings-acl.737

@inproceedings{bayat2024enhanced,
  title = {{Enhanced Language Model Truthfulness with Learnable Intervention and Uncertainty Expression}},
  author = {Farima Fatahi Bayat, Xin Liu, H. Jagadish and Lu Wang},
  booktitle = {Findings of the Association for Computational Linguistics: ACL 2024},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.737},
  url = {https://doi.org/10.18653/v1/2024.findings-acl.737}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/bayat-2024-enhanced-language-model-truthfulness-learnable/