EXoN: EXplainable encoder Network

Seunghwan An, Hosik Choi, Jong-June JeonarXiv 2021

Abstract

Variational AutoEncoders (VAEs) typically suffer from "black box" latent spaces where class representations are learned stochastically. We present EXoN (EXplainable encoder Network), a semi-supervised VAE that allows researchers to manually pre-define the latent space layout using a Gaussian mixture prior. Combined with a novel Soft-label Consistency Interpolation (SCI) loss, EXoN achieves high classification accuracy (3.12% error on MNIST with 100 labels) and provides a measurable "activated" latent subspace via the V-nat metric. This framework enables a "designed-by-choice" latent space that is both navigable and explainable.

Introduction

Standard VAEs learn compressed representations where the positioning of specific classes is unpredictable. This lack of structure complicates tasks requiring controlled interpolation or specific class relationships. Existing semi-supervised VAEs often treat labels as independent of other latent features, hindering the ability to impose structural constraints. EXoN addresses this by allowing users to define "conceptual centers" for labels, transforming the latent space from a random distribution into a structured map.

Methodology

EXoN's architecture relies on three primary innovations:

  1. Customizable Gaussian Mixture Prior: Users pre-define the mean ($m_k$) and variance ($s_k^2$) for each class label. For instance, MNIST digits can be arranged in a circular pattern to ensure smooth transitions between sequential numbers.
  2. Soft-label Consistency Interpolation (SCI): This "mix-up" strategy enhances semi-supervised learning by requiring the model to maintain consistency when interpolating between unlabeled samples and their pseudo-labels.
  3. Activated Latent Subspace & V-nat: The V-nat (VAE natural unit of information) metric identifies "activated" dimensions—those where posterior variance significantly shrinks relative to the prior—indicating they are actively encoding information.
Figure 1: A pre-designed circular latent space for MNIST digits 0-9, demonstrating the "map" approach to latent organization.

Experimental Results

The model was evaluated on MNIST and CIFAR-10 datasets in low-label regimes.

Classification and Generation

EXoN demonstrated superior performance in semi-supervised classification, achieving a 3.12% error rate on MNIST (100 labels) and 7.45% on CIFAR-10 (4,000 labels). Qualitatively, the model produced coherent class-to-class interpolations, validated by an Inception Score of 3.14 on CIFAR-10.

The Role of $\beta$

The hyperparameter $\beta$, which scales the KL-divergence, serves as a critical control for the latent space. A high $\beta$ enforces strict adherence to the pre-defined map, while a lower $\beta$ allows for greater generative diversity at the cost of structural rigidity.

Figure 5: The impact of varying beta on latent space clustering and the resulting quality of generated digit grids.

Discussion and Explainability

The V-nat metric successfully isolated specific latent dimensions responsible for features like brightness and shape in CIFAR-10. By perturbing only these "activated" dimensions, researchers can precisely manipulate generated outputs. While the current implementation requires manual prior design, future work may explore unsupervised clustering to automate this process for complex datasets.

Conclusion

EXoN provides a robust framework for creating interpretable and controllable VAEs. By moving toward a "designed-by-choice" latent space, it offers a path forward for applications requiring both high generative quality and clear explainability of internal representations.

Summary updated

BibTeX
@misc{an2021exon,
  author = {Seunghwan An and Hosik Choi and Jong-June Jeon},
  title = {{EXoN: EXplainable encoder Network}},
  year = {2021},
  eprint = {2105.10867},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.10867},
}
Figure