Introduction
Image-to-image (I2I) translation has progressed from basic one-to-one mappings, such as converting day scenes to night, to sophisticated multi-label and multi-style tasks. Despite these advancements, a persistent challenge in the field is "uncontrolled manipulation." When a model is tasked with a specific edit—such as adding glasses to a portrait—it often inadvertently alters unrelated features like hair color, age, or background elements. This lack of precision stems from a failure to account for the complex relationships between different image labels.
In most real-world datasets, labels exhibit specific structural relationships: they are either independent (e.g., a person can have both bangs and glasses) or mutually exclusive (e.g., hair cannot be simultaneously blond and black). Furthermore, a single attribute like "glasses" encompasses infinite stylistic variations. This paper introduces Hierarchical Style Disentanglement (HiSD), a framework designed to organize labels into a tree-like structure to achieve precise, controllable, and diverse image translations.
Methodology
Hierarchical Label Structure
The core innovation of HiSD is the organization of labels into a three-level hierarchy:
- Tags: These represent independent categories (e.g., Hair Color, Glasses, Bangs).
- Attributes: These are mutually exclusive options within a specific tag (e.g., Blond, Black, or Brown within the Hair Color tag).
- Styles: These represent unsupervised, fine-grained variations within an attribute, such as the specific frame shape or tint of a pair of glasses.
By acknowledging these relationships, the model can navigate complex multi-edit tasks without interference between labels.
The E-T-G Pipeline
Unlike traditional models that translate images directly, HiSD employs an Encoder-Translator-Generator (E-T-G) architecture:
- Encoder (E): Extracts high-level features from the input image.
- Translator (T): Manipulates these features in the latent space using a specific style code derived from the target attribute.
- Generator (G): Renders the modified features back into the image pixels.
Localized Translation and Bias Mitigation
To prevent global changes and preserve the background, the Translator incorporates a feature-based local translation mechanism. It utilizes an internal attention mask to identify the specific pixels relevant to a tag, ensuring that only the necessary regions are modified.
Additionally, the authors address dataset bias—where certain attributes might be correlated with irrelevant factors like gender or age in the training data—using a Tag-irrelevant Conditional Discriminator. By injecting these irrelevant labels into the discriminator during training, the generator is forced to decouple the requested attribute change from other characteristics, leading to better disentanglement.
Experimental Results
The framework was primarily evaluated using the CelebA-HQ dataset, which contains 30,000 high-quality facial images. The authors focused on three tags: Hair Color (Blond, Black, Brown), Bangs (With, Without), and Glasses (With, Without).
Quantitative and Qualitative Performance
HiSD was benchmarked against state-of-the-art models, including StarGANv2 and SDIT.
- Visual Quality: HiSD achieved a Frechet Inception Distance (FID) of 21.37, significantly outperforming StarGANv2’s score of 26.04. This indicates a higher degree of realism in the generated images.
- Diversity: User studies confirmed that HiSD produces more diverse stylistic variations within attributes compared to baseline models.
- Disentanglement: Quantitative tests demonstrated that HiSD is superior at preserving "tag-irrelevant" details. It successfully performs multi-tag manipulations—such as simultaneously changing hair color and adding glasses—with minimal interference between the edits.
Conclusion and Future Work
Hierarchical Style Disentanglement provides a robust solution for controllable I2I translation by respecting the inherent structure of image labels. While the model excels at maintaining identity and background consistency, the authors noted that the cycle-translation path used in training can occasionally result in "fuzzy" details for very small objects, such as thin-rimmed glasses.
Future research may explore scaling this hierarchical approach to datasets with hundreds of tags or extending the local translation logic to video-to-video tasks, where maintaining temporal consistency across frames is a critical requirement.
Summary updated