A Deep Generative Model for Interactive Data Annotation through Direct Manipulation in Latent Space

Hannes Kath, Thiago S. Gouvêa, Daniel SonntagarXiv 2023 · DOI

Introduction

The primary bottleneck in modern machine learning is the scarcity of high-quality, annotated data. While deep learning models are exceptionally powerful, their "data-hungry" nature necessitates tedious labeling processes that often require significant domain expertise. Existing annotation tools frequently suffer from a disconnect between the user interface and the underlying model's internal logic. This paper addresses this gap by proposing a system that allows domain experts to interact directly with data representations in a low-dimensional latent space.

Proposed Architecture

The authors introduce a specialized Deep Generative Model (DGM) based on a Variational Autoencoder (VAE) architecture, augmented with a classification header.

The proposed model architecture integrates an encoder-decoder structure with a classifier head branching from the latent space $Z$.

The architecture consists of three main components:

  1. VAE Core: An encoder compresses raw data ($X$) into a low-dimensional (2D or 3D) latent space ($Z$), while a decoder reconstructs the data ($\tilde{X}$). This ensures the latent map captures salient features.
  2. Classification Head: A simple Multilayer Perceptron (MLP) or logistic regression model is attached to $Z$. As users provide labels, this head learns to predict labels ($\tilde{Y}$), effectively clustering similar data points.
  3. Direct Manipulation Metaphors: To bridge the gap between ML and human intuition, the authors employ physical metaphors. The latent space serves as the "interface space," training iterations are visualized as "movement" over time, and backpropagation is treated as a "magnetic force" where labeled points pull similar unlabeled ones.

Experimental Insights

The model was evaluated using the MNIST dataset, with the VAE trained on only 10% of the data to simulate low-data regimes. The study revealed several critical insights regarding the organization of the latent space.

Latent space visualizations demonstrating the effects of (a) classifier complexity, (b) training duration, and (c) hyperparameter tuning on cluster separation.

Classifier Complexity and Clarity

A counter-intuitive finding was that lower-capacity classification heads, such as logistic regression, often outperformed complex MLPs for UI purposes. The simpler decision boundaries force the latent space to organize into sharper, linearly separable clusters, making them easier for users to annotate using simple selection tools.

The Role of Hyperparameters

The balance between reconstruction and classification is governed by weighting factors. Increasing the classification loss weight ($\beta_{classifier}$) leads to tighter, more distinct clusters. However, excessive weight on the KL divergence ($\beta_{KL}$) can cause "posterior collapse," where the data structure is lost in favor of a central blob. The authors found that $\beta_{KL} = 3$ and $\beta_{classifier} = 10$ provided an optimal balance for human-friendly layouts.

Conclusion and Future Work

The proposed framework demonstrates that interactive latent spaces can provide a more intuitive and transparent annotation process. By visualizing the "force" of gradients and the "movement" of training, users gain a better understanding of the model's internal state. Future research will focus on evaluating this approach with more complex, high-dimensional datasets and conducting user studies to quantify improvements in annotation speed and accuracy.

Summary updated

BibTeX
@misc{kath2023deep,
  author = {Hannes Kath and Thiago S. Gouvêa and Daniel Sonntag},
  title = {{A Deep Generative Model for Interactive Data Annotation through Direct Manipulation in Latent Space}},
  year = {2023},
  eprint = {2305.15337},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.15337},
}
Figure