TimeMachineFine-Grained Facial Age Editing
with Identity Preservation

Yilin Mi1,2*Qixin Yan2*Zheng-Peng Duan1Chunle Guo1
Hubery Yin2Hao Liu2Chen Li2Jing Lyu2Chongyi Li1†
1 VCIP, CS, Nankai University2 WeChat Vision, Tencent Inc.
* Equal contribution† Corresponding author
Paper Dataset Coming soon Code BibTeX

Overview

Precise age transformations, with identity at the center. TimeMachine combines a million-scale facial-age collection with dedicated age and identity conditions in a unified diffusion framework. Multi-Cross-Attention coordinates these conditions, while training-only Age Classifier Guidance provides additional age supervision.

Read the full abstract

With the advancement of generative models, facial image editing has made significant progress. However, achieving fine-grained age editing while preserving personal identity remains a challenging task. In this paper, we propose TimeMachine, a unified diffusion-based framework for accurate facial age editing with identity preservation.

TimeMachine employs fine-grained age conditions and a Multi-Cross-Attention module to decouple the dedicated age and identity conditions. This branch-wise design enables controllable age transformation while maintaining identity consistency. Furthermore, we introduce an Age Classifier Guidance (ACG) module that predicts age embeddings from latent denoising features without reconstructing images during training. This lightweight training-only predictor provides additional age-related supervision and is removed during inference.

To support large-scale training, we construct HFFA (High-quality Fine-grained Facial-Age), a million-scale collection of high-resolution face images annotated with captions, identity embeddings, MiVOLO-estimated numerical ages, and age embeddings. Extensive experiments across five public face datasets demonstrate that TimeMachine achieves superior age accuracy and identity preservation relative to the evaluated baselines, with consistent conclusions across five age estimators.

The data

HFFA: learning how faces age

High-quality Fine-grained Facial-Age, with rich annotations and a numerical age codebook.

≈1Mfacial images
1–85estimated ages
1024²image resolution
From images to age representations. Filtering, cropping, and super-resolution are followed by captioning and age and identity feature extraction. Embeddings assigned to the same numerical age are averaged into a shared age codebook. Numerical age labels are model estimates.
The method

Age control meets identity preservation

A dedicated branch for each condition, within a unified diffusion framework.

TimeMachine at a glance. (a) The conditional diffusion pipeline. (b) Multi-Cross-Attention with dedicated branches. (c) The training-only Age Classifier Guidance objective.

Fine-grained age conditions

A numerical age phrase and an averaged age codebook specify the desired transformation.

Multi-Cross-Attention

Separate attention branches process text, numerical age-text, age, and identity conditions.

Training-only age guidance

ACG predicts age embeddings from denoising features and is removed during inference.

Qualitative comparisons

One identity, different ages

Representative comparisons with existing facial age-editing methods. Click a figure to view it at a larger scale.

Age editing with identity preservation

Click to enlarge ↗
A comparison of SAM, PhotoMaker, FADING, and TimeMachine under the same input identities and target ages.

Rejuvenation to 10 · Aging to 80

Click to enlarge ↗
For each identity, the upper row targets age 10 and the lower row targets age 80. The comparison includes LATS, CUSP, SAM, IP-Adapter, PhotoMaker, FADING, and TimeMachine.

Progressive editing from 10 to 80

Click to enlarge ↗
Progressive target ages expose the strength and consistency of age transformations, alongside the preservation of subject-specific facial characteristics.
Challenging inputs

Beyond frontal, well-lit portraits

Profile views, expressions, backgrounds, makeup, challenging illumination, and artistic styles. Each example shows the input and target ages of 10, 40, and 70.

Profile views

Input104070

Expressions

Input104070

Complex backgrounds

Input104070

Makeup

Input104070

Low light & low quality

Input104070

Artistic styles

Input104070
Multi-subject editing: crop, edit, and composite
Each face is localized, cropped, and edited independently, then composited into the original scene using the same trained model.
Demographic groups

Age editing across four groups

Representative results for Groups 1–4, following the FairFace-assigned groups in our evaluation. The columns show the input and target ages of 10, 40, and 70.

Group 1

Input104070

Group 2

Input104070

Group 3

Input104070

Group 4

Input104070
Quantitative evaluation

Age accuracy and identity consistency

500 CelebA-HQ images, each edited toward seven target ages from 10 to 70.

Aggregate comparison on CelebA-HQ.
MethodAge MAE ↓Identity similarity ↑FaceQ ↑Blur ↓
LATS6.2700.47468.5320.883
CUSP12.2160.57667.3960.993
SAM5.0590.41370.1311.699
IP-Adapter6.3310.52073.6530.536
PhotoMaker20.8330.35274.5810.995
FADING4.6530.66866.7230.668
TimeMachine (Ours)3.0810.68275.2280.479

Aggregate results from Table III of the revised manuscript. Age MAE: MiVOLO. Identity similarity: AdaFace. FaceQ and Blur: FACE++. Arrows indicate the preferred direction. All methods use the same 500 inputs and seven target ages.

BibTeX

arXiv:2508.11284 · 2025 preprint

@misc{mi2025timemachine,
  title         = {TimeMachine: Fine-Grained Facial Age Editing with Identity Preservation},
  author        = {Yilin Mi and Qixin Yan and Zheng-Peng Duan and Chunle Guo
                   and Hubery Yin and Hao Liu and Chen Li and Chongyi Li},
  year          = {2025},
  eprint        = {2508.11284},
  archivePrefix = {arXiv},
  primaryClass  = {cs.CV},
  doi           = {10.48550/arXiv.2508.11284},
  url           = {https://arxiv.org/abs/2508.11284}
}