atlas

Research map / Large language models / Language, safety and interpretability

TruthFlow: Truthful LLM Generation via Representation Flow Correction

ICML 2025 · Large language models › Language, safety and interpretability · approach: Pruning and circuits in LLMs · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes TruthFlow, which trains a flow-matching model to map each query's hidden state to a query-specific truthful correction vector, then projects it onto top singular directions and adds it to LLM activations at inference to improve TruthfulQA truthfulness.

Problem

Existing representation intervention methods for truthfulness apply one universal correction vector to all queries, which cannot fit diverse queries' hallucinated-to-truthful directions.

Approach

Use flow matching to learn a query-conditioned transport from query last-token hidden states to their truthful correction vectors (correct minus incorrect answer mean activations), then purify the generated vector by projecting onto the top-k SVD singular subspace of training corrections before intervening at one layer.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
apply query-specific TruthFlow correction instead of the base modelLlama3 · TruthfulQA open-endedTrue (%)Helped
apply TruthFlow correction instead of the base modelLLMs tested · TruthfulQA open-endedTrue*Info (%)Helped
apply TruthFlow on unseen datasetsLlama3 · HaluEval, NQ, and TriviaQATrue and True*InfoHelped
add truthful subspace projection to query-specific correction (ablation)TruthFlow on Gemma2 · TruthfulQATrue (%): 70.17 -> 76.52Helped
add truthful subspace projection to query-specific correction (ablation)TruthFlow on Gemma2 · TruthfulQAInfo (%): 92.18 -> 95.84Helped
add truthful subspace projection to query-specific correction (ablation)TruthFlow on Gemma2 · TruthfulQATrue*Info (%): 64.68 -> 73.35Helped
add truthful subspace projection to query-specific correction (ablation)TruthFlow on Llama3 · TruthfulQATrue (%): 53.55 -> 64.79Helped
add truthful subspace projection to query-specific correction (ablation)TruthFlow on Llama3 · TruthfulQAInfo (%): 89.98 -> 94.38Helped
add truthful subspace projection to query-specific correction (ablation)TruthFlow on Llama3 · TruthfulQATrue*Info (%): 48.18 -> 61.15Helped
apply TruthFlow at layer 12 rather than layer 11 (ablation)Llama3 · TruthfulQATrue: 62.10 -> 64.79Helped
apply TruthFlow at layer 12 rather than layer 13, 14, or 15 (ablation)Llama3 · TruthfulQATrue: 60.15 -> 64.79; 56.23 -> 64.79; 53.30 -> 64.79Helped

Surprising findings

Limitations

Experimental setup

Datasets: TruthfulQA HaluEval Natural Questions TriviaQA

Benchmarks: TruthfulQA HaluEval Natural Questions TriviaQA

Metrics: BLEURT True score Info score True*Info MC1 MC2

Baselines: DoLa Activation Decoding ITI NL-ITI TruthX

Builds on: ITI rectified flow flow matching NL-ITI DoLa

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy