NCP: Neighborhood-Preserving Non-Uniform Circle Packing for Visualization

Duan Li, Jun Yuan, X. Guo, Xiting Wang, Yang Liu, Weikai Yang, Shixia Liu · DOI

Abstract

Circle packing is widely used in visualization due to its aesthetic appeal and simplicity, particularly in tasks where the spatial arrangement and relationships between data are of interest, such as understanding proximity relationships (e.g., images with categories) or analyzing quantitative data (e.g., housing prices). Many applications require preserving neighborhood relationships while encoding a quantitative attribute using radii for data analysis. To meet these two requirements simultaneously, we present a neighborhood-preserving non-uniform circle packing method, NCP. This method preserves neighborhood relationships between the data represented by non-uniform circles to comprehensively analyze similar data and an attribute of interest. We formulate neighborhood-preserving non-uniform circle packing as a planar graph embedding problem based on the circle packing theorem. This formulation leads to a non-convex optimization problem, which can be solved by the continuation method. We conduct a quantitative evaluation and present two use cases to demonstrate that our NCP method can effectively generate non-uniform circle packing results.

Introduction

Circle packing is a popular visualization choice because it is both aesthetically pleasing and intuitive. However, data scientists often face a "tug-of-war" when attempting to use it for rigorous analysis. Effective visualization requires balancing two competing goals: preserving neighborhood relationships (keeping similar items close together) and encoding quantitative attributes (using circle radii to represent values such as prediction uncertainty or housing prices).

Existing methods frequently struggle with this balance. Some produce "loose" layouts with excessive empty space, while others pack circles so aggressively that they distort data relationships or create irregular, non-convex cluster shapes that are difficult for the human eye to process. The proposed NCP (Neighborhood-Preserving non-uniform Circle Packing) method aims to satisfy both requirements while maintaining high spatial efficiency (compactness) and smooth, recognizable cluster shapes (convexity).

Methodology

The NCP method treats circle packing as a maximal planar graph embedding problem, grounded in the Circle Packing Theorem. To solve the resulting non-convex optimization problem, the authors utilize a three-step pipeline based on a continuation method, which solves a sequence of increasingly complex problems to avoid local minima:

  1. Neighborhood-Preserving Initialization: High-dimensional data is projected into 2D using t-SNE, followed by Delaunay triangulation to create an initial graph connecting similar items.
  2. Power-Diagram-Based Layout: A power diagram (a weighted version of a Voronoi diagram) is used to refine the layout. This step focuses on compactness, pushing circles together while respecting the established neighborhood connections.
  3. Force-Directed Refinement: A physics-based simulation using the Box2D engine is applied to improve the convexity of clusters. This "smooths" the boundaries of groups, making them easier to distinguish visually according to Gestalt laws of perception.

Results and Discussion

The researchers evaluated NCP using eight high-dimensional benchmark datasets (including Boston Housing and MNIST64) and specific use cases involving clothing images and housing prices.

Quantitative Performance

NCP outperformed baseline methods such as SimiFC and AEF across nearly all datasets in terms of neighborhood preservation and convexity. Furthermore, NCP is significantly faster than standard force-directed approaches. For a dataset of approximately 1,000 items, NCP generated results in about 2 seconds, compared to 17 seconds for pure force-directed methods.

Perceptual Clarity and Outlier Detection

A user study with 16 participants demonstrated that NCP leads to higher accuracy in identifying clusters and outliers. Participants noted that the clear cluster boundaries significantly reduced their mental workload. In practical terms, NCP makes outliers "hide in plain sight." For example, in a clothing dataset, a mislabeled image (e.g., a 'sweater' labeled as a 'shawl') becomes immediately obvious because its color or size clashes with its tightly packed neighbors.

Conclusion and Future Work

While NCP is highly effective for datasets under 1,000 items, scalability remains a limitation as individual circles become too small to see clearly on standard displays at higher volumes. Future research will focus on automating parameter tuning (currently managed via grid search) using multi-task learning and developing hierarchical packing methods to allow for interactive exploration of larger datasets through zooming. By bridging the gap between aesthetic appeal and analytical utility, NCP provides a robust framework for multi-attribute data visualization.

Summary updated

BibTeX
@misc{li2026ncp,
  author = {Duan Li and Jun Yuan and X. Guo and Xiting Wang and Yang Liu and Weikai Yang and Shixia Liu},
  title = {{NCP: Neighborhood-Preserving Non-Uniform Circle Packing for Visualization}},
  year = {2026},
  eprint = {2602.00668},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.00668},
}
Figure