TL;DR
LaTo introduces a novel landmark-tokenized diffusion transformer that enables fine-grained, identity-preserving human face editing from text instructions. By quantizing raw landmark coordinates into discrete tokens rather than rendering them as dense images, LaTo decouples facial geometry from appearance, achieving state-of-the-art identity preservation and semantic consistency with significantly reduced computational overhead.
What Problem Does This Paper Address?
Instruction-based face editing (e.g., "make her smile slightly and turn her head 30° left") is crucial for virtual avatars and digital human synthesis. While large vision-language models have advanced general image editing, they often struggle with precise facial control and identity preservation.
To guide these models, researchers frequently use facial landmarks (2D coordinates of eyes, nose, mouth) as structural priors. However, modern Diffusion Transformers (DiTs) typically rasterize these landmarks into 2D images and process them via a VAE. This introduces two major flaws:
- Identity Drift: Conditioning on rendered images forces the model into rigid, pixel-wise "template copying" rather than geometric reasoning. When the target pose or expression deviates significantly from the source, the subject's identity is often lost.
- Computational Inefficiency: Appending long, dense visual landmark tokens to diffusion tokens incurs massive memory and compute costs due to the quadratic scaling of self-attention.
Methods
LaTo (Landmark-Tokenized Diffusion Transformer) bypasses dense image rendering entirely through three core components:
- Landmark Tokenizer: A VQVAE-style codebook that directly quantizes raw 2D landmark coordinates into a sparse sequence of discrete facial tokens. This preserves structural geometry while keeping the token sequence compact.
- Multi-Modal Token Fuser: Integrates text, source image, noisy image, and landmark tokens into a unified DiT representation. It utilizes a location-mapping positional encoding to anchor sparse landmark tokens to their physical locations in the latent grid. Additionally, it introduces landmark-aware classifier-free guidance (CFG) using learnable unconditional tokens instead of zero-embeddings, preventing the model from defaulting to a rigid copy of the source face.
- Landmark Predictor: To make the system user-friendly, the authors fine-tuned a lightweight vision-language model (Qwen2.5-VL-3B) to act as a landmark predictor. Given a source image and a text instruction, it uses a structured Chain-of-Thought (CoT) process to predict the precise target landmark coordinates.
Datasets
To train and evaluate LaTo, the authors introduced HFL-150K, which is currently the largest benchmark for fine-grained face editing.
- Scale: Contains over 150,000 high-quality face pairs (302,014 total images).
- Construction: Built using a hybrid pipeline. Synthetic data was generated using advanced editing models (like Flux.1-Kontext and Step1X-Edit) and filtered via automated expression validators and pose discriminators. Real-world data was curated from human-centric video datasets to capture natural intra-identity variations.
- Annotations: Every pair is annotated with high-precision landmarks and fine-grained text instructions specifying explicit change magnitudes (e.g., expression intensities and parametric head-pose angles).
Key Insights and Ideas
- Disentangling Geometry from Appearance: Treating landmarks as discrete coordinate tokens rather than pixel-rendered images allows the DiT blocks to perform flexible geometric reasoning. The model learns how facial features move independently of the subject's specific visual identity.
- The Flaw of Zero-Embeddings in CFG: In standard image-conditioned diffusion, the unconditional branch is fed a zero image. However, zeroing out landmark coordinates creates a geometric state that conflicts with physical facial dynamics. This causes the model to rigidly copy the reference face at high CFG scales. Replacing zeroes with learnable unconditional tokens explicitly encodes an unconstrained state, restoring editing flexibility.
- Task-Specific CoT for Landmarks: General-purpose VLMs struggle to output precise coordinate shifts. Breaking down the prediction into structured steps—initial state analysis, instruction decomposition, kinematic-chain reasoning, and coordinate estimation—drastically improves landmark accuracy.
Key Results
LaTo achieves state-of-the-art performance across both synthetic and real-world benchmarks:
- Quantitative Performance: On the HFL-150K test set, LaTo outperforms the closest state-of-the-art method (Bagel) by 4.6% in semantic consistency and beats FLUX.1-Kontext by 7.8% in identity preservation.
- Efficiency: By utilizing sparse coordinate tokens instead of dense image tokens, LaTo achieves a 37% speedup over rendered-image conditioning baselines, matching the computational efficiency of unconditioned DiTs.
- Robustness: LaTo demonstrates remarkable stability under challenging conditions, such as extreme stylistic inputs, incomplete landmark data (up to 50% dropout), and cross-identity driving scenarios.
Limitations and Future Work
While highly effective, LaTo's performance is bound by the complex architecture of its underlying base DiT model, which limits real-time, on-the-fly processing. Furthermore, when input images feature extreme head poses combined with heavy occlusions, the landmark estimation becomes less reliable, causing minor identity degradation.
The authors plan to address these challenges by incorporating 3D-aware facial priors and enriching the dataset with explicit occlusion annotations.
Summary updated