Skip to main content
QUICK REVIEW

[Paper Review] KG4Vis: A Knowledge Graph-Based Approach for Visualization Recommendation

Hao-Tian Li, Yong Wang|PubMed|Jul 27, 2021
Data Visualization and AnalyticsComputer Science57 references9 citations
TL;DR

KG4Vis proposes a knowledge graph-based approach for explainable visualization recommendation that automatically learns visualization rules from dataset-visualization pairs without manual rule specification. By modeling data features, columns, and design choices as entities in a knowledge graph and using TransE-based embedding learning, it enables fast, interpretable recommendations with rule extraction, achieving high accuracy and strong explainability in evaluations.

ABSTRACT

Visualization recommendation or automatic visualization generation can significantly lower the barriers for general users to rapidly create effective data visualizations, especially for those users without a background in data visualizations. However, existing rule-based approaches require tedious manual specifications of visualization rules by visualization experts. Other machine learning-based approaches often work like black-box and are difficult to understand why a specific visualization is recommended, limiting the wider adoption of these approaches. This paper fills the gap by presenting KG4Vis, a knowledge graph (KG)-based approach for visualization recommendation. It does not require manual specifications of visualization rules and can also guarantee good explainability. Specifically, we propose a framework for building knowledge graphs, consisting of three types of entities (i.e., data features, data columns and visualization design choices) and the relations between them, to model the mapping rules between data and effective visualizations. A TransE-based embedding technique is employed to learn the embeddings of both entities and relations of the knowledge graph from existing dataset-visualization pairs. Such embeddings intrinsically model the desirable visualization rules. Then, given a new dataset, effective visualizations can be inferred from the knowledge graph with semantically meaningful rules. We conducted extensive evaluations to assess the proposed approach, including quantitative comparisons, case studies and expert interviews. The results demonstrate the effectiveness of our approach.

Motivation & Objective

  • To address the limitations of rule-based and black-box ML-based visualization recommendation systems.
  • To eliminate the need for manual rule specification by visualization experts.
  • To improve explainability in visualization recommendation through automatically derived, semantically meaningful rules.
  • To enable real-time, data-driven recommendations using learned embeddings from dataset-visualization pairs.
  • To support general users in creating effective visualizations without deep expertise in visualization design.

Proposed method

  • Extract expressive data features from dataset-visualization pairs using statistical and structural metadata.
  • Construct a knowledge graph with three entity types: data features, data columns, and visualization design choices (e.g., chart types, axis arrangements).
  • Model relationships between entities as triples (head, relation, tail) to encode data-to-visualization mappings.
  • Apply TransE-adv, a knowledge graph embedding technique, to learn low-dimensional vector representations of entities and relations.
  • Perform inference on new datasets by computing semantic similarity between query embeddings and learned entity embeddings to recommend visualizations.
  • Extract interpretable rules from learned embeddings using vector proximity and relation patterns to explain recommendations.

Experimental results

Research questions

  • RQ1Can a knowledge graph-based approach automatically learn visualization rules from dataset-visualization pairs without manual rule engineering?
  • RQ2How effective is KG4Vis in recommending accurate and semantically meaningful visualizations for new datasets?
  • RQ3To what extent can KG4Vis provide explainable recommendations through derived rules compared to expert-curated heuristics?
  • RQ4How does KG4Vis perform in comparison to existing rule-based and ML-based visualization recommendation systems in terms of accuracy and efficiency?
  • RQ5Can the KG framework be extended to incorporate additional visualization design choices like color usage and aspect ratios?

Key findings

  • KG4Vis achieves a mean reciprocal rank (MRR) of 1.7755 for visualization type recommendation, slightly below the neural network-based VizML but with superior explainability.
  • The system recommends visualizations in an average of 0.07 seconds per dataset, enabling real-time performance.
  • Expert interviews confirmed that the automatically extracted rules are semantically meaningful and align well with established visualization principles.
  • Case studies demonstrated that KG4Vis successfully recommends appropriate visualizations across diverse datasets, including complex and multi-dimensional data.
  • The knowledge graph framework is extensible and can be augmented with additional design choices, though training time increases linearly with expanded entity sets.
  • The approach outperforms traditional rule-based systems in scalability and generalization, while avoiding the black-box nature of deep learning models.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.