Menu

1 / 4

I fuzzed four LLM structured-output engines without loading a model. The hard part was stopping my fuzzer from lying

DEV Community: rust·Affan Shaik·about 18 hours ago
#UVEJjnZq
#devtorust#devto#dev#token#outlines
Long article (968 words) — no AI summary yet.
Reading 0:00
15s threshold

The idea

Structured-output engines (llguidance, outlines-core, XGrammar, llama.cpp's grammar sampler) turn a JSON Schema into a token mask that is applied at every decoding step. If the mask blocks a token that leads to valid JSON, the model can never write a valid document. If it allows a token that cannot lead to valid JSON, the model writes an invalid one.

I wanted to test that mask directly, for $0, without any model weights. The tool is sieve-df , written in Rust:

Code, data and every result: github.com/Flotrpy/sieve-df

How it works

It only needs a tokenizer.json (I used Qwen2.5's).…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.