Linear Probes Can Guide: Training-Free Control of Representation Generators
Authors: Pengwei Wang, José Morano, Botond Fazekas, Hrvoje Bogunović
Organizations: AI Institute, Center for Medical Data Science, Medical University of Vienna, Austria · Christian Doppler Lab for AI in Retina, Medical University of Vienna, Austria
Representation-space generative models, such as Representation Autoencoders (RAEs), leverage pretrained vision foundation models (VFMs) primarily to accelerate training and improve sample fidelity. Yet VFMs are more than reconstruction tokenizers, as they feature rich representation spaces that are highly organized and linearly readable. We observe that this removes a key obstacle of post-hoc guidance: by linearity of expectation, a clean probe applied to an ideal denoiser's prediction yields the exact posterior mean of the probe scores at any noise level. This regime, which we call Semantic Mean-Space, turns semantic guidance into a Bayesian linear inverse problem, bypassing the need for training-time conditioning. With this foundation, we propose LiSM, a unified framework for Linear Guidance in Semantic Mean-Space. To validate the framework, we developed and adapted different solvers, and characterized them based on how they estimate probe-space uncertainty and propagate the correction through the representation. In addition, we propose Fit-Path, a solver designed to achieve strong global and local control. Our results in four control setups (class, attributes, foreground, and keypoints) show that LiSM methods, and Fit-Path in particular, provide effective, lightweight control across global and local tasks, outperforming noise-aware and pixel-space guidance.
Figures & tables
Figure 2: Illustration of LiSM. VFMs organize representations into a linearly readable space. The unconditional flow denoiser predicts the Clean prediction , and a linear probe reads semantic attributes from this intermediate prediction ( Probe → cats ). A solver can then use this probe direction with representation response to compute the correction and steer the guided trajectory .
Figure 3: Qualitative results for representative methods from three frameworks. Images of the same column are starting from the same initial random state.
Method
GM
Class
Attr.
Fg.
Kp.
Hack
Time
Adh.( Pres.)
Acc.
CLIP
IoU
PCK
↓
s ↓
Ref. (CFG)
–
84.0
–
–
–
–
–
Control
5.1 (81.4)
0.1
15.2
27.4
16.0
–
4.6
Pixel-space
UG [ 1 ]
32.4 (53.8)
18.5
27.1
47.0
46.5
26.9
70.6
Table 1: Guidance performance on four control tasks: class, attributes, foreground, and keypoints . GM: geometric mean of adherence and preservation over tasks. Bold : best; underline : second-best. Hack: mean over tasks of internal minus external adherence, clipped at zero. Control: generator without guidance toward the scored task (null for class; class-conditioned otherwise).
G
R
GM
Global
Local
Hack
Adh. (Pres.)
Adh. (Pres.)
Adh. (Pres.)
↓
Point
VJP [ 6 ]
81.0 (74.5)
75.1 (63.9)
87.4 (86.9)
13.7
Point
Path
82.7 (76.2)
81.2 (72.3)
84.2 (80.2)
2.8
Iso
Cov [ 57 ]
50.1 (77.5)
94.0 (68.1)
26.7 (88.1)
39.1
Iso
VJP [ 45 ]
59.7 (73.6)
50.0 (64.9)
71.4 (83.4)
11.0
Table 2: Ablation of weighting G and response R . Results in the ablation subset. Geometric means (GM): over the four tasks, global over class and attributes, local over foreground and keypoints. Iso, Fit: isotropic and fitted Gaussian. Id: identity, Cov: covariance response, FD: finite-difference response (FD, τ→0 ). Rows with references are LiSM-adapted published solvers.
Figure 4: Comparison of Fit-Path with LiSM-adapted SOTA solvers. Adherence (GM over the four tasks, y ) versus preservation ( x ); marker area is time (s) per sample. The dashed blue line is the Pareto frontier. Control: same generator without guidance.
Encoder
Method
GM
Class
Attr.
Fg.
Kp.
Acc.
CLIP
IoU
PCK
MAE
Control
0.0
0.0
16.7
26.1
16.5
LiSM
73.3
47.5
91.9
75.8
87.4
SigLIP 2
Control
0.0
0.0
15.2
28.7
12.9
LiSM
82.6
79.0
95.7
77.2
79.5
Table 3: Transfer of LiSM with Fit-Path solver across RAE encoders. Same ablation-subset requests. Metrics follow Tab. 1 .
Appendix figures & tables13 assets
Supplementary material from the paper’s appendix.
Appendix
Task
cos(ΔFD,ΔPath)
Linear
Noise t
0.995
0.95
0.81
0.59
for t
Class
0.48
0.33
0.98
1.00
≤ 0.81
Attr.
0.68
0.52
0.98
1.00
≤ 0.81
Fg.
1.00
1.00
1.00
1.00
all
Kp.
1.00
0.99
1.00
1.00
all
Appendix
Table 4: Where the denoiser response is nonlinear. Cosine similarity between the Fit-FD and Fit-Path corrections, cos(ΔFD,ΔPath) , which query the denoiser along the request direction u with a small ( H=0.2 ) or a large ( H=2 ) step. Medians over unguided trajectories at four noise levels t . A value of 1.00 means both corrections point the same way, so the response is linear along u ; shaded cells (below 0.95) mark a nonlinear response. Linear for t : noise levels at which the response is linear.
Requests
Class
Attr.
PCK
All
Class + attr.
66.8
84.5
–
54.8
Class + attr. + kpts.
82.3
90.9
85.7
58.4
Cond. + attr.
56.9
92.7
–
–
Cond. + kpts.
88.0
–
90.0
–
Appendix
Table 5: Composing requests without class conditioning. Black rows: Fit-Path under the null class label, with the class as one of the guided requests, on the attribute test set (first row) and the keypoint test set (second row). Grey rows (Cond.): for reference, single-task Fit-Path under class conditioning on the attribute and the keypoint test set. All: images that meet every request at once, with the pose counted as met at a PCK of at least 0.8.
Figure 5: Qualitative results of guidance composition by LiSM. We show that it is possible to guide both class and attributes, or class, attributes, and keypoints together, with LiSM using the Fit-Path solver.
Figure 6: Qualitative results of zero-shot text-to-image generation with LiSM. Using text, it is possible to directly guide the object, attributes, and background at the same time. Notably, we found that it can also generate realistic new combinations, such as a dog wearing sunglasses.
Task
Family
Predictor
Target
Agree.
Class
LiSM
Linear
78.7
80.1
ImageNet [ 7 ]
Noise-aware
MLP
78.6
80.0
Pixel-space
ResNet-50 [ 12 ]
88.5
91.1
Evaluation
DeiT-III-L [ 49 ]
93.7
–
Attributes
LiSM
Linear
69.4
92.5
Appendix
Table 6: Task predictors and support datasets. Target: performance against the dataset target; Agree.: agreement with the external evaluator; both on a 0–100 scale. Noise-aware predictors are evaluated at t=0 .
Method
GM
Class
Attributes
Adh. (Pres.)
Adh.
Int.
Hack
Pres.
Time
Adh.
Int.
Hack
Pres.
Time
Ref. (CFG)
–
84.0
–
–
73.9
4.6
–
–
–
–
–
Control
5.1 (81.4)
0.1
–
–
62.1
4.5
15.2
–
–
85.8
4.6
Pixel-space
UG [ 1 ]
32.4 (53.8)
18.5
94.2
75.7
16.2
56.4
27.1
28.7
1.5
80.8
54.3
Appendix
Table 7: Extended version of Tab. 1 : guidance performance on the test set. GM: geometric mean of adherence (Adh.) and of preservation (Pres.) over the four tasks; the Hack and Time columns below it are means over the four tasks. The other columns give the same results per task: adherence, internal adherence (Int.), Hack, preservation, and time in seconds per image. Control: generator without guidance toward the scored task (null for class; class-conditioned otherwise). Bold : best; underline : second-best.
G
R
GM
Global
Class
Attributes
Adh. (Pres.)
Adh. (Pres.)
Adh.
Int.
Hack
Pres.
Time
Adh.
Int.
Hack
Pres.
Time
Point
VJP [ 6 ]
81.0 (74.5)
75.1 (63.9)
73.5
99.0
25.5
67.0
10.8
76.7
95.7
19.0
61.0
10.7
Point
Path
82.7 (76.2)
81.2 (72.3)
90.0
95.0
5.0
66.5
9.6
73.3
63.8
0.0
78.6
9.7
Iso
Cov [ 57 ]
50.1 (77.5)
94.0 (68.1)
91.5
100.0
8.5
75.5
4.7
96.7
100.0
3.3
61.4
4.7
Iso
VJP [ 45 ]
59.7 (73.6)
50.0 (64.9)
46.0
84.5
38.5
52.0
10.5
54.3
44.3
0.0
81.0
10.5
Appendix
Table 8: Extended version of Tab. 2 : ablation of weighting G and response R on the ablation subset. The first columns repeat the main table: GM, Global and Local are geometric means of adherence (Adh.) and of preservation (Pres.) over all four tasks, over class and attributes, and over foreground and keypoints. The Hack and Time columns beside Local are means over all four tasks. The other columns give the same results per task: adherence, internal adherence (Int.), Hack, preservation, and time in seconds per image. Bold : best; underline : second-best.
Solver
GM
Class
Attributes
Adh. (Pres.)
Adh.
Int.
Hack
Pres.
Time
Adh.
Int.
Hack
Pres.
Time
Fit-Path
87.2 (72.8)
90.2
94.4
4.2
67.8
6.7
92.7
96.9
4.2
56.9
7.6
DCPS [ 17 ]
82.9 (76.1)
78.9
98.7
19.8
71.9
49.0
75.7
85.0
9.3
62.7
48.7
DPS [ 6 ]
82.7 (71.8)
79.2
99.1
19.9
61.6
10.8
78.0
96.2
18.2
61.2
10.7
AdamDPS [ 2 ]
76.5 (71.7)
76.3
99.6
23.3
56.1
10.8
63.0
81.7
18.7
72.7
10.7
Appendix
Table 9: Results behind Fig. 4 : Fit-Path and LiSM-adapted solvers on the test set. GM: geometric mean of adherence (Adh.) and of preservation (Pres.) over the four tasks; the Hack and Time columns below it are means over the four tasks. The other columns give the same results per task: adherence, internal adherence (Int.), Hack, preservation, and time in seconds per image. Control: generator without guidance toward the scored task.
Figure 7: Uncurated qualitative results for Class guidance.
Figure 8: Uncurated qualitative results for Attribute guidance.
Figure 9: Uncurated qualitative results for Attribute guidance (continued).
Figure 10: Uncurated qualitative results for Foreground mask guidance.
Figure 11: Uncurated qualitative results for Keypoint pose guidance.
Representation Autoencoders (RAE) replace traditional VAE with pretrained vision encoders. In this paper, we systematically investigate several design choices and find three insights which simplify and improve RAE. First, we study a generalized formulation where the representation is defined as sum of the last k encoder layers rather than solely the final layer. This simple change greatly improves reconstruction without encoder finetuning or specialized data (e.g., text, faces). Second, we study the prevalent assumption that RAE (using pretrained representation as encoder) replaces representation alignment (REPA), which distills the same representation to intermediate layers instead. Through large-scale empirical analysis, we uncover a surprising finding: RAE and REPA exhibit complementary working mechanisms, allowing the same representation to be used as both encoder and target for intermediate diffusion layers. Finally, the original RAE struggles with classifier-free guidance (CFG) and requires training a second, weaker diffusion model for AutoGuidance (AG). We show that REPA itself can be viewed as x-prediction in RAE latent space. By simply re-parameterizing the output of the DiT model, it can provide guidance for "free". Overall, RAEv2 leads to more than 10x faster convergence over the original RAE, achieving a state-of-the-art gFID of 1.06 in just 80 epochs on ImageNet-256. On FDr6, RAEv2 achieves a state-of-the-art 2.17 at just 80 epochs compared to the previous best 3.26 (800 epochs) without any post-training. This motivates EPFID@k (epochs to reach unguided gFID < k) as a measure of training efficiency. RAEv2 attains an EPFID@2 of 35 epochs, versus 177 for the original RAE. We also validate our approach across diverse settings for text-to-image generation and navigation world models, showing consistent improvements. The code is available at https://raev2.github.io.
Large language models (LLMs) are widely used in text-to-image (T2I) systems, but they are typically limited to text encoding, while denoising is handled by newly trained generative backbones. The emergence of representation autoencoders (RAEs) shifts the generation target toward semantically structured visual representations, creating a latent space that is more compatible with pretrained LLM priors. Inspired by multimodal LLMs (MLLMs), where an MLP projector is sufficient to align clean visual representations with a pretrained LLM, we repurpose the MLLM itself as a noisy representation encoder, extending this mechanism from clean to noisy inputs. We present RepFusion, which uses the resulting MLLM outputs as the conditioning signal for a diffusion transformer. In controlled comparisons at similar inference budgets, RepFusion outperforms baselines that devote comparable capacity to newly initialized denoisers. Reusing MLLM outputs across denoising steps further accelerates inference while retaining performance comparable to per-step MLLM recomputation. These results demonstrate that MLLMs provide strong priors for denoising visual representations.
The prevalence of Large Language Models (LLMs) in critical applications highlights the need for controlled language generation methods that are both computationally efficient and enjoy performance guarantees. To address this need, we use a common model of concept semantics as linearly represented in an LLM's latent space. In particular, we take the view that natural language generation traces a trajectory in this continuous semantic space, realized by the language model's hidden activations. This view permits a control-theoretic treatment of text generation in latent space, in which we propose Linear Semantic Control (LiSeCo), a lightweight, gradient-free intervention that dynamically steers trajectories away from regions corresponding to undesired meanings. In particular, we propose to directly intervene, in an online fashion, the activations of the token that is being generated in embedding space. Crucially, LiSeCo does not simply steer activations towards a desirable region. Instead, it relies on classical techniques from control theory to precisely control activations in a context-dependent way, and guarantees that they are brought into a specific pre-defined region of embedding space that corresponds to allowed semantics. The intervention is computed in closed form according to an optimal controller formulation, minimally impacting generation time. This control of the activations in embedding space allows for fine-grained steering of attributes of the generated sequence. We demonstrate that our approach is effective on different tasks -- toxicity, sentiment, and language (English/Spanish) steering -- while maintaining text quality.
Emily Cheng, Carmen Amo Alonso
Universitat Pompeu Fabra, Barcelona, Spain · Stanford University, CA, USA