TL;DR
When extracting information from text, we often get a flood of redundant results. This paper formalizes the "skyline operator" for document spanners—a way to filter out "dominated" matches (e.g., keeping only the longest span or the one with the most attributes). While this operator doesn't technically make regular extractors more powerful, the authors prove it comes with a steep "complexity tax," often leading to exponential blowups in size and NP-hard processing times.
What Problem Does This Paper Address?
In Information Extraction (IE), a "document spanner" is a formal way to map variables to intervals (spans) in a text. For example, if you're extracting names and addresses, a spanner might find multiple overlapping matches. Practical IE systems like IBM’s SystemT use "consolidation rules" to clean this up—for instance, if one match is entirely contained within another, you might only want the larger one.
Despite being common in industry, these filtering rules lacked a rigorous theoretical foundation within the document spanner framework. This paper addresses that gap by introducing the Skyline Operator. The goal is to understand the theoretical limits: Can we always rewrite an extractor to include these filters? And if so, how much more "expensive" (in terms of memory and time) does the extractor become?
Methods
The authors define a domination rule as a partial order over mappings. The skyline is then the set of all maximal mappings—those not dominated by any others.
To analyze this, they use:
- Variable-set Automata (VAs): A standard way to represent regular spanners using nondeterministic machines.
- Boolean Function Theory: Specifically, they establish a novel connection between VAs and Nondeterministic Read-Once Branching Programs (NROBPs) to prove lower bounds on how many states an automaton needs.
- Complexity Reductions: They use reductions from the Boolean Satisfiability problem (SAT) to determine the "combined complexity" (how hard it is to evaluate the query when both the document and the extractor are part of the input).
Datasets
As a theoretical computer science paper, this work does not use empirical datasets or benchmarks. Instead, it relies on mathematical proofs and formal language theory.
Key Insights and Ideas
- The "Closure" Catch: The authors prove that regular spanners are closed under the skyline operator. This means you can always build a new automaton that only outputs the skyline. However, they show this is a pyrrhic victory: the new machine might be exponentially larger than the original.
- Core Spanners are Different: Unlike regular spanners, "core spanners" (which allow for string equality checks, like finding repeated words) are not closed under the skyline operator. This means adding a skyline filter actually makes the core spanner language more expressive.
- The Complexity Tax: Even for simple rules like "variable inclusion" (preferring matches that assign more variables), the problem is NP-hard in combined complexity. This suggests that "compiling" the filter into the extractor is fundamentally difficult.
- A Dichotomy of Rules: The authors identify a specific condition called UMDSDP (Unboundedly Many Disjoint Strict Domination Pairs). If a rule satisfies this, it's likely intractable. This helps classify which types of filtering are "easy" versus "hard."
Key Results
- State Complexity Blowup: For a spanner with $n$ states, the skyline version (under variable inclusion) requires at least $2^{\Omega(n)}$ states.
- Intractability: Evaluating the skyline is NP-hard in combined complexity for most natural domination rules (span inclusion, span length, variable inclusion).
- Tractability: They identify a class of "variable-inclusion-like" rules that can be computed in output-polynomial time, provided they don't allow for too many "disjoint" ways for one match to dominate another.
Limitations and Future Work
- General Dichotomy: While the paper provides a dichotomy for "variable-inclusion-like" rules, a complete classification for all regular domination rules remains an open challenge.
- The "Top-K" Problem: The authors suggest investigating whether finding just the top-k best matches (rather than the entire skyline) might be computationally easier.
- Schema-based vs. Schemaless: Much of the hardness comes from "schemaless" spanners (where different matches assign different variables). The authors note that more work is needed to see if these bounds hold as strongly in strictly schema-based contexts.
Summary updated