Manuscript Offprint
arXiv:2611.12512Certifying the Error-Detection Value of Functional Dependencies without Ground Truth
Xiaolong Wan, Xixian Han
Abstract—Functional dependencies are used to flag erroneous cells, but without error labels the value of these flags is unknown. Dependency strength cannot settle it, because identical data and flags can have positive value in one clean state and negative value in another. We treat this value as partially identified and certify a fixed detector when its value is positive in every clean state compatible with the observation under an error model and budget. The largest such budget is the certification radius. For a detector that flags departures from the unique mode of each class, the worst case reduces to a 0/1 knapsack over class flips, yielding sharp bounds on true positives and the exact radius in polynomial time. Allowing bounded legitimate exceptions in the clean data, we derive an exact threshold for the existence of a positive certificate and compute the radius with the same knapsack. Across five relations and 21,981 candidate dependencies, rules with nearly equal and flag rate can have certification margins differing tenfold. Error injection confirms sound certification and shows that, at equal error counts, changing the organization of errors reverses certification outcomes for every tested rule.
Index Terms—Functional dependencies, error detection, data quality, partial identification, certification.
I. INTRODUCTION
FUNCTIONAL dependencies are a standard tool for detecting errors in relational data [1]–[3]. When a dependency is expected to hold but does not, tuples that agree on may disagree on , and a detector uses these disagreements to flag potentially erroneous cells. Acting on the flags has a cost. Each flagged cell must be inspected or repaired, and a flag on a correct value is a false alarm. How much the flags are worth, which we call their value, therefore depends on how many of them mark actual errors, and on real data this number is unknown. Counting the errors requires labeling every cell as correct or erroneous against external sources or by manual inspection, and even benchmarks with semantically annotated dependencies [4] lack such labels. Without labels, rules are judged by quantities computed from the observed relation, most commonly dependency strength.
Measures such as [5] quantify how far the observed relation is from satisfying the rule, and comparative studies [6], [7] examine many alternatives. Strength describes how well a rule fits the data, not the value of its flags. Whether it nevertheless tracks value can be tested only on data with known errors, and on injected errors it does not reliably predict the value of a rule as a detector [8]. What is missing is a statement about the value itself that can be derived from the observation without labels.
TABLE I
A RELATION WITH Zip City. TUPLES WHOSE CITY CELL IS FLAGGED ARE MARKED WITH AN ASTERISK.
| Zip | City | Tuples | Count |
|---|---|---|---|
| Z1 | Alpha | 4 | |
| Z1 | Beta | 1 | |
| Z2 | Gamma | 4 | |
| Z2 | Delta | 2 | |
| Z3 | Epsilon | 1 | |
| Z3 | Zeta | 1 |
The difficulty is that the observation does not determine the value. Consider a relation of 13 tuples in which a detector for Zip City flags three City cells (Table I). If the observation contains only the few errors needed to explain its conflicts, Alpha and Gamma are the correct cities of Z1 and Z2. Every flag then marks an error, and the value of the flags, i.e., the loss they avoid compared with flagging nothing, is positive. A few more errors admit a different clean state in which Delta is the correct city of Z2. The two flagged Delta cells are then correct and the unflagged Gamma cells are wrong, so only the flag on Beta still marks an error. When a missed error and a false alarm cost the same, the value is now negative, although the data and the flags are unchanged.
The value is thus partially identified [9], [10], known only as a member of the set of values over all clean states compatible with the observation. We fix an error model, which states what the clean data look like and how they may be corrupted, together with a budget k on the number of corrupted cells. The flags are certified at budget k when their value is positive in every compatible clean state. A larger budget admits more states, and the certification radius is the largest budget at which the certificate still holds. We write for the fewest errors with which the error model explains the observation, four in the example above, one each in Z1 and Z3 and two in Z2. We call the margin, the number of errors that the certificate tolerates beyond this minimum. If the clean data satisfy the error model and contain at most errors, the flags have positive value, and no label enters this conclusion.
The example uses the mode-based detector, which flags every value of A that differs from the unique most frequent value among the tuples sharing its X-value, and nothing in a group without a unique most frequent value. When the clean data satisfy the dependency and only right-hand-side cells are corrupted, the worst case over the compatible clean states arises from reinterpreting groups, as taking Delta instead of Gamma for Z2 does in the example. A reinterpretation costs
The authors are with the School of Computer Science and Technology, Harbin Institute of Technology, China. (e-mail: wxl@hit.edu.cn, hanxx@hit.edu.cn) additional errors and turns some flags into false alarms, and within a group only its second most frequent value needs to be considered. Choosing which groups to reinterpret within the budget is a 0/1 knapsack problem, whose solution gives a sharp lower bound on the number of correct flags at every budget and the exact certification radius in polynomial time. Groups whose two most frequent values are nearly tied offer inexpensive reinterpretations that invalidate many flags.
Clean data may also violate a dependency legitimately, as when a ZIP code spans two cities. We therefore also admit clean states with at most legitimate exceptions, which can be made to satisfy the dependency by changing at most cells of A. Some feasible budget certifies a positive value exactly when stays below a threshold determined by the number of flags and the relative costs of missed errors and false alarms. Below this threshold the same knapsack yields the certification radius, with the threshold lowered by .
On five benchmark relations we evaluate 21,981 candidate dependencies. Nearly half of them are certified at every feasible budget. For the others, the margin usually lies near half the number of flags. Yet 1,203 candidates have a margin of zero, and many pairs whose and flag rate differ by less than 5% have margins that differ tenfold or more, so and the flag rate alone do not determine the margin.
Injecting errors into clean data makes the true value known, and no certified run has a non-positive true value, as the theory guarantees. At equal error counts, changing how errors are organized reverses the certification outcome on every tested rule. Each run whose errors repeat one wrong value within a group is paired with a random run that corrupts exactly as many cells. On 15 of the 17 tested rules, every random run is certified, whereas every paired run in which the repeated value covers 70% of each group it enters is a detection failure, in which the flags have no positive value. On the two remaining rules, whose left-hand sides are near keys, most random errors fall into groups of a single tuple, where they consume budget without raising flags. Every random run is then an identification failure, in which the flags have a positive value that the certificate cannot establish, whereas every paired run at 30% coverage is certified. A certification takes well under a millisecond in the median, and the slowest instance at ten million rows takes 16.3 seconds.
Our contributions are as follows.
-
We formulate label-free certification of the value of a fixed dependency-based detector as a partial identification problem, with the certification radius as the largest certified error budget (Section II).
-
For the mode-based detector we give a sharp worst-case bound that yields the exact radius in polynomial time, and extend it to clean data with at most legitimate exceptions, where the bound stays sharp and some budget is certified exactly when is below a threshold (Sections III and IV).
-
On observed and injected data we show that certificates carry information beyond and flag rate, and that at equal error counts the organization of the errors reverses the certification outcome on every tested rule (Section V).
Section VI discusses related work, and Section VII concludes.
A. Dependency-Based Error Detection
We consider a relation over a schema and one functional dependency at a time, with and a single attribute . Each tuple has a unique identifier, which distinguishes tuples even when their values are identical.
Following recent work on approximate dependencies [7], we evaluate only on tuples with non-null values on , so that null semantics do not add a second source of uncertainty. These tuples form the evaluation scope of , and we write .
A cell is a pair of a tuple identifier and an attribute , and is its observed value. The cells with and form the detection universe , the cells that a detector for may flag.
Definition 1. A detector for is a deterministic function that maps the evaluation scope to a set of flagged cells . We write .
The detector is fixed before its value is examined, and we assess this detector rather than search among possible detectors for . The definition also allows flags on left-hand-side cells, although the mode-based detector studied in the rest of the paper flags only right-hand-side cells. When , we say that has no detection opportunity on , and we exclude this degenerate case from the certification problem.
B. Latent Clean Worlds
The flags are observed, but whether a flagged cell actually holds a wrong value is not. We treat as the result of corrupting an unobserved clean relation in cell values only, with no tuple inserted or deleted, so tuple identity survives and errors can be located by position without matching tuples.
Definition 2. A latent clean world for is a relation over with the same tuple identifiers as , whose cells take non-null values from the attribute domains. We write for the value of the cell in and for its observed value . The error set of the observation relative to is the set of cells on which and differ, .
The clean value of a cell need not occur anywhere in , since corruption may overwrite every occurrence of a correct value. Section III shows that the worst case for the mode-based detector never requires such values.
Definition 2 admits itself as a latent clean world. It has an empty error set and so fits every budget on the number of errors, and in it every flag is a false alarm, so a budget alone guarantees nothing about the flags. A guarantee requires an assumption about the structure of the clean data. If is assumed to hold exactly in the clean relation, for instance, every observed violation must contain at least one erroneous cell, so the observation forces a minimum number of errors.
Definition 3. An error model for is a predicate on latent clean worlds. It may refer to , and it states the structural and corruption assumptions under which a latent world is considered compatible with the observation. For a budget , the set of compatible worlds is .
The error models of Sections III and IV keep every X-value fixed, so the error sets of their compatible worlds contain cells of A only. The sets grow with k. When the error model admits at least one latent clean world, two budgets delimit the range in which the choice of k matters.
Definition 4. The minimum feasible budget and the saturation budget of under are and , and the feasible budget range is .
The minimum feasible budget is the fewest errors with which the observation can be explained under . The saturation budget is finite because every error set lies in . Raising the budget beyond adds no world, so for all . If no latent clean world satisfies , the observation contradicts the error model, and that model is not considered.
C. Error-Detection Value
Relative to a latent clean world , some flags of are correct and others are false alarms, while some errors receive no flag. The corresponding counts are , and .
We measure the worth of the flags by the loss they avoid. A missed error costs and a false alarm costs , while correctly flagged errors and correctly unflagged cells incur neither cost. The baseline of flagging nothing misses every error, at a loss of . Acting on instead incurs .
Definition 5. The error-detection value of under in a latent clean world is .
Although the value also depends on the dependency, the detector and the costs, we write because only the world varies in what follows.
Substituting the counts gives
The total number of errors cancels. The value therefore depends on the world only through , and because f is observed it is an increasing affine function of .
Observation 1 (Precision threshold). Let and . For every latent clean world , if and only if .
The technical problem is thus to determine how small can be over the compatible worlds. The cost model only fixes the threshold that this lower bound must exceed.
D. Identification and Certification
The value that matters is the one in the actual clean relation, which we denote by to distinguish it from a generic latent clean world . It is unobserved, and the error model is our only handle on it. If holds and , then , but the data cannot tell which compatible world is, so is known only as a member of a set.
Definition 6. For , the identified set of the value is .
This is the identified set in the sense of partial identification [9], [10]. It need not be an interval. We work with its endpoints, which are determined by the extremes of the true-positive count,
Both extremes exist even when infinitely many worlds are compatible, because takes values in , and each is attained by some compatible world. Since the value is an increasing affine function of , the sharp lower and upper bounds of are
Identifying the value thus reduces to identifying the true-positive count. These extremes are not immediate to compute, which leads to two problems that Section III solves for the mode-based detector.
Problem 1 (Identification). Given , , and , compute and .
Problem 2 (Certification). Given in addition and , decide whether , or equivalently, by Observation 1, whether .
If holds and , then is compatible, so certifies without any label. This is the sense in which we certify a dependency.
A negative answer, , has two possible causes that the data cannot separate. If , we speak of a detection failure. If but a compatible world with non-positive value cannot be excluded, we speak of an identification failure. A failure to certify is therefore not a certificate of failure, which would require , so that no compatible world has positive value. Our focus is on , because the decision of whether to act on a detector requires a guaranteed benefit.
Each dependency is certified separately. The worst-case worlds of different dependencies need not fit together into one clean relation, so their lower bounds need not be attained at once. Constraining the dependencies jointly could tighten the bounds, but it would turn certification into a global inference problem over all of them.
E. Certification Robustness
Problem 2 takes the budget as given, yet an exact bound on the number of errors is rarely available. We therefore ask the converse question of how large the budget may grow before certification is lost. Because a larger budget only adds compatible worlds, is non-increasing in k, so once certification fails at some budget, no larger budget restores it.
Definition 7. The certification radius of under and is , and is undefined when this set is empty.
We use the term radius because the budget bounds the cell-wise Hamming distance between the observation and a latent clean world. By monotonicity, the certified budgets form an initial segment of , and each dependency falls into exactly one of three cases. It is not certifiable when . Then is undefined, since even the smallest compatible set contains a world with non-positive value. It has a finite certification radius when , and its value is certified up to and not beyond. It is certified throughout the feasible range when , in which case the value is positive in every world the error model admits.
The radius restates the certificate without a fixed budget. If holds and , then , so the user need not know the number of errors but must justify this upper bound. When exists, we call the margin, the corruption that the certificate tolerates beyond the minimum needed to explain the observation. The budget is determined by the observation and the error model, whereas also depends on the detector and the costs. The radius evaluates the flags of a dependency taken as given, and the validity of the dependency in the clean data is part of the error model.
III. MODE-BASED DETECTION UNDER BOUNDED RIGHT-HAND-SIDE CORRUPTION
When the clean data satisfy the dependency and only right-hand-side values are corrupted, a compatible world is fixed by one clean value of A per class, and a direct search for grows exponentially with the number of classes. Since errors and true positives add up over the classes and only the mode and a runner-up value matter in each class, the worst case is a 0/1 knapsack over the classes that may switch to their runner-up.
A. The Mode-Based Detector
The detector treats the tuples that agree on group by group and depends on a group only through how often each value of occurs in it. Tuples of that agree on form an -class, and we write for the classes and . For a value of , let be the number of tuples in with -value . Ordering the values that occur in by decreasing , we write and for the first two counts, with if only one value occurs and if two values share the largest count. Then counts the tuples whose -value differs from a chosen most frequent value, and it is also the smallest number of cells of that must change for all tuples of to agree on .
Definition 8. Call decisive if , and let be its unique mode of . The mode-based detector flags . Classes with are tie classes and receive no flag.
The mode need not form an absolute majority, as with counts 4, 3 and 2. Each decisive class contributes the cells whose value differs from its mode, whereas a tie class contributes none, so . From here on, denotes this detector.
The detector reads only these counts, so it needs neither labels nor a probabilistic model. In a decisive class, the fewest changes that make all tuples agree on set every cell to the mode and change exactly the flagged cells, which motivates the flags without presuming that the mode is the clean value. Whether it is clean depends on the latent world, and the analysis below allows the clean value of any class to differ from its mode. In a tie class, setting every cell to any of the most frequent values takes equally few changes, so the detector does not pick one arbitrarily and flags nothing.
B. Bounded Right-Hand-Side Corruption
The budget bounds how much corruption there is, and the error model restricts where it can occur.
Definition 9. The error model holds for a latent clean world if
-
for every and every ,
-
satisfies .
imposes two restrictions. The first condition keeps uncorrupted, so every world that satisfies has the observed classes and only the clean values of remain latent. If -values could be wrong, a tuple might belong to a different class in the clean data, and the classes themselves would be unknown. The second condition excludes legitimate exceptions, a requirement that Section IV relaxes.
Otherwise leaves the distribution of errors over the classes and values of A unconstrained. A class may contain any number of errors, which may all carry one wrong value that can rival or even outnumber the clean value.
C. Structure of Compatible Worlds
Under a compatible world amounts to a choice of one clean value of A per class.
Lemma 1. A latent clean world satisfies if and only if there are values of such that agrees with on and for every . In that case .
Proof. By the first condition of , agrees with on , so its -classes are . The second condition then holds exactly when the tuples of each class share one value of in . A cell with belongs to exactly when , and contains such tuples.
We call the clean assignment of . The true-positive count decomposes in the same way. In a decisive class, a flagged cell is an error exactly when . If is the mode , all flagged cells are errors, and otherwise the flagged cells that carry become clean. A tie class carries no flag. The contribution of is therefore
and . Both the error count and the true-positive count are sums over classes, and each term depends only on the value chosen for its own class.
Each term of the error count is smallest, equal to , when is a most frequent value of , and it reaches when does not occur in . The smallest number of errors with which the observation can be explained under is therefore .
Corollary 1. The minimum feasible budget is . If, for each class, the domain of A contains a value that does not occur in that class, the saturation budget is .
The sum runs over all classes, whereas runs over the decisive ones only, so counts the errors forced in tie classes, which raise no flag. For , we call the excess budget, the part of beyond the errors that the observation forces.
D. Sharp Bounds on True Positives
A compatible world can reduce the number of true positives only by taking a clean value other than the mode in some decisive class. By Lemma 1, taking as the clean value of a decisive class costs errors beyond and removes true positives. When , a value that occurs times in is called a runner-up value of the class. A flip of takes a runner-up value instead of the mode as the clean value. It changes the clean assignment, not the observation or the flags. A flip costs additional errors and removes true positives, where because . The flippable classes are indexed by , exactly the classes that carry flags. Changing the clean value of any other class removes no true positive.
Lemma 2. For every there is with whose clean assignment takes the mode or a runner-up value in every class of and a most frequent value in every other class.
Proof. Let be the clean assignment of . We modify it class by class without increasing the error count or the true-positive count.
A class outside I is a tie class or holds a single value of A, so it carries no flag and contributes no true positive whatever its clean value. Replacing by a most frequent value of the class brings its error count to the minimum .
A class of whose clean value is the mode needs no change. If , then , since only the mode occurs more than times in the class. Replacing by a runner-up value changes the error count of the class from to and its contribution to TP from to . Neither increases.
By Lemma 1, the modified assignment defines a world that satisfies , and it has the form required by the lemma. Both counts are sums over classes and neither increased in any class, so and . Hence .
Theorem 1 (Sharp lower bound). Let and . Then , where
Proof. For , let be a world that flips the classes in , keeps the mode in the other classes of and takes a most frequent value in every class outside . By Lemma 2, is the smallest among the worlds in . By Lemma 1 and the class contributions , the world has errors and true positives. It therefore lies in exactly when , and minimizing over these sets gives .
Theorem 1 reduces the worst case over all compatible worlds to a 0/1 knapsack [11] with capacity , in which each class of is an item of weight and value , and is the largest reduction in true positives within the excess budget.
The upper bound on true positives is attained by , the world in which every decisive class keeps its mode as the clean value. This world has the minimum possible error count , so it is compatible at every feasible budget, and all f flagged cells differ from their clean values. Since no world has more than f true positives, and . When f > 0, some compatible world thus gives the flags a positive value, and the data can never show that the detector lacks positive value.
Certification rests on the lower bound instead. By Observation 1, Theorem 1 gives the certification test below.
Corollary 2. For and , if and only if . When , so that , the condition becomes .
E. Computing the Certification Radius
Applying Corollary 2 across the feasible range gives the radius. Since a larger excess budget admits more flip sets, Q is non-decreasing in S, and
The values of Q at the two ends of the range settle whether a radius exists and whether the dependency is certified throughout the feasible range.
At the lower end , and since every flip costs additional errors, no flip fits. Hence and , so under every dependency that raises a flag is certified at .
Corollary 3. If , then . Consequently, exists and .
At the upper end, let be the cost of flipping every class in . For all flips fit within the excess budget, so . The world that flips every class in uses only observed values, satisfies and has errors. Since is the largest error count under , regardless of the domain of , and . Because is non-increasing in , a dependency is certified throughout the feasible range exactly when .
The values for are computed by the standard dynamic program for the 0/1 knapsack [12], which processes the classes of one at a time and records, for each capacity from 0 to , the largest reduction in true positives achievable with the classes processed so far. Since is constant beyond , these values give the whole curve over the feasible range.
Proposition 1. The certification radius, together with for every , can be computed in expected time and space. Since and , the time is .
Proof. A single pass over with hash tables keyed on X and on counts the values of A in every class in expected time, and , , and follow from these counts in time. The dynamic program uses a one-dimensional table of entries, performing at most one update per class of I at each capacity. Since Q is constant beyond D, the whole curve over , which has at most budgets, and the radius follow in further time. The hash tables take space. Each flip cost satisfies , so , and . The bound assumes constant-time access, hashing and comparison of the relevant attribute values.
The general 0/1 knapsack problem is NP-hard under binary encoding [12]. Here the weights are differences of counts and sum to , so the dynamic program, pseudo-polynomial in general, is polynomial in the size of the relation.
F. Class Structure and the Certification Radius
By Theorem 1, the bound with depends only on , and the pairs of the classes in , and not on . Two dependencies that agree on , and can still differ in their pairs and hence in their certification radius.
Example 1 (Equal strength, different certification radii). Consider two relations, each with two classes of six tuples. In the first, both classes have counts 5 and 1. In the second, one class has counts 4 and 2, while the other holds a single value of A. Both relations have , G = 2 and f = 2, but the first has two flips with , whereas the second has one with . When , certification requires . Since every flip removes at least one true positive, this holds exactly when no flip fits, that is, for in the first relation and in the second. The radii are therefore 5 and 3.
Any measure determined by and alone, such as the error [5], which equals , takes the same value on the two relations, and so does the flag rate , so neither can determine the certification radius. This complements the empirical finding that dependency strength need not reflect error-detection value [8].
Two simple lower bounds on show which classes matter at a given budget. They use the efficiency of a flip, the true positives it removes per additional error, and , or 0 if I is empty.
Corollary 4. For and , let . Then and .
Proof. By Theorem 1, , so it suffices to bound . A feasible flip set contains only classes with , so and . For the second bound, .
By the first bound, a class whose flip cost exceeds the excess budget keeps all its flags as true positives in every compatible world. By the second, every excess budget with is certified. When , certification can therefore fail at an excess budget below only if some class has , that is, a runner-up count larger than the lead of the mode. Both bounds can be loose, and the exact radius still requires the knapsack.
Classes differ widely in this efficiency. Counts 24 and 1 give and , so a flip costs many errors to remove a single true positive and . Counts 14 and 11 give , and three additional errors suffice for a compatible world in which eleven flags are false alarms. The greatest threat arises near a tie. Counts 25 and 25 form a tie class that raises no flag, but one more tuple with the first value gives 25 flags with and , the highest efficiency that a class of 51 tuples admits. Once , some compatible world turns all 25 of these flags into false alarms, so certification requires , which for means more than 50 flags in all.
IV. LIMITS OF CERTIFICATION UNDER LEGITIMATE EXCEPTIONS
Model requires the clean data to satisfy the dependency exactly. This section admits up to legitimate exceptions in the clean data and shows that no budget certifies a positive value once reaches , while for smaller the same knapsack still yields the sharp bound and the certification radius.
A. Modeling Legitimate Exceptions
Clean data often violate a dependency for legitimate reasons. A ZIP code may span two cities or be reassigned to a new name over time, and a flag on the correct City of such a tuple is a false positive. We keep the first condition of , which fixes the classes , and relax only the second. The flags depend on the observation alone and stay unchanged, but they are now judged against a larger set of worlds.
Definition 10. Let be an integer. The error model holds for a latent clean world if
-
for every and every ,
-
there is a vector of values of such that the exception set has at most elements.
We call such a vector a witness vector of , the canonical value of and the cells of legitimate exceptions.
A world may have several witness vectors, which declare different cells to be exceptions. For every class of carries a single value of , so coincides with and the canonical values form the clean assignment.
For a fixed world, the smallest exception set takes a most frequent value of each class in as its canonical value. With the largest number of tuples in that share a value of in , this gives . The second equality holds because is the smallest fraction of tuples whose removal makes hold, and with fixed, deleting tuples and changing -values both take steps to make a class agree on . Hence has a witness vector exactly when , so requires the clean data to satisfy up to exceptions, wherever they lie.
Under the compatible sets become , and every quantity defined from them takes as an added argument, as in , , , and . A world compatible for and stays compatible when either parameter grows, so is non-increasing in both arguments wherever the sets are non-empty.
The error set contains the cells where the observation differs from and counts against the budget k. The exception set contains the cells where differs from the canonical value of their class and counts against . A cell lies in both when its clean value is a legitimate exception and its observed value is wrong. Under , an observed value that differs from the clean value of its class must be an error, whereas under it may be a legitimate exception that uses no part of k. Since restricts the number but not the position of exceptions, any flagged cell may be read in this way, and the observation alone cannot tell an exception from an error. Section IV-C discusses where a bound on can come from.
B. When Positive Certification Becomes Impossible
At the minimum budget under , each class takes a most frequent value as its clean value, so the errors include every flagged cell and every flag is a true positive. Under any of these cells can instead keep its observed value as a legitimate exception, saving one error. Whether some budget still certifies a positive value turns on the minimum feasible budget, which now depends on .
Lemma 3. Under , the minimum feasible budget is .
Proof. Let satisfy with witness vector b. A cell with and either lies in or keeps its observed value in , and in the second case it lies in . Class contains such cells, hence and .
For a world attaining this bound, make a most frequent observed value of each class canonical, keep of
the cells that differ from them as legitimate exceptions and set every other one to the canonical value of its class. This world satisfies and has errors.
Since every world that satisfies also satisfies , under the domain condition of Corollary 1 the feasible range runs from to .
Theorem 2 (Impossibility under exceptions). Suppose and . Then for every , so no feasible budget certifies a positive value and is undefined.
Proof. We specialize the world in the proof of Lemma 3, in which the canonical value of each decisive class is its mode. The cells that differ from their canonical values are then the flagged cells and unflagged cells of tie classes. Keeping flagged cells and unflagged cells as legitimate exceptions gives a world with errors, which belongs to for every . A kept flagged cell is not an error, and every other flagged cell takes the mode as its clean value and is an error, so , where the inequality uses . Observation 1 then gives .
For the world keeps every flagged cell as a legitimate exception and has no true positives. Since true positives cannot be negative, at every feasible budget. For the feasible range starts at , where the only compatible world is the observation itself, so , a certificate of failure that never admits.
The threshold depends only on the number of flags and the cost ratio. The deviating cells of tie classes raise but not the threshold, since keeping them as legitimate exceptions removes no true positive. When the threshold is , so a rule with few flags tolerates few exceptions, however large the relation. Since , a positive certificate requires . In particular, the assumption , under which the clean data violate no more than the observation does, never yields a certificate.
C. Certification under Bounded Exceptions
Below the threshold of Theorem 2, the lower bound on true positives is again sharp and is given by the same function Q. Setting the legitimate exceptions of a world that satisfies to their canonical values yields a world that satisfies and differs in at most cells. Conversely, an exception that keeps the observed value of a flagged cell turns that flag into a false alarm and saves one error, which can pay for flips.
Theorem 3 (Sharp lower bound under exceptions). For every , .
Proof. Let , which lies in because by Lemma 3. Since (Section III-E) and Q is constant from D on, , and Theorem 1 gives under .
For the lower bound, let with witness vector , and let agree with except that every cell of takes the canonical value of its class. Each class of carries a single value of , so satisfies . The two worlds differ in at most cells, hence and . Since each changed cell alters at most one true positive, , and .
For attainment, let satisfy , and let be its clean assignment. We choose cells of , true positives first, and restore their observed values. In the resulting world only the restored cells can differ from , so and satisfies . Its error count is at most , because either and , or . Since true positives are chosen first and , restoring removes true positives. Hence .
Corollary 5. Let . Some feasible budget certifies a positive value under if and only if . In that case a budget certifies a positive value if and only if , and the certification radius is the largest such budget.
Proof. If , no feasible budget certifies a positive value by Theorem 2. Otherwise , so and . Since , Observation 1 and Theorem 3 turn into the stated inequality on , which holds at because .
The feasible range extends at least beyond , so the rule is certified throughout it exactly when . Since does not depend on , the dynamic program need not be rerun for different values of .
Compared with , the exceptions can remove true positives on their own, so the flips must remove fewer than , and the excess budget is measured from . Suppose that and that the rule is not certified throughout the feasible range under . Raising by one lowers by one and cannot enlarge the largest certified excess budget, so , with a further drop whenever the lowered threshold crosses a step of . If for a class with , such as a near-tie class, a single error beyond breaks the certificate and .
Relying on a certificate under requires the user to justify that the true number of errors does not exceed and that the clean data have at most legitimate exceptions. The observation cannot justify the bound on , since it is consistent with clean data that satisfy exactly and with clean data equal to the observation, which have exceptions. Nor does knowing that holds on almost all tuples justify it, since this bounds the fraction , whereas the threshold does not grow with the relation.
Domain knowledge helps only when it bounds the number of legitimate exceptions. An official table of the ZIP codes that span several cities names the classes that may contain exceptions, but such a code may occur in many tuples, so the
TABLE II
BENCHMARK RELATIONS, WITH 115 ANNOTATED FDs IN TOTAL.
| Relation | Tuples | Attributes | Annotated FDs |
|---|---|---|---|
| Adult | 32,561 | 15 | 2 |
| Claims | 97,231 | 13 | 4 |
| DBLP10k | 10,000 | 34 | 77 |
| Hospital | 114,919 | 15 | 29 |
| Tax (synthetic) | 1,000,000 | 15 | 3 |
table does not bound . A list of known exceptions identifies the exceptional cells themselves. Removing their tuples and recomputing , and leaves to count the exceptions among the remaining tuples, and a complete list gives and . An audit of a random sample yields a statistical bound on , and a certificate built on it holds only with the confidence of that bound, outside the deterministic setting of this paper.
Where no bound on is available, the certificate can be reported as a function of . The certified pairs , with and , form a region between the line and the non-increasing staircase . Given a justified bound , the region shows the largest certified budget, and given a justified budget , it shows how many exceptions the certificate can absorb.
V. EXPERIMENTAL EVALUATION
We report certificates on observed data and compare them with the truth on injected data, whose clean state is known.
A. Experimental Setup
Relations and dependencies. We use five relations of the benchmark of Parciak et al. [4], [7] (Table II). Its 115 annotated dependencies each have a single attribute on the left-hand side. Parciak et al. screened candidate dependencies by their score and then by the meaning of the attributes, so we treat the annotated dependencies as plausible reference cases rather than as an unbiased sample of business rules. The annotation marks dependencies, not erroneous cells, so the benchmark provides no ground truth in the sense of this paper. Tuples with a null on , written as an empty string or as “?”, are left out of the evaluation scope.
Enumerated candidates. Because the annotated dependencies have single-attribute left-hand sides and, after the screening, a narrow range of , we also enumerate candidates on all five relations to obtain a large and structurally varied population of rules. For every attribute we form all with and in total. We keep a candidate when its evaluation scope has at least 1,000 tuples and the mode-based detector raises at least one flag. Candidates with the same right-hand side, evaluation scope and induced partition receive the same certificate, and we keep the one with the shortest left-hand side, breaking ties lexicographically. The enumeration space, filters and deduplication rule were fixed before any certification result was examined.
Rules for injection. Injection needs a clean reference, so it uses annotated dependencies that hold exactly on the observation, and the observed relation serves as the clean state. The
TABLE III RULES USED FOR INJECTION. |dom(A)| IS THE NUMBER OF DISTINCT VALUES OF A IN THE SCOPE.
| Group | Rule | Classes | Median class | |dom(A)| | |
|---|---|---|---|---|---|
| Representative | DBLP10k: p1booktitle → p1booktitlefull | 2,867 | 630 | 3 | 627 |
| Representative | DBLP10k: p2booktitle → p2booktitlefull | 2,939 | 609 | 3 | 606 |
| Representative | Claims: Airport Code → Airport Name | 89,207 | 387 | 18 | 387 |
| Representative | Tax: Zip → City | 1,000,000 | 41,826 | 19 | 18,728 |
| Representative | Hospital: Provider Number → Hospital Name | 114,919 | 4,598 | 25 | 4,400 |
| Representative | Hospital: ZIP Code → City | 114,919 | 4,175 | 25 | 2,727 |
| Representative | Hospital: Phone Number → ZIP Code | 114,919 | 4,585 | 25 | 4,175 |
| Representative | Hospital: StateAvg → State | 114,919 | 1,501 | 61 | 55 |
| Representative | Adult: education → education-num | 32,561 | 16 | 789.5 | 16 |
| Representative | Tax: AreaCode → State | 1,000,000 | 273 | 2,489 | 52 |
| Representative | Hospital: Measure Code → Measure Name | 114,919 | 28 | 4,578 | 28 |
| RHS control | Hospital: Provider Number → Emergency Service | 114,919 | 4,598 | 25 | 2 |
| RHS control | Hospital: Provider Number → Hospital Owner | 114,919 | 4,598 | 25 | 9 |
| RHS control | Hospital: Provider Number → State | 114,919 | 4,598 | 25 | 55 |
| RHS control | Tax: Zip → State | 1,000,000 | 41,826 | 19 | 52 |
| Near key | DBLP10k: key1 → p1title | 10,000 | 8,918 | 1 | 8,897 |
| Near key | DBLP10k: key2 → p2title | 10,000 | 8,707 | 1 | 8,686 |
rules were fixed before any injection was run. Left-hand sides that induce the same partition are treated as one. For each partition we take the right-hand side with the largest domain, so that random replacement rarely repeats a value within a class, and we skip partitions with fewer than 1,000 tuples in scope or with fewer than half of their tuples in classes of size at least two. This yields eleven representative rules, one per partition (Table III). Four RHS control rules keep the partitions of representative rules but use right-hand sides with smaller domains. Two near-key rules are added despite the second filter to examine partitions dominated by singleton classes.
Corruption. Corruption changes only cells of within the scope, so the classes stay fixed. A run has a target of errors, set to 0.5%, 1%, 2%, 5% or 10% of . A replacement value is drawn uniformly from the values of in the clean scope, excluding the clean value of the cell. Random corruption chooses distinct cells uniformly at random and draws a replacement value for each independently. Coherent corruption models errors that repeat one wrong value inside a class. For a concentration , a hotspot in class consists of of its cells, which all take one replacement value drawn for the class. Classes are visited in a size-biased random order, and a hotspot is placed whole when it fits the remaining budget and skipped otherwise. We use and . At the clean value keeps the majority in every hotspot class. At the injected value overtakes it, except in classes of size two and four, where the two values tie. Since hotspots are never truncated, a coherent run may realize fewer than errors. Each coherent run is therefore paired with a random run of the same realized size, besides the random run at the target . Each configuration is run with 30 seeds fixed in advance, and results are reported against the realized error rate. We set , so .
Measures. The certificate of a run, given by , , and the margin , is computed from the observation alone. The evaluation, available only for injected data, uses the clean reference and records the true error count , the true value and the counts TP, FP and FN. Under
we have , so is the excess budget at the true error count. Each run has one of four outcomes. A run with offers no detection opportunity, and a run with , equivalently , is certified. Otherwise it is an identification failure when and a detection failure when .
Implementation. All programs are written in Java (JDK 21) and run single-threaded on an Intel Core i9-13900 CPU (2.00 GHz, 24 cores) with 64 GB of main memory under Windows 11. Under the fixed seeds, the certificates, counts and outcomes are exact and hardware-independent. On random small instances the radius under and under agrees with exhaustive enumeration of compatible worlds in every case, and every injected run is checked against the counting identities TP+FP = f and TP+FN = and against two consequences of the theory, the lower bound TP of Theorem 1 at the true error count and a positive value in every certified run. A failed check aborts the whole batch, and every run reported below passes all checks.
B. Certificates on Observed Data
Every certificate reported here is conditional on the clean data satisfying the rule, exactly under or up to legitimate exceptions under .
Annotated dependencies. Of the 115 annotated dependencies, 104 hold exactly, as expected from the screening, and three more, all on Hospital with Phone Number on the left, are violated only in tie classes, so none of them raises a flag. The remaining eight have a finite radius (Table IV). The three Hospital rules with margin 2 share one cause. Each has a class whose mode leads the runner-up by and whose runner-up value holds all 25 flags of the rule, so and three additional errors turn every flag into a false positive.
The candidate population. Table V follows the 229,557 enumerated candidates through the filters. The scope filter acts only on DBLP10k, where many attributes are mostly null. Over the five relations, 21,981 candidates remain after all filters, and nearly half of them, 10,942, are certified at
TABLE IV ANNOTATED DEPENDENCIES WITH A FINITE RADIUS UNDER .
| Rule | ||||
|---|---|---|---|---|
| Claims | ||||
| Disposition → Status | 87,097 | 69 | 69 | 35,403 |
| Status → Disposition | 87,097 | 11 | 9 | 10 |
| Hospital | ||||
| ZIP Code → County Name | 114,869 | 350 | 50 | 24 |
| Phone Number → Provider Number | 114,919 | 325 | 25 | 2 |
| Phone Number → Hospital Name | 114,919 | 325 | 25 | 2 |
| Phone Number → Hospital Owner | 114,919 | 100 | 25 | 2 |
| DBLP10k | ||||
| p1booktitlefull → p1booktitle | 2,867 | 3 | 3 | 9 |
| p2booktitlefull → p2booktitle | 2,939 | 5 | 5 | 6 |
TABLE V CANDIDATES AFTER EACH FILTER. KEPT SPLITS INTO FINITE, WITH A FINITE RADIUS, AND ALL , CERTIFIED AT EVERY FEASIBLE BUDGET.
| Relation | Enum. | Scope | No flag | Dupl. | Kept | Finite | All |
|---|---|---|---|---|---|---|---|
| Adult | 7,035 | 0 | 195 | 1,194 | 5,646 | 2,468 | 3,178 |
| Claims | 3,874 | 0 | 1,234 | 560 | 2,080 | 830 | 1,250 |
| DBLP10k | 204,578 | 160,714 | 28,210 | 8,135 | 7,519 | 4,706 | 2,813 |
| Hospital | 7,035 | 0 | 3,685 | 1,457 | 1,893 | 788 | 1,105 |
| Tax | 7,035 | 0 | 1,219 | 973 | 4,843 | 2,247 | 2,596 |
| Total | 229,557 | 160,714 | 34,543 | 12,319 | 21,981 | 11,039 | 10,942 |
every feasible budget. By Section III-E this happens exactly when , so that flipping every class of removes fewer than true positives. It is typical of candidates whose minority values scatter over many distinct values, keeping every runner-up count small, and 88% of these candidates have . Their radius is the upper end of the feasible range, not a value set by the flip costs, so the rest of this subsection uses the 11,039 candidates with a finite radius.
An empirical scale and its departures. Figure 1 plots the normalized margin against the flag rate. Most candidates lie close to the line , and among the candidates with a positive margin the correlation between the two quantities on logarithmic scales is between 0.84 and 0.97 in every relation. Only the lower side of this pattern follows from the theory, since a margin below requires a class with (Section III-F). The theory gives no comparable upper bound, so the clustering near the line is an empirical finding, which makes the flag rate a reference scale for the margin. Given the flag rate, adds nothing consistent, since the partial correlation between and the logarithm of the margin is on Claims and on Tax but and on Adult, Hospital and DBLP10k.
The scale does not replace the certificate, since a sizeable fraction of candidates departs from it by more than a factor of two (Table VI). The most severe departures are the 1,203 candidates with zero margin, whose certificate fails at the first error beyond , and 1,063 of them lie on DBLP10k, 22.6% of its finite radii. Upward departures are rarer but reach a factor of ten for 4.6% of the candidates on Tax and 2.4% on Claims.
Where the departures come from. Two pairs of candidates isolate the mechanism. On Hospital, the annotated rule Phone Number → Hospital Owner and the candidate Hospital Name,
TABLE VI THE RATIO OVER ALL CANDIDATES WITH A FINITE RADIUS, WITH ITS MEDIAN AND THE SHARES BELOW 1/2 AND ABOVE 2. ZERO COUNTS THE CANDIDATES WITH ZERO MARGIN.
| Relation | Finite | Median | Zero | ||
|---|---|---|---|---|---|
| Adult | 2,468 | 0.94 | 19.4% | 15.2% | 13 |
| Claims | 830 | 0.91 | 21.8% | 9.4% | 11 |
| DBLP10k | 4,706 | 0.76 | 26.9% | 0.5% | 1,063 |
| Hospital | 788 | 0.85 | 18.0% | 8.5% | 11 |
| Tax | 2,247 | 0.90 | 32.8% | 13.8% | 105 |
County Name → Emergency Service both have and , and their scopes differ by 50 of about 115,000 tuples, so their and flag rate are nearly identical. Each has a single flip with , differing only in cost, for the first rule and for the second, so the margins are 2 and 49, a factor of 24.5 apart, as in Example 1. On DBLP10k the candidate samename, p1type → sameentity has and two cheap flips, and , which together remove 2,478 true positives, more than , for 7 additional errors, so its margin is 6. The candidate p1type, p2type → samename has nearly the same and flag rate, but the cheapest set of flips that removes at least true positives costs 249 errors, and its margin is 248. Such pairs are not rare. In every relation some candidates have a partner whose and flag rate differ by less than 5% and whose margin is at least ten times larger, 550 on Adult, 358 on Tax, 21 on Hospital, 18 on Claims and 10 on DBLP10k. The flag rate thus sets a reference scale for the margin, but only the exact computation of shows whether a given rule departs from it.
The certifiable region. Under the certificate also depends on , and Figure 2 shows the certified pairs for Disposition → Status, the annotated rule with the largest margin. Disposition takes three values in scope, and the three classes have , and , so steps from 0 to 3, 5 and 40 at these excess budgets. By Corollary 5, the budget is certified exactly when . For this threshold exceeds 5 and only the flip of the third class breaks the certificate, so the region keeps a width of 35,404 budgets while and both move down by one per unit of . At the threshold drops to 4.5 and the flip of the second class suffices, so falls from 35,443 to 28,464. At the flip of the first class suffices, and falls to 23,186. From on the threshold is negative, so not even is certified. The four annotated Hospital rules show only the first pattern, a region that keeps its width and shifts down with until it vanishes.
C. How the Organization of Errors Shapes Certification
Table VII summarizes the injected runs. The organization of the errors decides the outcome even at a fixed number of errors. In all 2,250 pairs on the fifteen rules outside the near-key group, the coherent run with is a detection failure, whereas its paired random run with exactly as many errors is certified. On the two near-key rules the comparison goes the other way, with the coherent run at certified and its paired random run an identification failure in all 300 pairs.

Fig. 1. Normalized margin against the flag rate for the candidates with a finite radius, colored by . The dashed line marks . Candidates with zero margin cannot be drawn on logarithmic axes and are omitted (Table VI).

Fig. 2. Certifiable region of Disposition Status on Claims. Budgets below are infeasible, budgets from to are certified, and larger budgets up to are feasible but not certified.
TABLE VII
OUTCOMES OF THE INJECTED RUNS OVER FIVE TARGET RATES AND 30 SEEDS PER RULE. RAND. IS RANDOM CORRUPTION AT THE TARGET RATE, WITH THE SAME OUTCOMES AS THE PAIRED RANDOM RUNS, AND COH. IS COHERENT CORRUPTION. C IS CERTIFIED, I AN IDENTIFICATION FAILURE AND D A DETECTION FAILURE.
| Group | Rules | Rand. | Coh. 0.3 | Coh. 0.7 |
|---|---|---|---|---|
| Representative | 11 | 1,650 C | 1,650 C | 1,650 D |
| RHS control | 4 | 600 C | 600 C | 600 D |
| Near key | 2 | 300 I | 300 C | 300 D |
Decomposing the gap. A certificate is conservative because the error count is unknown and because it takes the worst case at that count. The gap TP – TP_{min}(k_{true}) isolates the second cause. In class let be the number of erroneous cells minus , which is non-negative by Lemma 1 since the clean reference gives each class a single clean value. Let , with summing over singleton classes and over the others. Since TP_{min}(k_{true}) = f - Q(H) by Theorem 1 and TP = f - FP, the gap decomposes as TP – TP_{min}(k_{true}) = [Q(H) - Q(H_{multi})] + [Q(H_{multi}) - FP]. Both terms are non-negative, the first since Q is non-decreasing and . For the second, let J collect the classes of I whose clean value is not the mode and occurs times. A false positive is a flagged cell that holds the clean value of its class, so the false positives of are exactly these cells, and . Class then has , and since the classes of J carry flags and are not singletons, . Flipping the classes of J thus fits within and removes at least FP true positives, so FP . The first term is a hidden-budget effect. Errors in singleton classes count toward
TABLE VIII
GAP DECOMPOSITION FOR RANDOM CORRUPTION AT THE 10% RATE, AS MEANS OVER 30 SEEDS. GAP IS TP – TP_{min}(k_{true}), HIDDEN IS AND ORG. IS . ONLY RULES WITH A GAP OF AT LEAST ONE ARE LISTED.
| Rule | Gap | Hidden | Org. | |||
|---|---|---|---|---|---|---|
| p1booktitle → p1booktitlefull | 17.4 | 1.1 | 18.2 | 17.1 | 1.1 | 490.8 |
| p2booktitle → p2booktitlefull | 17.5 | 1.3 | 17.7 | 16.4 | 1.3 | 584.0 |
| Airport Code → Airport Name | 3.4 | 0.3 | 3.5 | 3.1 | 0.3 | 80,290.7 |
| StateAvg → State | 8.1 | 0.4 | 6.0 | 5.6 | 0.4 | 103,436.5 |
| Zip → City | 4.8 | 2.0 | 6.8 | 4.8 | 2.0 | 900,006.8 |
| Zip → State | 4.7 | 2.8 | 10.3 | 5.9 | 4.4 | 900,007.5 |
| key1 → p1title | 818.8 | 5.4 | 55.0 | 49.6 | 5.4 | 36.6 |
| key2 → p2title | 777.4 | 6.3 | 67.5 | 61.2 | 6.3 | 38.1 |
and raise no flag, so the worst case can spend this budget against the flags while the truth does not. The second term is an organization effect, measuring how far the errors in larger classes are from the arrangement that hurts the detector most.
Random corruption. Random corruption is certified on all fifteen rules outside the near-key group, at every rate and seed, since the margin stays far above the excess (Figure 3). Averaged over the seeds, the margins exceed by a factor of at least three, and by up to 400 at the lowest rate. A random error usually joins its class as an isolated minority value, which gives the class a flip with and , costing many errors to remove a single true positive. On Claims, whose classes are large, the margin stays close to at every rate. The gap is also small. On rules without singleton classes is zero or nearly so. Every error is then forced by the observation, and the worst case at coincides with the truth. Among the rules with a gap of at least one at the 10% rate (Table VIII), the gap stays below 19 true positives outside the near-key group, mostly from the hidden-budget term. The bound is thus nearly exact at the true error count, and what a user lacks is knowledge of that count.
Coherent corruption with . Every run is certified and the gap is zero, because a hotspot of cells leaves the clean value in the majority, so every error is forced and . On twelve of the seventeen rules the margins are nevertheless one to two orders of magnitude smaller than those of the paired random runs. The factor is smaller on the two booktitle rules and on Provider Number Emergency Service, and on the two near-key rules the coherent margins are larger. A hotspot class has and ,

Fig. 3. Mean margin (solid) and mean true excess (dashed) over 30 seeds, against the realized error rate, for five rules. A run is certified exactly when its excess does not exceed its margin, which is decided per run, not from the means. Zero means are omitted on the logarithmic axes.
so its efficiency is at most 3/4, and since classes without a hotspot have no flip, Corollary 4 guarantees a margin of at least . Averaged over the seeds, the ratio of margin to ranges from 1.33 on AreaCode State, close to the 4/3 that this bound implies, to 2.42 on Measure Code Measure Name. On the twelve rules, concentration thus moves the margin from far above the scale to close to it at an unchanged number of errors.
Coherent corruption with . Every run is a detection failure. In each hotspot class that the injected value takes over, the detector flags the remaining clean cells, and tied hotspot classes raise no flag, so no flag marks an error and TP = 0. The truth thus attains the worst case at , and the gap is zero. The observation looks the same as one in which the injected values are clean and every flag is correct, but since the truth is compatible at and has negative value, no certificate can reach . Averaged over the seeds, the excess exceeds the margin by a factor between 1.1 and 2.9. On the zero-margin candidates of Section V-B, a single error beyond admits a world in which the flags have no positive value.
Near keys. On the two near-key rules every random run is an identification failure. The flags have positive value, but about four fifths of the errors fall into singleton classes, where they consume budget and raise no flag, so exceeds the margin. At the 0.5% rate the mean is about 40 of 50 errors while the margin is about 2, and at 10% the hidden-budget term accounts for about 90% of the gap (Table VIII). Coherent corruption leaves singleton classes untouched, since their hotspots are empty, so the same rules are certified under , with larger margins than under random corruption.
D. Computational Cost
Two stages. A certificate is computed in two stages. The counting stage scans the scope once and returns , and the flips, so its cost is linear in . The DP stage is skipped when , which holds exactly when the rule is certified at every feasible budget. Otherwise the DP must find the smallest excess budget at which certification fails, , and it refines the dynamic program of Section III-E in two ways that leave the radius unchanged. It merges flips with equal and splits each group into parts of 1, 2, 4, ..., flips and a remainder, which leaves parts in total. It starts at capacity , where is the cost of flipping every
TABLE IX
RUNNING TIME. COUNT AND DP ARE THE TWO CERTIFICATION STAGES OVER THE INJECTED RUNS, REGION IS THE LARGEST TIME FOR THE REGION OF AN ANNOTATED RULE OVER ALL (— IF NONE), AND BATCH PROCESSES ALL CANDIDATES FROM ENUMERATION TO CERTIFICATION.
| Relation | Runs | Count (ms) | DP (ms) | Region (ms) | Batch (s) | ||
|---|---|---|---|---|---|---|---|
| Median | Max | Median | Max | ||||
| Adult | 742 | 0.10 | 0.92 | 0.001 | 0.06 | — | 4.7 |
| Claims | 450 | 0.19 | 2.23 | 0.007 | 0.45 | 17 | 7.2 |
| DBLP10k | 2,070 | 0.06 | 0.73 | 0.002 | 0.60 | 1 | 6.2 |
| Hospital | 4,943 | 0.22 | 3.17 | 0.040 | 19.01 | 23 | 10.3 |
| Tax | 1,541 | 3.44 | 7.94 | 0.864 | 1,116 | — | 278.4 |
class of , and doubles the capacity until it covers , so the final capacity satisfies . The capacities of successive rounds grow geometrically, so the number of state updates is at most about , against about for the table of Proposition 1.
Cost on the benchmark relations. Over the 9,746 injected runs (Table IX), the median certification spends 0.22 ms on counting and 0.012 ms on the DP, and each stage separately finishes within one millisecond in about 84% of the runs. Counting takes at most 7.9 ms, on Tax, the largest relation, whereas the DP ranges from under a microsecond to 1.1 seconds. All 30 runs above one second come from random corruption of Zip State at the 5% rate, where about 25,000 flips give and a margin above 80% of D, so the DP runs to full capacity. At 10% the same rule is certified at every feasible budget and the DP does not run. Computing the region of an annotated rule over all takes at most 23 ms, on ZIP Code County Name. Processing all candidates takes 4.7 to 10.3 seconds on four relations and 278 seconds on Tax, where deduplication, which is not part of certification, takes 124 seconds and the DP 101 seconds.
Scaling. To vary size while keeping the structure of the flips fixed, we replicate three injected instances of Tax at the 5% rate with the first seed, random and coherent ( ) corruption of Zip City and coherent corruption of AreaCode State. Every class is copied q times under new class identifiers, so , G, f, D and the number of flips grow by the factor q while each flip keeps its . Over q from 1 to 10, with medians of five repetitions (Figure 4), grouping and counting grow by a factor of 10 to 14 and take at most 126 ms at ten million rows, and the DP time follows the number of

Fig. 4. Running time on three injected Tax instances (5% errors) whose classes are replicated times, so . (a) Median time of each stage, where slope 1 means linear growth. (b) DP time against state updates, with the gray line at 0.5 ns per update.
state updates, at 0.45 to 0.59 ns per update on Zip City and up to 0.84 ns on AreaCode State. Merging keeps small. Under random corruption of Zip City the flips grow from 25,108 to 251,080 but fall into the same 248 distinct pairs, so the parts grow only from 1,024 to 1,803. This growth is logarithmic only because replication adds no new pairs. Here the time per update rises from 0.47 to 0.59 ns as the DP array grows from about 5 MB to 55 MB, whereas the coherent instance, with an array below 5 MB, keeps 0.45 to 0.47 ns.
What drives the DP. At ten million rows the three instances take 16.3, 0.82 and 0.12 seconds in total. The difference lies in and . Random corruption of Zip City gives , close to , so the DP runs to full capacity over 1,803 parts. Coherent corruption of the same rule fails at , which caps the capacity at 524,288 and cuts the state updates by a factor of 18. AreaCode State fails at a similar budget with only 112 parts, which cuts the updates by a further factor of 14. Since the final capacity is less than once exceeds 32, a small bounds the DP capacity however large the relation is, and the remaining cost depends on the number of parts. The expensive cases are rules with a large margin close to , such as random corruption of Zip City and Zip State on Tax at the 5% rate.
VI. RELATED WORK
Dependency discovery and strength. Kivinen and Mannila [5] measure how far a functional dependency is from holding by , the minimum fraction of tuples whose removal makes it hold. Giannella and Robertson [6] compare such approximation measures, and Parciak et al. [7] extend the comparison to a broad set of measures and provide the annotated benchmark [4] used in our experiments. Caruccio et al. [13] survey relaxed dependencies. On the discovery side, TANE [14] finds exact and approximate dependencies level by level over attribute partitions and accepts a dependency whose falls below a threshold. Bleifuß et al. [15] discover dependencies through hitting set enumeration, and Zhang et al. [16] treat discovery in noisy data as a statistical problem. These works measure how well a rule fits the observation or search for rules that fit it well. Wan and Han [8] show on injected errors, whose locations are known, that such strength does not reliably predict the value of the rule as an error
detector. The present paper needs no known errors and certifies that value from the observation itself, and Section V-B finds that, given the flag rate, the association between and the certified margin varies in sign and size across relations.
Constraint-based error detection and diagnosis. Conditional functional dependencies [1] extend functional dependencies with patterns of constants and detect their violations with SQL queries, and Kaminsky et al. [17] maintain the violations of denial constraints incrementally as the data change. Holistic data cleaning [2] gathers the violations of many denial constraints into one conflict hypergraph and repairs them jointly with few changes, and NADEEF [18] provides a common interface through which such rules are specified, checked and repaired. Data X-Ray [19] starts from data elements known to be erroneous and explains them by features they share. Abedjan et al. [20] evaluate error detection tools on data with ground truth, and Raha [21] and HoloDetect [22] learn error detectors from limited supervision. Ilyas and Chu [3] survey this area. These works develop methods for handling data errors or evaluate their empirical performance. Before any repair, and without labeled errors, we ask whether the flags of the mode-based detector have positive value in every clean state compatible with the observation within an error budget.
Repairs and consistent query answering. Arenas et al. [23] define a repair as an instance that satisfies the constraints and differs minimally from the database under set inclusion, and call an answer consistent when it holds in every repair. Bertossi [24] surveys the semantics and complexity of this approach. Pfandler and Sallinger [25] bound the distance between a repair and the database by a fixed constant , since inconsistencies are often limited to a small portion of a large database. For functional dependencies, where a repair deletes tuples, the combined complexity of this problem then drops from -complete to NP-complete. Our error budget rests on the same premise, and our certificate is likewise a statement about every world in a bounded family. The family and the statement differ. Compatible worlds change only cells of , keeping tuples and classes fixed, and need not be minimal. Under the clean state may itself violate the rule in up to cells. The statement concerns the value of a detector rather than a query answer, and instead of deciding it at one bound we compute the largest budget at which it holds.
Performance evaluation without ground truth. Platanios et al. [26] estimate the accuracy of several classifiers from unlabeled data by combining their agreement with logical constraints among the predicted labels. Polo et al. [27] evaluate models trained under weak supervision, where true labels are never observed. They treat the performance metrics as partially identified and bound accuracy, precision, recall and F1 by what the weak labels reveal about the joint distribution. The value of the flags is likewise partially identified. The observation does not determine , so a guarantee must hold over all states compatible with it. Here that set is fixed by the classes of the dependency, the assumption or and the budget, and its worst case is computed exactly by a knapsack over class flips. The result is a sharp worst-case bound on the value together with the exact certification radius, obtained without a probabilistic model of the unobserved errors.
VII. CONCLUSION
This paper replaces the question of how well a functional dependency fits the observation with whether its flags provably have positive value within an error budget. For the mode-based detector the worst case over all compatible clean states reduces to a knapsack over class flips, so the certification radius is exact and computable in polynomial time. The margin depends on how many errors each flip costs and how many true positives it removes rather than on the degree of violation, and legitimate exceptions lower the certification threshold one for one until no budget certifies a positive value. Rules with nearly equal and flag rate can have margins that differ tenfold, and at equal error counts the organization of the errors reverses the certification outcome on every tested rule. Reporting the radius and the margin next to a discovered rule therefore adds information that does not carry. Natural extensions are errors on the left-hand side, which make the partition itself latent, and joint constraints from several dependencies, which restrict the compatible clean states and can strengthen the guarantee.
REFERENCES
[1] P. Bohannon, W. Fan, F. Geerts, X. Jia, and A. Kementsietisidis, "Conditional functional dependencies for data cleaning," in Proceedings of the IEEE International Conference on Data Engineering, 2007, pp. 746–755.
[2] X. Chu, I. F. Ilyas, and P. Papotti, “Holistic data cleaning: Putting violations into context,” in Proceedings of the IEEE International Conference on Data Engineering, 2013, pp. 458–469.
[3] I. F. Ilyas and X. Chu, Data Cleaning, ser. ACM Books. ACM, 2019, vol. 28.
[4] M. Parciak, S. Weytjens, F. Neven, N. Hens, L. M. Peeters, and S. Vansummeren, “Annotated benchmark of real-world data for approximate functional dependency discovery,” Jun. 2023. [Online]. Available: https://doi.org/10.5281/zenodo.8098909
[5] J. Kivinen and H. Mannila, “Approximate inference of functional dependencies from relations,” Theor. Comput. Sci., vol. 149, no. 1, pp. 129–149, 1995.
[6] C. Giannella and E. L. Robertson, “On approximation measures for functional dependencies,” Inf. Syst., vol. 29, no. 6, pp. 483–507, 2004.
[7] M. Parciak, S. Weytjens, N. Hens, F. Neven, L. M. Peeters, and S. Vansummeren, “Measuring approximate functional dependencies: a comparative study,” VLDB J., vol. 34, no. 4, p. 56, 2025.
[8] X. Wan and X. Han, “Strength is not value: Rethinking approximate functional dependency measures for error detection,” 2026. [Online]. Available: https://arxiv.org/abs/2610.08189
[9] C. F. Manski, Partial Identification of Probability Distributions, 1st ed., ser. Springer Series in Statistics. Springer New York, 2003.
[10] F. Molinari, “Microeconometrics with partial identification,” in Handbook of Econometrics. Elsevier, 2020, vol. 7A, pp. 355–486.
[11] T. H. Cormen, C. E. Leiserson, R. L. Rivest, and C. Stein, Introduction to Algorithms, 4th ed. Cambridge, MA, USA: The MIT Press, 2022.
[12] H. Kellerer, U. Pferschy, and D. Pisinger, Knapsack Problems. Berlin, Heidelberg: Springer, 2004.
[13] L. Caruccio, V. Deufemia, and G. Polese, “Relaxed functional dependencies - A survey of approaches,” IEEE Trans. Knowl. Data Eng., vol. 28, no. 1, pp. 147–165, 2016.
[14] Y. Huhtala, J. Kärkkäinen, P. Porkka, and H. Toivonen, “TANE: an efficient algorithm for discovering functional and approximate dependencies,” Comput. J., vol. 42, no. 2, pp. 100–111, 1999.
[15] T. Bleifuß, T. Papenbrock, T. Bläsius, M. Schirnbeck, and F. Naumann, “Discovering functional dependencies through hitting set enumeration,” Proc. ACM Manag. Data, vol. 2, no. 1, pp. 43:1–43:24, 2024.
[16] Y. Zhang, Z. Guo, and T. Rekatsinas, “A statistical perspective on discovering functional dependencies in noisy data,” in Proceedings of the ACM SIGMOD International Conference on Management of Data, 2020, pp. 861–876.
[17] Y. Kaminsky, E. H. M. Pena, and F. Naumann, “Incremental detection of denial constraint violations,” Proc. VLDB Endow., vol. 18, no. 4, pp. 1000–1012, 2024.
[18] M. Dallachiesa, A. Ebaid, A. Eldawy, A. K. Elmagarmid, I. F. Ilyas, M. Ouzzani, and N. Tang, “NADEEF: a commodity data cleaning system,” in Proceedings of the ACM SIGMOD International Conference on Management of Data, 2013, pp. 541–552.
[19] X. Wang, X. L. Dong, and A. Meliou, “Data X-Ray: A diagnostic tool for data errors,” in Proceedings of the ACM SIGMOD International Conference on Management of Data, 2015, pp. 1231–1245.
[20] Z. Abedjan, X. Chu, D. Deng, R. C. Fernandez, I. F. Ilyas, M. Ouzzani, P. Papotti, M. Stonebraker, and N. Tang, “Detecting data errors: Where are we and what needs to be done?” Proc. VLDB Endow., vol. 9, no. 12, pp. 993–1004, 2016.
[21] M. Mahdavi, Z. Abedjan, R. C. Fernandez, S. Madden, M. Ouzzani, M. Stonebraker, and N. Tang, “Raha: A configuration-free error detection system,” in Proceedings of the ACM SIGMOD International Conference on Management of Data, 2019, pp. 865–882.
[22] A. Heidari, J. McGrath, I. F. Ilyas, and T. Rekatsinas, “HoloDetect: Few-shot learning for error detection,” in Proceedings of the ACM SIGMOD International Conference on Management of Data, 2019, pp. 829–846.
[23] M. Arenas, L. E. Bertossi, and J. Chomicki, “Consistent query answers in inconsistent databases,” in Proceedings of the ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems, 1999, pp. 68–79.
[24] L. E. Bertossi, Database Repairing and Consistent Query Answering, ser. Synthesis Lectures on Data Management. Morgan & Claypool Publishers, 2011.
[25] A. Pfandler and E. Sallinger, “Distance-bounded consistent query answering,” in Proceedings of the International Joint Conference on Artificial Intelligence, 2015, pp. 2262–2269.
[26] E. A. Platanios, H. Poon, T. M. Mitchell, and E. Horvitz, “Estimating accuracy from unlabeled data: A probabilistic logic approach,” in Advances in Neural Information Processing Systems, 2017, pp. 4361–4370.
[27] F. M. Polo, S. Maity, M. Yurochkin, M. Banerjee, and Y. Sun, “Weak supervision performance evaluation via partial identification,” in Advances in Neural Information Processing Systems, 2024, pp. 135 704–135 740.