TL;DR
This paper introduces Embedded Order Dependencies (eODs), a new framework for handling order-based relationships in datasets plagued by missing values. To overcome the factorial complexity of validating these dependencies, the authors propose ValidEOD, a heuristic algorithm that is several orders of magnitude faster than traditional approaches by focusing specifically on tuples that violate the dependency.
What Problem Does This Paper Address?
Order Dependencies (ODs) are crucial for database tasks like query optimization and data cleaning. They describe relationships where the order of one set of attributes determines the order of another—for example, "as Rank increases, Salary must also increase."
However, real-world data is messy and often contains missing values (nulls). Standard OD definitions break down in the presence of even a single null. If a tuple has a missing Salary, the dependency Rank ↦ Salary technically fails, even if the relationship holds perfectly for every other employee.
Existing solutions either ignore missing values or use "approximate" ODs that can be computationally prohibitive. This paper fills the gap by defining Embedded ODs, which allow a dependency to hold on a "sub-table" (an embedding) consisting only of tuples that have complete data for a specific set of attributes. The core challenge is efficiently finding a valid embedding without checking every possible combination of attributes.
Methods
The authors first prove a discouraging fact: finding an embedding that satisfies an OD while minimizing the number of ignored tuples is NP-complete. This justifies the shift toward a heuristic approach.
Their proposed algorithm, ValidEOD, operates in two main phases:
- Validation Phase: It uses a state-of-the-art algorithm to identify "swaps" and "merges"—specific pairs of tuples that violate the order dependency on the current set of attributes.
- Update Phase: Instead of a brute-force search through all possible attribute combinations (which has factorial cost), ValidEOD looks only at the violating tuples. It searches for attributes where these specific tuples have missing values. By adding such an attribute to the "embedding," those problematic tuples are filtered out of the sub-table, potentially resolving the violation.
This approach transforms a factorial-time problem into one that is linear with respect to the number of attributes, making it feasible for large relational tables.
Datasets
The algorithm was evaluated on two well-known real-world datasets:
- Adult: Contains ~32,000 tuples and 15 attributes with over 4,000 missing values.
- NCVoter: A much larger dataset with ~256,000 tuples and 19 attributes, containing nearly 800,000 missing values.
Key Insights and Ideas
- Semantic Recovery: The "aha moment" is that eODs can "rescue" semantically valid relationships that are technically broken by dirty data. By defining a sub-table where the data is complete, we can still leverage these dependencies for optimization.
- Violation-Centric Search: The most clever part of the algorithm is its focus. Rather than asking "which attributes should I add?", it asks "which attributes will hide these specific errors?" This drastically prunes the search space.
- Complexity Trade-off: By accepting a heuristic that finds a valid embedding rather than the absolute best one, the authors achieved a massive leap in performance that makes the technique practical for real-world engineering.
Key Results
The experimental results highlight a dramatic performance gap between the proposed heuristic and a naive exhaustive search:
- Speedup: ValidEOD is several orders of magnitude faster than the naive approach. As seen in Figure 1, the running time for ValidEOD remains low and stable even as the complexity of the dependency (LHS/RHS size) increases.
- Scalability: On the NCVoter dataset, the naive algorithm failed to terminate within several hours. In contrast, ValidEOD processed the same tasks in seconds or milliseconds.
- Error Correlation: The authors confirmed that their algorithm's performance is tied to the number of swaps and merges (violations) in the data, rather than just the number of attributes.

Limitations and Future Work
The primary limitation acknowledged is that ValidEOD is a heuristic. Because the problem of minimizing ignored tuples is NP-complete, ValidEOD might return a valid embedding that excludes more tuples than strictly necessary.
Additionally, this paper focuses on validation (checking if a specific dependency holds). A natural next step for future research is discovery—automatically finding all valid eODs within a large, messy dataset from scratch, which would likely require even more advanced pruning techniques.
Summary updated