Skip to content
AI Learning Ground Start learning

Research ·

LLMON: An LLM-Native Markup Language, now in Granite 4.1 3B and 8B

IBM Granite released LLMON, an LLM-native markup language using reserved special tokens to explicitly structure context, along with two experimental preview models (3B and 8B) trained on it, which sharply reduce prompt injection success while keeping general capability.

LLMON: An LLM-Native Markup Language, now in Granite 4.1 3B and 8B
Image: Hugging Face

IBM Granite introduced LLMON (LLM Object Notation), a markup language that makes context structure explicit to models. On November 12 the team released two experimental preview models, granite-4.1-3b-LLMON-preview and granite-4.1-8b-LLMON-preview, derived from Granite 4.1 base models and trained to consume and generate LLMON text, plus a GitHub repo with a toolkit, workflows and templates.

LLMON is XML-like: components are tagged with meaningful names wrapped in reserved special-token delimiters, so structure uses a separate part of the vocabulary from content. Nested structures are stated locally rather than via bracket counting, and unique two-character block IDs (encoded as single tokens) let instructions bind to specific data payloads, like calling functions with arguments. It enriches rather than replaces chat templates: each part of a turn can be marked exec True or False, with exec blocks stating which instruction runs on which data. Converters translate existing JSON to LLMON and back losslessly, and teams can define custom tags and tune a LoRA on top of the preview models.

For builders, LLMON addresses two common pain points. First, JSON was designed for parsers, not causal LLMs: tokenizer ambiguity, escaping as statistical patterns, and weak bracket tracking make structure brittle, so LLMON removes the need to force JSON compliance. Second, explicit instruction/data separation makes indirect prompt injections in retrieved documents or tool outputs mostly ignored, with attack success rates on some benchmarks dropping to nearly zero while maintaining general capability versus Granite 4.1 Instruct models. Mellea has native LLMON support that automatically LLMONizes LLM calls.

References

Read the full story at Hugging Face ↗Like, save or discuss on Buzz

#open-weights #tooling #research