Abstract
A chart sequence is used to describe a series of visualization charts generated in the exploratory analysis by data analysts. It provides information details in each chart as well as a logical relationship among charts. While existing research targets on generating chart sequences that match human's perceptions, little attention has been paid to formulate task-oriented connections between charts in a chart design space. We present a novel chart sequencing method based on reinforcement learning to capture the connections between charts in the context of three major analysis tasks, including correlation analysis, anomaly detection, and cluster analysis. The proposed method formulates a chart sequencing procedure as an optimization problem, which seeks an optimal policy to sequencing charts for the specific analysis task. In our method, a novel reward function is introduced, which takes both the analysis task and the factor of human cognition into consideration. We conducted one case study and two user studies to evaluate the effectiveness of our method under the application scenarios of visualization demonstration, sequencing charts for reasoning analysis results, and making a chart design choice. The study results showed the power of our method.
The Challenge of Chart Sequencing
When data analysts explore datasets, they produce a series of charts that serve as a graphical history, helping others understand how a conclusion was reached. However, navigating the vast "design space" of possible charts—changing axes, switching from bars to points, or adding colors—is a complex task.
Existing state-of-the-art methods, such as GraphScape, focus primarily on perceptual cost, ensuring that transitions between two charts are not too jarring for the human eye. However, these methods are often "task-agnostic." They might suggest a visually smooth transition that is analytically irrelevant to the user's actual goal, such as identifying a correlation or finding clusters. This research seeks to bridge the gap between visual smoothness and analytical utility.
Reinforcement Learning for Task-Oriented Design
The authors frame chart sequencing as an optimization problem using Reinforcement Learning (RL). By modeling the chart design space as a Markov Decision Process (MDP), the system can determine the most effective sequence of actions to reach a target visualization.
Key components of the methodology include:
- Inverse Reinforcement Learning (IRL): Since there is no simple mathematical formula for a "good" analytical sequence, the authors used Maximum Entropy IRL. They collected 60 sequences from experts performing tasks like correlation analysis and anomaly detection to "learn" the reward function by observing which actions experts prioritize.
- Hybrid Reward Function: The final reward for an action is a linear combination of the learned task reward and the perceptual cost. This ensures the recommended sequence is both task-effective and easy to perceive.
- Policy Finding: Using Value Iteration, the system calculates the optimal path from any starting chart to a "target" chart that reveals the desired data pattern.
Key Insights and Results
The study revealed that while perception is necessary, it is insufficient for meaningful storytelling; task-specific rewards are essential for coherent guidance. Furthermore, the order of actions matters significantly. For instance, in anomaly detection, experts preferred changing the mark type to "point" early on to see individual data distributions, whereas in cluster analysis, adding color encoding was often the priority.
Two user studies with 20 participants validated this approach:
- Sequence Ranking: The system’s rankings showed a strong positive correlation with human preferences (Kendall’s $\tau_b = 0.59$).
- Design Choice: When recommending the "next best" chart action, the system significantly outperformed task-agnostic baselines, achieving a Kendall’s $\tau_b$ of 0.64 compared to 0.11 for GraphScape.
Conclusion and Future Work
This reinforcement learning-based approach creates narrative paths through a design space that are both easy to follow and analytically meaningful. While the current model is limited by "data blindness" (it looks at chart structure rather than raw values) and a limited set of supported chart types, it provides a robust framework for automated visualization storytelling. Future work aims to incorporate direct user feedback into the RL loop to adapt to individual exploration styles in real-time.
Summary updated