Abstract
We address the problem of image feature learning for the applications where multiple factors exist in the image generation process and only some factors are of our interest. We present a novel multi-task adversarial network based on an encoder-discriminator-generator architecture. The encoder extracts a disentangled feature representation for the factors of interest. The discriminators classify each of the factors as individual tasks. The encoder and the discriminators are trained cooperatively on factors of interest, but in an adversarial way on factors of distraction. The generator provides further regularization on the learned feature by reconstructing images with shared factors as the input image. We design a new optimization scheme to stabilize the adversarial optimization process when multiple distributions need to be aligned. The experiments on face recognition and font recognition tasks show that our method outperforms the state-of-the-art methods in terms of both recognizing the factors of interest and generalization to images with unseen variations.
Introduction
In computer vision, images are typically the result of multiple interacting underlying factors. For instance, a character image is defined by its content (the specific glyph) and its style (the font). In many applications, such as font recognition, the content is a distracting factor that can impede the model's ability to generalize to new styles. Traditional multi-task learning approaches often lead to "entangled" features, where the representation of the factor of interest remains heavily influenced by variations in the distracting factors.
The Multi-Task Adversarial Network (MTAN) addresses this by explicitly "disentangling" these features. The goal is to produce a feature representation that is invariant to distracting factors, thereby improving performance on unseen variations.
Methodology
The MTAN framework utilizes an encoder-discriminator-generator architecture designed to separate factors of interest from distractions through a combination of cooperative and adversarial training.
Architecture Components
- Encoder (E): Maps the input image to a feature representation.
- Content Discriminator ($D_C$): A classifier that identifies the factor of interest (e.g., identity or font). It works cooperatively with the encoder.
- Style Discriminator ($D_S$): A classifier that identifies the distracting factor (e.g., pose or character glyph). It plays an adversarial game with the encoder; while $D_S$ tries to classify the style, the encoder tries to produce features that make style classification impossible.
- Generator (G): Reconstructs the input image using the encoded feature and a style indicator. This ensures the encoder retains sufficient information for reconstruction, preventing it from collapsing to a trivial solution.
Multi-Class Adversarial Loss
A significant challenge in adversarial training for disentanglement is handling multiple classes (e.g., thousands of font styles or characters). Standard binary adversarial losses are often unstable in these scenarios. MTAN extends the Wasserstein GAN (WGAN) framework to a multi-class setting using Earth Mover’s Distance (EMD), providing more stable gradients for the encoder to effectively strip away distracting information.
Experiments and Results
The model was evaluated on two primary tasks: Japanese font recognition and face recognition under varying conditions.
Font Recognition
Using a dataset of 300 Japanese fonts, the researchers tested the model's ability to recognize fonts across unseen glyphs. MTAN significantly outperformed baselines like DR-GAN, particularly in the most challenging "Unseen Both" category (new fonts and new glyphs), achieving 34.8% accuracy compared to 22.9% for the baseline.
Face Recognition
On the Multi-PIE dataset, MTAN was tasked with recognizing identity across extreme pose variations (up to 60°) and illumination changes. The full model, MTAN2, achieved an average accuracy of 89.6%, demonstrating superior robustness compared to specialized state-of-the-art models.
Qualitative Synthesis
The generator's ability to perform style transfer highlights the success of the disentanglement. By combining a learned content feature with a new style label, the model can synthesize realistic images of characters in fonts it has never seen before.
Conclusion
MTAN demonstrates that treating distracting factors as adversarial targets allows for the learning of truly disentangled and robust features. The inclusion of a generator as a regularizer is crucial for maintaining feature richness. While the current model requires supervised labels for all factors, future work may explore semi-supervised or unsupervised methods to automatically discover and mitigate distracting variations in complex datasets.
Summary updated