KUTE is a tokenization engine in Rust with Python bindings (`pip install kute-engine`, `cargo install kute-cli`). It trains and applies byte-level BPE, and the same engine handles event sequences and structured records. Every vocabulary is a versioned file with a content digest. 0.8.0 came out this week.
What is new and held up when measured:
**Whole event records, stored by column.**
`kute events pack` keeps entity, time and every other field exactly. On all 11,175,629 events of the HDFS_v1 log (644 MB as JSON Lines):
| | bytes |
|---|---:|
| `kute events pack` | 11,995,521 |
| the same columns written plainly, xz -9 each | 12,956,032 |
| xz -9 on the file | 23,144,380 |
| zstd -19 on the file | 26,457,244 |
On the Loghub-2.0 OpenSSH log (638,947 records, 77 MB): 1,274,967 against 1,378,672, 3,879,452 and 2,776,163 in the same order. Both unpack to the source byte for byte. The honest reading is the second row: most of the gain over a general compressor is the column layout, which you can do by hand. Against that, the container is about 7% smaller. One run each.
**Training and encoding speed**
, unchanged since 0.7. Against Hugging Face `tokenizers` 0.23.2 on enwik8, 32,768 tokens, the same split pattern on both sides, ten runs, each a new process that trains once: training took 1.94 s against 7.73 s on a 24-thread desktop, and 4.0 s against 64.4 s on a 4-core laptop. So 4x to about 16x depending on the machine; there is no single ratio. Token counts differ by 0.8%. These runs were on 0.7.0 and 0.6.0; I have not rerun them on 0.8.0, whose trainer code is the same.
What I tried in this release that went against it, and left in the docs:
-
**Agent messages.**
Two scripted agents negotiate a vocabulary for their messages, every byte counted (synthetic messages). zlib with a preset dictionary was a fifth smaller than KUTE's tokens.
-
**Layered vocabularies**
(short local ids over a general vocabulary). They recovered bytes and no tokens, zlib did as much without them, and a flat vocabulary with ids ranked by frequency was smallest. Not built.
-
**Composed token representations**
(sums, rotated sums and bindings of hashed vectors). They did what exact counting does, no better, at over a thousand times the storage. Two of those three outcomes follow from the arithmetic on any data, so they check the implementation and say nothing about the logs.
-
**Predicting the next log event.**
On OpenSSH a longer history predicts worse than the previous event alone. I had first found the opposite, on a file whose timestamps I had converted wrongly across a year boundary. The earlier result was never released; the correction is written up next to the new one.
-
**Numeric signals.**
The container with a checked error bound came within 0.2% of the same differencing done by hand. It adds a contract, not bytes.
Also new, tested but compared with nothing: discovery over events as they arrive with bounded memory, an HTTP service on loopback, and Ed25519 signatures on vocabularies (no registry, expiry or revocation).
What KUTE is not: a text compressor. On held-out English its token container is larger than `xz -9` on the raw bytes.
Limits: two logs, one text corpus, one code base, mostly one run each, two Windows machines for the timings. Experimental; formats may change before 1.0.
Release notes: https://github.com/kannaka-labs/kute/releases/tag/v0.8.0
Method, reports, limits: https://github.com/kannaka-labs/kute/blob/main/benchmarks/README.md
I would like to know where it loses. If you have an event log with entity and time fields, `kute events pack` against your own best compressor is a one-line test.
Building the CLI needs a C compiler, btw, because the event and signal containers use the 'zstd' crate. Teh core libraries and the Pythion package do not.
(Built with heavy use of an AI coding agent and checked by a second agent session, which installed the release from crates.io into a clean folder and reran the quick start. The measurements are reproducible from the scripts.)