Skip to content

Direct Ascent Synthesis: Revealing Hidden Generative Capabilities in Discriminative ModelsDirect Ascent Synthesis: Revealing Hidden Generative Capabilities in Discriminative Models

arXiv· arXiv:2502.07753· Stanislav Fort, Jonathan WhitakerAnswer.AIIndexed by this site · 27 days ago· Originally publishedAI updates

Quick read

Analysis and theory

Based on the paper PDF (AI-generated); refer to the original

The authors propose Direct Ascent Synthesis (DAS), which uses multi-resolution optimization to synthesize images directly from discriminative models such as CLIP; the authors claim it can generate natural images without generative training.

Questions
Can the representations of discriminative models (such as CLIP) be used directly for image generation? Directly inverting an embedding usually yields noise-like adversarial patterns, and the authors want to test whether discriminative models implicitly contain extractable generative capability.
Methods
Proposes Direct Ascent Synthesis (DAS): decompose an image into multi-resolution components from 1×1 to 224×224, simultaneously optimize each component to maximize the cosine similarity between the CLIP embedding and the target, together with random translation, pixel noise, and a three-model ensemble, without any generative training.
Experiments and results
The authors report that DAS can perform text-to-image generation, controlled modification, style transfer, embedding reconstruction, and inpainting; the power spectrum slope of generated images is about −2, consistent with natural image statistics; ablations show the multi-resolution prior is key to avoiding adversarial noise patterns. The paper provides no quantitative metrics or human evaluation.
Limitations and future work
The authors note that generation quality fluctuates across runs and prompts, and that there is no complete theoretical framework explaining why multi-resolution optimization works; all experiments are qualitative displays, with no quantitative metrics, sample sizes, or systematic comparison with generative models reported.
Experimental setupOpenAI ViT-B/32、OpenCLIP ViT-B/32 · cosine similarity、power spectrum slope
Evaluated models
OpenAI ViT-B/32OpenCLIP ViT-B/32
Metrics
cosine similaritypower spectrum slope
AI summaryDirect Ascent Synthesis (DAS) synthesizes high-quality images from discriminative models without additional training, solely through multi-resolution optimization of CLIP representations. The method decomposes the optimization across multiple spatial scales from 1x1 to 224x224, so that synthesized images retain natural image statistics (1/f² spectrum) and avoid non-robust adversarial patterns. The paper states that DAS can support applications such as text-to-image generation and style transfer, indicating that the generative knowledge contained in discriminative models far exceeds previous understanding.

Direct Ascent Synthesis (DAS) synthesizes high-quality images from discriminative models without additional training, solely through multi-resolution optimization of CLIP representations. The method decomposes the optimization across multiple spatial scales from 1x1 to 224x224, so that synthesized images retain natural image statistics (1/f² spectrum) and avoid non-robust adversarial patterns. The paper states that DAS can support applications such as text-to-image generation and style transfer, indicating that the generative knowledge contained in discriminative models far exceeds previous understanding.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Do discriminative models implicitly possess generative capability? The authors propose DAS, which uses multi-resolution optimization to synthesize natural images directly from CLIP representations.

    Core question: Do the representations of discriminative models (such as CLIP) implicitly contain directly extractable generative capability, and can natural images be synthesized without any generative training?

    • Problem setting: Machine learning has traditionally separated discriminative models (mapping inputs to semantic representations) and generative models (synthesizing data from a latent space); generative models require large-scale training, and the authors question whether such training is fundamentally necessary.
    • Shortcomings of existing methods: According to the paper, directly inverting a discriminative model's representation (f⁻¹: v → I), although it can achieve near-perfect mathematical alignment (f(I*) ≈ v), produces noise-like adversarial patterns to humans, i.e., there is a tension between representation matching and perceptual quality.
    • Core observation: The authors believe this degradation can be broken by decomposing the optimization across multiple spatial scales (1×1 to 224×224); multi-scale decomposition provides regularization consistent with human visual priors and suppresses high-frequency adversarial solutions. The authors also believe adversarial examples may not be a fundamental limitation of discriminative models but a symptom of optimization ignoring natural image structure.
    • What the paper proposes: The method Direct Ascent Synthesis (DAS), which achieves training-free image synthesis through multi-resolution optimization of CLIP representations, and demonstrates applications including text-to-image generation, controlled modification, style transfer, embedding reconstruction, and inpainting; the authors say inference takes only seconds on a single GPU.
  2. What related research exists?

    Related work is divided into four groups: two routes of image synthesis, bridging discriminative and generative models, adversarial attacks on large models, and multi-scale processing.

    Evolution of image synthesis

    • Generative route: VAE (Kingma & Welling, 2022), GAN (Goodfellow et al., 2014), to diffusion models (Ho et al., 2020; Rombach et al., 2022); the paper states these routes achieve high quality through increasingly complex training.
    • Discriminative route: feature visualization (Yosinski et al., 2015; Nguyen et al., 2016; Olah et al., 2017) and adversarial examples (Goodfellow et al., 2015) revealed rich internal representations; CLIP (Radford et al., 2021) showed that discriminative training can capture general visual concepts.

    Bridging discriminative and generative

    • Feature inversion (Mahendran & Vedaldi, 2014) showed that discriminative representations contain generative information, but the paper notes its quality is limited.
    • Analysis of GAN discriminators (Bau et al., 2019b) found that discriminators have a latent space similar to that of generators; deep image prior (Ulyanov et al., 2018) and neural style transfer (Gatys et al., 2016) showed that optimization can sometimes substitute for explicit generative training.
    • VQGAN-CLIP (Crowson et al., 2022) uses CLIP similarity to guide optimization in GAN latent space for creative generation; the paper notes that practitioners quickly discovered the value of data augmentation for stable optimization. Whitaker (2022)'s open-source project is called by the paper the most directly related work, independently exploring similar optimization-based image synthesis.

    Adversarial attacks on large models

    • Fort (2021a;b) showed that OpenAI CLIP can be fooled by targeted pixel-level modifications; Fort et al. (2021) and Fort (2022) showed that OOD detectors based on large-scale pretrained models are similarly vulnerable to targeted attacks; Fort & Lakshminarayanan (2024) constructed transferable adversarial image attacks on GPT-4, Claude, and Gemini. The paper states that robustness methods on small datasets such as Madry et al. (2019) have not yet solved the problem at scale.

    Multi-scale processing

    • From Gaussian/Laplacian pyramids (Burt & Adelson, 1983) and scale-space theory (Lindeberg, 1994) to explicit multi-scale architectures (Fort & Lakshminarayanan, 2024); cognitive science has found that human vision processes across spatial frequencies (Jeantet et al., 2018).

    Positioning: the authors claim this paper builds directly on multi-scale insights, showing that multi-resolution optimization can bridge discriminative and generative processes, turning degenerate solutions of model inversion into meaningful synthesis.

  3. How does the paper address this problem?

    DAS represents an image as the sum of multi-resolution components and simultaneously optimizes each component to maximize the cosine similarity between the CLIP embedding and the target.

    Overall approach: decompose an image into a sum of multi-resolution components from 1×1 to 224×224, optimize all components simultaneously, and maximize the cosine similarity between the generated image and the target (text or reference image) in CLIP embedding space. Direct Ascent Synthesis (DAS) requires no generative training.

    Problem setup

    • A discriminative model maps an image I ∈ R^(H×W×C) to an embedding vector v ∈ R^d; the forward mapping f: I → v is easy, while the inverse f⁻¹: v → I is one-to-many and traditionally tends to produce adversarial patterns (Figure 5 gives an illustration).
    • The authors' key point: the space of possible inversions contains both natural images and adversarial patterns (both can genuinely predict the embedding; citing Ilyas et al., 2019), and suitable optimization can steer toward natural images.
    • Alignment metric: score(I) = cos(f(I), u), i.e., the cosine similarity between the generated image embedding and the target embedding u.

    Multi-resolution optimization

    • Image representation: I = \frac{1}{2} + \frac{1}{2}\tanh\left(\sum_{r \in \rho} \mathrm{resize}_{224}(P_r)\right), where P_r ∈ R^(r×r×3) is the component at resolution r, and ρ ranges from 1×1 to 224×224; tanh maps unbounded optimization values to valid pixel intensities and keeps gradients flowing.
    • Optimization objective: I∗ = argminP1,...,PR ℒ(f(∑r ∈ ρ resize224(Pr)), v), where L measures representation similarity.
    • The authors' stated role of this decomposition: cross-scale consistency provides natural regularization; semantics are captured at suitable resolutions; high-frequency degenerate solutions characteristic of adversarial examples are suppressed. The power spectrum of generated images follows a 1/f² distribution (slope about −2), which is characteristic of natural images (Figure 2).

    Implementation details

    • Augmentation: two minimal augmentations—random x-y translation and pixel noise; the authors claim both work in concert with the multi-resolution prior, and neither alone is sufficient.
    • Translation handling: no padding; instead generation is done on (H+2s)×(W+2s) (s is the maximum translation), followed by center cropping to H×W, ensuring translations do not go out of bounds.
    • Model ensemble: gradients are averaged over three CLIP models—OpenAI ViT-B/32 and two OpenCLIP ViT-B/32 trained on different datasets; the authors claim the ensemble only slightly improves quality and a single model is already sufficient, but some CLIP models are difficult to turn into generators for unknown reasons.

    Extensions

    • Multiple target vectors: generation can be guided by multiple weighted targets (a weighted sum of scores), e.g., using rendering-quality-related prompts to improve aesthetics, and using text-recognition prompts with negative weights to suppress text in the image.
    • Reference images: the target embedding can come from text or a reference image (f(I_ref) = u), supporting style transfer and reconstruction; the authors note that although CLIP compresses 150,528 dimensions to 512, reconstruction often preserves semantics and style.

    Optimization settings (Section 5)

    • SGD for 100 steps, learning rate 2×10⁻¹; noise standard deviation 0.2; x-y jitter range ±56 (i.e., generate on 336×336 then center-crop to 224×224); 32 augmentations per batch; ensemble of 3 CLIP models. All models are based on Vision Transformer; the authors claim they have verified that non-ViT models perform similarly.
  4. What experiments did the paper conduct?

    All are qualitative experiments: generation consistency, controlled modification, embedding reconstruction, style transfer, flag generation, and inpainting; no quantitative metrics.

    Experimental setup

    • Models tested: an ensemble of OpenAI ViT-B/32 and two OpenCLIP ViT-B/32 (different training data); the authors claim a single model is already sufficient and have verified that non-ViT models perform similarly (specific model names not given).
    • Tasks: text-to-image generation, controlled modification, embedding-guided reconstruction, style transfer, flag generation, inpainting.
    • Optimization configuration: SGD 100 steps, learning rate 2×10⁻¹, noise standard deviation 0.2, x-y jitter ±56, 32 augmentations per batch, ensemble of 3 CLIP models (Section 5).
    • Evaluation method: the paper uses no quantitative metrics, LLM judging, or human evaluation; all results are image displays plus the authors' qualitative analysis.
    • Sample sizes: Figure 3 shows 18 generated images; Figure 7 has 4 independent generations per prompt; Figure 9 has 2 reconstructions per original image.
    • Baselines: ablation comparing direct pixel optimization and ensemble+augmentation but without the multi-resolution prior (Figure 4); style transfer compared with the original pixel optimization of Gatys et al. (2016) (Figure 12).

    Main results

    The paper has no quantitative results table; main results are shown as figures:

    Swipe horizontally to read the table

    ExperimentSettingResults shown in the paperSource
    Text-to-image generationEnsemble of 3 CLIP models + prompt augmentation18 images across concepts and stylesFigure 3
    Generation consistency4 independent runs per promptVolcano and Cambridge winter-night scenes are semantically consistent, with natural variation in detailsFigure 7
    Controlled modificationGeneration from the original image toward a specified promptLocal (road surface, volcano) and global (snow scene) modifications remain spatially coherentFigure 8
    Embedding reconstruction300:1 compression (150,528→512), 2 reconstructions per imageMain semantic elements and style recovered, with natural variation in detailsFigure 9
    Style transferSource image + style image embeddingsPreserves original image structure, copies style and local contentFigure 6
    Flag generationPrompt + structural guidanceJapan, Brazil, United Nations, and Switzerland flags are recognizable; the authors call them "far from perfect"Figure 10
    InpaintingMask + promptCity skyline blends with contextFigure 11
    • The authors claim generation maintains semantic consistency (volcano plume structure and Cambridge architectural motifs remain stable) and believe optimization reliably lands in meaningful regions of CLIP representation space.
    • The authors claim the power spectrum of generated images follows a 1/f² distribution (slope about −2), consistent with natural image statistics (Figure 2).
    • The authors claim differences across runs manifest as natural variation in lighting, viewpoint, and details, rather than adversarial patterns.

    Ablation study (Figure 4)

    • What was tested: three settings compared—direct pixel optimization, ensemble+augmentation but without the multi-resolution prior, and full DAS.
    • Results: direct pixel optimization produces typical model-inversion adversarial patterns; adding augmentation and ensemble begins to show structure but lacks coherence; the full method produces natural, interpretable images (all qualitative displays).
    • Authors' interpretation: suitable regularization can turn degenerate solutions of model inversion into meaningful synthesis.

    Style transfer comparison (Figure 12)

    • What was tested: style transfer on original pixels in the manner of Gatys et al. (2016), compared with DAS.
    • Results: the authors claim DAS results have fewer high-frequency artifacts and require fewer steps, while acknowledging that this comparison is "somewhat subjective" (somewhat subjective).

    Other analyses

    • Reconstruction fidelity: the authors claim CLIP was never trained for reconstruction or compression, yet can recover the main aspects of images from 300:1 compressed embeddings (Section 5.3).
    • Negative results: the authors found that some CLIP models are difficult to turn into generators, with no obvious reason (Section 4.3); flag generation is "far from perfect" but recognizable (Section 5.4).
  5. What are some points that can be further explored?

    The authors note two limitations, unstable quality and lack of a theoretical framework, and list five future directions including a unified training objective and cross-domain application.

    Limitations and future directions noted by the authors

    • Unstable quality: Generation quality varies across runs and prompts, and optimization stability has room for improvement (Section 6.4 Limitations and Open Questions).
    • Lack of theoretical framework: There is no complete theoretical framework explaining why multi-resolution optimization effectively avoids adversarial solutions (Section 6.4).
    • Unified training objective: Future work could explore training objectives that simultaneously optimize discriminative and generative capability (Section 6.5 Future Directions).
    • Theoretical framework: Develop a formal mathematical framework unifying discriminative and generative learning (Section 6.5).
    • Cross-domain application: The principles of DAS may extend beyond vision, such as to natural language processing or audio synthesis (Section 6.5).
    • DAS + explicit generative training: Explore combining DAS with additional training for generation (such as combining with diffusion models); and using intermediate-layer embeddings to guide generation following the self-ensemble idea of Fort & Lakshminarayanan (2024) (Section 6.5).

    Scope of experiments

    • The models tested are an ensemble of three CLIP ViT-B/32 (one OpenAI, two OpenCLIP); the authors say they verified that non-ViT models perform similarly, but do not give the names or results of these models.
    • All results are qualitative image displays: Figure 3 has 18 generated images in total, Figure 7 has 4 runs per prompt, and Figure 9 has 2 reconstructions per image; the paper reports no quantitative metrics, human evaluation, or systematic comparison with generative models.
    • Style transfer is compared with the pixel-space optimization of Gatys et al. (2016), and the authors describe the comparison as "somewhat subjective" (Section 5.5).
    • The optimization budget is 100 steps of SGD; the paper does not report specific time figures for each generation (only that inference takes seconds on a single GPU).
    • The paper reports no quantifiable measures such as diversity or fidelity of generated images, nor statistics on failure cases.
  6. Summarize the main content of the paper

    DAS uses multi-resolution optimization to synthesize images directly from CLIP representations; the authors claim the generative knowledge implicit in discriminative models is richer than previously recognized.

    A methods and analysis paper on the generative capability of discriminative models, proposing Direct Ascent Synthesis (DAS).

    • Problem: Directly inverting the representations of discriminative models such as CLIP yields noise-like adversarial patterns; the authors argue this is not a fundamental limitation of the models but a symptom of optimization ignoring natural image structure.
    • Method: Decompose an image into the sum of multi-resolution components from 1×1 to 224×224, simultaneously optimize each component to maximize the cosine similarity between the CLIP embedding and the target (text or reference image); together with random translation, pixel noise augmentation, and a gradient ensemble of three CLIP ViT-B/32; SGD for 100 steps, learning rate 2×10⁻¹, without any generative training.
    • Results: The authors report that DAS can perform text-to-image generation (Figure 3 shows 18 images), controlled modification, style transfer, reconstruction of 300:1 compressed embeddings, and inpainting; the power spectrum slope of generated images is about −2, matching the 1/f² statistics of natural images (Figure 2).
    • Ablation: Figure 4 shows that direct pixel optimization produces adversarial patterns, and adding augmentation and ensemble still does not produce coherence; only the full multi-resolution prior produces natural images (qualitative).
    • Authors' conclusion: The generative knowledge encoded in discriminative models is richer than previously recognized; adversarial examples and natural images can come from the same optimization process, differing only in scale-space structure; the boundary between discriminative and generative models may be more fluid than imagined.
    • Limitations: The authors note that generation quality fluctuates across runs and prompts, and that there is no theoretical framework explaining why multi-resolution optimization is effective; all results are qualitative displays with no quantitative metrics.
Read originalarxiv.org