Why 4-bit AI loses precision and how Trainium4's trellis coding recovers nearly all of it
Amazon's Ron Diamant explains that standard 4-bit quantization wastes bits because its grid shape does not match the actual distribution of model weights. Trainium4's computed-permutation trellis coding quantizes up to 256 numbers together in high dimensions, reaching 98% effective precision and compressing the KV cache by 3.5x, all in hardware with near-zero overhead.
When a model is served with 4-bit weights, the full range of values is divided into 16 intervals and every value in an interval rounds to a single representative. That rounding always loses something. Amazon vice president and distinguished engineer Ron Diamant, speaking at AWS re:Invent 2026, laid out exactly how much is lost and how Trainium4's hardware recovers nearly all of it.
The problem is geometric. Model weights cluster near the center of their distribution, with only a few in the tails. A uniform quantization grid spends as many intervals on rare tail values as on common central ones. Diamant showed that this yields an effective-precision score of 78%—roughly three bits of useful information out of four. Non-uniform spacing, which assigns more intervals to the center, improves the score to 84%. But Diamant pointed out that even non-uniform grids leave wasted corners: because quantization happens in one dimension and then maps to two, the encoding still allocates capacity to regions where almost no data points land.
The fix is to quantize in higher dimensions from the start. Diamant described Trainium4's computed-permutation trellis coding (CPTC) as following the actual shape of the data cloud rather than imposing a square or hexagonal grid on it. CPTC quantizes up to 256 numbers together and supports any data type from 1 to 6 bits. At four bits, this reaches 98% effective precision—what Diamant called A+ work. The practical consequence is a genuine choice for developers: either get higher model quality at four bits, or drop to three bits and get cheaper, faster tokens with quality similar to existing 4-bit formats.