Papers › AgeFlow: Conditional Age Progression and Regression with Normalizing Flows

AgeFlow: Conditional Age Progression and Regression with Normalizing Flows

15 May 2021arXiv:2105.07239archive 2025-07-28

Zhizhong Huang, Shouzhen Chen, Junping Zhang, Hongming Shan

Age progression and regression aim to synthesize photorealistic appearance of a given face image with aging and rejuvenation effects, respectively. Existing generative adversarial networks (GANs) based methods suffer from the following three major issues: 1) unstable training introducing strong ghost artifacts in the generated faces, 2) unpaired training leading to unexpected changes in facial attributes such as genders and races, and 3) non-bijective age mappings increasing the uncertainty in the face transformation. To overcome these issues, this paper proposes a novel framework, termed AgeFlow, to integrate the advantages of both flow-based models and GANs. The proposed AgeFlow contains three parts: an encoder that maps a given face to a latent space through an invertible neural network, a novel invertible conditional translation module (ICTM) that translates the source latent vector to target one, and a decoder that reconstructs the generated face from the target latent vector using the same encoder network; all parts are invertible achieving bijective age mappings. The novelties of ICTM are two-fold. First, we propose an attribute-aware knowledge distillation to learn the manipulation direction of age progression while keeping other unrelated attributes unchanged, alleviating unexpected changes in facial attributes. Second, we propose to use GANs in the latent space to ensure the learned latent vector indistinguishable from the real ones, which is much easier than traditional use of GANs in the image domain. Experimental results demonstrate superior performance over existing GANs-based methods on two benchmarked datasets. The source code is available at https://github.com/Hzzone/AgeFlow.

PaperPDFCodeCode Syntology ranMethod as code

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 23 code samples harvested from 1 repository linked to this paper: 21 ran (of which 11 constructed an object rather than computing a result; 14 with no instrument failure: 3 honoured, 0 violated, 11 with no contract checked; 7 where Syntology's instrument failed) · 2 unverified. Where Syntology's instrument failed: 4 where our contract draft was wrong; 3 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: official repository: 23 samples from 1 repository, 21 ran (14 with no instrument failure; 7 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written on 2026-09-22 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

Hzzone/AgeFlow officialmentioned in papermentioned on GitHubpytorchSyntology: 23 samples, 21 ran (7 instrument-failed) · 2 unverified report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

23 samples harvested: 21 ran (of which 11 constructed an object rather than computing a result; 14 with no instrument failure: 3 honoured, 0 violated, 11 with no contract checked; 7 where Syntology's instrument failed) · 2 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page has not changed since , the first build that kept a record date for it; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

3ran · honoured contract
4ran · our draft was wrong
3ran; the contract check could not run
11ran
2unverified

Licence: 23 of the 23 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from Hzzone/AgeFlow. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. For 8 samples that ran, the graph records a signature this page does not show: for a class the fixture built without calling, the harness called the object with inputs it made up itself, so the recorded signature is the harness's probe, not the fixture's arguments. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of six reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.

Hzzone/AgeFlow official repository 23 samples, 21 ran (7 instrument-failed) · 2 unverified
ActNorm in 10 papers flow/models.py ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · 67d781f4602f02f5 · report fixture: returned ActNorm · level recorded 2026-09-22
ActNormIdentity flow/models.py ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · 8a5199c47441052c · report fixture: returned ActNormIdentity · level recorded 2026-09-22
AdditiveCoupling flow/models.py ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · 1f54264a141384c7 · report fixture: returned AdditiveCoupling · level recorded 2026-09-22
FFHQ flow/models.py ran no licence file found · pointer only · f3e22c522e53059d · report fixture: returned FFHQ · level recorded 2026-09-22
FlowStage flow/models.py ran · metamorphic tier: deterministic no licence file found · pointer only · 684724058832aeee · report fixture: returned FlowStage · level recorded 2026-09-22
FlowStep flow/models.py ran · metamorphic tier: deterministic no licence file found · pointer only · e94f31a77328a37f · report fixture: returned FlowStep · level recorded 2026-09-22
InvConv2dLU flow/models.py ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · c85aa71d90338f40 · report fixture: returned InvConv2dLU · level recorded 2026-09-22
LoggerX flow/models.py ran no licence file found · pointer only · d1893bf23fab0cb8 · report fixture: returned LoggerX · level recorded 2026-09-22
Permute2d flow/models.py ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · 85639b3ba9f057a1 · report fixture: returned Permute2d · level recorded 2026-09-22
ZeroConv2d flow/models.py ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · 912baae06bb0a022 · report fixture: returned ZeroConv2d · level recorded 2026-09-22
ZeroLinear flow/models.py ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · 1ca73b310bf00139 · report fixture: returned ZeroLinear · level recorded 2026-09-22
compute_z_shapes flow/models.py ran · honoured contract no licence file found · pointer only · 552ec79f642a2d22 · report fixture: signature image_size:int/0/int, in_channels:int/0/int, n_stages:int/0/int · returned list · level recorded 2026-09-22
create_FFHQ_AGING flow/models.py ran · our draft was wrong no licence file found · pointer only · dd3afbe689f2b10c · report fixture: signature data_root:str/0/str, label_file:str/0/str · returned ndarray · level recorded 2026-09-22
gaussian_log_p in 6 papers flow/models.py ran · honoured contract fingerprinted no licence file found · pointer only · d5a077f28a1ff247 · report fixture: signature x:Tensor/2/float, mean:Tensor/2/float, log_std:Tensor/2/float · returned Tensor · level recorded 2026-09-22
gaussian_sample in 9 papers flow/models.py ran · honoured contract fingerprinted no licence file found · pointer only · 5878daa1dccaec7e · report fixture: signature eps:Tensor/2/float, mean:Tensor/2/float, log_std:Tensor/2/float · returned Tensor · level recorded 2026-09-22
get_varname flow/models.py ran · our draft was wrong fingerprinted no licence file found · pointer only · 8202cda89783fb5f · report fixture: signature var:str/0/str · returned str · level recorded 2026-09-22
load_network in 5 papers flow/models.py ran · our draft was wrong no licence file found · pointer only · 2f38c15938410aa5 · report fixture: signature state_dict:dict/0/? · returned OrderedDict · level recorded 2026-09-22
reduce_tensor in 32 papers
census: 5 implementations from 6 papers, 3 distinct outputs on one shared input this sample: bucket 1 of 1, arg 1: rank 2, kind float, dtype float32
flow/models.py ran; the contract check could not run (RAISES) · metamorphic tier: invariant no licence file found · pointer only · a25acbda57ff74c2 · report fixture: signature tensor:Tensor/2/float, world_size:int/0/int · returned Tensor · level recorded 2026-09-22
sample_z in 5 papers flow/models.py ran · our draft was wrong no licence file found · pointer only · ade35b7f72f16885 · report fixture: signature input_shape:tuple/1/int, n_stages:int/0/int, temp:float/0/float · returned list · level recorded 2026-09-22
squeeze2d flow/models.py ran; the contract check could not run (RAISES) · metamorphic tier: invariant fingerprinted no licence file found · pointer only · 7bc21d94594a2b01 · report fixture: signature input:Tensor/4/float · returned Tensor · level recorded 2026-09-22
unsqueeze2d flow/models.py ran; the contract check could not run (RAISES) · metamorphic tier: invariant fingerprinted no licence file found · pointer only · 5658ffcad4efab8e · report fixture: signature input:Tensor/4/float · returned Tensor · level recorded 2026-09-22
FLOW flow/models.py unverified no licence file found · pointer only · 0d6339c31707ba87 · report
Flow in 10 papers flow/models.py unverified no licence file found · pointer only · afe7965aec801c93 · report

Method as code Syntology

What Syntology's graph records as this paper's claimed method, lifted into code: each assembly names its bricks (functions and classes), each with its own role and its own verification level. An assembly is not a check that the code implements the method correctly or reproduces the paper's results. Levels are each brick's own verification level in Syntology's graph (level 0: no recorded run), listed brick by brick and never combined into one level; “ran” means the brick executed on a synthesized input, not that its output is correct, and the instrument figure counts failures of Syntology's instrument, not of the code. Where a model read the code against the paper's claim, each assembly's label verdict is one model's judgement, kept in this page's JSON twin; it is not calibrated, so no card prints it.

1 assembly on this paper: 1 harvested, 0 generated.

harvested Assembly for AgeFlow (graph method: AgeFlow). 23 bricks; individually on a fixture: 21 ran (of which 11 constructed an object rather than computing a result; 14 with no instrument failure: 3 honoured, 0 violated, 11 with no contract checked; 7 where Syntology's instrument failed) · 2 unverified. The assembly has not been run end-to-end.

  1. FLOW entry · level 0 · unverified · 0d6339c31707ba87
  2. ActNorm model · level 1 · ran · 67d781f4602f02f5
  3. ActNormIdentity helper · level 1 · ran · 8a5199c47441052c
  4. AdditiveCoupling helper · level 1 · ran · 1f54264a141384c7
  5. Flow helper · level 0 · unverified · afe7965aec801c93
  6. InvConv2dLU helper · level 1 · ran · c85aa71d90338f40
  7. LoggerX helper · level 1 · ran · d1893bf23fab0cb8
  8. Permute2d model · level 1 · ran · 85639b3ba9f057a1
  9. compute_z_shapes helper · level 1 · ran · honoured contract · 552ec79f642a2d22
  10. load_network helper · level 1 · ran · our draft was wrong · 2f38c15938410aa5
  11. sample_z helper · level 1 · ran · our draft was wrong · ade35b7f72f16885
  12. ZeroConv2d helper · level 1 · ran · 912baae06bb0a022
  13. FlowStage model · level 1 · ran · 684724058832aeee
  14. get_varname helper · level 1 · ran · our draft was wrong · 8202cda89783fb5f
  15. reduce_tensor helper · level 1 · ran; the contract check could not run (RAISES) · a25acbda57ff74c2
  16. squeeze2d helper · level 1 · ran; the contract check could not run (RAISES) · 7bc21d94594a2b01
  17. FlowStep model · level 1 · ran · e94f31a77328a37f
  18. ZeroLinear helper · level 1 · ran · 1ca73b310bf00139
  19. gaussian_log_p helper · level 1 · ran · honoured contract · d5a077f28a1ff247
  20. gaussian_sample helper · level 1 · ran · honoured contract · 5878daa1dccaec7e
  21. unsqueeze2d helper · level 1 · ran; the contract check could not run (RAISES) · 5658ffcad4efab8e
  22. FFHQ helper · level 1 · ran · f3e22c522e53059d
  23. create_FFHQ_AGING helper · level 1 · ran · our draft was wrong · dd3afbe689f2b10c

Each brick ends with its code_sha256, Syntology's identity for that exact code; click one to copy the get_code call that returns it. For agents, on Syntology's MCP service: assembly(arxiv_id="2105.07239") returns these assemblies with each brick's role and wiring (how to connect).

Tasks

AttributeKnowledge Distillationregression

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Knowledge Distillation

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections