TL;DR
GitTables is a new, large-scale corpus of 1 million relational tables extracted from GitHub CSV files, designed to simulate real-world database tables. Unlike traditional corpora scraped from HTML web pages, GitTables features realistic table dimensions and distributions, and comes richly annotated with over 2,000 semantic types from DBpedia and Schema.org.
What Problem Does This Paper Address?
Deep learning has revolutionized natural language processing and computer vision, prompting researchers to apply similar techniques to relational data tasks like data cleaning, schema matching, and data search. However, training these high-capacity models requires massive datasets.
Until now, the machine learning community has relied almost exclusively on "Web tables"—collections of tables scraped from HTML web pages (such as the WDC WebTables corpus). Unfortunately, Web tables are a poor proxy for enterprise or offline databases. They are typically very small (averaging only a few rows and columns) and lack standard database attributes like "ID" fields. Models trained on Web tables generalize poorly to real-world database applications. To bridge this gap, the authors introduce a corpus that actually resembles the relational tables used by developers and data scientists.
Methods
The authors built a automated pipeline to curate and annotate GitTables from GitHub repositories:
- Extraction: They selected 67K unique English nouns from WordNet to serve as search topics, querying the GitHub Search API for CSV files.
- Parsing & Curation: Files were parsed using Python's Pandas library. The authors implemented strict filtering rules: discarding tables from repositories without permissive licenses, removing extremely small tables (less than two rows or columns), and filtering out potential social media spam or offensive content.
- PII Anonymization: To protect privacy, columns identified as containing Personally Identifiable Information (PII)—like names, emails, or addresses—were automatically replaced with synthetic data using the
Fakerlibrary. - Column Annotation: Columns were annotated using two distinct strategies against DBpedia and Schema.org ontologies:
- Syntactic Annotation: Direct string matching between preprocessed column headers and ontology types.
- Semantic Annotation: Embedding column names using a pretrained FastText model and matching them to ontology types based on the highest cosine similarity.
Datasets
The primary contribution is GitTables, which currently contains 1 million relational tables (with an ultimate target of 10 million).
The authors evaluate and compare GitTables against several baseline table corpora, including WDC WebTables, WikiTables, and VizNet. They also benchmark their annotation quality using the T2Dv2 gold standard and introduce a new benchmark dataset consisting of 1,101 manually curated tables for semantic column type detection.
Key Insights and Ideas
- GitHub as a Database Proxy: Because GitHub is heavily utilized by software engineers and data scientists, the CSV files stored there naturally mirror real enterprise database schemas, making it an ideal source for relational data.
- Structural Divergence: GitTables tables are structurally distinct from Web tables. For instance, the most dominant column type in GitTables is
id—a foundational database concept that doesn't even appear in the top 20 most frequent column names for WDC WebTables. - The Data Shift is Real: To prove that GitTables contains fundamentally different data, the authors trained a Random Forest domain classifier to distinguish between GitTables columns and VizNet columns. The classifier achieved 93% accuracy, mathematically demonstrating a significant distribution shift between Web tables and database-like tables.
Key Results
- Realistic Scale: Tables in GitTables average 142 rows and 12 columns, vastly outsizing WDC WebTables, which average just 11 rows and 4 columns.
- High Annotation Coverage: The semantic annotation method successfully covered 71% of all columns across 2.4K unique semantic types.
- Annotation Accuracy: When evaluated against the human-annotated T2Dv2 benchmark, the semantic pipeline matched human annotations in 54% of cases, frequently providing more granular types (e.g., identifying a column as
citywhere a human labeled it generally aslocation). The syntactic method matched in 61% of cases. - Downstream Performance: The authors trained a semantic type detection model (Sherlock) on GitTables, achieving a high macro F1-score of 0.86. Crucially, when a model trained on Web tables (VizNet) was evaluated on GitTables, its performance plummeted to 0.66, validating the authors' claim that Web-table models do not generalize to real database contexts.
Limitations and Future Work
While GitTables represents a major step forward, it possesses a few limitations. First, using WordNet nouns for queries introduces an inherent bias toward English-language tables. Second, the GitHub API restricts file downloads to under 438 kB, meaning exceptionally large enterprise tables are underrepresented unless they were split into smaller files (like daily snapshots) within the repository.
For future work, the authors intend to scale the corpus to 10 million tables and explore how GitTables can improve broader data management benchmarks, such as table-to-Knowledge-Graph matching and advanced data search.
Summary updated