TL;DR
LaTo is a novel Diffusion Transformer (DiT) framework designed for fine-grained, instruction-based human face editing. Instead of using rendered images for geometric control, LaTo uses quantized landmark coordinates. By decoupling facial geometry from pixel-level appearance and introducing a Vision-Language Model (VLM) based landmark predictor, LaTo achieves highly precise expression and pose edits while strictly preserving the subject's identity. The authors also introduce HFL-150K, a massive new dataset of 150,000 face editing pairs to train and benchmark such models.
The Problem: Identity Drift and Computational Bloat
Instruction-based image editing models (like InstructPix2Pix or FLUX.1-Kontext) excel at general semantic changes but struggle with the precise control required for human faces. Asking a model to "turn the subject's head 45° to the left and make them smile" often alters the person's underlying identity or generates unnatural artifacts.
To fix this, researchers typically use facial landmarks (2D coordinates of the eyes, nose, mouth, etc.) as a structural guide. However, existing methods usually render these landmarks into a 2D image and feed it to the model. This creates two major problems:
- Identity Drift: Rendering landmarks forces the model into "pixel-wise copying." If the target pose differs vastly from the source image, the model rigidly copies the new shape, often losing the original person's identity in the process.
- Computational Bloat: Processing full-resolution landmark images adds thousands of dense visual tokens to the diffusion model, which is highly memory- and compute-intensive.
The LaTo Solution
LaTo (Landmark-Tokenized Diffusion Transformer) abandons rendered images in favor of a purely coordinate-based approach. Its architecture introduces several key innovations:
- Landmark Tokenizer: Instead of drawing landmarks on a canvas, LaTo takes the raw (X,Y) coordinates and quantizes them into discrete tokens using a VQVAE-style codebook. This creates compact, expressive "facial tokens" that represent geometry without tying it to specific pixels.
- Location-Mapping Positional Encoding: To tell the model where these sparse tokens belong, LaTo uses a custom positional encoding that anchors each landmark token to its physical location in the latent grid, ensuring precise regional guidance.
- Landmark-Aware Classifier-Free Guidance (CFG): In standard diffusion models, dropping the condition for CFG means feeding a blank image. However, a "blank" coordinate array conflicts with the physical reality of a face, causing the model to simply copy the source image. LaTo trains specific "unconditional tokens" to represent a semantically meaningful neutral state, improving robustness.
- VLM-Based Landmark Predictor: Because users cannot manually input 68 precise coordinates, the authors fine-tuned a lightweight Vision-Language Model (Qwen2.5-VL-3B). It reads the text instruction and the source image, then outputs the exact target coordinates using a structured 4-stage Chain-of-Thought (CoT) reasoning process (analyze state $\rightarrow$ decompose instruction $\rightarrow$ reason about kinematics $\rightarrow$ estimate coordinates).
HFL-150K Dataset
To train LaTo, the authors curated HFL-150K, a massive dataset of over 150,000 image-edit instruction triplets. It combines synthetic data (generated by advanced models like GPT-4o and Step1X-Edit) and real-world data extracted from human-centric videos (using adjacent frames to capture natural pose and expression changes). It currently stands as the largest benchmark for this specific task.
Key Results and Insights
- Coordinates > Pixels: Directly tokenizing coordinates decouples geometry from appearance. The model learns what the shape means rather than just copying a template. This drastically reduces identity drift during extreme pose or expression changes.
- State-of-the-Art Quality: On the HFL-150K benchmark, LaTo outperformed SOTA models (like Bagel, FLUX.1-Kontext, and Step1X-Edit), achieving a 7.8% improvement in Identity Preservation and a 4.6% improvement in Semantic Consistency.
- Computational Speedup: Compared to standard rendered-image conditioning variants, LaTo's coordinate-based tokenizer achieved a 37% speedup while delivering higher visual quality by avoiding the quadratic scaling costs of self-attention on dense image tokens.
- Predictor Accuracy: The fine-tuned VLM landmark predictor hit 73.0% accuracy in human evaluations, significantly outperforming massive generalist models like Gemini 1.5 Pro (61.3%) and Qwen2.5-VL-72B (59.7%).
Limitations and Future Work
While highly effective, LaTo has a few limitations. Pushing the Classifier-Free Guidance (CFG) scale too high (e.g., above 4) improves landmark alignment but can generate visual artifacts and compromise overall image quality. Additionally, extreme cases like missing landmarks, cross-identity landmark transfers, or highly stylized (non-photorealistic) inputs can still challenge the model.
Looking ahead, the authors position LaTo as a strong foundation for controllable, human-centric editing, hinting at future extensions into video editing and more generalized bodily motion control beyond just faces.
Summary updated