Skip to main content
QUICK REVIEW

[Paper Review] DendroMap: Visual Exploration of Large-Scale Image Datasets for Machine Learning with Treemaps

Donald Bertucci, Md Montaser Hamid|arXiv (Cornell University)|May 14, 2022
Generative Adversarial Networks and Image SynthesisComputer Science6 citations
TL;DR

DendroMap is a novel interactive visualization system that uses hierarchical treemaps to explore large-scale image datasets for machine learning. By clustering high-dimensional image embeddings and organizing them into a dynamic, zoomable treemap interface, DendroMap enables users to efficiently navigate dataset structure, identify underperforming subgroups, and analyze classification errors—outperforming t-SNE-Grid in preserving local similarity and showing user preference in a controlled study.

ABSTRACT

In this paper, we present DendroMap, a novel approach to interactively exploring large-scale image datasets for machine learning (ML). ML practitioners often explore image datasets by generating a grid of images or projecting high-dimensional representations of images into 2-D using dimensionality reduction techniques (e.g., t-SNE). However, neither approach effectively scales to large datasets because images are ineffectively organized and interactions are insufficiently supported. To address these challenges, we develop DendroMap by adapting Treemaps, a well-known visualization technique. DendroMap effectively organizes images by extracting hierarchical cluster structures from high-dimensional representations of images. It enables users to make sense of the overall distributions of datasets and interactively zoom into specific areas of interests at multiple levels of abstraction. Our case studies with widely-used image datasets for deep learning demonstrate that users can discover insights about datasets and trained models by examining the diversity of images, identifying underperforming subgroups, and analyzing classification errors. We conducted a user study that evaluates the effectiveness of DendroMap in grouping and searching tasks by comparing it with a gridified version of t-SNE and found that participants preferred DendroMap. DendroMap is available at https://div-lab.github.io/dendromap/.

Motivation & Objective

  • Address the scalability and interactivity limitations of existing image dataset visualization methods like t-SNE and grid layouts when applied to large-scale datasets.
  • Support data-centric AI practices by enabling ML practitioners to detect data biases, analyze model errors, and assess image diversity at scale.
  • Provide a scalable, interactive visualization that preserves local similarity structures while enabling multi-level exploration through hierarchical clustering.
  • Facilitate user-driven exploration of image datasets by allowing dynamic adjustment of cluster granularity and semantic zooming into subgroups.
  • Improve the effectiveness of error and bias analysis by visually exposing underrepresented or misclassified image subgroups within complex datasets.

Proposed method

  • Extract high-dimensional image embeddings using a pre-trained deep learning model (e.g., ResNet50) for each image in the dataset.
  • Apply agglomerative hierarchical clustering (Ward linkage) to the embeddings to build a dendrogram that captures the hierarchical structure of image similarities.
  • Map the resulting hierarchy into a treemap layout where each node represents a cluster, and the area of the rectangle is proportional to the number of images in the cluster.
  • Enable interactive zooming: clicking on a cluster replaces the current view with its sub-clusters, animating the transition and allowing exploration at finer levels of abstraction.
  • Support dynamic user control over the number of clusters displayed via a sidebar, allowing adjustment of the level of detail.
  • Integrate class-level statistics and metadata into the interface to support subgroup analysis and error detection.

Experimental results

Research questions

  • RQ1Can a treemap-based visualization effectively organize and scale to large-scale image datasets while preserving local similarity structures?
  • RQ2How does DendroMap compare to t-SNE-Grid in preserving the k-nearest neighbor relationships between images in high-dimensional space?
  • RQ3To what extent does DendroMap support effective user interaction for tasks such as grouping, searching, and identifying data bias or model errors?
  • RQ4How do users perceive the usability and effectiveness of DendroMap compared to traditional t-SNE and grid-based visualizations?
  • RQ5Can hierarchical clustering combined with treemaps enable more intuitive and scalable exploration of image dataset structure than non-hierarchical alternatives?

Key findings

  • DendroMap preserves local similarity structures significantly better than t-SNE-Grid, as shown by higher average overlap in k-nearest neighbor lists across 12 tested datasets.
  • In a user study, participants preferred DendroMap over t-SNE-Grid for both grouping and searching tasks, indicating improved usability and task performance.
  • The system enables effective multi-level exploration: users can dynamically adjust the number of clusters and interactively zoom into specific image subgroups with animated transitions.
  • DendroMap successfully reveals underperforming subgroups and data diversity issues, supporting error and bias analysis in real-world image datasets like CIFAR-100 and ImageNet.
  • Clustering time for a 10,000-image CIFAR-10 test set was 36.8 seconds, comparable to t-SNE’s 32.0 seconds, demonstrating acceptable computational cost for a one-time preprocessing step.
  • The hierarchical structure of DendroMap allows users to navigate from global dataset overviews to fine-grained subgroups, enhancing interpretability and analytical depth.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.