Manuscript Offprint

arXiv:2610.06135

AnchorGen: Anchored Optimization for Customizable Generative 3D Design

Hantao Zhang, Oliver Heinimann, Jieke Wu, Yingxuan You, Emilien Seiler, Pascal Fua

ABSTRACT

Engineering design often starts from a 2D sketch that fixes style and proportions, yet the subsequent 3D shape optimization relies on learned generative priors to keep the geometry valid. However, these priors are agnostic to the sketch: while they admit a valid design by correcting a drifted proposal back to its training distribution, they often correct it towards the high-density region, ignoring the specified design. We introduce AnchorGen, a rectified-flow framework trained unconditionally on the concatenated shape and sketch latents of paired data. The learned manifold represents the joint distribution of shape-sketch pairs, so constraining the sketch component restricts the iterate to the sub-manifold of shapes consistent with a target style. Since training employs no conditioning signal, the constraint is imposed at inference: gradient descent optimizes the shape latent to minimize a differentiable drag surrogate, while constraining the sketch latent to remain close to the target sketch via a token-wise cosine penalty. A single model thereby supports design-preserving optimization, dimensionally explicit design edits, and sketch-only synthesis.

(a)

Figure

(b)

Initial Shape

Add Spoiler

Optimized Shape

Figure 1: Sketch-anchored shape optimization. AnchorGen reduces the aerodynamic drag of a 3D vehicle while anchoring the optimization to a 2D sketch that encodes the design intent. (a) Preserving a design. Reducing the drag by 10% without a sketch anchor, as in FCSO (Seiler et al., 2026), changes the vehicle's identity: the front end is restyled (green) and an unintended rear wing appears (red). With the sketch of the initial shape as an anchor, AnchorGen reaches the same drag reduction and preserves both regions. (b) Modifying a design. Adding a spoiler to the sketch (red) produces an optimized shape with a more aerodynamic spoiler, while leaving the rest unchanged.

1 INTRODUCTION

Many 3D engineering design workflows start with a simple 2D sketch: A few contour lines often suffice to fix the proportions of a 3D shape together with the styling cues that carry its brand identity. This enables a designer to explore several potential directions in the time elsewhere required to model a single one directly in 3D (Tovey et al., 2003; Lee et al., 2025a). This makes sketching a natural medium for early-stage brainstorming and exploration before committing time to full geometry. Industrial pipelines for CAD (Yang et al., 2026), product design (Cordier et al., 2013), and automotive styling (Nozawa et al., 2022) are organized accordingly, proceeding from sketching to 3D geometry and then to refinement.

This has spurred considerable interest in lifting 2D sketches to 3D geometry, and large sketch- and image-conditioned generators can now handle complex geometries (Nozawa et al., 2022; Zheng et al., 2023; Li et al., 2025a). However, in engineering design, the initial 3D shape is not the deliverable, but only the starting point of an optimization against a physical objective, such as minimizing aerodynamic drag or maximizing structural strength (You et al., 2026; Vatani et al., 2025). In most current pipelines (Zhan et al., 2025; Vatani et al., 2025), the sketch serves only to initialize the optimization. Its influence does not extend beyond the starting point, as the subsequent trajectory is determined by the physical objective and by the prior that constrains the design to remain valid. In modern implementations (Seiler et al., 2026; You et al., 2026), the optimization is often performed with respect to latent vectors (Chen et al., 2025; Xiang et al., 2025; Zhang et al., 2023) that parameterize the shapes, whereas the physical objective is evaluated in the explicit shape space, either by CFD (Jasak et al., 2007) with an adjoint method (Othmer, 2014) or by a surrogate model (Wu et al., 2024) trained on a set of exemplars. Once the optimization starts, the latent vector can easily move away from the manifold of vectors representing valid shapes, resulting in implausible ones and meaningless values of the objective function, either because CFD fails or because the surrogate models are not trained for such shapes. This is referred to as drift in (Xiang et al., 2025; Seiler et al., 2026) and can be mitigated by projecting the candidates back into the region in which the models are valid, for example using guided generative algorithms (Lugmayr et al., 2022; Meng et al., 2022; Seiler et al., 2026). However, this amounts to using a prior trained on shapes alone to project onto the aggregate shape distribution. Even when the projection is guided by the physical objective, the correction itself is still applied by the aggregate shape prior, and thus favors generic shapes. In other words, the very mechanism that keeps the optimization valid is also what erases what the sketch specified: Such a prior is agnostic to design intent, it can certify that a design is valid, not determine which valid design it should be. An optimizer asked to reduce the drag of a pickup truck may therefore succeed by returning a sedan or, as shown in Fig. 1(a), add an unintended rear wing while restyling the front bumper into that of a sports-car.

What is missing is an interface for design intent. Parameterized deformation and learned parameter-controlled generators such as LAMP (Nehme et al., 2025) provide one through explicit control variables (Zhang et al., 2026b; Nehme et al., 2025), but they are bounded by a hand-designed parameterization (Othmer, 2014; Masters et al., 2017) and tied to a few scalars, which makes them ill-suited to intent expressed as a roofline, a silhouette, or a tail treatment. Diffusion-based 3D models (Seiler et al., 2026) are not subject to this restriction, since they learn the design space from data, but they come with no design interface in its place. The sketch that started the pipeline is a natural candidate for that interface (Tovey et al., 2003): The side view of a car captures features such as the roofline and the rear slant, which give the car its distinct look but can also severely affect drag.

In this paper, we turn the sketch into such an interface by making it part of the prior rather than an input to it. Our AnchorGen framework, shown in Fig. 2, first learns latent representations for shapes and sketches, and then trains a single flow matching model (Lipman et al., 2022) over the concatenation of the two, thereby learning the joint distribution of shapes and sketches. At inference time, we minimize the physical objective by steering the sampling trajectory of the flow: We optimize the flow's intermediate states so that the decoded shape minimizes a surrogate estimate of the objective, while a penalty keeps the sketch component of the pair close to the latent vector of a target sketch in terms of cosine distance. Every candidate therefore remains a sample of the joint prior, and the penalty narrows that prior from the manifold of valid shapes to the subset consistent with the target. As a result, corrections that would otherwise pull a drifting design toward generic shapes of the data now pull it toward that subset. The sketch acts as an anchor that persists throughout the optimization. Training is fully unconditional: Both modalities are noised and denoised together, so the model learns their correspondence instead of a conditional of one given the other. A conditional model must commit to its control interface before training, whereas ours makes it possible to choose what to constrain, how strongly, and alongside which objective without additional training.

Our contributions are therefore as follows:

• A prior over shape-sketch pairs. We train a single unconditional flow over the joint latent of a shape and its sketch, which turns the sketch from an initialization into a constraint that persists throughout the optimization.

• Anchoring at inference time. We minimize a physical objective along this flow while constraining the sketch component to remain close to a target. The manifold correction is thereby directed to the sub-manifold of shapes consistent with the target sketch, instead of the high-density region of the shape distribution.

• A single model for three design tasks. Because the anchor is imposed only at inference, a single trained model supports three different usages; optimization anchored to an existing sketch, optimization anchored to an edited sketch that prescribes a targeted design change, and synthesis from noise anchored to a sketch alone.

We validate AnchorGen on two complementary benchmarks. ShapeNet (Chang et al., 2015) spans diverse vehicle types, enabling evaluation of whether optimized shapes remain within the original shape distribution against prior-based methods. DrivAerNet++ (Elrefaie et al., 2024) provides explicit design parameters, enabling quantitative evaluation of how precisely customized designs are realized, with comparisons to conditioning-based methods. AnchorGen achieves the best results across all metrics on both benchmarks and further generalizes to unseen sparse freehand sketches.

References (68)

  • One transformer fits all distributions in multi-modal diffusion at scale
  • D-Flow: Differentiating through Flows for Controlled Generation
  • Jiazhong Cen, Jiemin Fang, Sikuang Li, Guanjun Wu, Chen Yang, Taoran Yi, Zanwei Zhou, Zhikuan Bao, Lingxi Xie, Wei Shen, et al. Text-image conditioned 3d generation. arXiv preprint arXiv:2603.21295, 2026. (opens arXiv in a new tab)
  • Shapenet: An Information-Rich 3D Model Repository
  • Optimization and generation in aerodynamics inverse design (opens arXiv in a new tab)
  • Dora: Sampling and benchmarking for 3d shape variational autoencoders
  • Sd-fusion: Multimodal 3d shape completion, reconstruction, and generation
  • Cross-modal 3d shape generation and manipulation
  • Diffusion Posterior Sampling for General Noisy Inverse Problems
  • Inferring mirror symmetric 3d shapes from sketches
  • 3D Sketching Using Multi-View Deep Volumetric Prediction
  • Diffusion models beat gans on image synthesis
  • Sgcdiff: Sketch-guided cross-modal diffusion model for 3d shape completion
  • Monster Mash: A Single-View Approach to Casual 3D Modeling and Animation
  • Ai Agents in Engineering Design: A Multi-Agent Framework for Aesthetic and Aerodynamic Car Design
  • Drivaernet++: A large-scale multimodal car dataset with computational fluid dynamics simulations and deep learning benchmarks
  • Cfg-zero*: Improved classifier-free guidance for flow matching models (opens arXiv in a new tab)
  • Sketch2mesh: Reconstructing and Editing 3D Shapes from Sketches
  • Introduction of a New Realistic Generic Car Model for Aerodynamic Investigations
  • Classifier-Free Diffusion Guidance
  • Handmade: Spatial prompting for generative 3d creation with part-labeled vr sketches (opens arXiv in a new tab)
  • Teddy: A Sketching Interface for 3D Freeform Design
  • A c++ library for complex physics simulations
  • Contour-Based 3D Modeling through Joint Embedding of Shapes and Contours
  • Sketching folds: Developable surfaces from non-planar silhouettes
  • An Optimization-Based Approach to the Interpretation of Single Line Drawings as 3D Wire Frames
  • Pasta: Part-Aware Sketch-to-3D Shape Generation with Text-Aligned Prior
  • Meshpad: Interactive sketch-conditioned artist-reminiscent mesh generation and editing
  • Voxhammer: Training-Free Precise and Coherent 3D Editing In Native 3D Space
  • Omniflow: Any-to-any generation with multi-modal rectified flows
  • Flow Matching for Generative Modeling
  • Optimization-Based Reconstruction of a 3D Object from a Single Freehand Line Drawing
  • Flow straight and fast: Learning to generate and transfer data with rectified flow
  • Unified Multi-Field Prediction and Robust Shape Optimization for Vehicle Aerodynamics
  • Repaint: Inpainting Using Denoising Diffusion Probabilistic Models
  • 3D Shape Reconstruction from Sketches via Multi-View Convolutional Networks
  • Recovering Three-Dimensional Shape from a Single Image of Curved Objects
  • Geometric Comparison of Aerofoil Shape Parameterization Methods
  • Sdedit: Guided image synthesis and editing with stochastic differential equations
  • Vehiclesdf: A 3D Generative Model for Constrained Engineering Design via Surrogate Modeling
  • LAMP: Data-Efficient Linear Affine Weight-Space Models for Parameter-Controlled 3D Shape Generation and Extrapolation
  • 3d car shape reconstruction from a contour sketch using gan and lazy learning
  • DeepSDF: Learning Continuous Signed Distance Functions for Shape Representation
  • High-Resolution Image Synthesis with Latent Diffusion Models
  • Eliminating oversaturation and artifacts of high guidance scales in diffusion models
  • Rectified CFG++ for Flow Based Models
  • Flow-Corrected Shape Optimization: Taming Manifold Drift in High-Dimensional 3D Models
  • Multi-task learning as multi-objective optimization
  • Loss-guided diffusion models for plug-and-play controllable generation
  • Sketching, Concept Development and Automotive Design
  • TripOptimizer: Generative 3d shape optimization and drag prediction using triplane vae networks
  • Clipasso: Semantically-aware object sketching
  • Peng, Y.-T
  • Cfg-ctrl: Control-based classifier-free diffusion guidance (opens arXiv in a new tab)
  • Aerodynamic Shape Design Space Exploration with Deep Latent Diffusion Model
  • Qwen-Image Technical Report
  • Transolver: A fast transformer solver for pdes on general geometries
  • Analysis of classifier-free guidance weight schedulers
  • Structured 3d latents for scalable and versatile 3d generation
  • Sketch2arti: Sketch-based articulation modeling of cad objects
  • Physgen: Physically Grounded 3D Shape Generation for Industrial Design
  • Physiopt: Physics-driven shape optimization for 3d generative models
  • 3DShape2VecSet: A 3D Shape Representation for Neural Fields and Generative Diffusion Models
  • Diffatlas: Genai-Fying Atlas Segmentation via Image-Mask Diffusion
  • Genmed: A pairwise generative reformulation of medical diagnostic tasks
  • Flow priors for linear inverse problems via iterative corrupted trajectory matching
  • A Survey on Generative Methods in Automotive Aerodynamic Shape Optimization
  • Locally attentional sdf diffusion for controllable 3d shape generation