TL;DR
Want to steer an image generator to add snow, match a specific animal pose, or isolate a foreground—without retraining the model or burning GPU hours on heavy backpropagation? By exploiting a neat mathematical property of Vision Foundation Models (VFMs), the authors show that simple linear probes trained on clean data can directly guide noisy generative flows at inference time. It turns complex semantic image control into a lightweight, training-free linear algebra problem.
What Problem Does This Paper Address?
Generating pretty pictures is largely a solved problem; controlling exactly what gets generated is much harder. If you want an existing diffusion or flow model to obey new rules (like matching a specific keypoint skeleton or adding "clouds"), you usually face three expensive options:
- Retrain the generator with paired conditional data for every new type of request.
- Classifier Guidance (CG): Train a separate, "noise-aware" classifier that understands what concepts look like at every level of diffusion noise.
- Pixel-space guidance: At every single denoising step, decode the latent prediction back into an image, run an off-the-shelf predictor, and backpropagate gradients through both the predictor and the denoiser—which is painfully slow and prone to adversarial artifacts.
Meanwhile, recent representation-space generators—like Representation Autoencoders (RAEs)—don't generate pixels or standard VAE latents. Instead, they generate directly inside the feature space of frozen Vision Foundation Models (like DINOv3). VFM spaces are famous for being linearly readable: a single linear layer (a "probe") can classify objects or segment foregrounds. The authors ask: Can we use these cheap, clean linear probes to steer generation on the fly, skipping decoding and retraining altogether?
Methods
The paper introduces LiSM (Linear Guidance in Semantic Mean-Space), built on a clean mathematical bridge between flow models and linear probes.
In an ideal representation flow model, the denoiser predicts the expected clean representation (the posterior mean) given the current noisy state. Because expectation is a linear operator, a linear probe $r(z) = Wz + b$ commutes with it: applying a probe trained only on clean data to the denoiser’s intermediate prediction gives the exact expected semantic score at any noise level. The authors call this regime Semantic Mean-Space, and it turns semantic guidance into a standard Bayesian linear inverse problem.
At each step, LiSM modifies the flow velocity using two modular components:
- Request Weighting ($\mathcal{G}$): Evaluates how far the predicted mean scores are from the user's request, factoring in uncertainty. The authors introduce a Fitted Gaussian (
Fit) weighting that estimates prior feature covariance from clean data. - Representation Response ($\mathcal{R}$): Translates the probe's correction direction back into the full representation space without causing artifacts. Alongside standard identity and Jacobian-based responses, the authors propose a novel Path-Integral Response (
Path). Instead of taking a derivative,Pathevaluates the denoiser once at a shifted point along the probe direction to capture the average response over a finite horizon—requiring zero differentiation.
Combining their covariance-fitted weighting and path-integral response yields their flagship solver, Fit-Path.
Datasets
Experiments and evaluations are conducted on ImageNet (using an ImageNet-trained RAEv2 generator across DINOv3, MAE, and SigLIP 2 encoders). Evaluation spans four control tasks—class, image-level attributes, foreground masks, and animal keypoints—tested across 3,840 requests (with 384 disjoint requests for tuning guidance strength and an 810-request subset for ablations). No new datasets are introduced.
Key Insights and Ideas
- Linearity kills noise-schedule lock-in: In pixel or standard VAE spaces, semantic classifiers are nonlinear, so applying them to a blurry intermediate mean prediction yields garbage scores. In VFM spaces, linearity of expectation makes a clean probe mathematically valid at every noise step.
- Beware of "Probe Hacking": A linear probe only measures a tiny, low-dimensional slice of a high-dimensional feature token. If you push the representation purely along the probe's normal vector, you can easily trick the probe into giving a high score in latent space while the decoded image barely changes (or grows extra limbs!). Propagating corrections through feature correlations or the denoiser is vital to prevent this.
- The Global vs. Local Tug-of-War: Simple direct/covariance responses excel at global tasks (changing class or weather) because shifting all spatial patches uniformly works well, but they fail miserably at local spatial tasks. Conversely, local denoiser-Jacobian responses nail spatial tasks (keypoints/masks) while tanking global adherence. Fit-Path bridges this divide by integrating the denoiser's response over a larger query path rather than trusting an infinitesimal local gradient.
Key Results
- Superior Adherence & Low Hacking: Across all four tasks, Fit-Path achieves the highest geometric-mean (GM) adherence at 87.2%, beating noise-aware Classifier Guidance (72.1%) and top pixel-space methods like DDiff (38.8%) and Universal Guidance (32.4%). Fit-Path also achieves the lowest probe-hacking score (4.7%, compared to 16.8%–31.6% for pixel-space methods).
- Speed vs. SOTA Solvers: When existing inverse solvers are adapted into the LiSM framework, Fit-Path sits atop the adherence-preservation Pareto frontier—outperforming the runner-up (DCPS at 82.9% adherence) while running 5.7× faster (8.5s vs. 48.8s per sample).
- Plug-and-Play Across Encoders: LiSM transfers seamlessly to MAE and SigLIP 2 generators without retuning hyperparameters. Performance predictably mirrors each encoder's native strengths: MAE excels at spatial keypoints (87.4% PCK) over class (47.5%), whereas SigLIP 2 shines on global attributes (95.7%) and class (79.0%).
Limitations and Future Work
- Bound by Linear Readability: LiSM is only as smart as its encoder. If an attribute isn't linearly separable in the VFM's feature space, a linear probe can't read or guide it.
- Labeled Feature Overhead: While generator-training-free, fitting the linear probes and clean feature covariance still requires labeled clean representations.
- Coarse Priors & Trade-offs: Modeling a multi-class representation space with a single Gaussian prior is a rough approximation, and pushing hard on global requests can reduce class preservation. Furthermore, while Fit-Path is the best all-rounder, specialized solvers (like
Fit-Idfor pure global tasks) can still edge it out on individual setups. Closing these gaps is left for future work.
Summary updated