Introduction
Visualizing massive datasets containing millions of data points often results in the problem of overplotting, where standard scatterplots become indistinguishable blobs. While density plots (heatmaps) address this by aggregating points into grid cells, they face a significant trade-off: large smoothing kernels obscure local variations and outliers, while small kernels produce noisy, cluttered visualizations. This paper introduces Bi-Scale Density Plots (BSP), a framework that utilizes a variance-aware filter to decompose density maps into base and detail layers, enabling the simultaneous visualization of global trends and subtle local structures.
The Bi-Scale Density Plot (BSP) Framework
The BSP method follows a bin-summarize-decompose-combine workflow. After initial binning and log-transformation of the data, the core innovation is the Variance-Aware Filter. This filter is a reformulation of the classic "guided filter" from image processing, designed to be sensitive to local variance. Unlike standard Gaussian blurs that smooth all regions equally, this filter preserves edges in high-variance regions while smoothing noise in low-variance areas.
By decomposing the density field into a Base Layer (capturing major structures) and a Detail Layer (isolating outliers and minor variations), users can interactively "boost" the detail layer. This allows for the enhancement of local patterns without the usual visual clutter or color saturation found in traditional methods.
Bivariate Colormapping for Structural Clarity
A common challenge in density enhancement is the loss of absolute magnitude information. To solve this, the authors employ a 2D colormap that separates value from form. Hue is mapped to the absolute input density (the raw data counts), while Lightness represents the enhanced structural information derived from the BSP layers. This approach leverages human perception's sensitivity to luminance for detecting detail while using hue to maintain a sense of absolute scale across the plot.
Evaluation and Key Results
The researchers evaluated BSP using several massive real-world datasets, including 2 million New York taxi trips and 1.6 million arXiv article projections. A controlled user study with 45 participants demonstrated that the BSP with a 2D colormap (BSP-VF-2D) consistently outperformed traditional density plots and state-of-the-art methods like Splatterplots in tasks such as finding local maxima and counting outliers.
Key advantages of the method include:
- Efficiency: By performing enhancements in "image space" (on the binned grid), the algorithm processes millions of points in under 200ms on a standard CPU.
- Accuracy: The variance-aware filter avoids "gradient reversal" artifacts, ensuring that local peaks are preserved rather than flattened.
- Discovery: In the arXiv case study, BSP revealed a hidden "cross" structure representing a thematic path from Astrophysics to General Relativity that was invisible in standard plots.
Conclusion
Bi-Scale Density Plots provide a high-performance solution for exploring large-scale datasets without sacrificing local detail for global context. Future work will focus on automating parameter tuning and extending the framework to support multi-class categorical data.
Summary updated