Overview
Production Readiness
0.7
Novelty Score
0.55
Cost Impact Score
0.15
Citation Count
17
Why It Matters For Business
DoLa boosts factual output from large pretrained LMs without retraining or external retrieval, giving immediate, low-cost improvements for truth-sensitive products like QA assistants and chatbots.
Summary TLDR
DoLa is a decoding trick that boosts factual outputs from pretrained transformer LMs without extra training or retrieval. At each token step it finds an earlier (“premature”) layer whose output most diverges from the final (“mature”) layer, subtracts the earlier-layer log-probabilities from the later-layer ones, applies a plausibility gate and repetition penalty, and samples from the result. This simple change raises truthfulness on multiple benchmarks (TruthfulQA, FACTOR, StrategyQA, GSM8K) for LLaMA models and MPT-7B, adds only ~1–8% decode latency, and needs only a forward pass.
Problem Statement
Large LMs hallucinate (produce incorrect facts). Fixes often need retrieval, supervision, or finetuning. The paper asks: can we reduce hallucinations at inference time, using only the model's internal layer signals, with low cost and no extra training?
Main Contribution
DoLa: a decoding method that contrasts logits from a dynamically chosen earlier layer and the final layer to surface factual knowledge.
A dynamic premature-layer selector based on Jensen-Shannon divergence (JSD) that picks which early layer to contrast per token.
Empirical gains in truthfulness across short-answer and open-ended benchmarks (TruthfulQA, FACTOR) and improved chain-of-thought reasoning (StrategyQA, GSM8K) without finetuning.
Practicality evidence: single-model forward passes, negligible memory overhead, and small latency increase (≈1–8%).
Public code release (GitHub) for replication and adoption.
Key Findings
DoLa raises combined truthfulness×informativeness on open-ended TruthfulQA by about 12–17 absolute percentage points for LLaMA models.
Contrasting layers helps factual tokens more than non-factual tokens: entity tokens show larger layer divergence than non-entity tokens.
DoLa only slightly increases decoding cost: latency per token rises by 1%–8% across model sizes.
DoLa fails on small LMs and can hurt performance there.
Results
%Truth*Info (TruthfulQA open-ended)
%Truth*Info (TruthfulQA open-ended)
Accuracy
Decoding latency
Layer divergence (critical layer distribution)
Who Should Care
What To Try In 7 Days
Run DoLa on your production LLM as an inference-time option and compare truth/answer quality on a labeled subset.
Use the paper's JSD-based selector buckets to pick candidate layers (2–4 buckets) — minimal hyperparameter tuning.
Measure latency and memory impact: expect ~1–8% latency increase and small GPU overhead before wider rollout.
Optimization Features
Inference Optimization
- DoLa is an inference-time decoding change (no finetuning)
Reproducibility
Code Urls
Data Urls
- TruthfulQA
- FACTOR (News/Wiki)
- StrategyQA
- GSM8K
- Vicuna QA
- CoNLL-2003
Code Available
Data Available
Open Source Status
- yes
Risks & Boundaries
Limitations
- Only targets factuality; other properties (alignment, safety beyond truthfulness) not addressed.
- Inference-only: does not correct misinformation the model learned during training.
- Fails on small LMs: DoLa harms performance for models without rich layerwise knowledge (e.g., GPT2-medium).
When Not To Use
- On small models (GPT2-sized) that lack distinct layerwise factual signals.
- When the model must be grounded to an external, up-to-date knowledge source (DoLa cannot fetch new facts).
- When zero added latency is mandatory (e.g., extreme low-latency edge devices).
Failure Modes
- May generate detailed but incorrect facts (false positives) in some cases.
- Can increase repetition in long-chain-of-thought outputs unless a repetition penalty is applied.
- Relies on the model's internal knowledge — cannot correct entrenched training errors.
Core Entities
Models
- LLaMA-7B
- LLaMA-13B
- LLaMA-33B
- LLaMA-65B
- MPT-7B
- GPT2-Medium
Metrics
- %Truth
- %Info
- %Truth*Info
- MC1/MC2/MC3 (TruthfulQA multiple-choice variants)
- Accuracy
- Latency ms/token
- Jensen-Shannon Divergence (JSD)
Datasets
- TruthfulQA
- FACTOR (News/Wiki)
- StrategyQA
- GSM8K
- Vicuna QA
- CoNLL-2003 (analysis)
Benchmarks
- TruthfulQA
- FACTOR
- StrategyQA
- GSM8K
- Vicuna QA

