惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Jina AI
Jina AI
Hugging Face - Blog
Hugging Face - Blog
博客园 - 三生石上(FineUI控件)
博客园 - 【当耐特】
大猫的无限游戏
大猫的无限游戏
IT之家
IT之家
宝玉的分享
宝玉的分享
WordPress大学
WordPress大学
有赞技术团队
有赞技术团队
Apple Machine Learning Research
Apple Machine Learning Research
酷 壳 – CoolShell
酷 壳 – CoolShell
阮一峰的网络日志
阮一峰的网络日志
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
爱范儿
爱范儿
小众软件
小众软件
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Cloudflare Blog
S
SegmentFault 最新的问题
博客园 - Franky
博客园_首页
T
Tailwind CSS Blog
雷峰网
雷峰网
罗磊的独立博客

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
The Most Surprising Idea in AI Image Generation: Sculptin...
Shrijith Venkatramana · 2026-06-03 · via DEV Community

When most developers first encounter AI image generation, they imagine something like a digital artist.

You type:

A red Ferrari on a mountain road at sunset

and somewhere inside the model, it must be drawing wheels, painting reflections, and composing a scene.

But that's not what happens.

In many modern image generation systems, the process begins with something much stranger: pure static. Random noise. The visual equivalent of a detuned television.

The AI doesn't start with a Ferrari.

It starts with chaos.

Then, step by step, it sculpts that chaos into an image that matches your prompt.

Once you understand this idea, many things about modern AI suddenly make more sense.

The Counterintuitive Discovery: Destroying Images Is Easy

Imagine you have a photograph of a Ferrari.

Now add a tiny amount of random noise.

Then add a little more.

Then more.

Eventually, the image becomes indistinguishable from static.

Ferrari
   ↓
Slightly Noisy Ferrari
   ↓
Very Noisy Ferrari
   ↓
Static

This process is trivial. Anyone can write it in a few lines of code.

What Jascha Sohl-Dickstein and his collaborators realized in 2015 was that while the forward process is easy, perhaps the reverse process could be learned.

In other words:

If we know how to destroy structure, can a neural network learn how to rebuild it?

That simple question eventually became the foundation of diffusion models.

The Sculptor Analogy That Finally Made It Click for Me

Many explanations describe diffusion as "removing noise."

Technically correct.

But I think there's a better mental model.

Imagine a sculptor standing beside a random lump of clay.

The prompt doesn't create the clay.

The prompt tells the sculptor what to carve.

Random Clay
      +
"Ferrari"
      ↓
Sculpting
      ↓
Ferrari

The same thing happens in diffusion models.

The initial noise is usually independent of the prompt.

Instead, the prompt influences every refinement step afterward.

The model repeatedly asks:

If this image is supposed to become a Ferrari, what should I change next?

Over time, rough shapes emerge.

Then wheels.

Then reflections.

Then details.

The image isn't retrieved from memory. It's progressively constructed.

The Training Loop Is Shockingly Small

One of the most surprising things about diffusion models is how simple the core training loop is.

At a high level:

for image, caption in dataset:

    t = random_timestep()

    noise = randn_like(image)

    noisy_image = add_noise(image, noise, t)

    predicted_noise = model(
        noisy_image,
        caption,
        t
    )

    loss = mse(predicted_noise, noise)

    loss.backward()

That's essentially the whole idea.

The model is not directly learning:

Draw a Ferrari.

It is learning:

Given a noisy image and a caption, predict what noise was added.

That sounds almost too simple.

Yet the behavior that emerges is remarkable.

Why Generation Is Just Training in Reverse

During inference, we start from pure noise.

Then we repeatedly ask the model what noise should be removed.

Conceptually:

image = random_noise()

for t in reversed(range(T)):

    predicted_noise = model(
        image,
        prompt,
        t
    )

    image = remove_noise(
        image,
        predicted_noise,
        t
    )

return image

The process looks like this:

Static
   ↓
Less Static
   ↓
Rough Shapes
   ↓
Car-Like Shapes
   ↓
Ferrari

The model performs the same skill it learned during training.

The only difference is where the noisy image came from.

During training, the noise came from a real photograph.

During inference, it comes from randomness itself.

Does the Noise Secretly Contain the Ferrari?

This is one of the most common misconceptions.

No.

The starting noise doesn't secretly contain a hidden Ferrari.

It is genuinely random.

However, the noise acts as a seed.

Consider two different random starting points:

Noise A → Ferrari A
Noise B → Ferrari B

Same prompt.

Different image.

Different camera angle.

Different lighting.

Different details.

The prompt answers:

What should this image become?

The random seed answers:

Which version of that thing?

In practice, both matter.

The prompt provides direction.

The noise provides variation.

Where Do Transformers Enter the Picture?

Many developers assume diffusion models replaced transformers.

Not exactly.

In most modern text-to-image systems, they work together.

A simplified architecture looks like this:

Prompt
   ↓
Transformer
   ↓
Text Embedding
   ↓
Diffusion Model
   ↓
Image

The transformer's job is understanding language.

It learns relationships such as:

  • Ferrari is a car
  • Red modifies Ferrari
  • Mountain road describes the scene

The diffusion model then uses that understanding while denoising.

At every step, the image generation process is guided by the prompt representation produced by the transformer.

One model understands meaning.

The other turns that meaning into pixels.

The Unusual Origin Story: A Physics Idea That Changed AI

What makes diffusion particularly interesting is where it came from.

Jascha Sohl-Dickstein's 2015 paper wasn't framed primarily as a computer vision breakthrough.

It drew heavily from ideas in statistical physics and nonequilibrium thermodynamics.

The original insight was not:

How do we draw images?

It was closer to:

How do complex probability distributions evolve into simple ones?

And then:

Can we learn the reverse transformation?

That shift in perspective is what makes the idea feel so elegant.

Many breakthroughs happen when someone enters a field carrying mental models from another discipline.

Diffusion models are a great example.

They treat image generation not as drawing, but as reversing a physical process.

Final Thoughts

The next time an image model generates a stunning scene from a short prompt, it's worth remembering what happened under the hood.

The system didn't start with a sketch.

It didn't search a database for the closest image.

It started with randomness.

Then, hundreds of times in succession, it made tiny corrections guided by your prompt.

A Ferrari emerged from static.

A castle emerged from noise.

Meaning emerged from chaos.

And perhaps that's the most surprising part of all.

If you had been working on image generation in 2014, would you have tried to teach a model how to draw images—or would it ever have occurred to you to teach it how to remove noise instead?