Counterfactual Reflection Training for Security LLMs: Shaping Internal Reasoning via Future-Continuation Optimization

Abstract. We introduce Counterfactual Reflection Training (CRT), a training method for security language models inspired by Anthropic's finding that the J-space (global workspace) carries representations of potential future verbalizations — what the model is disposed to say in future continuations of the current context. CRT leverages this property by constructing counterfactual continuations: given a security analysis prompt, we generate alternative future responses (some correct, some hallucinated) and train the model to activate the appropriate intermediate concepts before producing the final output. Applied to the Circuit-Aware LoRA pipeline for Averroes, SAIF, and Rushd, CRT further reduces hallucinations by 31% beyond Circuit-Aware LoRA alone, and improves the model's ability to express uncertainty when evidence is insufficient. CRT requires no additional labeled data — only the existing security QA pairs used in standard fine-tuning — and adds only 7% overhead to training time.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-07-24
DOI
https://doi.org/10.5281/zenodo.21537148
Primary Topic
Security and Verification in Computing
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Counterfactual Reflection Training for Security LLMs: Shaping Internal Reasoning via Future-Continuation Optimization

Yahya Saqban
Zenodo (CERN European Organization for Nuclear Research)
Security and Verification in Computing
article

Counterfactual Reflection Training for Security LLMs: Shaping Internal Reasoning via Future-Continuation Optimization

Yahya Saqban
article en

Abstract

Abstract. We introduce Counterfactual Reflection Training (CRT), a training method for security language models inspired by Anthropic's finding that the J-space (global workspace) carries representations of potential future verbalizations — what the model is disposed to say in future continuations of the current context. CRT leverages this property by constructing counterfactual continuations: given a security analysis prompt, we generate alternative future responses (some correct, some hallucinated) and train the model to activate the appropriate intermediate concepts before producing the final output. Applied to the Circuit-Aware LoRA pipeline for Averroes, SAIF, and Rushd, CRT further reduces hallucinations by 31% beyond Circuit-Aware LoRA alone, and improves the model's ability to express uncertainty when evidence is insufficient. CRT requires no additional labeled data — only the existing security QA pairs used in standard fine-tuning — and adds only 7% overhead to training time.

Zenodo (CERN European Organization for Nuclear Research)
Tula University (RU)
Openalex Percentile: Top 6%
Security and Verification in Computing
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.