LLMON in Granite 4.1: An LLM-Native Markup Language
IBM researchers introduced LLMON (LLM Object Notation), an LLM-native markup language designed to structure data and separate instructions using reserved special tokens, alongside two experimental preview models in the Granite 4.1 family.
According to the Hugging Face source blog post by IBM researchers, LLMON (LLM Object Notation) is an LLM-native markup language designed to explicitly communicate structure, semantics, and relationships to language models using XML-like tags wrapped in reserved special-token delimiters.
What Changed
The source announces two experimental preview models derived from Granite 4.1 base checkpoints: granite-4.1-3b-LLMON-preview and granite-4.1-8b-LLMON-preview. Alongside these models, a GitHub repository was released containing toolkits, workflows, and templates.
Unlike standard JSON, which relies on characters like brackets and quotation marks that models can misinterpret over long spans, LLMON uses dedicated special tokens. This keeps structural delimiters distinct from vocabulary content and allows nested structures to be stated locally.
How It Works
The models were trained by starting from Granite 4.1 base checkpoints and re-serializing an instruction-tuning corpus into LLMON format. Training used five sequential Group Relative Policy Optimization (GRPO) stages—covering multi-domain reasoning, RLHF, knowledge calibration, and math—followed by a Direct Preference Optimization (DPO) stage on 1,000 on-policy preference pairs.
LLMON uses explicit instruction-data separation via execution blocks. By marking turn components as exec: True or False, developers can bind specific instructions to exact data payloads. The source states that this design nearly eliminates indirect prompt injections on the OPI benchmark, dropping attack success rates to nearly zero, avoiding 47% more attacks than the tested frontier model and 95% more than the best open-source model.
Why a Developer Might Care
- Chat Template Integration: Developers can build standard message lists and call
apply_chat_template, which automatically renders message components into LLMON blocks. - Custom Vocabularies: Developers can define domain-specific tag vocabularies and fine-tuning a LoRA adapter on top of LLMON models, as demonstrated using the ScienceWorld benchmark and tool-calling notebooks in the source.
Limitations
- Experimental Status: The source explicitly notes that these models are experimental previews intended for exploration and evaluation, and are not ready for production.
- Adaptive Attacks: While LLMON addresses static indirect prompt injections, the source states that the team is still actively working on improving robustness against adaptive attacks that unfold over multiple chat turns.
- Learned Behavior: The separation rule between authoritative instructions and input data is a learned behavior through training rather than an absolute safety guarantee.
Source: Hugging Face Blog: LLMON: An LLM-Native Markup Language, now in Granite 4.1 3B and 8B