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.
翻译:排序在众多可视化应用(如坐标轴重排与矩阵重排)中已被广泛研究,其根本原因在于排序会显著影响数据呈现的模式。针对数据模式、感知效果与美学质量,研究者已提出多种质量度量指标,并开发了相应的优化算法。然而,与排序相关的优化问题往往求解困难(例如旅行商问题属于NP完全问题),且开发专用优化算法成本高昂。本文提出通用排序网络(VON),该网络能够根据给定的质量度量指标自动学习排序策略。VON利用质量度量评估其生成的解,并借助强化学习与贪心滚动基线策略进行自我优化。这一机制保持了度量指标的透明性,使VON能够适配不同度量指标进行优化。此外,VON采用注意力机制跨尺度收集信息,并根据当前上下文重新定位数据点,从而能够处理遵循不同分布的数据点。我们在多种使用场景与度量指标下验证了VON的有效性。实验结果表明,VON能够取得与专用求解器相当的结果。代码发布于 https://github.com/sysuvis/VON。