Winnow keeps the part of a long document that your questions need. It scores every piece of the document against the questions. Keep the best pieces up to a budget, and the model that answers reads a tenth to a fifth of the text. On long contracts it then answers more accurately than it does from the whole document.
This is version four (runs/scorer-0.8b-r4q, 9 November 2026) of the scorer in the decision
input optimizer (decision-input-optimizer/ in github.com/luka-zivkovic/experiments, private).
Version three is in this repository's history (commit 09878d3).
A private research model: the results below are what it has been tested on, nothing more.
In Kahneman's terms, System 1 is fast and automatic and System 2 is slow and deliberate. Winnow is a System 1 model. It makes its call in a single forward pass per chunk, reading a score for every piece straight from its hidden states, with no generated text and no thinking tokens. That is why it scores a 28,000-token contract in about a second on one GPU. The model that reads the cut can be any model, fast or slow.
The code that cuts with it is in the repository above:
HF_TOKEN=... python -m dio.cut --model luka-zivkovic/winnow-0.8b --file contract.txt \
--question "Does the contract cap the seller's liability?" --budget 0.1 > cut.txt
dio/gate.py; dio.cut does not offer it yet.--min-tokens).--ask jev or --ask elephant asks that decision model on the full and the cut
text.--conversation chat.json --structure-only. Rules that keep the last
messages, the user's messages and tool calls with their results held the decision models'
accuracy at a fifth of the tokens on public conversation sets, and Winnow's ranking added
nothing on top.By hand, it is a LoRA adapter on Qwen3.5-0.8B's text model plus two small heads:
Questions:\n- <question>\n…\n\nPieces:\n then each piece followed by
<|object_ref_end|> and a newline. Pieces are packed into chunks of up to 2,000 tokens, at most
4,096 tokens with the questions. For the per-question head, each question also ends with
<|box_end|>.head.pt (hidden size → 1) reads the last hidden state at each
<|object_ref_end|>; its sigmoid is the probability that the piece is evidence for one of the
questions. This is the score the cut uses. qhead.pt projects each piece and each question to
256 dimensions; their scaled dot product plus a bias scores the piece against each question
separately.Speed: about 1 s per 28,000-token input on an RTX 4090. On an Apple Silicon Mac, dio.cut runs
it with MLX (dio/winnow_mlx.py): the adapter merged into the base weights, bf16 on the GPU,
about 20 s on an M3, against about 80 s with PyTorch in fp32 (--backend torch). The first run
converts this repository's weights once into ~/.cache/dio/winnow-mlx/; MLX's scores differ from
PyTorch's by 0.0001–0.0014 on average and gave the same cuts. A ready MLX copy is in
luka-zivkovic/winnow-0.8b-mlx (private): with --model luka-zivkovic/winnow-0.8b-mlx, dio.cut
needs no PyTorch model and no conversion.
The reader's accuracy against the human labels on the cut input, minus its accuracy on the whole
input, in points, with 95% bootstrap intervals over documents. Settings were fixed on dev; test
was read once. Readers: TypeSafe's Jev (jev-1.14.0) and Claude Haiku 5.5 (effort low).
Test:
| Test set | Reader | Cut | Text kept | Accuracy change | Right answers lost |
|---|---|---|---|---|---|
| MAUD (20 merger agreements) | Jev | gate | 13% | +4.1 (+2.6 to +5.4) | 71 |
| MAUD | Jev | 10× | 10% | +3.5 (+1.7 to +5.1) | 111 |
| MAUD | Claude Haiku 5.5 | 10× | 10% | +4.9 (+1.0 to +8.9) | 175 |
| CUAD (94 contracts) | Jev | gate | 16% | +0.5 (−0.2 to +1.3) | 58 |
| CUAD | Claude Haiku 5.5 | 10× | 10% | +1.1 (+0.2 to +1.9) | 89 |
| CUAD | Claude Haiku 5.5 | gate | 16% | +1.2 (+0.3 to +2.1) | 66 |
| Clinical reports hidden in 28,000 tokens | Jev | 10× | 10% | +0.7 | 5 |
| Synthetic long NDA cases | Jev | 10× | 10% | +3.6 | 85 |
Each of these passes the accuracy criterion (not less accurate than the whole read: the change is at least 0, with a lower bound of at least −2 points).
adapter/adapter_model.safetensors 43 MBqhead.pt 2 MBhead.pt 5.9 kBQwen/Qwen3.5-0.8B