Structured CoT: Shorter Reasoning with a Grammar File

A blog post testing whether a grammar can shorten a local model's reasoning.

Author
Kaya Omer (named in the citation block; the blog is called andthattoo)
Published
2026-04-25
Kind
Personal blog post with two small benchmark runs
Original
andthattoo.dev/blog/structured_cot
Subject
Harnesses and agent loops
Themes
Saying it exactly, Small means

What it is

Kaya Omer tries a decoding grammar on a local Qwen3.6 model. The grammar limits the think block to labelled lines such as GOAL and APPROACH. The post compares this with free-form thinking and with a terse prompt.

What it says

What evidence it gives

The post gives results tables for HumanEval+ (164 problems) and a 50-problem LiveCodeBench v6 slice. It lists failure types for the free-form runs and a few per-task examples. It includes the grammar files.

Interests and limits

This is one author's blog post, not peer reviewed. The runs use one model and one quantization. The tasks are one-shot coding problems. The author warns that agentic tasks may behave differently.