CA-Edit: Causality-Aware Condition Adapter for High-Fidelity Local Facial Attribute Editing

Xiaole Xian, Xilin He, Zenghao Niu, Junliang Zhang, Weicheng Xie, Siyang Song, Zitong Yu, Linlin Shen

Introduction

Local facial attribute editing—modifying specific features like eyes, nose, or skin via text prompts—is a cornerstone of personalized image generation. However, existing methods often fall into the "Uncanny Valley," where edits either ignore the text prompt or fail to preserve the original subject's skin texture and identity. CA-Edit addresses these challenges by introducing a framework that balances prompt adherence with high-fidelity preservation through causality-aware modeling.

Comparison of CA-Edit against existing methods. Existing approaches often suffer from description misalignment (a), missing skin details (b), or textual-visual conflict (c). CA-Edit achieves local attribute description, specific skin details, and textual-visual harmony.

The Challenge of Local Fidelity

The primary difficulty in local editing lies in contextual causality. Standard inpainting models often treat the masked area in isolation or rely on generic fillers, leading to "content leakage" or visual "patches" that do not match the surrounding skin. As illustrated in the comparison above, existing methods often fail to capture fine-grained details—such as the specific folds of a closed eyelid—or lose the unique skin tone of the subject when attempting to follow a text prompt.

The CA-Edit Framework

The authors propose a three-component solution to achieve seamless, high-fidelity edits:

1. LAMask-Caption Pipeline

To provide the necessary supervision for fine-grained control, the authors developed the LAMask-Caption dataset. Using Multimodal Large Language Models (MLLMs), they generated 200,000 detailed, region-specific captions (e.g., "narrow, straight nose") paired with precise segmentation masks. This dataset allows the model to learn the relationship between specific text descriptions and local facial regions.

2. Causality-Aware Condition Adapter (CA²)

The CA² module is the core architectural innovation. It uses a dynamic Score Predictor to evaluate the "textual importance" of a prompt. If the prompt is highly specific, the adapter suppresses the influence of the original image in the masked region to allow for significant attribute changes. If the prompt is vague, it prioritizes the original image's features to maintain identity and texture fidelity.

3. Skin Transition Frequency Guidance (STFG)

To ensure smooth transitions at the edit boundaries, CA-Edit employs STFG. By enforcing low-frequency similarity between the original and edited images in the Fourier domain, the model preserves global skin tone and lighting while allowing high-frequency changes (like new eye shapes or textures) within the edited region.

Key Results

CA-Edit was benchmarked using FFLEBench, a new dataset of 15,000 samples designed for local facial editing evaluation. The results demonstrate significant improvements over state-of-the-art methods:

  • Fidelity: CA-Edit achieved an LPIPS score of 0.085, nearly doubling the performance of standard Stable Diffusion Inpainting (0.175).
  • Text Alignment: On the HPSv2 metric, CA-Edit scored 0.264, outperforming baselines like BrushNet and StyleClip.
  • User Preference: In a user study, 86% of participants preferred CA-Edit’s results, citing superior skin harmony and better adherence to complex prompts.

Conclusion

By treating local facial editing as a causal balancing act between text and image, CA-Edit overcomes the common trade-offs of identity loss and prompt neglect. The combination of granular data, dynamic adaptation, and frequency-based guidance sets a new standard for high-fidelity, controllable facial manipulation.

Summary updated

BibTeX
@inproceedings{xian2025ca,
  author = {Xiaole Xian and Xilin He and Zenghao Niu and Junliang Zhang and Weicheng Xie and Siyang Song and Zitong Yu and Linlin Shen},
  title = {{CA-Edit: Causality-Aware Condition Adapter for High-Fidelity Local Facial Attribute Editing}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i8.32928},
}
Figure