Ternary Encoding Research Survey: 1.58-Bit QAT Weights, Balanced Ternary Logic, and Post-Binary Storage

February 17, 2026 7-domain literature survey covering QAT-trained BitNet b1.58/2B4T, TerEffic & TENET FPGA ternary LUTs, room-temperature Artix-7 SRAM ER-TCAM (293 ns) vs. 4 K cryogenic Josephson TCAM (26.5 aJ/cell), multipath QUIC, and Cranelift ISLE lowering.

Visual synthesis of ternary {-1, 0, +1} logic and 64-state LUT6 hardware primitives
Visual synthesis of ternary {-1, 0, +1} logic and 64-state LUT6 hardware primitives

Temporal & Archival Scope: Era 0 Historical Whitepaper (Originally dated February 17, 2026; verbatim historical summary followed below by dated November 25, 2026 Errata & Related Work Addendum) · Canonical OpenIE Chronicle Entry: https://blog.openie.dev/posts/wp-ternary-encoding-research-survey/

Provenance & Telemetry Hygiene: Signed Provenance · Self-Checked (automated OpenIE internal gates; not externally peer-reviewed) · Energy Class: est_j (measured_j ⊥ reported_j ⊥ est_j ⊥ unmetered — Verification, Licensing & AI-Use Disclosure · Glossary & Non-Mixing Rules).

Part I: Contemporary Historical Summary (As Written in February 2026)

Historical Source Provenance (Original Date: February 17, 2026): David Jean Charlot, PhD · Open Interface Engineering. Preserved from our internal 7-domain literature synthesis (RESEARCH.md, February 17, 2026). All figures in Part I summarize external published papers.

Purpose: Separating Historical Ternary Nostalgia From 2024–2026 Silicon Literature

Before publishing our February 19, 2026 essay on balanced ternary ({-1, 0, +1}), we compiled a 7-domain engineering literature review on February 17, 2026 to catalog peer-reviewed throughput, memory, and energy benchmarks across ternary LLM kernels, FPGA lookup fabrics, ternary content-addressable memories (TCAMs), transport protocols, and compiler backends.

Domain 1: 1.58-Bit Ternary LLMs (QAT) & FPGA Lookup-Table Accelerators

Constraining neural weights during training to {-1, 0, +1} (log2(3) ≈ 1.585 information bits/weight) replaces floating-point FMA multipliers in linear projections with integer sign-selection, zero-skipping, and addition—provided the model is trained from scratch via Quantization-Aware Training (QAT) rather than naively post-training quantized (PTQ):

A central architectural observation from TerEffic and TENET was how naturally discrete low-bit weights map onto 6-input FPGA Lookup Tables (LUT6, 2^6 = 64 truth-table entries) without instantiating DSP floating-point multipliers.

Domains 2–7: Distinct Ternary TCAM Substrates, Arithmetic, QUIC, Telemetry & ISLE

The remaining six sections surveyed adjacent systems building blocks, keeping distinct device technologies separated:

Domain 2 — Ternary Vector Search & Two Distinct TCAM Hardware Regimes:
  • Ternary/1.58-bit Matryoshka embeddings: >96% recall retention at 10-16x smaller RAM footprint.
  • Regime A (Room-Temp 28 nm CMOS FPGA): Xilinx Artix-7 SRAM-emulated ER-TCAM — ~222M ternary
    wildcard searches/sec at ~293 ns latency (watt-scale board power; nanojoules per search).
  • Regime B (4 K Cryogenic Superconducting Circuit): SQUID / Josephson-junction ternary TCAM cell
    simulation — ~26.5 aJ cell switching energy (excludes ~300-1,000 W/W 4 K cryocooler overhead!).

Domain 3 — Balanced Ternary Arithmetic & Multi-Valued Device Physics:
  • Balanced ternary {-1, 0, +1} exhibits unbiased truncation rounding (zero DC rounding bias).
  • Ternary Wallace-tree multiplier papers reported 27.5% lower Power-Delay Product (PDP) at 800 MHz
    on multi-threshold CNTFET / 2D-material SPICE models (pre-commercial device simulation).

Domains 4 & 5 — Multipath QUIC Transport & Ultra-Low-Bitrate Neural Codecs:
  • Multipath QUIC (IETF draft), Media over QUIC (MoQ), and L4S low-queue-delay congestion (RFC 9330).
  • 2-3 kbps neural audio/avatar codecs (EnCodec, Lyra, keypoint deltas) vs. raw video bitstreams.

Domains 6 & 7 — Hardware Power Telemetry & Cranelift ISLE Lowering:
  • Surveyed Linux Intel/AMD RAPL (`powercap`), `zeus-apple-silicon`, and macOS `IOReport`/`powermetrics`.
  • Mapped Cranelift's `ISLE` term-rewriting DSL for packing 5 trits per 8-bit byte (`3^5 = 243 <= 256`).

Radix Arithmetic, Un-Merged TCAMs & QAT Scope Errata (2026-11-25 Audit)

  1. Correcting "3-Trit / 6-Bit 64-State" Radix Arithmetic (3^3 = 27, NOT 64!):
    • An earlier retrospective note on this page carelessly wrote “3-trit/6-bit biological-style 64-state codon addressing.” That conflates base-3 and base-4/base-2 exponentiation:
      • 3 trits span 3^3 = 27 states (NOT 64!).
      • 6 binary bits (2^6 = 64, the address width of a hardware LUT6) or 3 quaternary base-4 symbols (4^3 = 64, biological {U, C, A, G} RNA codons) span 64 states.
      • When 3 trits are stored using a standard 2-bit-per-trit binary encoding (00 = 0, 01 = +1, 10 = -1, 11 = unused/guard) to drive a 6-input LUT6, the 3-trit tuple occupies 27 valid ternary states out of the 64 physical LUT6 truth-table entries (leaving 37 unused/fault-trap bit patterns—whereas byte-level 5-trit packing uses 3^5 = 243 of 2^8 = 256 states, 94.9% density).
  2. Un-Merging the Two Separate TCAM Architectures (293 ns CMOS FPGA vs. 26.5 aJ 4 K Josephson Cell):
    • An earlier one-line summary compressed Domain 2 as “26.5 aJ/293 ns ternary TCAM search,” inadvertently implying a single device achieved both numbers simultaneously! In reality, they come from two completely incompatible physical substrates:
      • 293 ns (~222M searches/s) was measured on a room-temperature 28 nm CMOS Xilinx Artix-7 FPGA emulating ternary ER-TCAM in block/LUT SRAM at watt-scale board power (~nJ per lookup).
      • 26.5 aJ per match cell came from a 4 K cryogenic superconducting Josephson-junction / SQUID circuit study—a single-cell Josephson switching energy that omits the ~300–1,000 W of room-temperature wall-plug refrigeration power required per 1 W of 4 K cooling lift.
  3. Mandatory Training-From-Scratch (QAT) Requirement for 1.58-Bit LLMs:
    • Unlike INT8 or INT4 post-training quantization (PTQ), collapsing pretrained FP16/BF16 transformer weights directly to ternary {-1, 0, +1} severely degrades accuracy. Achieving BitNet b1.58 / 2B4T parity requires Quantization-Aware Training (QAT) with straight-through estimators (STE) and absmean/absmax per-tensor scaling from scratch across trillions of training tokens, paying substantial upfront GPU training energy (est_j) that only amortizes over high-volume inference deployments.

Chronological Evolution Within OpenIE Research

  1. First-Party Inline DC Shunt Measurements (64-Codon LUT6 Nucleus): Transitioned from citing external est_j papers to metering our own 6-bit (2^6 = 64-entry) LUT6 boolean primitives and Antisym-40 zero-multiply ternary kernels (27-of-64 2-bit-coded 3-trit groups and native 6-bit boolean codons in openIE-dev/tei-ternaryOS) via external inline DC board shunts (measured_j) on NVIDIA Jetson Thor (125–176 nJ per inference, 1.65x ternary efficiency gain) and 38 ns deterministic MCU execution.
  2. Compiling Stabilized Sub-Networks Into LUT6 Tables (Downward LUT6 Compilation): Bypassed full-model 4T-token QAT retraining by compiling bounded, stabilized reflex sub-graphs into 64-entry LUT6 tables (970 MB active streaming RAM on a 34.66B stack).

Changelog (2026-11-25)


Canonical Provenance, Primary Artifacts & Independent Replication