Denoising

Denoising is removing unwanted random variation, or noise, from an image, sound or other signal; in generative AI it is also the core step by which diffusion models build an image out of pure noise.

Every recorded signal carries some noise: grain in a low-light photo, hiss on a tape, speckles from a faulty sensor. Denoising tries to remove it while keeping the real detail. The difficulty is that noise and fine detail can look alike, so a filter that smooths away grain may also blur edges and texture. Classical methods include the median filter, which is good at removing scattered bright and dark specks, and more refined techniques such as non-local means, which averages similar patches from across an image, and BM3D, which groups similar patches into stacks and filters them together.

Audio has the same problem. In 1966 Ray Dolby introduced the first widely used audio noise reduction system, Dolby Type A, which raised the level of quiet sounds in several frequency bands during recording and lowered it again on playback, cutting noise by up to 10 decibels.

Machine learning changed denoising by learning what clean images look like instead of applying fixed rules. NVIDIA's OptiX AI denoiser, built on a neural network trained on tens of thousands of images rendered from about 1,000 3D scenes, cleans up the grainy images that ray-tracing renderers produce, which cuts the time needed to reach a clean, finished-looking image. It is used in tools including Autodesk Arnold, Redshift, SideFX Houdini and Unity.

Denoising is also how most modern image generators work. In June 2020 Jonathan Ho, Ajay Jain and Pieter Abbeel published Denoising Diffusion Probabilistic Models, which trained a network to remove a little noise at a time from images that had been deliberately corrupted. To generate a new image, the model starts from pure random noise and denoises it step by step until a picture emerges. Later systems such as latent diffusion run the same process in a compressed representation of the image to save computation.

The two uses share a lesson. A learned denoiser fills in what it expects to see, based on its training. That makes it powerful for cleaning up a render or creating an image from nothing, but it also means detail recovered from a very noisy photo is partly the model's best guess rather than a record of what was there.

Common questions

What is denoising in AI?

It means using a trained model to remove noise from data such as images, audio or rendered frames. Unlike fixed filters, a learned denoiser has seen many examples and can separate noise from detail more accurately. The same idea, applied repeatedly, is the engine of diffusion image generators.

How do diffusion models use denoising?

During training, noise is added to images and the model learns to remove it. To generate a picture, the model starts from pure random noise and removes a little at each step, guided by a prompt, until a clean image remains. This approach was set out in the 2020 paper <em>Denoising Diffusion Probabilistic Models</em>.

What is an AI denoiser in 3D rendering?

Ray-tracing renderers build an image from many samples of light, and with too few samples the result is grainy. An AI denoiser such as NVIDIA's OptiX denoiser removes that grain, so artists reach a clean image in much less time. It is built into tools such as Arnold, Redshift and Houdini.

Finding more

Search for "image denoising", "denoising diffusion probabilistic models", "Monte Carlo rendering denoiser" or "BM3D" to explore further. The original papers on arXiv explain the diffusion approach, software makers' developer documentation explains rendering denoisers, and textbooks or encyclopedia articles on signal processing cover the classical methods. Before-and-after comparisons published by vendors show chosen examples, so look for tests on varied material.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.