A deception detector is only as useful as the trust its alarms deserve. Like a polygraph, detectors that read a language model's internal activations can catch deceptive responses that look honest. Yet current detectors depend on which layers they read, weaken on broader tests, and do not state how certain their alarms are. This white paper proposes the Machine Deception Detector, which targets both detection accuracy and the uncertainty of detector scores. The detector reads every layer of the language model, learns which tokens carry evidence of deception using only response labels, and calibrates its alarm threshold so that its false--positive rate stays below a prescribed level. An ensemble of such detectors measures the uncertainty of each score and raises an alarm only when its members agree, with a confidence level that sets how certain each alarm must be. The proposed evaluation trains on instructed honest and deceptive statements, tests on five unseen deceptive tasks of Liars' Bench read by six Qwen3 models from 0.6B to 32B parameters, and is designed to also show which layers carry the deception feature and how this changes with model size.
Figures & tables
Figure 1: A polygraph examination and its machine counterpart, which reads a language model’s embeddings instead of physiological signals. (Left) The examiner learns how signals differ between truthful answers and instructed lies, as a detector is trained on labeled transcripts. (Middle) Honest answers set the cutoff, or alarm threshold. (Right) An answer whose signal exceeds the cutoff is deemed deceptive, as is a transcript scoring above it.
Aggregator A
Average Aavg
Density Aden
Peak Apeak
( Nordby et al., 2026 )
( Pinheiro and Collobert, 2015 )
( McKenzie et al., 2026 )
Response score s=A(s1:Tr)
Tr1t=1∑Trst
\logsumexp(s1:Tr)−τ−1
t=1∑Trsoftmaxt(τs1:Tr)st
Table 1: Aggregators of the token logits {st:t=1,…,Tr} over a response of length Tr , with temperature τ:=\nicefrac1logTr .
Regularization norm Jreg
Lasso
Group lasso
Sparse-group lasso
( Tibshirani, 1996 )
( Yuan and Lin, 2006 )
( Simon et al., 2013 )
Value Jreg({wℓ}ℓ∈L)
ℓ∈L∑cℓ∥wℓ∥1
dℓ∈L∑cℓ∥wℓ∥2
(1−κ)ℓ∈L∑cℓ∥wℓ∥1+κdℓ∈L∑cℓ∥wℓ∥2
Table 2: Regularization norms on the probe weights {wℓ}ℓ∈L , with mixing weight κ∈(0,1) and embedding scales cℓ2:=ED(∥Xt(ℓ)∥22) .
Task
Honest / Deceptive
Reason / Belief
Description
Instructed-Pairs
306 / 306
encouraged / —
The model is told to be honest or deceptive, then states a true fact; a response is deceptive when told to deceive.
Alpaca (honest reference)
8,000 / 0
— / —
The model follows benign instructions; every response is honest.
Instructed Deception
10,106 / 10,692
encouraged / world
The model is told to answer a question deceptively; a response is deceptive when it gives an answer the model believes is false.
Convincing Game
350 / 538
encouraged / self
The model is told to convince the user that it has a given trait; a response is deceptive when it claims a trait the model lacks.
Insider Trading
3,757 / 2,952
encouraged / self
The model, as a trading agent, acts on an insider tip; a response is deceptive when its report to the manager conceals the tip.
Harm-Pressure Choice
4,697 / 703
inherent / world
The model answers a hazardous question for a harmful user; a response is deceptive when it contradicts its neutral answer.
Table 3: Datasets with the number of honest and deceptive transcripts: Instructed-Pairs ( Goldowsky-Dill et al., 2025 ) for training and validation, Alpaca ( Taori et al., 2023 ) for calibration and audit, and Liars’ Bench tasks ( Kretschmar et al., 2025 ) for testing. Reason: whether the deception is encouraged by the context or inherent to the model. Belief: whether the deceptive response misstates what the model believes about the world or about itself .
Model f
Qwen3-0.6B
Qwen3-1.7B
Qwen3-4B
Qwen3-8B
Qwen3-14B
Qwen3-32B
Number of layers L
28
28
36
36
40
64
Embedding dimension d
1024
2048
2560
4096
5120
5120
Table 4: Qwen3 subject models ( Yang et al., 2025 ) , with the number of layers L and the embedding dimension d .
Baseline
Method
BalAccγ
AUROC
Mean-activation probe (White-box) ( Goldowsky-Dill et al., 2025 )
Single-layer logistic probe Token scores averaged over the response
0.54 (mean)
—
Taxonomy-targeted probes (White-box) ( Natarajan et al., 2026 )
Multiple single-layer logistic probes (one per deception type) Token scores averaged over the response
—
0.72 (mean)
Multi-layer stacking (White-box) ( Nordby et al., 2026 )
Multi-layer logistic probes, stacked by weights trained on 80% of Liars’ Bench Token scores averaged over the response
—
0.93 (mean) 0.95 (Insider Trading) on the held-out 20%
LLM judge (Black-box) ( Kretschmar et al., 2025 )
A separate model (Claude 3.7 Sonnet) rates the transcript from 0 to 100
0.73 (mean)
—
Table 5: Baselines, their methods, and their published results on Liars’ Bench. Balanced accuracy is at a threshold that flags at most 1% of Alpaca responses ( γ=0.01 ); mean indicates average performance over the evaluated tasks, and — marks a metric not reported.
Figure 2: Preliminary evidence. (a) Weights wℓ,k of the ridge and lasso probes of Qwen3-8B by layer ℓ and embedding index k , divided by the largest absolute weight in each layer; darker cells mark larger magnitudes of either sign. The middle panel shows the concentration of each layer on a log scale, dashed for ridge and solid for lasso, with arrows at the maximum and, from the second layer on, the minimum concentration gain. (b) Best-layer AUROC on Insider Trading (triangles) and Convincing Game (squares), with dotted lines at random chance and perfect detection. The left subplot compares the ridge (filled markers, dashed lines) and lasso (open markers, solid lines) probes of Qwen3-8B under three aggregators, with arrows labeled by the relative change on Insider Trading. The right subplot shows six independently trained lasso probes with Aden per model size; boxes mark the quartiles and median, and whiskers reach the farthest probe within 1.5 times the interquartile range.
Figure 3: Work plan Gantt chart. Bars show the task periods, dashed lines and diamonds mark milestones M1–M4, and the hatched week 16 is buffer.
Computational task
Basis of the estimate
Time [h]
Evals
Node hours
Setup
Embedding cache
One pass over Instructed-Pairs at all layers L
∼ 3
2
6
Thrust 1: Detection accuracy
Group-lasso path
20 λ values × 20 bootstraps × 2 embedding scales, 0.5 min per fit
∼ 7
6
42
Detectors
3 regularizers × 3 aggregators × 5 values of λ× 3 seeds, 2 min each
∼ 5
6
30
Thrust 2: Score uncertainty
Table 6: Requested compute in node hours. Every evaluation of a task runs on one GH200 node, so the node hours of a task are its time to solution times its number of evaluations. Forward passes (embedding cache, scoring pass, and LLM judge) are timed over all six subject models together, and detector fits on the cached embeddings and the analysis are timed per model and evaluated once for each model.