- Entry date
- 30 May 2026
- Category
- Hardware
- Lead over the world
- a real, benchmarked, beats-JPEG codec — the learned-codec layer is where the actual research race is
- Access
- 🔓 Public
A codec built on {−,0,+} coefficients instead of DCT blocks beats JPEG by up to 43% on real photos — and the project's own results log contains a signed confession of three fabricated numbers, replaced with the real ones, on the public record.
- +0.006–0.026%
- entropy coder above the Shannon limit — effectively solved
- beats JPEG by 15–43%
- classical still codec vs JPEG, measured on Kodak test images
- 62%
- smaller than Motion-JPEG, video motion compensation (measured)
- +118%
- BD-rate — the learned-transform bet loses to the classical path (measured, resolved)
- 556,888 B
- lossless PNG baseline on kodim23 (47.2% of raw) — the hard information-theoretic floor every codec above is measured against
- ~3x
- estimated remaining gap to the perceptual compression ceiling on kodim23 (~20-25KB estimated vs ~60KB achieved) — 'the prize,' not yet claimed
- 0 of 1
- H200 training runs actually executed for the big learned-autoencoder bet — the recipe, dataset choice, and throughput estimate exist; the run itself hasn't happened yet
Honest evaluation
The classical ternary codec measurably beats JPEG and ties JPEG2000 (proven); the learned-transform bet is disproven in its first form and the bigger autoencoder bet is still unrun, not just unresolved — the H200 training document is a plan, not yet a result.
What would prove or disprove it further
What would prove or disprove it further: actually run the M4 big-model training to convergence — the recipe, dataset choice, and lambda sweep are already specified in the project's own H200 handoff document, and the NaN-crash fix is already in, but the run itself has not happened yet. Read the resulting RD curve against the classical codec and against AVIF/WebP — that single run resolves the biggest open question, one way or the other. On the commercial side, a real pre-processing-SaaS pilot against one customer's existing AV1 pipeline would test the go-to-market document's own recommended path, rather than the already-disproven "license it to Netflix" plan.
The evidence — full reasoning behind the verdict
Verdict: partly-proven.
The classical half of TRIAD's bet is proven: a ternary-coefficient codec, entropy-coded near the Shannon limit, measurably beats JPEG and ties JPEG2000 on real images, and its video motion-compensation path measurably beats frame-independent coding. Those are real, reproducible benchmark numbers against real competing codecs, not projections.
The learned half of the bet — the part that would make TRIAD more than "a solid classical codec with an unusual coefficient alphabet" — is disproven in its first form (the lifting-tweak transform loses to classical, resolved by a fixed harness) and inconclusive in its bigger form (the autoencoder pipeline works and the ternary-latent thesis holds, but no converged training run exists yet to say whether it beats the classical path).
How/why it landed here: the classical path won because ternary quantization plus a well-tuned entropy coder is a genuinely strong, well- understood combination — the same reason hand-tuned DCT codecs have stayed competitive for decades. The learned transform lost its first fight because it was trained against an objective (a per-subband entropy proxy) that doesn't match how the real codec spends its bits (gain-weighted per-band allocation) — a classic train/deploy objective mismatch, not a flaw in the ternary idea itself. The project's own harness bugs (the M2c comparison that didn't overlap in PSNR, the three fabricated-number episodes) show the same pattern twice: measuring learned-vs-classical fairly is harder than it looks, and the fix each time was more rigorous harnessing, not a shortcut.
Runnable proof — see it work
Most codec projects show you a benchmark table and ask you to trust the methodology behind it. TRIAD's own results log shows its work in a stronger way — including three places where it briefly got the discipline wrong, caught itself, and left the correction on the record.
What it was
TRIAD (Ternary Resolution-Invariant Adaptive Decoder) is an experimental
image and video codec built on three ideas: a wavelet-seeded, potentially
learned transform in place of a fixed DCT; a balanced-ternary
{−,0,+} coefficient alphabet instead of the usual integer quantization
levels; and a progressive trit-plane bitstream that can be truncated at
any point for a quality/size trade-off. The bet, stated plainly in the
project's own origin document, is that JPEG and H.264-family codecs are
built on assumptions (fixed DCT blocks, binary quantization) that a
ternary, learnable alternative can beat — and that this is checkable, not
just arguable, against real images and real competing codecs.
The choice of three as the alphabet size isn't just a naming hook: the project's own origin council works the radix-economy argument explicitly — minimizing symbols-per-value across a number base gives an optimum base of e ≈ 2.718, and 3 is the nearest integer to it, the same reasoning behind the 1958 Soviet Setun computer the project cites by name. That same council closes on a colder, more useful caveat, attributed to its own Shannon-seat voice: "JPEG2000 was better than JPEG and lost anyway" — the best math doesn't automatically win a codec war; best math plus real engineering plus zero deployment friction does. A fifth project law was added on the back of that discussion: "Ship-ability is a feature."
What we built
ResearchA real, tested pipeline: a ternary numerics library, a ternary rANS entropy coder, a classical 9/7 lifting wavelet transform with per-band gain weighting, a trit-plane embedded coder, an end-to-end still-image codec, and a learned (PyTorch) alternative transform — all backed by 21–28 passing tests and benchmarked against JPEG, JPEG2000, and WebP on the standard Kodak test set, plus a motion-compensated video path benchmarked against Motion-JPEG.
Measured, and real:
- Entropy coding is solved. The ternary rANS coder lands within 0.006–0.026% of the Shannon entropy limit on synthetic test streams — essentially optimal; no further entropy-coding gains are available.
- The classical still codec is genuinely competitive. On a smooth RGB photo (kodim23) at matched visual quality, TRIAD produced the smallest file of all four codecs tested — 43.8 KB versus WebP's 56.2 KB, JPEG2000's 58.8 KB, and JPEG's 77.3 KB. On harder, detailed greyscale images, it beat JPEG by 15–20%, tied JPEG2000, and trailed WebP by 25–30%. The same test image loses-lessly compresses to 556,888 bytes as a PNG (47.2% of raw) — that's the hard information-theoretic floor every number above is measured against, not an arbitrary comparison point. At a second, medium-quality operating point (~35dB) on the same image, the ranking holds the same shape: WebP 16.8 KB, TRIAD 18.9 KB, JPEG2000 19.7 KB, JPEG 27.8 KB — TRIAD beats JPEG and JPEG2000 and sits behind WebP, consistently, not just at one cherry-picked quality setting. The project's own reviewers put a number on how much further there is to go: an estimated perceptual compression ceiling around 20–25 KB (roughly 50x) on this image, against TRIAD's ~60 KB (roughly 19x) — a real, named ~3x gap they call "the prize" and do not claim to have closed.
- Video motion compensation works. On a panning test clip, motion- compensated I+P coding used 62% fewer bytes than frame-independent (Motion-JPEG) coding at equal or better quality.
- A refined entropy-context model measured a further win — BD-rate improved against all three comparison codecs — though on only two test images, flagged in the log as directional, not a full-set result.
Measured, and a real negative: the learned transform — the more novel half of the bet — beats the classical wavelet by 14–18% in isolation, against the proxy objective it was trained on. Dropped into the real codec, it loses, because the classical path's biggest lever (per-band gain weighting) is degenerate for the learned transform's near-uniform coefficient scale. A properly fixed, wide-sweep BD-rate comparison later confirmed this cleanly: the learned lifting tweak loses by roughly +118% BD-rate. The shipping still codec remains the classical path.
A real bug, caught and fixed on the record. Before that clean result, an earlier version of the comparison looked like a total disaster — the learned path appeared 100% worse. The cause, tracked down and documented, was a biorthogonality bug: because the transform wasn't properly biorthogonal, 1 unit of coefficient error was amplifying into roughly 3.5 units of final image error. Fixing the gain normalization is what turned "looks like total failure" into the real, measured +118% BD-rate loss above — a smaller, honest number instead of an artificially inflated one.
The architecture underneath the classical path has more real structure than a single benchmark number shows: an XYB perceptual color space (in the JPEG XL lineage — linear RGB to LMS cone response to a cube-root gamma law), a lifting transform whose predict/update operators are initialized to the classical CDF 9/7 wavelet and can be learned from there, and three explicitly separate decode tiers built into the bitstream format itself — TIER0 "Potato" (inverse lifting only, no neural network, runs on anything), TIER1 "Phone" (NPU-friendly, targets 1080p at 30–60fps), and TIER2 "Studio" (the full learned autoregressive decode, GPU-only, archival quality). That tiering is itself an honesty mechanism: a cheap decoder is guaranteed to exist and run, even if the fancy learned path never ships.
What we learned — including the honest gaps
- A from-scratch codec beating JPEG on real photos is a genuinely hard, well-worn benchmark to clear — and it cleared it. JPEG is a 30-year-old, heavily optimized standard; beating it by double digits with a from-scratch entropy+transform pipeline is a real result, not a cherry-picked one — it's image-dependent and stated as such.
- The more interesting bet — a learned transform beating hand-designed wavelets — lost, and lost cleanly enough to be useful. The failure mode (a transform trained against a proxy objective doesn't drop into the real codec for free, because it can't use the classical path's main lever) is a specific, transferable lesson, not just "it didn't work."
- The bigger learned-autoencoder bet (M4) is unresolved, not disproven —
and the honest state is "not yet run," not "in progress." The pipeline
runs and the core ternary-latent thesis holds (90–99% of learned symbols
land in
{−,0,+}even without being forced to), but the one serious training attempt crashed to NaN before producing a valid result. The project's own H200 training document, read closely, is a handoff written by a session that only had a CUDA-incapable GPU on hand — it defines the recipe (dataset, lambda sweep, batch size, an estimated 1–2 days per run on a real H200) and reports one CPU-only architecture sanity check, but there's no evidence anywhere in the project's files that the actual H200 run has happened yet. That's an open, well-specified question, not a closed one and not a run quietly in flight. - Decode cost is named as the real ceiling on the learned-codec bet, not just an implementation detail. The go-to-market document is explicit that a deep-net decoder is "hard on a cheap TV" — the asymmetric expensive-encode/cheap-decode shape that makes classical codecs deployable is exactly what a learned decoder threatens to break. The project frames cracking cheap ternary decode as its "eventual moat," which is an honest way of saying it doesn't have one yet.
- The commercial plan needed the same honesty treatment as the technical results, and got it. The project's own go-to-market document states plainly that "sell a codec license to Netflix/YouTube" is close to a dead end — the industry's biggest players co-founded AV1 specifically to avoid ever paying codec royalties again — and redirects toward acquisition (citing WaveOne's 2023 sale to Apple as precedent), a pre-processing SaaS layer (citing iSize/Beamr as companies already selling exactly that), or verticals without in-house codec teams.
Where it went / status
Active research. The classical codec (entropy coder + M1 still + M3 video) is real, measured, and shipping as the current baseline; the learned-codec layer is the open research question, honestly split between "lost" (the lifting tweak) and "not yet run" (the big autoencoder — the H200 training recipe is written, the run isn't). Tiered research throughout — nothing here is claimed as beating the current best-in-class (WebP/AVIF) yet, and the log says so in its own words.
What is still open — kept visible
The honest edges, next to the wins. This is what turns 🔬 into 🟢 — honestly.
- The learned nonlinear-lifting-wavelet bet is a measured loss: it wins in isolation against a proxy objective (+14–18%) but loses once dropped into the real codec, and a fixed, wide-sweep BD-rate harness confirms classical 9/7 wins by roughly +118% BD-rate. That question is now resolved, honestly, against the more novel approach.
- The big learned-autoencoder path (M4) has a working pipeline and a confirmed ternary latent (90–99% of symbols land in {−,0,+}), but the serious training run diverged to NaN and was not yet re-run to convergence — no valid M4 result exists. The project's own H200 training document is a handoff, not a results log: it specifies the recipe (DIV2K/CLIC/OpenImages, a lambda sweep, ~5–15 it/s on an H200, roughly 1–2 days per run) and reports a CPU-only architecture sanity check (0.337 bpp at 22.8dB, 1.847 bpp at 33.2dB, an overfit test, not a real result) — nothing beyond that CPU check has been run as of this report.
- TRIAD trails WebP by roughly 25–30% on detailed images even where it beats JPEG — it is genuinely competitive, not yet best-in-class. The project's own reviewers estimate the true perceptual compression ceiling on the same test image at roughly 20–25KB (about 50x), against TRIAD's current ~60KB (about 19x) — a real, named ~3x gap the project calls 'the prize' and does not claim to have closed.
- The project's own results log records at least three prior instances of results being drafted before the corresponding benchmark run was actually read — caught, disclosed, and replaced with real measured numbers, under a standing rule that no number enters the log until it's read from a completed run. The project's own status document is blunter about the count: it says the rule was broken '3-4 times,' which this report treats as the more honest figure to cite than a clean 'three.'
- Decode cost on cheap consumer hardware is named, by the project's own go-to-market analysis, as the open industry problem standing between the learned-codec path and any real deployment — a deep-net software decoder is 'hard on a cheap TV,' and cracking cheap ternary decode is described as TRIAD's 'eventual moat,' not something it has yet.
- The commercial plan ("sell a codec to Netflix or YouTube") is explicitly assessed by the project's own go-to-market document as close to unsellable — the major streaming platforms co-built the royalty-free AV1 standard specifically to avoid paying for codecs; the realistic paths are acquisition (the document cites WaveOne's 2023 acquisition by Apple as precedent), a pre-processing SaaS layer (citing iSize/Beamr as existing sellers of exactly that), or licensing to verticals without in-house codec teams (security cameras, drones, medical and satellite imaging, game streaming).
- TRIAD and the Hush pendant / NovaP protocol share a ternary-coefficient naming convention and a general 'waves and trits, not pixels and bytes' philosophy, but are independently built codebases — no shared code, and no cross-reference to Hush, NovaP, or any other vocabotics hardware project appears anywhere in TRIAD's own design documents. The connection across this report and its siblings is architectural kinship, not integration, and this report doesn't claim otherwise.
Where this connects
- The wearable this codec's ternary-band naming echoes (independent codebase, shared philosophy only)
- The wire protocol from the same naming family, on the sensing side
- A different hardware bet from the same lab, same 'prove the bench, don't round up the poster' discipline
- The same ternary-weights bet, in a model architecture
- The honesty discipline this project's integrity note follows
Sources
- hardware/ternaryvideo/README.md — TRIAD overview, status M0+M1+M2 complete, M3 measuredvocabotics internal hardware/codec design docs · as of 2026-05-30
- hardware/ternaryvideo/ARCHITECTURE.md — percept module, transform, quantizer, trit-plane coder, three-tier decode designvocabotics internal hardware/codec design docs · as of 2026-05-30
- hardware/ternaryvideo/RESULTS.md — measured results log, including the integrity note on fabricated-then-corrected numbersvocabotics internal hardware/codec design docs · as of 2026-05-30
- hardware/ternaryvideo/STATUS.md — current status and next-step handoffvocabotics internal hardware/codec design docs · as of 2026-05-30
- hardware/ternaryvideo/H200_TRAINING.md — big-model training recipe and handoff (no run executed yet)vocabotics internal hardware/codec design docs · as of 2026-05-30
- hardware/ternaryvideo/GO_TO_MARKET.md — commercial reality check (AV1/AOMedia, realistic paths)vocabotics internal hardware/codec design docs · as of 2026-05-30
- hardware/ternaryvideo/COUNCIL_001.md, COUNCIL_002.md, COUNCIL_003.md — design-review councils (radix-economy rationale, benchmark tables, the biorthogonality-bug correction)vocabotics internal hardware/codec design docs · as of 2026-05-30