Papers › Transforming the Latent Space of StyleGAN for Real Face Editing

Transforming the Latent Space of StyleGAN for Real Face Editing

29 May 2021arXiv:2105.14230archive 2025-07-28

Heyi Li, Jinlong Liu, Xinyu Zhang, Yunzhi Bai, Huayan Wang, Klaus Mueller

Despite recent advances in semantic manipulation using StyleGAN, semantic editing of real faces remains challenging. The gap between the W space and the W+ space demands an undesirable trade-off between reconstruction quality and editing quality. To solve this problem, we propose to expand the latent space by replacing fully-connected layers in the StyleGAN's mapping network with attention-based transformers. This simple and effective technique integrates the aforementioned two spaces and transforms them into one new latent space called W++. Our modified StyleGAN maintains the state-of-the-art generation quality of the original StyleGAN with moderately better diversity. But more importantly, the proposed W++ space achieves superior performance in both reconstruction quality and editing quality. Despite these significant advantages, our W++ space supports existing inversion algorithms and editing methods with only negligible modifications thanks to its structural similarity with the W/W+ space. Extensive experiments on the FFHQ dataset prove that our proposed W++ space is evidently more preferable than the previous W/W+ space for real face editing. The code is publicly available for research purposes at https://github.com/AnonSubm2021/TransStyleGAN.

PaperPDFCodeCode Syntology ran

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 13 code samples harvested from 1 repository linked to this paper: 10 ran (of which 0 constructed an object rather than computing a result; 8 with no instrument failure: 2 honoured, 1 violated, 5 with no contract checked; 2 where Syntology's instrument failed) · 3 unverified. Where Syntology's instrument failed: 1 where our contract draft was wrong; 1 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: official repository: 13 samples from 1 repository, 10 ran (8 with no instrument failure; 2 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 between 2026-09-22 and 2026-09-25 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed. 3 of the 10 samples that ran have no recorded date.

AnonSubm2021/TransStyleGAN officialmentioned in paperpytorchApache-2.0Syntology: 13 samples, 10 ran (2 instrument-failed) · 3 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

13 samples harvested: 10 ran (of which 0 constructed an object rather than computing a result; 8 with no instrument failure: 2 honoured, 1 violated, 5 with no contract checked; 2 where Syntology's instrument failed) · 3 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.

2ran · honoured contract
1ran · violated contract
1ran · our draft was wrong
1ran; the contract check could not run
5ran
3unverified

Licence: 2 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. For 2 of them, this paper's copy is under a permissive licence and cleared, but the stored copy of the same code that Syntology serves is not; the licence label's tooltip gives Syntology's recorded reason. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from AnonSubm2021/TransStyleGAN. “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”. “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.

AnonSubm2021/TransStyleGAN official repository 13 samples, 10 ran (2 instrument-failed) · 3 unverified
compute_pairwise_distance in 9 papers metrics/prdc.py ran · honoured contract fingerprinted Apache-2.0 (permissive) · 259ec7338be8a457 · report fixture: signature data_x:ndarray/2/float, data_y:ndarray/2/float · returned ndarray · level recorded, date not recorded
calc_fid in 8 papers metrics/fid.py ran; the contract check could not run (RAISES) · metamorphic tier: invariant fingerprinted Apache-2.0 (permissive) here; the stored copy is pointer only · e6c1de4697e7ed81 · report fixture: signature sample_mean:ndarray/1/float, sample_cov:ndarray/2/float, real_mean:ndarray/1/float, real_cov:ndarray/2/float, eps:float/0/float · returned float32 · level recorded 2026-09-22
extract_feature_from_samples in 6 papers metrics/fid.py ran Apache-2.0 (permissive) · 0b37719f59ef4c32 · report fixture: signature generator:callable/0/?, inception:callable/0/?, truncation:float/0/float, truncation_latent:Tensor/3/float, batch_size:int/0/int, n_sample:int/0/int, device:str/0/str · returned Tensor · level recorded 2026-09-25
extract_features in 73 papers metrics/calc_inception.py ran Apache-2.0 (permissive) · 826a4bfd8b5cb2fc · report fixture: signature loader:list/1/Tensor, inception:callable/0/?, device:str/0/str · returned Tensor · level recorded 2026-09-25
get_kth_value in 8 papers metrics/prdc.py ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 547662aecde999ed · report fixture: signature unsorted:ndarray/3/float, k:int/0/int, axis:int/0/int · returned ndarray · level recorded, date not recorded
get_lr in 91 papers projector.py ran · honoured contract fingerprinted Apache-2.0 (permissive) · ea6c82ed6a138df9 · report fixture: signature t:float/0/float, initial_lr:float/0/float, rampdown:float/0/float, rampup:float/0/float · returned float · level recorded 2026-09-22
latent_noise in 7 papers projector.py ran fingerprinted Apache-2.0 (permissive) · c32f2d047465748d · report fixture: signature latent:Tensor/2/float, strength:Tensor/1/float · returned Tensor · level recorded 2026-09-25
linear_interpolate in 10 papers interfaceGAN/linear_interpolation.py ran Apache-2.0 (permissive) · 60e0fcb2b8257ba5 · report fixture: signature latent_code:ndarray/2/float, boundary:ndarray/2/float, start_distance:int/0/int, end_distance:int/0/int, steps:int/0/int · returned ndarray · level recorded 2026-09-25
make_kernel in 34 papers model.py ran · violated contract Apache-2.0 (permissive) here; the stored copy is pointer only · 6f65e378a4313f87 · report fixture: signature k:list/1/float · returned Tensor · level recorded, date not recorded
noise_regularize_ projector.py ran Apache-2.0 (permissive) · c8b61cfc5c049356 · report fixture: signature noises:list/1/Tensor · returned Tensor · level recorded 2026-09-25
compute_nearest_neighbour_distances in 5 papers metrics/prdc.py unverified Apache-2.0 (permissive) · a408e16ed43950a5 · report
extract_feature_from_samples in 6 papers metrics/calc_prdc.py unverified Apache-2.0 (permissive) · 8893c21111af14ff · report
train_boundary interfaceGAN/train_boundary.py unverified Apache-2.0 (permissive) · 1ccf10e1a2a8378b · report

Tasks

Diversity

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Adaptive Instance NormalizationConvolutionDense ConnectionsFeedforward NetworkR1 Regularization

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