Abstract: What mechanisms cause GAN's entanglement? Although developing disentangled GANs has attracted sufficient attention, it is unclear how entanglement is originated by GAN transformation. We in this research propose a difference-in-difference (DID) counterfactual framework to design experiments for analyzing the entanglement mechanism in one of the Progressive-growing GANs (PG-GAN). Our experiments clarify the mechanisms of how pixel normalization causes PG-GAN entanglement during an input-unit-ablation transformation. We discover that pixel normalization causes object entanglement by in-painting the area occupied by ablated objects. We also discover the unit-object relation determines whether and how pixel normalization causes objects entanglement. Our DID framework theoretically guarantees that the mechanisms that we discover are solid, explainable, and comprehensive.
Introduction
In the field of Generative Adversarial Networks (GANs), "disentanglement" represents the ability to control specific image features independently—for example, removing a chair without altering the surrounding room. However, GANs frequently exhibit "entanglement," where the deletion of one object causes unexpected morphing or the emergence of new artifacts. While many methods exist to achieve disentanglement, the underlying architectural causes of entanglement remain a "black box."
This study investigates the internal mechanisms of Progressive-growing GANs (PG-GAN) to understand why certain objects remain entangled. By applying a Difference-in-Differences (DID) framework—a technique adapted from econometrics—we isolate the role of pixel normalization as a primary driver of entanglement.
Methodology: The DID Framework
To move beyond simple observation, we introduce a novel experimental design based on the DID counterfactual framework. The process involves three key steps:
- Unit Ablation: We identify internal feature map channels (units) responsible for specific objects using the Average Causal Effect (ACE) metric.
- Counterfactual Scenarios: To isolate the effect of pixel normalization, we compare the original image and standard ablated images against counterfactuals. In these counterfactuals, pixel normalization coefficients are either frozen at pre-ablation levels or artificially set to post-ablation levels while keeping the units intact.
- Isolation of Effects: By calculating the mathematical difference between these scenarios, we can visually and statistically isolate the "in-painting" effect caused specifically by the normalization layer, independent of the direct unit removal.
Experimental Setup
Experiments were conducted using the LSUN (Large-scale Scene Understanding) conference room dataset. This dataset provides complex scenes with distinct, identifiable objects such as chairs, paintings, windows, and lights, which are prone to various forms of entanglement.
Mechanisms of Entanglement
Our analysis reveals that pixel normalization acts as an unintentional "in-painter." When units are ablated, the total energy at that pixel location drops. The normalization layer compensates for this loss by boosting remaining signals, effectively "filling the hole" left by the removed object. This leads to two distinct types of entanglement:
- Type-1 (Deactivating-ablation): The target object remains visible despite ablation. This occurs when the causal ties between units and objects are distributed (a flat ACE distribution). The normalization layer boosts the remaining weak signals of the object, neutralizing the ablation.
- Type-2 (Mis-ablation/Emerge): Removing one object (e.g., a painting) causes a different object (e.g., a door) to appear. This happens when causal ties are concentrated. Removing the dominant units allows the normalization layer to boost secondary, previously suppressed signals.
Results and Discussion
The "unit-object relation," characterized by the ACE distribution, is the primary predictor of disentanglement success. Our results show that objects like paintings and lights are easier to target but highly susceptible to Type-2 emergence. Conversely, objects like chairs are often stubborn (Type-1) because their influence is distributed across a large number of units.
The DID framework provides a theoretically grounded explanation for GAN behavior that was previously understood only through empirical trial and error. By isolating the in-painting effect, we demonstrate exactly how architectural components like normalization layers interfere with intentional feature manipulation.
Conclusion and Future Work
This research clarifies the role of pixel normalization in PG-GAN entanglement. While the study is currently specific to the PG-GAN architecture and the LSUN dataset, it opens new avenues for GAN research. Future work should explore whether these findings extend to other architectures like StyleGAN or different normalization techniques (e.g., LayerNorm). Furthermore, these insights suggest that instead of merely changing architectures, researchers could develop more robust ablation methods that account for the compensatory behavior of normalization layers, leading to more precise image editing tools.
Summary updated