Skip to content

IBM ships Granite 4.1 previews tuned to resist prompt injection

Short answer

IBM released two experimental Granite 4.1 models, 3B and 8B, trained on LLMON, a markup that tags every prompt component and binds each instruction to the data it acts on. On one benchmark they resisted injected instructions far better than the other models tested. IBM labels them unfit for production.

What this means for operators

If your sales, support or ops automation feeds the model customer emails, ticket text, uploaded files or CRM notes, any of that can carry a hidden instruction. These previews are worth a sandbox test, because you can run them against your own worst-case inputs and compare them with the model you use now. Expect integration work: prompts must name their parts (instruction, data, requirement) so the template can mark them up. Do not move anything customer-facing onto them yet, since IBM calls the release experimental and says the protection is learned behavior with no guarantee.

IBM's Granite team has published LLMON, a markup language for language models, on the Hugging Face blog, together with two experimental models trained to read and write it: granite-4.1-3b-LLMON-preview and granite-4.1-8b-LLMON-preview. A GitHub repository with a toolkit, workflow examples and templates comes with them.

What LLMON does

IBM's argument is that a model's context holds many kinds of material: system prompts, earlier turns, retrieved documents, tool output, output constraints and reasoning. Most of that structure is implicit or squeezed into formats such as JSON, which were built for parsers. IBM links this to brittleness in smaller models and to prompt-injection exposure.

LLMON marks each component with a meaningful tag. The delimiters are reserved special tokens in the vocabulary, so structure and ordinary text never share characters. Each block gets a short unique ID, and an execution block at the end states which instruction to run, which data it applies to, which requirements constrain it and where the answer goes. Content outside that execution block is still visible to the model but is treated as unreferenced material.

The preview models ship with their own chat template. You build the usual list of messages, name the parts of a turn (instruction, data, requirement) and flag each as executed or not. The template renders the markup. IBM also provides converters that turn JSON into LLMON and back without loss.

The security claim

Indirect prompt injection hides a malicious instruction inside content the model is asked to process, such as a retrieved document or a tool response. IBM tested on the OPI benchmark, which plants injections in the data of standard NLP tasks. By its account, the other models it tried, open and closed, carried out injected instructions with high probability. The LLMON models avoided 47% more attacks than the best frontier model tested and 95% more than the best open-source model. IBM reports similar trends on the ASB and StruQ benchmarks.

There are limits. These benchmarks cover static injections, and IBM says attacks that unfold across many chat turns are still being worked on. It also describes the privilege rule (execution-block instructions are authoritative, input is only material) as learned behavior and not an enforced guarantee.

Capability and training

IBM says general performance stays on par with the Granite 4.1 Instruct models across standard benchmark categories. The models start from Granite 4.1 base checkpoints. Training re-serializes an ordinary instruction-tuning corpus into LLMON and adds decoy instructions and data that are left unbound. Reinforcement learning follows in five GRPO stages and a final DPO stage on a thousand preference pairs built from the model's own responses to injection attempts.

Teams can also define their own tags and tune a LoRA adapter on top. IBM demonstrates this on the ScienceWorld benchmark and points to a second notebook for tool-calling agents. Mellea, IBM's related project, supports LLMON natively.

Status

IBM describes the release as an experimental preview for exploration and evaluation, not for production, and asks for feedback in GitHub Discussions.

Source: Hugging Face · In the Atlas: Hugging Face →

The tools in this story

  • GitHub - price, who uses it, alternatives
Next step

Discovery Sprint

If AI already runs in one of your processes, the next step is to take that one apart. Thirty minutes, and we say whether the arithmetic is likely to close.

Book the review call

Free 30-minute review call. The sprint is what the call is about.

Fee
$2,500
Length
1-2 weeks

Ends in one of two answers: build this, or do not. The process map, the numbers and the ranked backlog are yours either way.