General models
IBM Releases LLMON Markup Language With Granite 4.1 3B/8B Preview Models to Curb Prompt Injection
IBM introduced LLMON, an LLM-native markup language, and Granite 4.1 3B/8B preview models that separate instructions from data, reporting near-zero indirect prompt injection success on the OPI benchmark.
IBM researchers published a Hugging Face blog post on November 12 introducing LLMON (LLM Object Notation, pronounced "lemon"), an LLM-native markup language, along with two experimental preview models built on Granite 4.1 base checkpoints: granite-4.1-3b-LLMON-preview and granite-4.1-8b-LLMON-preview. A GitHub repository with tooling and conversion utilities was released alongside them.
IBM argues that a model's context mixes system prompts, past turns, instructions, retrieved documents, tool responses and output constraints, and that most of this structure is either implicit or encoded in JSON, a format designed for parsers rather than causal language models. In JSON, structural symbols such as quotes, colons and brackets share the same vocabulary as ordinary text; nesting is conveyed by counting brackets, something transformers handle poorly over long spans. The company links this to brittleness in smaller models and to exploitable prompt injection.
LLMON is XML-like, but its structural delimiters are reserved special tokens rather than characters, so structure and content occupy separate parts of the vocabulary. Semantically coherent components receive meaningful tags, boundaries between spans are explicit, and schemas including nesting are stated locally. Unique IDs let an instruction anywhere in the context be bound to the data it should act on, analogous to function calls and argument passing.
In IBM's example, a single user turn becomes five individually addressable blocks — instruction, data and two requirements — plus a sixth exec block naming which instruction to run, which data it operates on, which constraints apply, and where output goes. A conventional chat template would flatten all of this into one string, leaving the model to infer task, subject and constraints. LLMON does not replace chat templates; the authors describe it as enriching them by telling the model what each component means and how components relate within and across roles.
Security is the headline claim. On the OPI benchmark, which hides injected instructions inside the data of classic NLP tasks, IBM reports that all non-LLMON models tested were highly susceptible, while LLMON models practically eliminated the problem: blocking 47% more attacks than the strongest frontier model tested and 95% more than the best open-source model. Similar trends were observed on ASB and StruQ. The authors note these benchmarks cover static indirect injections and that they are working on adaptive attacks unfolding over many turns.
The privilege rule is learned rather than added as a guardrail. Training starts from Granite 4.1 base checkpoints, not the released instruct models, so LLMON behavior is acquired during post-training. IBM re-serialized a conventional instruction-tuning corpus into LLMON, then augmented it with decoy instructions and data blocks present in context but deliberately left unbound while target outputs stayed unchanged, teaching the model to follow only dependencies named in the execution block. This was followed by five sequential GRPO stages spanning multi-domain reasoning, RLHF, knowledge calibration and math, then a DPO stage on a thousand on-policy preference pairs built from the model's own responses to injection attempts. IBM states plainly that this is learned behavior, not an enforced guarantee.
On general capability, the authors say the LLMON models perform on par with Granite 4.1 Instruct across standard benchmark categories. Users already experimenting with Granite 4.1 3B or 8B can swap in a preview model without a conversion pipeline; naming the parts of a turn is enough, and the shipped chat template renders the blocks. The LLMON-converters library goes further, turning structured parts such as JSON documents into typed, individually addressable blocks rather than one opaque string.
The tag vocabulary is not fixed. On ScienceWorld, a text-based agent benchmark, the team defined tags including instr.task.goal, data.state.room, data.state.inventory and assistant.next_action, rendered reference trajectories with them, and tuned a LoRA so the model writes its next action in the new vocabulary. Another notebook covers tool-calling agents. The Mellea framework has native LLMON support and automatically LLMONizes its LLM calls.
IBM positions both models as experimental previews suited to exploration and evaluation but not production. Papers and an attention visualization demo are also public. The practical implication for developers is a shift in injection defense from external filtering or prompt phrasing toward reshaping the format in which the model receives context at the vocabulary level, with room to fine-tune custom domain structures.