LLMON: An LLM-Native Markup Language, now in Granite 4.1 3B and 8B
In one sentence
IBM introduces LLMON, an LLM-native markup language, alongside two Granite 4.1 preview models that significantly improve resistance to indirect prompt injection.
Key points
- LLMON uses reserved special-token delimiters to explicitly separate instructions, data, and requirements, addressing JSON's limitations for causal language models.
- Two experimental Granite 4.1 preview models (3B and 8B) and a GitHub repository with conversion tools and workflow examples have been released.
- On benchmarks like OPI, LLMON models nearly eliminate indirect prompt injection attacks hidden in user data while maintaining general capabilities.
- The language enriches existing chat templates with execution blocks, allowing models to bind specific instructions to exact data payloads without pulling in unrelated context.
In depth
An AI-written overview of the original article, not the article itself.
Hugging Face Blog published an article introducing LLMON, an LLM-native markup language, alongside two experimental preview models: granite-4.1-3b-LLMON-preview and granite-4.1-8b-LLMON-preview. By explicitly separating instructions from data, LLMON addresses the structural weaknesses of formats like JSON and drastically reduces indirect prompt injection attacks without sacrificing general model capabilities.
Design Principles and Core Mechanism
According to the article, JSON was built for parsers rather than causal language models, forcing models to track nesting via brackets and distinguish structural characters from normal text. LLMON solves this by using reserved special tokens as delimiters, separating structure from content.
LLMON enriches standard chat templates rather than replacing them. Components like instructions, data, and requirements are given unique two-character IDs. An execution block then binds specific instructions to their exact data payloads, ensuring unrelated context is ignored. The team also provides tools for lossless conversion between JSON and LLMON.
Safety and Performance Results
On the OPI benchmark for static indirect prompt injections, the LLMON models nearly eliminated successful attacks, avoiding 47% more attacks than the best frontier model tested and 95% more than the best open-source model. Similar gains appeared on ASB and StruQ benchmarks.
Crucially, these safety improvements do not hurt general performance, which remains on par with Granite 4.1 Instruct models. The authors note that these are experimental previews not meant for production, and they are still working on defending against adaptive multi-turn attacks.
Training Methods and Customization
The preview models were trained from Granite 4.1 base checkpoints using an instruction-tuning corpus re-serialized into LLMON. The data was augmented with unbound decoy instructions and data so the models learn to follow only the execution block, followed by five GRPO stages and a final DPO stage.
Developers can also define custom domain tags and fine-tune a LoRA adapter on top of LLMON models, which the team demonstrated on the ScienceWorld benchmark.
This summary was generated by AI from the original article and may contain errors; the original is authoritative. Copyright belongs to the original author.