Abstract
Exploratory Data Analysis (EDA) is often limited by the manual effort required to identify effective visualizations. This paper introduces the first end-to-end machine learning (ML) framework for visualization recommendation, moving beyond traditional rule-based systems. By training on a large corpus of user-generated charts, the proposed system learns to rank visualizations for new datasets, significantly outperforming state-of-the-art heuristic models.
Introduction
The process of discovering insights in new datasets is frequently hindered by the vast number of possible visualizations. Existing recommendation systems, such as Voyager and ShowMe, rely on manually-defined rules. However, these systems are difficult to scale, struggle with ranking ties, and lack the ability to adapt to new data patterns. This research proposes a data-driven alternative that learns the characteristics of "good" visualizations directly from human-designed examples.
The Limitations of Heuristic Systems
Rule-based systems typically use discrete logic (e.g., "if X is quantitative and Y is quantitative, use a scatter plot"). This approach leads to several issues:
- Scalability: Expert rules are tedious to maintain and often miss nuanced data relationships.
- Ranking Ambiguity: Multiple visualizations often receive identical heuristic scores, making it impossible to identify the optimal choice.
- Static Nature: These systems cannot learn from user feedback or evolving design trends without manual intervention.
Methodology: A Decomposed Learning Approach
The authors formalize the recommendation task by decomposing a visualization into two parts: the Attribute Combination (the selected data columns) and the Visualization Configuration (the design parameters, such as chart type and mark symbols).
The core of the system is a Wide-and-Deep Learning architecture. The "Deep" component utilizes multi-layer perceptrons to generalize across unseen data by analyzing statistical "meta-features" like cardinality and skewness. Simultaneously, the "Wide" component uses a linear model to memorize specific, high-frequency patterns. To distinguish between meaningful charts and noise, the model is trained using negative sampling against randomly generated visualizations.
Data and Evaluation
The model was trained on the Plot.ly corpus, which includes approximately 5,000 positive visualizations across 925 diverse datasets. In quantitative evaluations, the ML model achieved an nDCG@1 of 0.827, representing a 124% improvement over baseline heuristic systems. A user study involving 21 experts further validated these results, with the ML system receiving significantly higher preference scores (5.92/7.0) compared to the rule-based Voyager2 (3.45/7.0).
Conclusion and Future Work
This work demonstrates that machine learning can effectively capture the nuances of visualization design. By providing continuous probability scores, the model resolves the tie-breaking issues inherent in rule-based systems. Future research will explore more sophisticated negative sampling methods and the incorporation of user-specific preferences to further personalize recommendations.
Summary updated