Abstract
Tabular data analysis is performed every day across various domains. It requires an accurate understanding of field semantics to correctly operate on table fields and find common patterns in daily analysis. In this paper, we introduce the AnaMeta dataset, a collection of 467k tables with derived supervision labels for four types of commonly used field metadata: measure/dimension dichotomy, common field roles, semantic field type, and default aggregation function. We evaluate a wide range of models for inferring metadata as the benchmark. We also propose a multi-encoder framework, called KDF, which improves the metadata understanding capability of tabular models by incorporating distribution and knowledge information. Furthermore, we propose four interfaces for incorporating field metadata into downstream analysis tasks.
Introduction
While humans can intuitively distinguish between a "Price" to be summed and a "Product Category" used for grouping, machines often lack this analytical context. Traditional table understanding research has focused on Entity Linking or Column Type Annotation. However, real-world analysis necessitates "analysis metadata"—understanding the semantic roles columns play, such as the Measure/Dimension dichotomy. This context is essential for automated tools to recommend visualizations or answer complex natural language queries.
The AnaMeta Dataset
To address the lack of large-scale supervised data, the authors introduce AnaMeta, a dataset of 467,402 tables sourced from public spreadsheets, web tables, and synthetic data. Supervision labels were harvested from analysis artifacts; for instance, Y-axis fields in charts were labeled as "Measures" and X-axis fields as "Natural Keys."
AnaMeta focuses on four metadata types:
- Measure/Dimension Dichotomy: Binary classification of fields.
- Common Field Roles: Identifying "Natural Keys" or "Common Breakdowns."
- Semantic Field Type: A taxonomy including 19 measure types (e.g., Money, Mass) and 255 dimension types.
- Default Aggregation: Predicting the appropriate function (Sum, Avg, etc.) for a field.
Methodology: Knowledge and Distribution Fusion (KDF)
The proposed Knowledge and Distribution Fusion (KDF) framework enhances pre-trained tabular models (e.g., TAPAS, TABBIE) through two primary modules:
- Knowledge Fusion: Links table cells to external Knowledge Graphs (Wikidata/DBpedia) using a visibility matrix in the attention mechanism to associate tokens with semantic properties.
- Distribution Fusion: Explicitly incorporates 31 statistical features (mean, variance, etc.) and 6 field categories per column, addressing the difficulty Transformers face in processing numerical distributions.
Experimental Results
KDF models achieved state-of-the-art performance across all tasks. Notably, KDF+TABBIE reached 98.93% accuracy in Measure detection and 97.33% in Dimension Type identification.
Ablation studies confirmed that "Distribution Fusion" significantly improves "Common Breakdown" identification, highlighting the importance of statistical context. Furthermore, injecting metadata into downstream tasks via "Metadata Sentences" improved TableQA performance on the WikiTQ dataset by 1.13%. Interestingly, LLMs like GPT-3.5 underperformed compared to specialized models, likely due to a lack of exposure to numerical distributions during training.
Conclusion
AnaMeta and the KDF framework provide a robust foundation for automated tabular analysis. By treating distribution as a first-class citizen and fusing it with external knowledge, models can better capture the analytical intent behind table columns. Future work will aim to deepen the measure taxonomy and explore inter-field dependencies to further refine metadata inference.
Summary updated