Active Learning with TensorBoard Projector

Francois P. S. Luus, Naweed Khan, Ismail AkhalwayaarXiv 2019

Abstract

This paper introduces an interactive system within the TensorBoard Projector designed for rapid image labeling. By combining unsupervised transfer learning with an improved semi-supervised t-SNE algorithm, the system enables users to label entire clusters of data in a 3D visualization. We demonstrate that high classification accuracy (80%+) can be achieved with fewer than 100 labeling actions on specialized datasets, significantly outperforming traditional active learning methods like uncertainty sampling.

Problem Statement

Deep learning models are notoriously data-hungry, creating a significant bottleneck for specialized domains such as medical imaging or specific flora/fauna classification. Traditional Active Learning (AL) often focuses on individual "uncertain" samples, requiring thousands of labels before showing significant gains and frequently ignoring the underlying data structure. This work aims to bridge the gap between automated feature extraction and human intuition by providing a tool that allows users to "see" the feature space and label similar items collectively.

Methodology

The system employs a multi-stage pipeline integrated into the production-quality TensorBoard Projector.

Unsupervised Transfer Learning

To adapt to specialized datasets without ground-truth labels, the authors utilize a Rotation-Based Exemplar-CNN. An ImageNet-pretrained model (e.g., VGG-16) is fine-tuned on the target dataset using a rotation prediction task. This allows the model to learn domain-specific features in an unsupervised manner, which is essential for niche tasks where general ImageNet features may struggle.

The VGG-16 transfer learning pipeline and sample images from the specialized datasets evaluated in the study.

Semi-Supervised t-SNE

The core interactive component is a modified t-SNE algorithm that incorporates human labels in real-time. It uses attraction forces for same-labeled points and repulsion forces for differently labeled points to create distinct clusters. Linear scheduling of parameters ensures the visualization remains stable and does not "jump" as new labels are added.

Annotation Emulation

Efficiency is evaluated using a simulated human user model. This emulator uses Barnes-Hut focus kernels to identify and label "homogeneous clusters" in single sweeps, mimicking the way a human user would interact with the 3D visualization to label neighborhoods of data.

Key Insights and Results

The Impact of Unsupervised Fine-Tuning

A key finding is that ImageNet features alone are often insufficient for niche tasks. Unsupervised fine-tuning via rotation prediction dramatically improves embedding quality. For example, kNN accuracy on the Blood Cells dataset jumped from 51% to 96% when moving from frozen ImageNet features to the "Transfer-Frozen" approach.

Comparison of t-SNE embeddings using raw ImageNet (IM) features versus unsupervised Transfer-Frozen (TF) features across various datasets.

Labeling Efficiency

The t-SNE-based approach reached 80% accuracy with an average of 65–68 actions, compared to 125–151 actions for standard uncertainty sampling. On specialized datasets like Monkeys, the system achieved robust classification with fewer than 30 human actions. The use of repulsion forces between different classes was found to be essential for creating the clear cluster boundaries that facilitate rapid human labeling.

Limitations and Future Work

The current study relies on annotation emulation; future work should include human user studies to validate the interface and UX aspects. Additionally, the system is currently optimized for datasets of approximately 3,000 samples to maintain visualization performance. Scaling to larger datasets through hierarchical visualization or exploring other unsupervised pretext tasks remains an area for future exploration.

Summary updated

BibTeX
@misc{luus2019active,
  author = {Francois P. S. Luus and Naweed Khan and Ismail Akhalwaya},
  title = {{Active Learning with TensorBoard Projector}},
  year = {2019},
  eprint = {1901.00675},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1901.00675},
}
Figure