← Latest papers
🤖 AI

Factored Classifier-Free Guidance

This paper introduces Factored Classifier-Free Guidance (FCFG), a model-agnostic technique that enables attribute-wise control in diffusion-based counterfactual generation by following a causal graph, thereby significantly reducing spurious changes and improving the axiomatic soundness and reversibility of inferred counterfactuals.

Original authors: Tian Xia, Fabio De Sousa Ribeiro, Rajat R Rasal, Avinash Kori, Raghav Mehta, Ben Glocker

Published 2026-05-11
📖 4 min read☕ Coffee break read

Original authors: Tian Xia, Fabio De Sousa Ribeiro, Rajat R Rasal, Avinash Kori, Raghav Mehta, Ben Glocker

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a magical photo editor that can answer "What if?" questions. You can ask it, "What would this patient's X-ray look like if they had received Treatment A instead of Treatment B?" or "What would this person look like if they were younger?"

This paper introduces a new way to make that magic editor work better, specifically by fixing a problem where the editor gets too enthusiastic and changes things it shouldn't.

The Problem: The "Over-Eager" Editor

The current best tools for this job use a technique called Classifier-Free Guidance (CFG). Think of CFG as a volume knob for the editor's instructions.

  • How it works: You tell the editor, "Make the person smile." You turn up the volume knob (the guidance weight) to make sure the smile is very clear and realistic.
  • The glitch: The paper found that this volume knob is a "master switch" for everything. When you turn it up to make the person smile, it accidentally turns up the volume on everything else too.
    • If you ask for a smile, the editor might also make the person look older, change their gender, or add glasses, even though you didn't ask for that.
    • The paper calls this "Attribute Amplification." It's like trying to turn up the bass on a song, but the volume knob is broken and it also turns up the treble, the vocals, and the drums, ruining the balance.

The Solution: Factored Classifier-Free Guidance (FCFG)

The authors propose a new method called Factored Classifier-Free Guidance (FCFG).

Instead of one big master volume knob, FCFG gives you separate volume knobs for different parts of the image, based on a map of how things are connected (a causal graph).

  • The Analogy: Imagine you are conducting an orchestra.
    • Old Method (CFG): You have one baton. If you wave it harder to make the violins (the attribute you want to change) play louder, the trumpets and drums (the attributes you want to keep the same) get louder too.
    • New Method (FCFG): You have a conductor's podium with separate controls. You can wave your baton hard for the violins (the "intervened" attribute) while gently tapping the mute button for the trumpets (the "invariant" attributes).

How It Works in Practice

  1. Grouping: The system splits the image's features into two groups:
    • The "Change" Group: The things you want to alter (e.g., "Smiling").
    • The "Keep" Group: The things you want to stay exactly the same (e.g., "Gender," "Age," or "Identity").
  2. Separate Controls: It applies a strong "push" to the Change Group to make the edit clear, but applies a very gentle "push" (or no push) to the Keep Group.
  3. The Result: The person smiles brightly, but they still look like themselves, are still the same age, and haven't suddenly grown a beard or glasses.

Why This Matters (According to the Paper)

The authors tested this on three different types of images:

  1. CelebA-HQ: Photos of famous people (changing attributes like smiling, gender, or age).
  2. EMBED: Breast mammograms (changing density or checking for skin markers).
  3. MIMIC-CXR: Chest X-rays (changing disease labels like "pleural effusion").

The Findings:

  • Less "Spurious" Changes: FCFG stopped the editor from accidentally changing things it shouldn't. For example, when changing a disease label on an X-ray, the old method accidentally changed the patient's race or gender features; FCFG kept those stable.
  • Better "Reversibility": If you generate a "What if" image and then ask the editor to "undo" the change, the old method often left the image looking distorted or different from the original. FCFG allows the image to snap back to the original much more cleanly.
  • Compatibility: This new method works with the latest, fancier versions of the editing tools (like CFG++ and APG) without needing to rebuild the whole system.

Summary

The paper argues that the current way of guiding AI image editors is too blunt. By breaking the guidance into separate, independent controls for what you want to change versus what you want to keep, FCFG allows for precise, realistic "What if" scenarios without the unwanted side effects. It makes the AI a more obedient and precise editor, rather than an over-eager one.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →