IBM released LLMON, a markup language for LLMs that uses reserved tokens for structure. It separates instructions from data to block prompt injection attacks. Two Granite 4.1 models now support LLMON. They resist indirect prompt injection far better than other models. General performance matches Granite 4.1 Instruct models. A GitHub repo provides tools and examples. LLMON works alongside existing chat templates. JSON can be converted to LLMON without loss. Models were trained from Granite 4.1 base checkpoints. Training included decoy blocks to teach ignoring unbound content. A demo shows how LLMON models handle attention differently.
What changed
LLMs relied on implicit structure or JSON for context, which is brittle and vulnerable to prompt injection.
What it unlocks
Binding instructions to specific data blocks to ignore unrelated context and resist prompt injection attacks.
- 47% more attacks avoided vs best frontier model
- 95% more attacks avoided vs best open-source model
- 2 preview models: 3B and 8B
What you need to act on it
- Granite 4.1 3B or 8B base model
- LLMON chat template or conversion tools
Sources