Skip to main content
QUICK REVIEW

[Paper Review] Table2Charts: Recommending Charts by Learning Shared Table Representations

Mengyu Zhou, Qingtao Li|arXiv (Cornell University)|Aug 24, 2020
Advanced Text Analysis TechniquesComputer Science21 references8 citations
TL;DR

Table2Charts proposes a deep reinforcement learning framework that recommends charts by learning shared table representations from 165k tables and 266k charts, using a copy-augmented deep Q-network to generate chart templates via sequence modeling. It achieves SOTA performance with R@3 = 0.61 and R@1 = 0.43, outperforming prior systems in both multi-type and single-type chart recommendation tasks.

ABSTRACT

It is common for people to create different types of charts to explore a multi-dimensional dataset (table). However, to recommend commonly composed charts in real world, one should take the challenges of efficiency, imbalanced data and table context into consideration. In this paper, we propose Table2Charts framework which learns common patterns from a large corpus of (table, charts) pairs. Based on deep Q-learning with copying mechanism and heuristic searching, Table2Charts does table-to-sequence generation, where each sequence follows a chart template. On a large spreadsheet corpus with 165k tables and 266k charts, we show that Table2Charts could learn a shared representation of table fields so that recommendation tasks on different chart types could mutually enhance each other. Table2Charts outperforms other chart recommendation systems in both multi-type task (with doubled recall numbers R@3=0.61 and R@1=0.43) and human evaluations.

Motivation & Objective

  • Address the challenge of recommending diverse chart types—including rare ones like area and radar charts—by leveraging shared representations across multiple chart types.
  • Overcome data imbalance in chart recommendation, where major types (e.g., bar, line) dominate and minor types are underrepresented.
  • Unify single-type and multi-type chart recommendation into a single framework to improve efficiency and reduce redundant model training.
  • Incorporate table context—semantic meaning and field roles—into chart recommendation beyond raw data statistics.
  • Enable end-to-end recommendation of both data queries (which fields to select) and design choices (how to map fields to axes, stacking, etc.) using a sequence-to-sequence generation approach.

Proposed method

  • Formulate chart recommendation as a table-to-sequence generation task, where each sequence corresponds to a chart template filled with field tokens.
  • Use a deep Q-network (DQN) with a copying mechanism to select and copy relevant table fields into chart templates, enabling attention to actual field names.
  • Share a single encoder across all chart types to learn a unified representation of table fields, enabling transfer learning and mutual enhancement across chart types.
  • Apply beam search with a heuristic scoring function based on DQN Q-values to guide action sequence generation during inference.
  • Leverage a large-scale human-annotated corpus of (table, chart) pairs from real-world Excel spreadsheets to pre-train and fine-tune the model.
  • Use cosine similarity of learned field embeddings to analyze semantic clustering, validating that the model captures meaningful field semantics (e.g., percentages, IDs, countries).

Experimental results

Research questions

  • RQ1Can a unified deep reinforcement learning framework effectively recommend multiple chart types—including rare ones—by sharing representations across tasks?
  • RQ2How does learning shared table representations improve performance on low-resource chart types (e.g., area, radar) with limited training data?
  • RQ3To what extent does incorporating table context (semantic roles of fields) improve chart recommendation accuracy compared to models based only on data statistics?
  • RQ4Can a copying mechanism in a DQN-based sequence generator outperform standard autoregressive generation in capturing field-specific design choices?
  • RQ5Does joint learning across chart types lead to better performance in both multi-type and single-type recommendation tasks compared to task-specific models?

Key findings

  • Table2Charts achieves R@3 = 0.61 and R@1 = 0.43 on the multi-type chart recommendation task, doubling the recall of prior state-of-the-art systems.
  • The model significantly improves performance on low-resource chart types (e.g., area, radar) by leveraging shared representations learned from high-resource types.
  • Semantic clustering of learned field embeddings reveals meaningful groupings—such as percentage fields summing to 1, country identifiers, and index/ID fields—demonstrating the model captures contextual semantics.
  • The copying mechanism in the DQN-based generator enables accurate field selection and mapping, reducing hallucination and improving alignment with actual table structure.
  • Human evaluation confirms that Table2Charts generates more intuitive and semantically correct charts than existing systems, especially in complex or ambiguous table contexts.
  • The shared encoder architecture reduces model redundancy and improves inference efficiency, supporting real-time recommendation in interactive tools like Excel’s 'Recommended Charts'.

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.