Shape-Agnostic Table Overlap Discovery: A Maximum Common Subhypergraph Approach

Ge Lee, Shixun Huang, Zhifeng Bao, Felix Naumann, Shazia Sadiq, Yanchang ZhaoarXiv 2026

TL;DR

This paper introduces SALTO, a novel approach to discovering arbitrary-shaped, non-contiguous overlaps between tables without relying on metadata or fixed row/column orders. By modeling tables as hypergraphs, the authors transform the problem into a maximum common subhypergraph problem and propose an efficient branch-and-bound algorithm called HyperSplit. HyperSplit outperforms the state-of-the-art by capturing up to 78.8% larger overlaps while maintaining practical computational efficiency.

What Problem Does This Paper Address?

Data lakes, web pages, and enterprise databases are filled with tables that share information but lack consistent structure or metadata (like headers). Identifying overlapping content between two tables is critical for tasks like data deduplication, version control, and cross-source copy detection.

The current state-of-the-art method, Sloth, looks for the largest rectangular overlap between tables. However, real-world data rarely fits into neat rectangles due to missing rows, reordered columns, or local modifications. If matching cells are scattered or non-contiguous, rectangular methods miss them entirely. The authors address this gap by proposing Shape-Agnostic Largest Table Overlap (SALTO), which finds all valid matching cells regardless of their geometric layout or permutations.

Comparison between rectangular overlap (Sloth) and shape-agnostic overlap (SALTO)

Methods

To avoid the factorial nightmare of explicitly checking every possible row and column permutation, the authors map the problem to graph theory. Specifically, they represent each table as an undirected hypergraph:

  • Nodes represent cell values that appear in both tables (capturing cross-table dependencies).
  • Hyperedges connect multiple nodes simultaneously, representing entire rows and columns (capturing intra-table dependencies).
Figure 2: Hypergraph representation of Tables X and Y and their maximum common subhypergraph. Cell values shared by both tables are shown in bold. Hyperedges are visualized as convex hulls (purple for rows, green for columns) enclos- ing their associated nodes.

Finding the SALTO then becomes a Maximum Common Subhypergraph (MCS) problem. Since this problem is NP-hard, the authors developed HyperSplit, a specialized branch-and-bound algorithm featuring three key innovations:

  1. Hypergraph-Aware Label Classes: Groups unmapped nodes by cell values and hyperedge memberships to ensure structural consistency without brute-forcing permutations.
  2. Incidence-Guided Pruning: Exploits row-column connectivity to aggressively eliminate dead-end search branches early.
  3. Tolerance-Based Pruning: Introduces a tunable relative-tolerance parameter ($\delta$) that relaxes exact pruning conditions by a small margin, trading a tiny fraction of optimality for massive speedups.

Datasets

The authors evaluated their approach on two massive, real-world table corpora:

  • WikiTables: 128k tables extracted from Wikipedia.
  • GitTables: 256k tables extracted from GitHub repositories.

From these datasets, they uniformly sampled 500k table pairs to test varying overlap complexities. They also utilized the Stock dataset (daily stock tables collected from 55 sources over 21 days) for a cross-source copy detection case study.

Key Insights and Ideas

  • The Geometry of Data is an Illusion: Restricting table overlap to rectangles is an artificial constraint born of computational convenience, not data reality. Real-world table evolution (insertions, deletions, local edits) breaks contiguity, making shape-agnostic discovery essential.
  • Hypergraphs Capture Tabular Duality: Standard graphs only represent pairwise relationships. Tables have a dual dependency where every cell belongs to exactly one row and one column. Hypergraphs elegantly preserve this higher-order structural constraint.
  • Bounded Suboptimality for Exponential Speedups: By introducing tolerance-based pruning, the algorithm can bypass exploring branches that offer negligible gains, effectively solving a theoretically intractable problem in seconds with minimal impact on accuracy.

Key Results

  • Greater Completeness: HyperSplit consistently discovered larger overlaps than Sloth, finding more matching cells in up to 78.8% of cases due to its shape-agnostic formulation.
  • Efficiency: Despite solving a more complex problem with a larger search space, HyperSplit proved highly efficient, averaging fractions of a second on typical table pairs and stabilizing within 50 seconds even on highly complex pairs with over 10,000 cells.
  • Real-World Impact: In a copy-detection case study on the Stock dataset, HyperSplit successfully clustered copied web tables with perfect accuracy (Adjusted Rand Index and Normalized Mutual Information of 1.0), outperforming Jaccard and Sloth baselines which suffered from fragmented clusters as similarity thresholds dropped.

Limitations and Future Work

  • Exact Matching Constraint: SALTO currently relies on exact cell value equality. It can be thrown off by minor typos, formatting differences (e.g., "7.0" vs "7"), or synonyms, though preprocessing/normalization can mitigate this.
  • Homonym Vulnerability: Identical strings with different meanings (homonyms) can cause spurious matches. While column context helps, it isn't fully integrated into the core hypergraph structure yet.
  • Future Directions: The authors suggest extending the framework to support fuzzy or learned semantic matching, incorporating machine learning (like GNNs or reinforcement learning) to guide the branch-and-bound search heuristics, and scaling to long version histories.

Summary updated

BibTeX
@misc{lee2026shape,
  author = {Ge Lee and Shixun Huang and Zhifeng Bao and Felix Naumann and Shazia Sadiq and Yanchang Zhao},
  title = {{Shape-Agnostic Table Overlap Discovery: A Maximum Common Subhypergraph Approach}},
  year = {2026},
  eprint = {2603.14419},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.14419},
}
Figure