VIEW THIS AS

Auto mode follows the Route Engine until you choose a viewpoint.

YOU ARE HERE

ROUTE CHECK

CONNECTED TO

WHAT NEXT

Use the canonical route for this room, or HELP if you are unsure.

How Lossy Works | Quantisation — When Infinite Shades Become Finite Steps

Three secondary students review open books and notes together in a classroom.

Imagine a ruler that can report only whole centimetres.

A pencil is 12.1 cm long.

Another is 12.4 cm.

A third is 12.49 cm.

The ruler reports all three as 12 cm.

Nothing mysterious has happened. The measuring world was finer than the reporting world.

That is quantisation.

Quick Read

Quantisation maps a continuous-valued or high-resolution signal into a finite set of output levels. It is fundamental to analogue-to-digital conversion, digital audio, imaging, communication systems and modern machine-learning compression. Once several input values map to the same reconstruction level, the original distinctions among them are no longer recoverable from that code alone.

IEEE describes quantisation in exactly this general form: mapping a continuous-valued or high-resolution discrete signal to a finite set of output levels, with quantisation error defined by the difference between the original input and its quantised approximation.

One-sentence answer: quantisation is lossy because a richer range of possible values is deliberately collapsed into fewer representable levels so a finite digital system can store, transmit and compute with them.

The Deep Problem: Digital Systems Cannot Store an Infinite Continuum

The physical world gives us quantities such as voltage, light intensity, pressure, distance and time that we often model as continuous.

A digital representation cannot allocate a unique code to every possible real number.

It must choose a finite vocabulary.

With eight bits, one channel can represent 256 distinct code values. With sixteen bits, it can represent 65,536. More bits usually permit finer distinctions across a chosen range, but the number remains finite.

Quantisation is therefore not an unfortunate afterthought. It is one of the mechanisms that makes digital representation possible at all.

Bins, Levels and Reconstruction Values

Think of the input range as a road divided into zones.

Every real value that falls inside one zone is assigned the same digital code or reconstruction value.

That code says, in effect:

I no longer know exactly where inside this interval the original value was. I only know which interval it belonged to.

The narrower the intervals, the more precision survives.

The wider the intervals, the more different realities share one symbol.

Quantisation Error Is Structured Loss

If an input of 12.4 is represented as 12, the error is −0.4.

If 12.6 is represented as 13, the error is +0.4.

Quantisation error is therefore not a philosophical idea. It can be measured as the difference between the original input and the reconstruction level.

But the pattern of error depends on the quantiser. Uniform quantisers use equal-width intervals. Non-uniform quantisers can allocate finer steps where precision is more valuable and coarser steps where it matters less.

The system is not merely losing information. It is deciding where to lose it.

Bit Depth Is a Precision Budget

Suppose two cameras cover the same intensity range.

One records eight bits per channel. Another records more.

The higher-bit-depth system can encode more distinct levels between minimum and maximum, reducing the size of the quantisation steps under comparable assumptions.

That does not guarantee a better photograph. Sensor noise, optics, exposure, processing and dynamic range still matter.

But bit depth determines part of the representational resolution available after capture.

Quantisation Is Not the Same as Sampling

Sampling asks when or where do we observe?

Quantisation asks with how many possible values do we describe each observation?

A signal can be sampled frequently but quantised coarsely.

Or sampled sparsely but represented with high numerical precision at each sample.

These are separate loss mechanisms and should not be blurred together.

Quantisation Is Not the Same as Dynamic Range

Dynamic range asks how wide a span of weak-to-strong values the system can usefully represent.

Quantisation asks how finely that span is divided.

A system can cover a huge range with coarse steps, or a narrow range with very fine steps.

Range and resolution are related engineering choices, not synonyms.

Audio: Why Quiet Signals Reveal the Steps

Digital audio converts continuously varying electrical signals into sampled, quantised values.

At sufficiently fine resolution, the quantisation error is small relative to the signal and other noise sources.

At coarse resolution, low-level signals can become visibly—or audibly—stair-stepped and distorted because the available levels are too widely spaced.

This is especially revealing near quiet passages, where a fixed step occupies a larger fraction of the signal.

Dither: Adding Noise to Reduce Structured Error

One of the most beautiful ideas in digital audio is dither.

At first it sounds absurd: add a small amount of noise before quantisation.

Why deliberately make the signal noisier?

Because certain forms of quantisation error can become correlated with the signal and produce structured distortion. Proper dithering randomises that relationship, turning objectionable deterministic artefacts into a more noise-like error.

This teaches a larger lesson: sometimes adding uncertainty at one layer can preserve truthfulness at another.

Images: Banding Is Quantisation Made Visible

A smooth blue sky should change gradually.

If the representation has too few tonal levels, the gradient can break into visible bands.

Each band represents a region of real values collapsed into one or a few codes.

Banding is therefore a visual demonstration of lost tonal resolution.

Compression Uses Quantisation Strategically

Lossy image and audio codecs often transform a signal into a representation where different components can be quantised with different strength.

The cleverness lies in spending precision where the receiver is more sensitive and reducing precision where the cost is lower for the intended task.

This is why quantisation sits at the heart of many lossy codecs without being identical to compression itself.

Compression is the larger problem of representing information with fewer bits. Quantisation is one powerful irreversible operation used to achieve that goal.

Machine Learning: Weights Can Be Quantised Too

Modern machine-learning systems often use quantisation to reduce memory use and accelerate computation.

Weights and activations represented in higher-precision floating-point formats can be mapped into lower-precision integer or floating representations.

The engineering question is familiar: how much precision can be removed before task performance degrades unacceptably?

This is a receiver-dependent distortion question. The receiver is no longer necessarily a human ear or eye. It may be the downstream model task.

A School Grade Is a Quantised Representation

Suppose a detailed performance profile is ultimately reported as A, B, C, D or F.

Many different exact scores map to the same grade.

The grade is useful because it is compact.

It is lossy because a whole interval of performance shares one code.

That is structurally similar to quantisation, even though educational grading is a social decision rather than an analogue-to-digital converter.

Vocabulary Can Quantise Experience

If a person has only “good”, “okay” and “bad” available, many different experiences collapse into three verbal levels.

A richer vocabulary adds representational states.

But language is not simply a digital quantiser. Meanings overlap, depend on context and can be negotiated.

The analogy is useful only at the structural level: more categories can preserve distinctions that a coarse vocabulary merges.

When Coarse Quantisation Is Exactly Right

Not every problem deserves maximum precision.

A room thermostat does not need to report temperature to one millionth of a degree if the control system cannot act on that difference.

A weather icon can represent “rain” without preserving every droplet.

A traffic light needs three operational states, not a continuous philosophical description of right-of-way.

Coarse quantisation is efficient when the lost distinctions do not matter to the task.

When Coarse Quantisation Becomes Dangerous

Danger appears when the task changes but the representation does not.

A grade that was sufficient for reporting becomes insufficient for diagnosis.

A compressed image that was sufficient for display becomes insufficient for forensic detail.

A coarse sensor reading that was sufficient for routine monitoring becomes insufficient near a safety threshold.

The representation is not intrinsically bad. It is being asked a question finer than the distinctions it preserved.

A Practical Quantisation Audit

  • Input range: what values could exist before quantisation?
  • Levels: how many distinct outputs are available?
  • Step size: how much variation collapses into one code?
  • Task: which distinctions matter to the receiver?
  • Noise: is the quantisation error small relative to other uncertainty?
  • Edges: do threshold boundaries create unstable classifications?
  • Recovery: is a higher-resolution source retained?

Quantisation Changes the Geometry of Error

Before quantisation, two nearby values can remain distinct. After quantisation, every value inside one cell becomes the same code. That changes the geometry of the problem. Error is no longer simply “a little uncertainty everywhere”; it is organised around boundaries between representable levels.

Near the centre of a quantisation interval, a small perturbation may change nothing at all. Near a boundary, an equally small perturbation can flip the code. This is why coarse representations can look stable in one region and strangely jumpy in another.

Non-Uniform Quantisation: Spend Precision Where It Matters

Equal steps are easy to understand, but they are not always efficient. If a source spends most of its time near one part of the range, a designer may allocate more reconstruction levels there and fewer elsewhere. Speech systems historically used companding for a related reason: weak signals can deserve finer effective resolution than a naive uniform mapping would give them.

The important idea is broader than the engineering implementation. Finite precision is a budget. A smart representation does not merely ask how much precision exists. It asks where precision buys the most useful reduction in distortion.

Vector Quantisation: Sometimes the Unit of Compression Is a Pattern

Scalar quantisation maps values individually. Vector quantisation maps groups of values to representative codewords. The codebook can therefore preserve common multivariate patterns more efficiently than treating every component independently.

This introduces another lesson for readers: the object being quantised matters. If the representation groups values together, information can be preserved in relationships even while individual precision falls. Conversely, a badly chosen grouping can erase a relationship that mattered.

Perceptual Quantisation: Not All Errors Cost the Same

A technically larger numerical error can be less noticeable than a smaller error in a perceptually sensitive region. Lossy media systems exploit this by shaping quantisation according to properties of human vision and hearing.

This is why “error size” is not enough. We also need a distortion model. Which errors are visible? Which are audible? Which alter recognition? Which change a scientific conclusion? The receiver determines the cost function.

Scientific Instruments: More Digits Do Not Defeat Quantisation Automatically

An analogue-to-digital converter may offer many output levels, but the usable resolution of the measurement can still be limited by sensor noise, calibration uncertainty, drift and the analogue front end. A 24-bit file does not guarantee 24 bits of trustworthy information about the world.

This distinction protects us from a recurring mistake throughout the Lossy series: confusing representation capacity with evidence quality. More codes can preserve finer distinctions only if the upstream system can actually resolve them.

Quantisation and Thresholding Meet at Every Boundary

A quantiser is built from decision boundaries. Each boundary asks which reconstruction level should receive the incoming value. Thresholding therefore sits inside the quantisation mechanism, but the two articles own different reader jobs.

Thresholding studies the consequences of converting evidence into decisions. Quantisation studies the consequences of converting a rich numerical space into finite representable levels. One may be binary; the other may have thousands of levels. Both reveal how a boundary can magnify tiny differences near its edge.

Why More Bits Eventually Stop Helping

If quantisation error is already far below sensor noise, adding more representable levels may increase file size or computation without adding meaningful information about the source. The limiting factor has moved upstream.

This is the same reason a ruler marked in picometres does not make a shaky hand capable of measuring a classroom desk to picometre accuracy. Resolution must be matched across the whole chain.

A Thought Experiment: The 256-Word World

Imagine that a community is allowed exactly 256 descriptive words for colour, emotion, weather, motion, taste and danger combined. Every experience must map to one of those 256 codes.

The system could still communicate. It might become astonishingly efficient. But many distinctions would collapse. A rare poison and an ordinary bitterness might share one word. A mild sadness and grief might share another. The problem is not that the codes are wrong. The problem is that the receiver cannot ask for distinctions the vocabulary never preserved.

Now expand the vocabulary to 65,536 terms. Finer distinctions become possible, but learning and retrieval cost rise. The thought experiment reveals the trade-off behind every finite codebook: expressive resolution versus operational burden.

Primary to Secondary: How Students Can Feel Quantisation Before They Know the Word

A Primary student encounters it when a score is converted to a grade band. A Secondary student encounters it in significant figures, digital images, data logging, graphs and grouped statistics. Later, the same idea appears in signal processing, coding theory, numerical methods and machine learning.

The powerful teaching move is to connect these experiences. The child already understands the shape of the problem: many slightly different things can become one label. Mathematics then gives the intuition a formal language.

Counterexample: Quantisation Is Not Always Harmful Compression

If a decision only depends on whether room temperature is roughly comfortable, representing 23.417°C and 23.421°C differently may be pointless. Collapsing them into the same control state can improve robustness.

Loss is harmful only when the discarded distinction matters to a later task. A well-designed quantiser can remove useless sensitivity and make a system more stable.

Counterexample: More Levels Can Make a System Worse

A dashboard that shows every micro-fluctuation can encourage overreaction. A grading rubric with hundreds of tiny categories can become impossible to apply consistently. A model with high-precision weights may consume more memory and energy with negligible task gain.

Resolution is not virtue by itself. Useful resolution is the virtue.

The Human Question Beneath Quantisation

Every finite representation eventually confronts the same decision: which differences deserve to remain different?

That question appears in cameras, exams, maps, datasets, language and institutions because no receiver can carry the full world at infinite precision. Quantisation is the engineering version of a universal cognitive problem.

Sources and Further Reading

  • IEEE Technology Navigator, Quantization (signal), for the core engineering definition and quantisation-error framing.
  • Foundational digital-signal-processing literature on scalar and vector quantisation.
  • Audio-engineering literature on bit depth, quantisation noise and dithering.
  • Machine-learning literature on low-precision inference and model quantisation.

Continue Through eduKateSG

Continue with How Lossy Works | Sampling, How Lossy Works | Resolution, and How Compression Works. Sampling chooses observations. Quantisation chooses representable levels. Compression decides how economically the resulting information can be carried.

Final Thought: Every Code Has Neighbours It Cannot Tell Apart

Digital systems are powerful because they replace infinitely fine possibility with finite symbolic states.

That replacement is not a weakness.

It is the bargain.

The intelligence lies in choosing which distinctions deserve their own code.

Discover more from eduKate Singapore

Subscribe now to keep reading and get access to the full archive.

Continue reading