01 • What quantisation means

Precision traded for performance.

Quantisation takes a neural network trained with 32-bit floating-point arithmetic and maps its weights and activations to lower-precision formats — FP16, INT8, INT4, or even 1-bit.

Every neural network inference is dominated by multiply-accumulate operations. Each weight is stored as a 32-bit float, occupying 4 bytes of memory and consuming substantial energy when the processor reads it. Quantisation addresses this by asking: can we represent this weight with fewer bits and still get an acceptable answer?

The mathematics work like this. A floating-point value x is mapped to a quantised integer x_q using a scale factor S and a zero-point Z: x_q = clip(round(x / S + Z)). When the model actually runs, those integers are dequantised back: x ≈ S × (x_q − Z). The gap between the original value and the recovered approximation is quantisation error — information that cannot be recovered. It accumulates through every layer.

Two approaches dominate practice. Post-training quantisation (PTQ) applies after training is complete, using a small calibration dataset — typically around 200 representative samples — to determine optimal scale factors. It requires no retraining, which is why it is the preferred route for large language models. Quantisation-aware training (QAT) integrates simulated quantisation into the training loop itself, exposing the network to quantisation effects during learning. PyTorch benchmarks show QAT recovers up to 96% of accuracy degradation compared to PTQ on standard benchmarks.

02 • The vocabulary of compression

Terms you will encounter in the field.

TermWhat it meansWhy it matters
Bit-widthNumber of bits used to represent each value. FP32 = 32 bits, INT8 = 8 bits, binary = 1 bit.Lower bit-width means smaller models and faster inference — at the cost of precision.
Dynamic rangeThe span of representable values. FP32 covers ±3.4×10³&sup8;; INT8 spans only −128 to 127.Narrow range forces outliers to be clipped, degrading accuracy.
Scale factor (S)The step size between adjacent quantised integers.Determines how finely the numerical range is divided — too coarse and you lose information.
Zero-point (Z)Ensures floating-point zero maps exactly to an integer in asymmetric quantisation.Incorrect zero-point mapping causes systematic bias in inference output.
PTQ vs QATPost-training quantisation versus quantisation-aware training.PTQ is faster; QAT is more accurate, especially below INT8.
Per-tensor vs per-channelWhether a single scale factor covers an entire tensor or each output channel has its own.Per-channel is more accurate but uses more memory.
CalibrationThe process of finding optimal scale factors and zero-points from representative data.Poor calibration amplifies quantisation error — especially when distributions are skewed.
Straight-Through Estimator (STE)A mathematical trick that approximates gradients through non-differentiable rounding during QAT.Without it, gradients through the rounding function are zero, making training impossible.
03 • The critical difference

Same word. Worlds apart.

The honest answer is: it depends entirely on which kind of binarisation you mean.

Weight binarisation — constraining a neural network’s weights to binary values of +1 or −1 — is indeed an extreme form of quantisation. It sits at the far end of the spectrum: FP32 → FP16 → INT8 → INT4 → binary. The same Straight-Through Estimator used across INT4 and INT2 also applies here. These are Binary Neural Networks (BNNs), and they inherit the same trade-off as every other step down the precision ladder — you gain efficiency, you give up accuracy. On ImageNet, XNOR-Net AlexNet achieved 44.2% top-1 accuracy versus 56.6% for the full-precision original — a gap of more than twelve percentage points.

Data binarisation is something else entirely. Rather than reducing the precision of existing numerical values, it transforms continuous input features into binary logical propositions — true-or-false statements that enable propositional logic reasoning. A temperature of 38.5°C does not become a less precise number. It becomes the proposition: “temperature_above_37 = TRUE.”

Quantisation compresses a value into fewer bits — the value still represents the same quantity, just with less precision. Data binarisation changes what is being represented entirely — from a number to a logical proposition. This is not lossy compression. It is a different language.

This is the binarisation that Tsetlin Machines and Logic-Based Networks use. The purpose is not approximation. It is a transformation from the numerical domain to the logical domain — unlocking propositional logic as the engine of inference, rather than matrix multiplication.

04 • Two techniques compared

What each does. How each works. Where each wins.

Quantisation

What it is

  • Reduces the numerical precision of neural network weights and activations
  • Compresses FP32 values to INT8, INT4, or binary (1-bit BNN)
  • Applied to a trained model (PTQ) or integrated during training (QAT)
  • Produces a smaller, faster version of the same neural network architecture
  • Requires calibration data to determine optimal scale factors and zero-points

Examples

  • INT8 inference for MobileNet on a smartphone — <1% accuracy loss
  • GPTQ INT4 for LLaMA-3 on a single GPU — 2.69× throughput improvement
  • TensorFlow Lite INT8 model running on an ARM Cortex-M3 with 16KB runtime
  • NVIDIA TensorRT FP8 for BERT — 1.7× speedup over INT8

Data Binarisation (LBN)

What it is

  • Transforms continuous input features into binary logical propositions
  • Methods include thresholding, thermometer encoding, and multi-threshold binarisation
  • Not compression — a representational transformation into the logical domain
  • The native input format for Tsetlin Machines and Logic-Based Networks
  • Enables propositional logic inference — no matrix multiplication required

Examples

  • Temperature 38.5°C → “temperature_above_37 = TRUE”
  • Vibration level 4.2g → “vibration_above_3g = TRUE, above_5g = FALSE”
  • Sound frequency 3.2kHz → thermometer-encoded as a sequence of logical propositions
  • Sensor fusion across 12 data channels on an ARM Cortex-M7 — 4µs inference, 4kB footprint
05 • The quantisation spectrum

Fewer bits. Less accuracy. Until it isn’t a trade-off anymore.

The gains from quantisation are real, and well understood. So are the limits.

PrecisionBitsSize vs FP32Typical speed gainAccuracy impactHardware requirement
FP32321× (baseline)1× (baseline)BaselineFloating-point unit required
FP16162× smaller1.5–2×NegligibleGPU with FP16 support
INT884× smaller2–4×<1% for most modelsInteger ALU — widely available
INT448× smaller2–4× over INT81–6% depending on modelEmerging specialised kernels
Binary (BNN)132× smaller10–58× (XNOR+popcount)10–30% on complex tasksXNOR gates; no FPU needed
LBN (native binary)1100–1,000×+ smaller54× benchmarked±2% — no degradationAny CPU, MCU, or 32-bit chip

The last row is not a more extreme version of what came before it. Logic-Based Networks are not Binary Neural Networks optimised further. They are a different architecture operating on a different computational foundation — which is precisely why the accuracy column reads differently.

06 • When to use quantisation

The right tool, in the right place.

Quantisation is the production workhorse of neural network deployment. INT8 is reliable, widely supported, and delivers genuine gains with minimal pain.

At INT8, post-training quantisation typically introduces less than 1% accuracy loss. The 70B-parameter Qwen3 model shows only a 0.04% accuracy drop at INT8 — essentially statistical noise. Model size drops 4×. Inference energy drops 18–30× per operation versus FP32, according to Dally (2015). This is the sweet spot, and it has broad hardware support: NVIDIA Tensor Cores, ARM NEON, and Intel VNNI all accelerate INT8 natively.

Reach for quantisation when:

  • You have an existing neural network that you cannot retrain from scratch
  • The model is destined for a GPU, mobile phone, or server — not a constrained MCU
  • You need to reduce VRAM requirements to serve a large language model on fewer GPUs
  • Accuracy loss of 1–6% is acceptable — and you have the benchmark infrastructure to verify it
  • INT8 precision suffices; the significant complications begin below INT8

The 176B-parameter BLOOM model, which in full FP32 precision requires eight 80GB GPUs, runs on a single machine with INT8 quantisation. For LLM inference at scale, that is a compelling case.

07 • When to use data binarisation

Not compression. Constitution.

Data binarisation is not a shortcut applied to an existing model. It is the foundation of a different approach to building AI — one designed from inception for the hardware that most of the world actually uses.

The industrial world is full of edge devices that will never run a GPU. Microcontrollers, sensor nodes, low-power IoT hardware — these chips have kilobytes of RAM, not gigabytes. They run on coin-cell batteries. A neural network, even an aggressively quantised one, is simply the wrong architecture for this environment. On an ARM Cortex-M4 running at 100MHz with ARM’s own CMSIS-NN optimisations, moderately complex CNN inference takes 100–500ms. For a battery-powered device making decisions every five seconds, that energy cost is prohibitive.

Data binarisation — as the entry point into Logic-Based Network training — is the appropriate choice when:

  • The target hardware is a 32-bit MCU, CPU, or constrained edge device — no GPU, no TPU
  • Battery life is a product constraint, not an afterthought
  • The model must fit in kilobytes, not megabytes
  • The application requires explainable decisions — regulatory environments, safety-critical systems
  • Outputs must be fully deterministic: identical inputs must always yield identical outputs
  • Data arrives as sensor readings, time series, or tabular signals — the native domain of binarisation

A UK water utility deploying IoT sensors across 100,000 sewer sites found that the LSTM model that worked perfectly on paper required £15,000 of mains-power infrastructure per installation. On battery, the sensor lasted three months. An LBN running on the same existing sensor hardware projects a ten-year battery life, making predictions every five seconds, at 455 microjoules per inference. The numbers, as the project brief put it, simply work.

08 • When they work together

Hybrid pipelines. Practical gains.

The two techniques are not mutually exclusive, and some deployment scenarios benefit from combining them in sequence.

The most common hybrid approach uses binary weights alongside quantised activations. Many practical Binary Neural Networks keep activations at 8-bit precision whilst binarising weights, trading a modest accuracy recovery for the bulk of the memory and compute savings.

A sequential pipeline approach applies three stages in order: pruning to remove redundant connections, quantisation to compress remaining weights, and binary layers for the compute-intensive middle sections whilst quantised INT8 layers handle input and output. Research shows batch normalisation parameters in BNNs can be quantised to 4-bit with reasonable trade-offs — below 4-bit, performance degrades significantly.

For Logic-Based Networks, this hybrid question has a different shape. Quantisation in the traditional sense is irrelevant to LBNs — there are no floating-point weights to compress. The complementary technique is instead sparsity optimisation, which removes redundant logical clauses and literals after training. Literal Labs’ ETHEREAL approach achieves up to 87.54% model size reduction through sparsity — applied to a model already operating natively at 1-bit. The result is not a degraded version of a larger model. It is a refined version of a model built to be small.

09 • Challenges and the alternative

Compression has a ceiling. Architecture does not.

Quantisation is a powerful technique with real limitations. Understanding them is the beginning of understanding why a different architecture exists.

Accuracy degradation is non-linear and accelerates sharply below INT8. While INT8 introduces less than 1% accuracy loss on most models, INT4 produces 1–6% degradation depending on the architecture. At INT2 (ternary) and binary, accuracy drops of 10–30% on complex tasks such as ImageNet classification are common. At each step, the problem compounds: INT4 offers only 16 distinct values; binary offers just 2.

Not all layers respond equally. First and last layers — embedding layers, output classification layers, shortcut-connected layers — are typically most sensitive to quantisation. Mixed-precision approaches, assigning different bit-widths to different layers, help but add significant complexity. Sensitivity analysis tools are required to identify vulnerable layers, and even then, optimal per-layer bit-width selection remains an active research problem.

Calibration presents its own difficulties. Outliers in activation distributions consume disproportionate dynamic range, degrading the representation of common values. ReLU’s unbounded positive range is particularly problematic at low bit-widths — most sub-8-bit methods replace it with bounded alternatives like clipped ReLU or learned clipping thresholds.

Hardware support below INT8 remains uneven. Whilst INT8 acceleration is available across NVIDIA Tensor Cores, ARM NEON, and Intel VNNI, INT4 support is still emerging. Binary operations, despite being theoretically simplest, lack optimised CPU instruction sequences — current x86 and ARM ISAs are optimised for FP32 and INT8, requiring multiple instructions for what ought to be simple binary scalar products. The irony: the most extreme compression receives the least hardware support on conventional processors.

The deepest limitation is architectural. Even a heavily quantised neural network still performs matrix multiplication as its core operation. A quantised INT8 model with ten million parameters still requires approximately ten million multiply-accumulate operations per layer. Logic-Based Networks replace that operation entirely — inference becomes AND, OR, and NOT. Every processor on earth handles those natively.

LBNs do not overcome these limitations by doing quantisation better. They sidestep the problem by operating in a fundamentally different computational paradigm. The Tsetlin Machine learns conjunctive logic rules over binarised propositions using game-theoretic automata feedback — not gradient descent, not backpropagation, not matrix multiplication. The learning process converges to Nash equilibria that provably align with optimal propositional formulas, avoiding the local minima that complicate neural network training.

There is no precision to lose. The architecture never used floating-point, so there is no floating-point precision being degraded. Literal Labs’ benchmarking shows an average accuracy variation of ±2% compared to neural networks — and in some decision intelligence applications, LBNs are up to 20% more accurate. The Convolutional Tsetlin Machine achieves 99.51% on MNIST — competitive with state-of-the-art convolutional neural networks.

10 • Frequently asked questions

Common questions.

What is the difference between quantisation and binarisation? chevron

Quantisation reduces the numerical precision of a neural network’s existing weights and activations — from 32-bit floats to 8-bit integers, for example. Data binarisation, as used in Logic-Based Networks, transforms input features into binary logical propositions (true/false statements), enabling an entirely different computational paradigm based on propositional logic rather than matrix multiplication. Quantisation compresses a neural network; data binarisation is the foundation of a different kind of model altogether.

Does quantisation reduce accuracy? chevron

At INT8, the accuracy loss is typically less than 1% and often negligible. Below INT8, the trade-off becomes more significant: INT4 produces 1–6% degradation depending on the model and method. At binary (1-bit) for neural network weights — so-called Binary Neural Networks — accuracy drops of 10–30% on complex tasks such as ImageNet are common. The further you compress, the more the architecture fights its own constraints.

Does data binarisation reduce accuracy in Logic-Based Networks? chevron

No. Logic-Based Networks are designed from inception to operate on binary data — binarisation is not a compression technique applied after training, it is the native input representation. There is no higher-precision version being approximated. Literal Labs’ benchmarking shows an average accuracy variation of ±2% compared to neural networks, and in some applications, LBNs are up to 20% more accurate.

What is INT8 quantisation? chevron

INT8 quantisation maps a neural network’s 32-bit floating-point weights and activations to 8-bit integers. It is the established standard for production deployment — a 4× reduction in model size, a 2–4× inference speedup, and typical accuracy loss of less than 1%. It has broad hardware support across NVIDIA Tensor Cores, ARM NEON, and Intel VNNI. For most neural network applications, INT8 is the practical target.

What is the difference between post-training quantisation (PTQ) and quantisation-aware training (QAT)? chevron

PTQ applies after training is complete, using a calibration dataset to determine optimal scale factors and zero-points. It requires no retraining and is fast to implement. QAT integrates simulated quantisation into the training loop, exposing the network to quantisation effects during learning. QAT is more accurate, especially below INT8, recovering up to 96% of accuracy degradation compared to PTQ. For binary (1-bit) neural networks, QAT — or full retraining from scratch — is unavoidable.

Can quantisation and binarisation be used together? chevron

Yes, in certain pipeline architectures. A common hybrid uses binary weights alongside 8-bit quantised activations, capturing most of the efficiency benefit whilst recovering some accuracy. Sequential pipelines apply pruning, then quantisation, then binary layers for compute-intensive middle sections. For Logic-Based Networks, traditional quantisation is not applicable — the complementary technique is sparsity optimisation, which reduces model size further by removing redundant logical clauses rather than compressing numerical values.

What is a Binary Neural Network (BNN) and how does it differ from an LBN? chevron

A Binary Neural Network constrains a neural network’s weights and activations to binary values (+1/−1), replacing multiply-accumulate operations with faster XNOR-and-popcount operations. It is an extreme form of quantisation applied to a neural network architecture. A Logic-Based Network (LBN) is a different class of model entirely — it uses binary data as logical propositions and reasons via propositional logic rules, not matrix multiplication. BNNs suffer 10–30% accuracy drops on complex tasks because the architecture was designed for floating-point. LBNs do not — because they were designed for binary from the outset.

Why can Logic-Based Networks run on MCUs without a GPU? chevron

Because inference requires only bitwise AND, OR, and NOT operations — no matrix multiplication, no floating-point arithmetic. Every 32-bit processor handles bitwise logic natively. Neural networks, quantised or otherwise, still require multiply-accumulate at their core, which demands either a floating-point unit or specialised integer acceleration. LBN model code sizes are measured in kilobytes — the MLPerf Tiny benchmark produced a 7.29kB model — making deployment on coin-cell-powered MCUs entirely feasible.

What is thermometer encoding in data binarisation? chevron

Thermometer encoding is a method of transforming a continuous numerical value into multiple binary propositions whilst preserving ordinal relationships. Rather than a single threshold (above/below 37°C), a thermometer-encoded temperature might produce propositions at multiple thresholds: above 35°C, above 37°C, above 39°C — each independently true or false. Research shows thermometer encoding can produce accuracy differences of more than 20% compared to naive single-threshold binarisation, making the choice of encoding method significant.

When should I choose an LBN over a quantised neural network? chevron

Choose an LBN when the deployment target is a constrained 32-bit MCU or CPU — no GPU or specialist accelerator available — or when battery life, model size in kilobytes, inference latency in microseconds, or explainability of decisions are genuine product requirements. Choose quantised neural networks when you have an existing trained model you cannot replace, are deploying to GPU-capable hardware, or are working on tasks like image recognition and natural language processing where large, pre-trained neural network architectures carry significant advantages.

ModelMill logo mark

Build AI that doesn’t need compressing.

Literal Labs builds Logic-Based Networks designed from inception for constrained hardware — no GPU, no quantisation overhead, no accuracy trade-off. If your deployment environment has limits, get in touch.

Speak to Literal Labs