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.
Figures & tables
Fig. 1: We compare TimeMachine with several state-of-the-art face editing approaches, including GAN-based SAM [ 1 ] and diffusion-based PhotoMaker [ 2 ] and FADING [ 3 ] . Given the same input identity and target age, the examples illustrate differences in age transformation, identity preservation, and visual quality. Aggregate quantitative comparisons are reported in Section IV. (Zoom in for the best view.)
Fig. 2: HFFA construction pipeline. Each facial image undergoes filtering, cropping, resizing, and super-resolution before a pretrained age estimator, a vision-language model, and a face representation extractor produce the corresponding annotations. Embeddings assigned to the same numerical age are averaged to construct an age codebook that provides shared age representations while reducing sample-specific variation.
Fig. 3: Overview of the TimeMachine pipeline. (a) Age and identity conditions guide the diffusion model toward fine-grained age transformation with identity preservation. (b) Multi-Cross-Attention processes text, numerical age-text, identity, and age conditions through separate attention branches. (c) The training-only ACG module predicts age embeddings from latent denoising features and provides additional age-related supervision without pixel-space reconstruction.
Fig. 4: Qualitative comparison with state-of-the-art methods. We conduct extreme age editing generation tests on each identity, showing results at age 10 (top row) and age 80 (bottom row). Our model effectively performs age editing while preserving identity information.
Fig. 5: Representative progressive-age comparison among SAM, FADING, and TimeMachine over target ages from 10 to 80. The displayed sequences illustrate differences in age-transition strength, visual consistency, and the preservation of subject-specific facial characteristics.
Fig. 6: Overview of the captioning process for our dataset. We use Qwen2.5-VL-72B-Instruct to generate captions by asking specific questions about the images, and then use the obtained responses as the captions. The results are compared with those generated by the BLIP model.
Fig. 7: Results of the preprocessing steps, including cropping and super-resolution (SR) enhancement.
Evaluator
Valid
Mean ∣Δa∣↓
±5↑
±10↑
Pearson r↑
MIVIA
10,000
5.14
59.58%
88.27%
0.855
Faceptor
10,000
4.70
68.19%
88.43%
0.830
Phi-4
9,998
4.58
69.74%
91.63%
0.905
Qwen3-VL
10,000
5.22
63.81%
88.53%
0.932
Consensus
9,998
3.47
78.28%
96.73%
0.945
TABLE I: Cross-estimator consistency between the MiVOLO-derived HFFA age labels and four independent age evaluators on 10,000 randomly sampled HFFA images. Consensus denotes the per-image median of the four independent predictions.
Group
Group 1
Group 2
Group 3
Group 4
Similarity ↑
0.998
0.976
0.994
0.989
TABLE II: Similarity between group-specific and overall age codebooks
TABLE III: Quantitative comparison on the 500-image CelebA-HQ test set. Age MAE is evaluated using MiVOLO, identity similarity is evaluated using AdaFace, and FaceQ and Blur are obtained from FACE++. The best result is shown in bold , and the second best is underlined .
Model
UNet FLOPs/step ↓
Peak memory ↓
Latency/image ↓
SD1.5 reference
1606.78 G
3.071 GiB
3.1283 s
TimeMachine
1686.89 G
3.311 GiB
4.0633 s
TABLE IV: Matched computational profile.
Dataset
Resolution
Size
Age Range
HFFA
1024×1024
Approx. 1M
1–85
MORPH
180×180
55,134
16–77
AgeDB
Variable
16,488
1–101
CACD
250×250
163,446
14–62
FFHQ-Aging
1024×1024
70,000
0–2 to 70+
TABLE V: Comparison of different age datasets
Fig. 8: Representative qualitative results across FairFace-assigned Groups 1–4. Each example shows the input and edited results at target ages of 10, 40, and 70.
Method
MiVOLO
MIVIA
Faceptor
Phi-4
Qwen3-VL
LATS
6.270
10.592
11.860
7.267
7.381
CUSP
12.216
12.918
14.246
13.099
13.849
SAM
5.059
8.151
10.884
6.475
6.607
IP-Adapter
6.331
8.824
9.418
6.258
6.785
PhotoMaker
20.833
19.627
18.656
20.124
20.265
FADING
4.653
7.900
10.268
6.765
7.284
TABLE VI: Average Age MAE ( ↓ ) on the 500-image CelebA-HQ test set under five age evaluators. The best result is shown in bold , and the second best is underlined .
Dataset
MiVOLO MAE ↓
MIVIA MAE ↓
AdaFace Sim. ↑
SAM
FADING
Ours
SAM
FADING
Ours
SAM
FADING
Ours
MORPH
4.154
6.958
4.101
8.633
8.506
7.030
0.355
0.617
0.627
AgeDB
5.188
6.371
3.499
8.567
8.429
7.109
0.423
0.658
0.692
FFHQ
4.677
7.903
4.426
8.201
8.222
6.982
0.385
0.596
0.630
CACD
4.705
6.066
3.383
7.410
11.855
7.255
0.410
0.584
0.627
Overall
4.681
6.825
3.852
8.203
9.253
7.094
0.393
0.614
0.644
TABLE VII: Cross-dataset results on 500 images per dataset. Best in bold .
Group
MiVOLO MAE ↓
MIVIA MAE ↓
AdaFace Sim. ↑
SAM
FADING
Ours
SAM
FADING
Ours
SAM
FADING
Ours
Group 1
5.461
5.171
3.096
8.407
8.296
5.014
0.399
0.605
0.689
Group 2
5.632
3.698
3.442
8.362
7.598
7.417
0.391
0.653
0.705
Group 3
4.450
4.405
3.414
7.386
7.601
6.131
0.384
0.634
0.671
Group 4
4.763
3.298
3.156
8.361
7.096
6.143
0.429
0.678
0.700
Overall
5.077
4.143
3.277
8.129
7.648
6.176
0.401
0.643
0.691
TABLE VIII: Results across FairFace-assigned Groups 1–4, with 100 images per group. Best in bold .
Fig. 9: Representative qualitative results under diverse and challenging single-subject input conditions. Each input is edited toward target ages of 10, 40, 70.
Fig. 10: Practical multi-subject facial age editing through a crop-edit-composite pipeline. Each face is localized, cropped, and edited independently before being composited back into the original full-scene image.
Fig. 11: Representative challenging cases illustrating residual failure modes under a stylized input and a foreground occlusion. Each input is edited toward target ages of 10, 40, and 70 using SAM, FADING, and TimeMachine.
Variant
MiVOLO MAE ↓
MIVIA MAE ↓
AdaFace Sim. ↑
Multi-CA (W/O ACG)
3.242
5.742
0.679
W/O Age Conditions
20.609
19.569
0.676
W/O ID Branch
4.298
5.875
0.092
TABLE IX: Ablation of the dedicated age and identity conditions on the 500-image CelebA-HQ test set. All variants are trained without ACG.
Fig. 12: Ablation study on different condition controls. We demonstrate the performance of TimeMachine with different condition control at ages of 10, 30, 50, and 80.
Method
MiVOLO MAE ↓
MIVIA MAE ↓
AdaFace Sim. ↑
KV Concatenation
3.532
6.456
0.674
Dynamic Gated Fusion
3.362
6.227
0.676
Multi-CA (Ours)
3.242
5.742
0.679
TABLE X: Attention-fusion comparison without ACG.
Method
MiVOLO MAE ↓
MIVIA MAE ↓
AdaFace Sim. ↑
Adapter composition
6.409
9.813
0.392
Multi-CA (W/O ACG)
3.242
5.742
0.679
Full TimeMachine
3.081
5.565
0.682
TABLE XI: Inference-time adapter composition versus jointly optimized Multi-CA.
Variant
MiVOLO MAE ↓
MIVIA MAE ↓
AdaFace Sim. ↑
Full model
3.081
5.565
0.682
Without ACG
3.242
5.742
0.679
TABLE XII: Effectiveness of the training-time ACG objective.
Fig. 13: Visualization of age condition control by age scale.
Fig. 14: Visualization of branch-specific attention maps.
Method
Criterion
Preference
Score (95% CI)
TM
Tie
Comp.
SAM
Age
74.9
13.3
11.8
81.5 (78.6–84.5)
Identity
70.2
16.1
13.7
78.3 (75.0–81.5)
Quality
72.2
13.1
14.7
78.8 (75.4–82.0)
FADING
Age
73.9
13.9
12.2
80.8 (77.8–83.9)
Identity
72.4
15.7
11.8
80.3 (77.0–83.5)
TABLE XIII: Results of the blind user study. All values are percentages.
Beijing University of Posts and Telecommunications · Department of Computer Science and Technology, Institute for AI, Tsinghua University · Minzu University of China +1