TL;DR
TTP-R1 is a novel two-stage framework that automates the extraction of MITRE ATT&CK techniques from unstructured cyber threat intelligence (CTI) text. By pairing retrieval-augmented supervised fine-tuning (SFT) with reinforcement learning using verifiable rewards (RLVR), it directly optimizes set-level precision and recall. The resulting 8B-parameter model outperforms frontier models like Claude Sonnet 4.5 while running 28× faster on a single GPU.
What Problem Does This Paper Address?
Cyber Threat Intelligence (CTI) reports are filled with vital details about how hackers operate, but these narratives are unstructured and difficult to operationalize at scale. To fix this, security analysts manually map CTI text to the MITRE ATT&CK framework—a massive, hierarchical taxonomy of over 500 attack techniques and sub-techniques.
Automating this mapping is notoriously difficult due to extreme class imbalance and the fact that a single sentence or paragraph often describes multiple overlapping techniques (multi-label classification). Existing approaches fall into two traps:
- Frontier LLMs (like GPT-4 or Claude) over-predict: They use their broad knowledge to infer techniques that commonly co-occur with the text, leading to high recall but terrible precision.
- Fine-tuned LLMs under-predict: Standard supervised fine-tuning (SFT) uses token-level cross-entropy loss. This forces the model to treat set prediction like a standard sequence generation task, making it overly conservative and prone to missing co-occurring techniques.
The core issue is a lack of direct supervision on whether the entire predicted set of techniques is correct and complete.
Methods
The authors introduce TTP-R1, a two-stage framework designed to bridge the gap between sequence generation and set prediction.
Stage 1: Retrieval-Augmented Supervised Fine-Tuning (SFT)
Instead of asking an LLM to generate technique IDs out of thin air (which invites hallucinations), TTP-R1 uses a hybrid retriever (combining lexical BM25 and dense ATT&CK-BERT) to narrow down the 500+ taxonomy to a candidate set of the top $k=25$ most likely techniques. An 8B parameter model (like Ministral-8B or Qwen3-8B) is then fine-tuned using LoRA to select the correct indices from this candidate list.
Stage 2: Reinforcement Learning with Verifiable Rewards (RLVR)
To fix the token-level optimization problem, the authors apply Group Relative Policy Optimization (GRPO) using programmatic, verifiable rewards. This stage includes three key innovations:
- Decomposed Rewards: Instead of using a single scalar like an F1-score, they split the reward into independent channels for Precision, Recall (both evaluated at parent and sub-technique levels), and Format compliance.
- Decoupled Normalization: Combining multiple rewards into a single scalar before normalization can cause distinct reward combinations to collapse into identical values. TTP-R1 normalizes each reward channel independently within the sampled group before aggregating them, preserving clean gradient signals.
- Selective Training: To maximize sample efficiency, reinforcement learning updates are only applied to "difficult" examples where the SFT model's average F1 score falls below a threshold ($\tau = 0.99$).
Datasets
The framework was evaluated across four distinct CTI benchmarks:
- TRAM: A large, manually curated dataset from the Center for Threat-Informed Defense containing short, relatively noisy text fragments.
- Procedures: One-sentence summaries from the MITRE ATT&CK knowledge base. This functions primarily as a clean, single-label dataset.
- Derived Procedures: Longer paragraphs sourced from the actual URL references cited in ATT&CK examples, requiring deeper reasoning over implicit behaviors.
- Expert: A paragraph-level dataset annotated by five CTI experts. This is the most challenging benchmark, featuring highly multi-label instances (averaging 3.32 labels and up to 18 per sample) that mimic real-world threat analysis.
Key Insights and Ideas
- The Token-Set Mismatch: Token-level cross-entropy penalizes models for generating correct items in the "wrong" order and fails to penalize missing items globally. This is why SFT models become conservative. RLVR acts as a vital correction mechanism, allowing the model to safely maximize recall without eroding precision.
- Brevity Equals Speed: Frontier models spend hundreds of tokens generating chain-of-thought reasoning or verbose justifications. By fine-tuning TTP-R1 to output only the specific candidate indices (averaging just ~9 tokens), the authors achieved massive speedups. Because autoregressive decoding scales linearly with sequence length, brevity directly dictates throughput.
- Domain Fine-Tuning Beats Scale: A constrained candidate list (RAG) combined with targeted domain fine-tuning allows an 8B model to comfortably beat a massive frontier model like Claude Sonnet 4.5.
Key Results
- Superior Accuracy: TTP-R1 achieved the highest average F1 score across all four benchmarks. At the strict sub-technique level, it outperformed Claude Sonnet 4.5 (with RAG) by 7.4 percentage points.
- Massive Speedups: Served as an 8B model on a single NVIDIA L40S GPU, TTP-R1 achieved a per-query latency of just 0.34 seconds—making it 28× faster than Claude Sonnet 4.5.
Limitations and Future Work
- Retriever Bottleneck: Because the LLM can only select from the retrieved candidates, the retriever sets a hard upper bound on the maximum possible recall. If the correct technique isn't in the top 25, the model has no way to select it.
- Modest RL Gains: While the reinforcement learning stage consistently improved multi-label performance, the gains were modest compared to the initial jump from the SFT stage, suggesting room to optimize the reward functions further.
- Document-Level Scaling: The current evaluation focuses on sentence- and paragraph-level text. Scaling this framework to extract techniques across entire multi-page threat reports remains an open challenge.
Summary updated