← Lab /AI/ML

Learnable delimiters cut prompt injection success to near 0%

LTBD reduces prompt injection attack success rates to virtually zero while preserving task performance

AI/ML arXiv 8 Oct 2026 Defense Prototype evidence

Published as “LTBD: Learnable Trust-Boundary Delimiters for Prompt Injection Defense”

Why it matters

LTBD offers a practical, plug-and-play defense that can be applied to closed-source LLM APIs without costly fine-tuning, enabling safer deployment of LLM-powered applications.

Summary

LTBD reduces prompt-injection success to 0.00% ASR on AlpacaFarm and 0.11-0.19% ASR on TaskTracker, matching or beating training-based defenses while keeping the base LLM frozen and adding negligible inference overhead. The paper reports these results across four open-weight LLMs and shows the defense remains effective against adaptive attacks that know the delimiter scheme. Evidence comes from multiple benchmarks (AlpacaFarm, SEP, TaskTracker, CyberSecEval2) and comparisons to both inference-time and fine-tuning baselines.

What they found 1

  1. LTBD achieves 0.00% attack success rate on AlpacaFarm.

    “LTBD achieves 0.00% ASR on AlpacaFarm and only 0.110.19% ASR on TaskTracker.”

Caveats 2

  • LTBD’s ASR on TaskTracker is not zero but 0.11-0.19%, indicating some residual vulnerability.
  • SEP benchmark ASR remains above zero (e.g., 2.04% on Llama3-8B) even with LTBD.

What’s new here 4

  • Introduces learnable trust-boundary delimiter tokens that are placed at the boundary between trusted instructions and untrusted data.
  • Provides a parameter-efficient defense that keeps the entire LLM frozen, requiring only four token embeddings to be trained.
  • Demonstrates robustness against adaptive attacks that explicitly spoof delimiter patterns.
  • Achieves near-zero attack success rates with minimal utility loss and negligible inference overhead.