Versatile Ordering Network: An Attention-based Neural Network for Ordering Across Scales and Quality Metrics
Zehua Yu, Weihan Zhang, Sihan Pan, Jun Tao
TL;DR
The paper tackles the challenge of learning to order data items across arbitrary quality metrics in visualization. It introduces Versatile Ordering Network (VON), a set-to-sequence model trained with reinforcement learning and a greedy rollout, guided by any given quality metric. Key contributions include a transformer-based encoder, a novel repositioning module for cross-scale transfer, and extensive evaluations in both dynamic and static scenarios showing competitive performance with specialized solvers and strong generalization. The approach enables metric-agnostic ordering suitable for interactive visualization, with practical implications for adapting ordering strategies to diverse datasets and user-defined metrics.
Abstract
Ordering has been extensively studied in many visualization applications, such as axis and matrix reordering, for the simple reason that the order will greatly impact the perceived pattern of data. Many quality metrics concerning data pattern, perception, and aesthetics are proposed, and respective optimization algorithms are developed. However, the optimization problems related to ordering are often difficult to solve (e.g., TSP is NP-complete), and developing specialized optimization algorithms is costly. In this paper, we propose Versatile Ordering Network (VON), which automatically learns the strategy to order given a quality metric. VON uses the quality metric to evaluate its solutions, and leverages reinforcement learning with a greedy rollout baseline to improve itself. This keeps the metric transparent and allows VON to optimize over different metrics. Additionally, VON uses the attention mechanism to collect information across scales and reposition the data points with respect to the current context. This allows VONs to deal with data points following different distributions. We examine the effectiveness of VON under different usage scenarios and metrics. The results demonstrate that VON can produce comparable results to specialized solvers. The code is available at https://github.com/sysuvis/VON.
