SecOPD's on-policy distillation slashes PISmith attack success rate from 94% to 9% on Qwen3.6-27B, per @HuggingPapers. The method assigns each token a clean-context score, blocking adaptive injections at the source.
Key facts
- PISmith ASR reduced from 94% to 9%
- Model: Qwen3.6-27B
- Method: on-policy distillation
- Token-level clean-context scoring
- Released on Hugging Face
SecOPD, a new defense against adaptive prompt injections, uses on-policy distillation to assign every token a clean-context score. According to @HuggingPapers, this token-level feedback mechanism cuts PISmith's attack success rate (ASR) from 94% to 9% on Qwen3.6-27B, a dramatic 85-point reduction. The model is now available on Hugging Face, allowing researchers to test it against their own attack suites.
The key innovation is the shift from sequence-level to token-level scoring. Traditional defenses evaluate entire prompts, which adaptive attacks like PISmith exploit by embedding malicious instructions in less-scrutinized segments. SecOPD's on-policy distillation trains the model to score each token's context cleanliness, making it harder for attackers to hide payloads. This granular approach appears to be the first to specifically target adaptive attacks, which evolve based on the model's responses.
While the ASR reduction is impressive, the source does not disclose the exact training dataset size, compute budget, or how SecOPD performs against non-adaptive attacks or other models. The tweet is a brief announcement, so independent verification is pending. The Hugging Face release enables replication, but the community should watch for ablation studies comparing token-level vs. sequence-level scoring to confirm the mechanism's causal role.
Why This Matters
The 94% to 9% drop is not just a benchmark win; it addresses a structural weakness in current defenses. Adaptive prompt injections are a growing threat in agentic AI systems, where models act on external content. SecOPD's approach could be integrated into production pipelines, but its real-world efficacy depends on generalization beyond PISmith. The lack of details on training compute and dataset size means we can't yet assess the cost-benefit tradeoff for deployment.
What to watch

Watch for independent replication of SecOPD on other models like Llama-4 or Mistral, and whether the Hugging Face model card includes ablation studies comparing token-level vs. sequence-level scoring. Also track if PISmith or similar adaptive attacks evolve to bypass token-level defenses within 90 days.







