Below 3 bits per weight, neural networks lose accuracy abruptly. They survive only if different layers or channels get different numeric formats: ternary here, 4-bit there, a small lookup table of values somewhere else. Each format a chip supports natively costs silicon and adds control logic to pack and unpack the bits. Each format it lacks forces either a slow software emulation or a worse format choice. Today this question is settled by hand. One RISC-V cluster builds in 2, 4 and 8 bits. Another builds in only ternary. Search methods then allocate bit-widths assuming whatever menu the hardware happens to offer. This proposal treats the menu itself as the design variable. We will measure the real silicon and energy cost of each candidate format on a programmable RISC-V cluster, then search over small "format palettes" (sets of formats the hardware supports). For each palette, we compute the best accuracy reachable at a fixed energy budget.
The search stays tractable because it splits in two. The outer search covers which formats to build, at most a few hundred palettes. The inner search assigns a format to each layer given a palette, which is a cheap budgeted allocation once sensitivities are known. The practical result is a curve for format flexibility, analogous to what a prior study measured for loop-mapping flexibility. It would tell a processor designer how much accuracy each extra supported format buys, and which two or three formats recover most of the cliff.
Core Claim
We hypothesize that the accuracy cliff on a programmable edge processor is set mostly by the palette of supported formats, and less by how finely bits are allocated within a palette. We further expect returns to diminish quickly. A small, well-chosen palette of two or three formats should get within a small margin of the accuracy-at-energy of supporting all candidate formats. The best palette should also differ from the hand-picked ones in existing silicon.
The analogy is A Formalism of DNN Accelerator Flexibility. That paper formalizes accelerator flexibility along tiling, loop order, parallelism and array shape, and finds that full flexibility costs under 1% area. Partial flexibility in that study captures 12% to 57% of the benefit. It assumes fixed INT8/FP16 arithmetic, so precision is not one of its axes. We add representation as a measured flexibility axis.
We do not expect the near-free result to carry over. Its flexibility comes from cheap address and control logic. Format flexibility below 3 bits requires unpacking logic for non-power-of-two widths, and the file flags this logic as a threat to reintroduce pipeline stalls and area growth. Whether that threat is real is an empirical question, and the experiments are built to answer it.
Where the Pieces Come From
Two hardware works motivate the gap, because each fixes its palette by hand. Flex-V is an 8-core RISC-V cluster. It handles 2-, 4- and 8-bit operands by storing the format in a control register instead of adding opcodes, reaching 3.26 TOPS/W at 5.6% cluster area. It takes per-layer bit-widths from an external tool. xTern adds ternary instructions with 5-trit-per-byte packing. That gives 67% more throughput than 2-bit kernels at 0.9% area, and up to 1.6 points higher CIFAR-10 accuracy than 2-bit networks at equal latency. It supports only ternary.
Taken together, these two papers suggest the choice of format moves accuracy and energy by margins comparable to the allocation itself. Neither asks what the right set of formats is.
The search side supplies methods but assumes the menu. ScaleBITS allocates bit-widths greedily using gradients taken on the quantized model, with hardware-aligned blocks. Its hardware is an abstract GPU-tile proxy. AlphaQ allocates bits from spectral statistics of the weights without calibration data, and treats cost as linear in bits. FLIQS runs a one-shot reinforcement-learning search over integer and floating-point formats down to 4 bits. We reuse ScaleBITS-style sensitivity estimation as our inner allocator. The difference is that we replace its cost proxy with measured cycle and energy tables, and we put the palette in the outer loop.
The closest work is JAQ. It jointly searches CNN architecture, quantization policy and parameters of a fixed BitFusion accelerator template. To make this feasible it uses two tricks: CSQ, which limits multi-precision simulation to sensitive channels (5× less memory), and BatchTile, which cuts hardware evaluation from about 30 s to 0.15 s per iteration. JAQ searches the sizes of a fixed-function ASIC with fixed operand modes. It never decides which formats a programmable processor should decode, and it stops at 2–4-bit integers. JAQ also shows that bit-width search unguided by real hardware constraints drifts toward allocations that execute badly. We take that as a constraint on our design: the inner allocator must use measured costs.
Format geometry comes from the quantization literature, which supplies candidate formats rather than competitors. FineQ stores 2-bit clusters of three weights with 3-bit outliers, giving 14.95 C4 perplexity on LLaMA-2-7B at 2.33 bits. CRVQ uses a 1-bit codebook with an extended codebook for about 2% of critical channels. QuIP applies random orthogonal rotations so that outliers spread evenly before 2-bit rounding. SySMOL trains with "bimodal palettes" mixing 1–4-bit and 4–8-bit formats on commodity CPUs and GPUs. It is the nearest precedent for the palette idea, but there the palette is a fixed training choice on fixed hardware, not a priced hardware decision.
Research Program
Format candidates. The program has three parts. The first builds a set $F$ of about nine candidate formats as RTL extensions to an open RI5CY-based PULP cluster:
- binary;
- ternary with 5-trit packing;
- 2-bit, 3-bit (non-power-of-two packing), 4-bit and 8-bit uniform integers;
- a FineQ-style cluster format;
- a 4- or 16-entry codebook-lookup format in the spirit of CRVQ;
- a sign-flip-plus-Hadamard rotation mode as the cheapest hardware form of QuIP's incoherence processing.
Cost measurement. Each format gets a fused multiply-accumulate-and-load path following Flex-V, and an unpacker attached to the load stream. For the unpacker we borrow the decoupled stream registers of Snitch, which feed operands from memory without explicit load instructions and keep its FPU above 94% busy on GEMM. We synthesize every subset of interest in one technology. From cycle-accurate simulation we record the following, which together form the cost model:
- area $A(P)$ of a palette $P \subseteq F$, including shared datapath, so costs are not simply summed;
- cycles and energy per MAC for each format;
- the stall cost of switching formats between adjacent layers, which is the control-register hazard the file attributes to Flex-V-style statefulness.
Two-level search. The second part is the search. For a palette $P$, an energy budget $E$ and per-layer sensitivity estimates, the inner problem assigns each layer $l$ a format $f_l \in P$. It minimizes $\sum_l s_l(f_l)$, where $s_l(f)$ is the estimated loss increase of layer $l$ under format $f$. The constraint is $\sum_l e_l(f_l) + \sum_l c(f_l, f_{l+1}) \le E$, where $e_l$ is measured layer energy and $c$ is the measured switching cost. Because the switching term only couples neighbouring layers, this is a chain-structured knapsack. Dynamic programming over layers and a discretized budget solves it exactly in seconds.
The outer problem enumerates palettes with $A(P) \le A_{\max}$. With nine formats there are at most 512 palettes, so exhaustive enumeration is feasible. This replaces the $K^L$ per-layer space the file describes with a few hundred inner solves.
Validation and the flexion curve. The third part re-checks the inner estimates. The top palettes by estimated accuracy, about ten per model, get full quantization-aware training under their allocations and are deployed end to end on the simulated cluster. We then plot a flexion curve: verified accuracy at fixed energy against palette area and palette size. We also report which formats recur in the best palettes across models.
Baselines
Naive reference. The do-nothing reference is uniform 8-bit and uniform 4-bit on the unmodified cluster. These show how much there is to gain at all.
Hand-picked palettes. We run the existing silicon choices through our own inner allocator, trained with the same quantization-aware training budget and measured on the same simulator, so that only the palette differs:
- the Flex-V palette {2, 4, 8};
- the xTern palette {ternary, with 8-bit for first and last layers};
- SySMOL's bimodal palette.
Flex-V is the strongest hand-picked competitor because it is real fabricated hardware covering the widest mixed-precision range on this exact cluster. Beating it means higher Top-1 at equal measured energy, or equal accuracy at lower energy, by more than seed variance across three training runs.
Prior search methods. The strongest existing search competitor is JAQ-style joint search. We re-implement JAQ's CSQ and BatchTile over our measured cost tables, so JAQ sees the same formats and costs but searches per-layer jointly in one differentiable pass with a matched GPU-hour budget. Beating it means matching or exceeding its accuracy-energy frontier with a smaller search cost.
Cost-model ablation. This ablation isolates the key ingredient by running the identical two-level search with AlphaQ's linear bits-as-cost proxy instead of measured tables. If the chosen palettes and verified results do not change, measured costs were not needed.
Reference numbers. On CIFAR-10, xTern reports ternary networks up to 1.6 points more accurate than 2-bit at equal latency, and SySMOL reports FP32 parity at 2.23 average bits. On ImageNet, JAQ reports roughly 7% higher Top-1 than Auto-nba. I found no reported result on Lacuna for raw Flex-V MobileNetV1 ImageNet Top-1, so we will measure that baseline ourselves. For the secondary language-model check, FineQ reports 14.95 C4 perplexity on LLaMA-2-7B at 2.33 bits against 863.87 for 2-bit GPTQ.
Why not just…?
Why not just support every format, since TOPS found flexibility nearly free? This is the most serious threat. If the full palette costs a few percent of area with negligible energy overhead, the answer to the title question is "all of them," and the search is moot. That would still be a useful measured result, and the area sweep in the first part of the program will show it directly. The evidence against assuming it is that TOPS-style flexibility is address and loop logic, whereas sub-3-bit formats need per-format unpackers and lookup paths. Flex-V's single core already grows about 30% over RI5CY for just three formats. We will report the full-palette point on every curve, so readers can see whether the knee exists.
Why not just run a good per-layer mixed-precision search on Flex-V's existing formats? That is exactly the Flex-V baseline. If searched palettes beat it by less than seed variance, palette choice does not matter and the claim fails.
Why not just use QuIP-style rotation with a single 2-bit format everywhere? Rotation removes the outlier problem without format diversity. QuIP reports 6.33 versus 123.91 WikiText-2 perplexity for GPTQ on LLaMA-2-70B. Its results are on large language models with weight-only quantization, where rotation is applied offline, and FineQ argues that rotation destroys channel locality. Our rotation mode is a palette member, so the single-format palette {rotated 2-bit} is evaluated directly against mixed palettes at equal energy.
Why not just do JAQ-style joint differentiable search? JAQ needed CSQ and BatchTile just to fit a fixed template. Adding palette choice multiplies the space again. Our matched-budget comparison will show whether decomposition loses accuracy relative to joint search, or only saves compute.
Proposed Experiments
Primary experiments. These run on ResNet-20 and CIFAR-10, MobileNetV1 on ImageNet (the models Flex-V evaluates), and DVS128 Gesture (used by xTern). Energy comes from the synthesized cluster and cycle-accurate simulation. We sweep area budgets from 0% to 10% of cluster area and energy budgets matched to uniform 4-bit and uniform 2-bit.
Decisive checks. The hypothesis has four parts, and each has a test:
- Fast saturation. The best palette of size at most three must reach within one Top-1 point of the full-palette frontier on each model. If it does not, flexibility does not saturate quickly.
- Beating hand-picked silicon. The searched palette must beat the Flex-V and xTern palettes at equal energy. If it does not, existing silicon already chose well.
- Measured costs matter. The measured-cost search must pick different palettes than the linear-proxy ablation, and those palettes must verify better. If not, cost realism is unnecessary.
- Inner estimates rank correctly. The inner allocator's predicted ranking of palettes must correlate with verified post-training accuracy, with Spearman correlation above 0.7. If it falls below that, the decomposition is not trustworthy and the outer search must use real training.
Secondary transfer check. We apply weight-only allocation to LLaMA-2-7B on C4, using the same per-format cost tables scaled to a larger cluster. The question is whether the palettes that win for edge CNNs also win at the language-model perplexity cliff, with FineQ's 14.95 as the reference point. Divergence here would itself show that format palettes must be workload-specific, which a designer would want to know before committing silicon.
References
- A Formalism of DNN Accelerator Flexibility
- A 3 TOPS/W RISC-V Parallel Cluster for Inference of Fine-Grain Mixed-Precision Quantized Neural Networks
- xTern: Energy-Efficient Ternary Neural Network Inference on RISC-V-Based Edge Systems
- ScaleBITS: Scalable Bitwidth Search for Hardware-Aligned Mixed-Precision LLMs
- AlphaQ: Calibration-Free Bit Allocation for Mixture-of-Experts Quantization
- FLIQS: One-Shot Mixed-Precision Floating-Point and Integer Quantization Search
- JAQ: Joint Efficient Architecture Design and Low-Bit Quantization with Hardware-Software Co-Exploration
- FineQ: Software-Hardware Co-Design for Low-Bit Fine-Grained Mixed-Precision Quantization of LLMs
- CRVQ: Channel-Relaxed Vector Quantization for Extreme Compression of LLMs
- QuIP: 2-Bit Quantization of Large Language Models With Guarantees
- SySMOL: A Hardware-software Co-design Framework for Ultra-Low and Fine-Grained Mixed-Precision Neural Networks
- Snitch: A Tiny Pseudo Dual-Issue Processor for Area and Energy Efficient Execution of Floating-Point Intensive Workloads