TL;DR
This paper introduces a method to approximate similarity metrics for individual fairness in classification by leveraging human judgments, enabling practical application of fairness guarantees without predefined metrics.
Contribution
It proposes a framework for learning task-specific similarity metrics from limited human queries, including definitions, constructions, and learning procedures for generalization.
Findings
Effective metric approximation from limited human queries
Theoretical guarantees for generalization of learned metrics
Practical approach to implement individual fairness in classification
Abstract
There has been much discussion recently about how fairness should be measured or enforced in classification. Individual Fairness [Dwork, Hardt, Pitassi, Reingold, Zemel, 2012], which requires that similar individuals be treated similarly, is a highly appealing definition as it gives strong guarantees on treatment of individuals. Unfortunately, the need for a task-specific similarity metric has prevented its use in practice. In this work, we propose a solution to the problem of approximating a metric for Individual Fairness based on human judgments. Our model assumes that we have access to a human fairness arbiter, who can answer a limited set of queries concerning similarity of individuals for a particular task, is free of explicit biases and possesses sufficient domain knowledge to evaluate similarity. Our contributions include definitions for metric approximation relevant for…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
Metric Learning for Individual Fairness· youtube
Metric Learning for Individual Fairness
Christina Ilvento
John A Paulson School of Engineering and Applied Science
Harvard University
Cambridge, MA 02138
[email protected] This work was supported in part by Microsoft Research and the Smith Family Fellowship. The author is grateful for the comments of Cynthia Dwork in the preparation of this manuscript.
Abstract
There has been much discussion concerning how “fairness” should be measured or enforced in classification. Individual Fairness [Dwork, Hardt, Pitassi, Reingold, Zemel, 2012], which requires that similar individuals be treated similarly, is a highly appealing definition as it gives strong treatment guarantees for individuals. Unfortunately, the need for a task-specific similarity metric has prevented its use in practice. In this work, we propose a solution to the problem of approximating a metric for Individual Fairness based on human judgments. Our model assumes access to a human fairness arbiter who is free of explicit biases and possesses sufficient domain knowledge to evaluate similarity. Our contributions include definitions for metric approximation relevant for Individual Fairness, constructions for approximations from a limited number of realistic queries to the arbiter on a sample of individuals, and learning procedures to construct hypotheses for metric approximations which generalize to unseen samples under certain assumptions of learnability of distance threshold functions.
Contents
1 Introduction
Determining what it means for an algorithm or classifier to be “fair” and how to enforce any such determination has become a subject of considerable interest as automated decision-making increasingly takes the place of direct human judgment. One attractive definition proposed is Individual Fairness [4], which states that similar individuals should be treated similarly, where similarity is encoded in a task-specific metric.
Definition 1** (Individual Fairness [4]).**
Given a universe , a metric for a classification task with outcome set , and a distance measure , a randomized classifier is Individually Fair if and only if for all , .
Individual Fairness is appealing because each person is assured that her treatment is similar to that of any person similar to her.111By way of contrast, notions of fairness based on group level statistics can only provide individuals with the guarantee that if they are treated poorly, either someone in a different group is also treated poorly or someone in their group is treated well. Furthermore, many popular notions of statistical group fairness conflict with each other and cannot be satisfied simultaneously [2, 13]. However, the value of this assurance critically depends on the extent to which the similarity metric faithfully represents society’s best understanding of what constitutes similarity for a given task. Thus, the most significant barrier to implementing Individual Fairness in practice is the need to construct a similarity metric for each classification setting.
In this work we set out a path for constructing metrics for Individual Fairness based on judgments made by a qualified, fair-minded “human fairness arbiter.” Our contributions include: (1) a framework for useful approximations to a metric for Individual Fairness; (2) a limited, realistic query model for determining the arbiter’s judgments of who is similar to whom; (3) a method for constructing approximations to the true metric with limited queries to the arbiter by using distances from a (set of) representative individual(s); (4) a procedure for generalizing these approximations to unseen samples based on limited learnability assumptions. Throughout this work we make no assumption on the form of the metric or the features included in the learning procedure with the clearly stated exception of Assumption 1 concerning learnability of threshold functions. As our results are built upon a series of sequential steps including new terminology and machinery, we first present an extended introduction to highlight the key concepts, logic and results. In Sections 3-7 these results are discussed in greater detail and formal theorem statements and proofs are presented. Related work is discussed in Section 2 Extended discussion of human fairness arbiters and the model is included in Section 8.
1.1 Model
In this work, we take the viewpoint that fairness is not well described by either accuracy or group statistics alone. Instead, we view fairness as a highly contextual property one can identify but not necessarily describe.222 [9] takes a similar approach in which a judge “knows it when she sees it,” but is not required to articulate why a decision is unfair. Our goal is to produce a metric which results in similarity judgments with which fair-minded people would agree, rather than satisfying any particular statistical properties.333We discuss different types of agreement, and the extent to which we fully achieve this goal, in Section 8.6. The core of our model is the human fairness arbiter, a fair-minded individual who is free from explicit biases or arbitrary preferences, is motivated to engage ethically and honestly in the query protocol, and has sufficient knowledge and contextual understanding of who is similar to whom for a particular task. The arbiter is not expected to provide us a description or specification of the distance metric.
A critical part of learning metrics based on human judgments is determining the type of queries to ask in order to solicit consistent, fast responses. To that end, we assume that we cannot ask the arbiter to consider more than a few individuals at a time, e.g., it is not realistic to ask the arbiter to find the closest pair of elements in the universe.
We ask the arbiter to answer two types of queries in this work: relative distance queries, (e.g., is closer to or ), and real-valued distance queries.
Definition 2** (Real-valued distance query).**
.
Definition 3** (Triplet query).**
.
Producing a consistent set of real-valued distances is not a natural judgment most people are accustomed to making, so we assume that real-valued queries are very “expensive” for the arbiter to answer. Furthermore, maintaining internal consistency may increase the query cost as the number of queries increases. Relative distance queries have been used successfully for human evaluation in image processing and computer vision, e.g. [19, 21], and we anticipate they will be significantly easier for the arbiter to evaluate. Demonstrating how to replace difficult queries with easy queries is a significant part of our contribution.
We make several simplifying assumptions about the nature of the human fairness arbiter in the main results of this work. (1) There is either one arbiter or all arbiters agree on all decisions. (2) The arbiter does not change her opinion over the query period. (3) The arbiter’s responses are consistent, i.e., if she answers that is closer to than it is to , her responses to real-valued queries will also reflect this relative judgment.444Please see Section 8 for additional details. For the majority of this work, we focus on the query model specified above, which requires the arbiter to answer with arbitrary precision. We also present a relaxed model which allows the arbiter to answer real-valued queries with bounded noise and does not require arbitrarily small distinctions in relative distances queries. The main results presented are replicated in the relaxed model. As the results are similar, we focus on the more simple exact model in the main presentation of our results.555Extended discussion of the exact query model and a more general definition of relative queries is included in Section 3. The relaxed query model is discussed in detail in Section 7.
1.2 Contributions
Approximating the metric by contracting. Our first key observation is that Individual Fairness only requires that we do not overestimate distances. This motivates our definition of a submetric, which is a contraction of the original metric and can be substituted for the original metric and still maintain Individual Fairness.
Constructing submetrics based on distances from representative elements. Taking the difference in distance to a single reference or “representative” point is one of the simplest ways to produce an underestimate of the distance between two elements. Submetrics based on distances from representative elements form the basis of all of our constructions, and although this may seem simplistic, it has a significant advantage when it comes to deciding which queries to ask the arbiter: ordering. An ordering of elements by increasing distance from the representative can be constructed with relative distance (easy) queries used as a comparator. Once this ordering is established, real-valued distances at a given granularity can be layered on top in a sublinear number of real-valued (hard) queries.
Choosing representatives. A single representative may not be sufficient to capture all relevant distance information, but combining the information from multiple representative elements can produce a more complete picture of the distances between all pairs of individuals. But which representatives should we choose to maximize distance preservation? We discuss a general, randomized approach and show that given certain properties of the metric, i.e. how tightly packed individuals are, a random set of representatives of reasonable size will have good distance preservation properties.
Generalizing submetrics to unseen samples. Once we have established how to construct a submetric for a fixed sample of elements, our next step is to generalize to unseen samples. Our results are based on an assumption that threshold functions, i.e. binary indicators of whether an element is closer to a representative than a given threshold, are efficiently learnable. We show how to combine threshold functions to simulate rounding distances to a representative and then exhibit appropriate parameters to construct an efficient combined learning procedure.
Relaxing arbiter requirements. Finally, we present a relaxation of the arbiter query model in which the arbiter (1) may respond to real-valued queries with arbitrary bounded noise and (2) is not required to make arbitrarily precise distinctions between distances and may instead declare relative comparisons to be “too close to call.” This model more closely matches the reality of human arbiters, and our results extend with improvements in query complexity at the cost of increased error magnitude.
1.3 Preliminary terminology and definitions
We refer to the universe of individuals as , a distribution over the universe of individuals as , and the size of the universe as . We write for the uniform distribution over . We assume for simplicity. Individual Fairness does not require that distances between individuals be maintained exactly, only that they not be exceeded. This observation motivates our definition of a submetric which is a contraction of the true metric, i.e., it does not overestimate any distance beyond a small additive error term.666This relaxation is very similar to the notion of metric fairness of [12] and approximate metric fairness of [15].
Definition 4** (submetric).**
Given a metric , is an -submetric of if for all , .
Any classifier which satisfies the distance constraints of the submetric will also satisfy those of , modulo small additive error.777As originally noted in [4], the distance measure need not be a true metric, i.e. it does not strictly need to obey triangle inequality or distinguish unequal elements. Given an -submetric it is possible to eliminate the additive error by taking . On the other hand, we want to avoid contracting distances to the point of triviality. We say that a submetric is nontrivial if a fraction of distances between pairs preserve at least a fraction of their original distance.888Nontriviality is defined over a product of identical distributions of elements in the universe. There is no general obstacle to extending our results to more complicated scenarios, but definitions of density (in Section 6) would need to be adjusted.
Definition 5** (nontrivial).**
Given a metric , a submetric of is -nontrivial for the distribution if \Pr_{u,v\sim\mathcal{U}\times\mathcal{U}}\Big{[}\frac{\mathcal{D}^{\prime}(u,v)}{\mathcal{D}(u,v)}\geq c\Big{]}\geq\beta.
1.4 Constructing submetrics from arbiter judgments
A core component of this work is constructing submetrics based on distance information (either exact or underestimated) from a single representative element. We define the representative submetric in the following Lemma. (The proof of follows from triangle inequality.)
Lemma 1**.**
Given a representative , is a 0-submetric of .
Given a sample of individuals, can be constructed from queries to . Although may seem good compared with the queries required to reconstruct the whole metric, it can be improved to by supplementing with relative distance queries. Our general strategy will be to show that (1) an ordering of elements by distance from a representative can be constructed using as a comparator, and (2) given this ordering, the real-valued distances between each element and the representative can be closely approximated by labeling the ordering with distances at granularity , which requires a sublinear number of real-valued queries. Algorithm 1 outlines this process.999See Section 4 Algorithms 3 and 4 for the detailed specifications and analysis.
Theorem 2 states that Algorithm 1 produces an submetric, which follows from observing that rounding and down by at most results in an increase (or decrease) of at most in . The bound of relative distance queries follows from a straightforward analysis of sorting. The bound of real-valued queries is included in Section 4. Briefly, the analysis considers the maximum number of continuous ranges that, when split, result in one range with difference greater than and one with less. In the worst case, this results in logarithmic dependency on or .
Theorem 2**.**
Algorithm 1 produces an submetric of which preserves for each (with additive error ) from queries to and queries to .
The submetric produced by Algorithm 1 preserves distances between and other elements well, as is rounded down by at most , but we cannot make guarantees on distance preservation between arbitrary pairs without further information. For example, with only the information that and are equally distant from , it is impossible to distinguish whether the distance between and is zero or equal to twice their distance from . (See Figure 1). Submetrics constructed based on different representatives preserve different information about the underlying metric, so we can construct more expressive submetrics by aggregating information from multiple representatives. Taking , it’s straightforward to show that if all are submetrics of , then the of the set is also a submetric of , and that the merge preserves the “best” distance known for each pair.101010Formal analysis of and the proof of Lemma 1 appear in Section 3. The proof of Theorem 2 as well as a precise description of Algorithm 1 appear in Section 4.
1.5 Choosing good representative elements
Although the of submetrics based on multiple representatives is an improvement over a single representative, we still cannot make any guarantees about distances between pairs which do not include a representative. There are two approaches one might take to give non-triviality guarantees for arbitrary pairs: (1) develop specialized strategies for combining representative submetrics which depend on the structure of the metric, e.g., Euclidean distance, or (2) characterize generic randomized representative selection strategies. In this extended introduction, we focus on the randomized strategies for full generality.
Distance preservation via nets. The crux of the argument for nontriviality with random representatives is (1) a random set of representatives is likely to be “close to” a significant portion of the distribution , and (2) we can bound the magnitude of underestimates based on the distance from a representative. Below, we formally define a net to capture the notion of being “close to” or “covering” a set of elements.
Definition 6**.**
A set is said to form a net for a subset under if for all balls of radius (determined by ) containing at least one element , the ball also contains .
Intuitively, the distance between and will be nearly identical to the distance between a close neighbor of and , so we can conclude that if a set of representatives forms a net for a subset of , then pairs with at least one element in the net will have their original distance preserved up to a contraction. (Proofs of Lemmas 3 and 4 follow from triangle inequality.)
Lemma 3**.**
For all , , where .
Lemma 4**.**
If a set of representatives forms a net for , then for every pair there exists such that , where .
Of course, forming a net for an arbitrary isn’t enough to give a good nontriviality guarantee. To understand how representatives which form a net will preserve distances, we define density and diffusion below to characterize the relevant properties of the metric and distribution. The notion of dense is intended to capture the weight () of elements that have a significant weight () on their close neighbors (distance ) under as a way to characterize how likely it is that a randomly chosen representative will be -close to a significant fraction of elements.
Definition 7** (dense).**
Given a distribution over , a metric is dense for if there exists a subset with weight under such that for all .
diffuse, defined below, captures what fraction of distances can tolerate a contraction proportional to without becoming trivial.
Definition 8** (diffuse).**
Given a distribution , a metric is diffuse if the fraction of distances between pairs of elements in greater than is , i.e. .
A metric can be described by many combinations of density and diffusion parameters, as illustrated in Figure 2. These parameters are highly related, and we generally consider the combination of dense and diffuse. Although initially seems an arbitrary quantity, it indicates that a fraction of pairs will have distances preserved by a factor of if the maximum contraction for those pairs is no more than . Thus the values of and , which in turn dictate , , and , (assuming ) can loosely be seen as a tradeoff between how many pairs will have distance preservation guarantees and how significant the guarantees will be.
Nontriviality properties of nets. Next, we relate the magnitude of to the non-triviality properties of the of a set of representative submetrics. Lemma 5 states that a submetric based on a set of representatives which form a net for a subset of will have nontriviality properties related to the diffusion properties of and the weight of the subset in .
Lemma 5**.**
If a set of representatives form a net for weight of and is diffuse on , then the submetric is nontrivial for , where .
The proof follows from a worst-case analysis of the fraction of pairs with at least one element in the net with distance large enough that a contraction leaves at least a -fraction of the original distance. The nontriviality guarantees of Lemma 5 are conservative, and we stress that our goal is to show the possibility of positive results, rather than achieving optimal performance or guarantees.
Representative set size. We now consider how likely it is that a set of random representatives drawn from will form a net for a significant fraction of . Lemma 6 characterizes the necessary representative set size based on the density and diffusion properties of the metric. The proof follows from characterizing the probability of “hitting” a sufficient weight of the distribution with a sample of a given size, and arguing that no element in our subset of interest can be more than far from any of the “hitting” elements.
Lemma 6**.**
*Given access to unlimited queries to the arbiter, if a metric is dense and diffuse on , then a random set of representatives of size at least will produce a -nontrivial submetric for with probability at least . *
Random sampling is not the only method to construct a net, and our strategy is motivated by simplicity as much as generality. In practice it may be more efficient to use the distance information from previously selected representatives to inform the selection of the next representative. For example, omitting or down-weighting any candidates that are already very close to existing representatives, or using a greedy strategy.111111Section 6 contains proofs for Lemmas 3-6 and extended discussion of specialized strategies for representative selection, in particular strategies taking advantage of known metric structure.
1.6 Generalizing arbiter judgments
Now that we have shown how to construct a nontrivial submetric with ongoing access to the arbiter, we consider the problem of generalizing the arbiter’s responses to unseen samples. Our goal is to construct efficient learners for submetrics as in Valiant’s Probably Approximately Correct (PAC) model of learning [18]. However, we do not want to be too prescriptive about the submetric concept class, particularly about the representation of elements. Instead, we will make an assumption about the learnability of threshold functions and construct learning procedures for submetrics using threshold functions as building blocks without any additional direct access to labeled or unlabeled samples. More formally, our goal is to produce an efficient submetric learner, defined below.
Definition 9** (Efficient submetric learner).**
A learning procedure is an efficient submetric learner if for all , given access to labeled examples, with probability at least over the randomness of the sampling and the learning procedure produces a hypothesis such that in time .
To show how to construct an efficient submetric learner, we first formalize our assumption of learnability of threshold functions. Next, we show how to combine the threshold function hypotheses for each representative to simulate rounding the distance between the representative and each element down to the nearest threshold. Finally, we specify the appropriate parameters for each component to achieve the desired bounds.
Learnability of threshold functions. Assumption 1 (below) states that for every representative, there exists a set of thresholds and a learner for each threshold which, with high probability, produces an accurate hypothesis for the threshold function which generalizes to unseen samples.121212The formal statement of Assumption 1 is included in Section 5.1. (“With high probability” always refers to the probability over the randomness of sampling and the learner.) We first formally define a threshold function, which is a binary indicator of whether a particular element is within distance of a representative as if [math] otherwise.
Assumption 1**.**
(Informal) Given a metric and a representative , there exists a set of thresholds such that for all , , and , and for every there exists an efficient learner which for all , with probability at least , produces a hypothesis such that in time with access to labeled samples of for any distribution .
Constructing submetric learners from threshold learners. Given Assumption 1, our next step is to determine how to combine the threshold learners into a learner for the representative submetric. (Notice that training data for the threshold function learners can be produced by post-processing the outputs of Algorithm 1.) Our strategy is similar to the rounding strategy used in Algorithm 1, using the threshold functions to identify the largest threshold which underestimates the distance between the representative and the element under consideration. The mechanism takes in a set of hypotheses for the thresholds and outputs the threshold with which the most hypotheses agree. When all hypotheses output the correct value of their corresponding threshold function, is equivalent to rounding down to the nearest threshold.
Definition 10** ().**
Given an ordered set of thresholds, , and a set of hypotheses , one corresponding to each threshold function, .
Algorithm 2 combines all of our constructions thus far to create an efficient submetric learner: it chooses a set of representatives, learns threshold functions for each threshold for each representative, and combines the resulting hypotheses using and to produce a single submetric hypothesis.131313Algorithm 2 summarizes Algorithms 6-8, see Sections 5 and 6. Theorem 7 builds on the result of Lemma 6 and concludes that the parametrization of Algorithm 2 results in an efficient submetric learner.
Theorem 7**.**
*[Informal] Given a distance metric , and a distribution over the universe, if there exist a set of thresholds with maximum gap and efficient learners as in Assumption 1, and is dense and diffuse on , then there exists an efficient -submetric learner which produces a hypothesis such that is nontrivial for . *
The proof of Theorem 7 follows from an analysis of the error parameter propagation.141414See the proofs of Theorems 19 and 20 for detailed analysis. We briefly give some intuition for the analysis and implications of the theorem. First, the magnitude error follows from the same single direction rounding argument as for Algorithm 1. The error probability follows from noticing that at least one threshold function must be in error for one of the elements to result in an error in . The failure probability “budget” is split evenly between failure to choose a good set of representatives (Line 1) as specified in Lemma 6, and failure of the underlying learning procedures (Line 3) derived by union bound. Compared with Lemma 6, the diffusion and nontriviality parameters are adjusted to take into account the additional rounding error magnitude of introduced by and the combined hypothesis error probability . In practice, we expect that the set of thresholds which are learnable are unlikely to occur at regular intervals. Post-processing is a valuable tool to reduce the magnitude of (by re-mapping the threshold values in step 4 to reduce the maximum gap), but comes at the cost of reduced nontriviality guarantees.
The desired query complexity to the arbiter follows from basic analysis of the parameters. However, the query complexity bound can be improved significantly by observing that no independence of errors between threshold functions is assumed, allowing a single call to Algorithm 1 for each representative (rather than calls). The dependence on can also be improved to logarithmic by sorting a single merged list of (representative, element) pairs, but we defer detailed discussion to Sections 5 and 6.
1.7 Relaxing the query model
Our results extend to a relaxed model in which arbiters are not expected to make arbitrarily small distinctions between distances or individuals and may answer real-valued queries with bounded noise. The relaxed model assumes that there are two fixed constants, , the minimum precision with which the arbiter can distinguish elements or distances, and , a bound on the magnitude of the (potentially biased) noise in the arbiter’s real-valued responses. For any comparisons with difference smaller than , the arbiter declares the elements indistinguishable or the difference “too close to call.” The model allows for a “gray area” between and in which the arbiter may either respond with the true answer or “too close to call.” For any differences larger than , the arbiter responds with the true answer.
For the most part, our results translate to the relaxed model with minimal modification to the logic of the proofs to handle two-sided error in real-valued queries. Interestingly, the real-value query complexity improves to constant, as the worst-case behavior in Algorithm 1 is avoided as the arbiter “knows” not to worry about inconsequentially small distances. However, this does result in additional error magnitude, so the improved query complexity does not come for free. Furthermore, unlike the exact model we won’t necessarily be able to label a sample with perfect accuracy for every threshold function learner due to the bi-directional error. To handle this labeling problem, we modify the distribution of samples presented to each learner, eliminating samples whose labels are ambiguous, again resulting in increased error. Formal results in the relaxed model are discussed in Section 7.
2 Related Work
Metric learning is a richly studied area. Two surveys [1, 14] provide an overview of the literature unrelated to Individual Fairness. There is a significant body of literature concerned with learning distance metrics from human feedback in practice with heuristic optimization for applications like image similarity, feature identification and other applications including [8], [16], [22], [10], [21], [19].
With respect to constructing metrics for Individual Fairness or generalizing individually fair classifiers to unseen samples, we highlight four recent works. [9] considers an online linear contextual bandits setting, and imposes a fairness constraint that similar contexts should be treated similarly, where similarity is assumed to be a Mahalanobis distance. [9] takes a similar view of human feedback for learning fairness to ours, but their online setting, fairness model, metric assumptions and goals are different. The work most similar to ours of Jung et al. ([11]) has very similar motivation, but their model is restricted to equivalence (or near equivalence) queries. They consider the problem of arbiter consistency and explicitly consider the multiple arbiter model in their empirical work. The equivalence model considered in [11] can be expressed in the relaxed arbiter model of this work, (i.e., allowing a large too-close-too-call region and allowing for an appropriately sized noise parameter to place no requirement on arbiters reporting values other than “not equal”). Applying the results of this work to the multi-arbiter empirical model proposed by Jung et al., either by attempting to elicit more nuanced judgments beyond equivalence or to better understand the properties of the equivalence-only model versus the more general relaxed model, is an exciting direction for future work. [15] and [12] consider the problem of generalizing Individual Fairness with differing levels of oracle access to the metric, and one could view our results as providing a path for efficiently generating metric samples for these settings. Our notion of a submetric is similar to metric fairness of [12], and our definition of efficient submetric learner is very close to the definition of “approximately metric-fair” of [15]. We view the present work as a complement to these directions.
With respect to query types and human fairness judges, as previously noted Gillen et al, [9], consider a similar model in which a human judge ‘knows unfairness when she sees it.’ Dasgupta and Luby, [3] also consider the benefits of “partial feedback” from a human expert in clustering applications with very similar motivation to our query type choices.
The problems of ranking and scoring are closely related to the problem of combining arbiter judgments to construct orderings based on relative queries. In this work, we did not address how to handle differences in orderings between arbiters. However, there is a significant body of work concerned with aggregating or combining orderings or rankings from multiple sources. For example, Dwork, Kumar, Naor and Sivakumar consider the problem of combining rankings from multiple sources in [6]. Volkovs, Larochelle and Zemel consider rank aggregation as a supervised learning problem, and consider questions of crowd-sourcing in [20]. Dwork, Kim, Reingold, Rothblum and Yona consider the fairness and accuracy properties of rankings in [5].
3 Additional definitions and terminology
In addition to the preliminary terminology and definitions introduced in Section 1, there are several additional definitions and dilemmas which will prove useful in the more technical discussion of later sections. In particular, we introduce one additional relative query type, the concept of a consistent underestimator () and explicit characterization of representative submetrics and representative set submetrics.
Expanded Query Model
As mentioned in Section 1, we restrict ourselves to queries involving a limited number of elements. In addition to the triplet query, we consider a second type of relative query, the quad query, which asks the arbiter to compare distances between two distinct pairs.
Definition 2 (Real query).
Definition 3 (Triplet query).
.
Definition 11** (Quad query).**
if , [math] otherwise.
Relative distance queries have been used successfully for human evaluation in image processing and computer vision, e.g. [19, 21]. A quad query does require the human fairness arbiter to consider an additional element compared with a triplet query. This may result in additional overhead for the human fairness arbiter, particularly in cases where examining each individual requires significant time. As such, we consider quad queries slightly more costly than triplet queries, but still significantly less costly than real-valued distance queries. Furthermore, the binary nature of the response makes parallelizing relative distance queries between several human fairness arbiters (who are in agreement) straightforward.
For brevity in algorithms and theorem statements we will refer to , and as the interfaces to the arbiter.
Additional definitions and lemmas.
We now introduce several additional definitions and lemmas which simplify discussion in later technical sections.
A core component of this work is that submetrics can be constructed based on distance information from a single representative element. We refer to the submetric constructed from differences in distance to a particular representative as .
Definition 12** (Representative Submetric).**
Given a representative , we define the submetric for all .
The following straightforward lemma and proof explicitly, restated from the introduction, show that as defined is a submetric of .
Lemma 1 (Restatement).
for is a submetric of .
Proof.
The proof follows from triangle inequality. , thus . Likewise, . Thus . ∎
Lemma 1 shows that constructed from exact evaluations of is a submetric, but in practice we will want to construct submetrics from approximate evaluations of and . Just as a submetric is a contraction of the true metric, a consistent underestimator is a contraction of the distance between a representative and other elements of the universe. The key property of a consistent underestimator is that distances are contracted consistently, i.e. a weak ordering of distances from is preserved.
Definition 13** (Consistent Underestimator).**
Given a universe and a metric , a function is said to be an consistent underestimator for with respect to if for all
[TABLE]
We define the maximum contraction of a consistent underestimator .
Analogous to the construction of , an consistent underestimator for a representative can also be used to construct an submetric, denoted . Figure 3 illustrates the difference in the exact evaluation of versus the consistent underestimator.
Definition 14** (Representative Consistent Underestimator Submetric).**
Given a representative and , an consistent underestimator for , we define the submetric for all .
In the following lemma and proof, we explicitly state and show that the construction of , as specified in Definition 14, results in an submetric.
Lemma 8**.**
Given an consistent underestimator for with respect to , is an submetric of .
Proof.
Notice that by Definition 13 (3), and that by triangle inequality. ∎
We use “submetric” to refer to submetrics in general with unspecified , and submetric to explicitly reference submetrics with no additive error. Of course, given an -submetric it is possible to produce a submetric via postprocessing.
Proposition 9**.**
Given an -submetric of , the submetric is a submetric of .
Now that we have specified submetrics based on exact distances from a representative and a consistent underestimator for a representative, we consider the nontriviality properties of these submetrics. Notice that although the overestimate magnitude is independent of , the distances preserved are highly dependent on the choice of . (See Figure 1.) exactly preserves the distance between and every , so we can conclude that is nontrivial for . (Notice that has a probability of selection in ). Likewise, with maximum contraction will preserve for all . Thus we can relate nontriviality for a distribution to . However we cannot make guarantees on distance preservation for distances between arbitrary pairs in under or without further information. For example, and may be equally distant from , so , but may also be equally distant from each other. Up until Section 6, we will conservatively consider nontriviality only as a function of distances preserved between pairs in to focus our attention on learning approximations of and which generalize to unseen samples. In Section 6, we return to this question and formulate the necessary properties of and to reason more generally about distance preservation and nontriviality.
As previously illustrated in Figure 1, submetrics constructed based on different representatives will preserve different information about the true underlying metric. We therefore consider constructing submetrics by aggregating information from multiple representatives. The following lemma and corollaries state that arbitrary mixing of submetrics, for example taking the maximum distance between a pair of elements in a set of submetrics, will result in a valid submetric and furthermore, the resulting submetric will have at most the additive error of the input submetrics.
Lemma 10**.**
Given a set of submetrics for , for any arbitrary mapping , is a submetric of .
Proof.
Notice that for all , , and thus is also a submetric. ∎
Corollary 10.1**.**
Given a set of submetrics for , define . The of a set of submetrics of is a submetric of .
Corollary 10.2**.**
Given a set of submetrics for , The of is an submetric of .
Throughout this work, we will use the of a set of representative submetrics as a core of our constructions. Below, we define and based on a set of representatives .
Definition 15** (Representative Set Submetric).**
Given a set of representatives , we define the representative set submetric and representative set consistent underestimator submetric for all .
4 From human judgments to submetrics
In this section we consider the problem of determining which and how many queries to ask of our human fairness arbiter in order to construct a submetric for a pre-specified universe . This setting can be viewed either as the problem of learning a metric over a fixed universe (e.g., determining a metric over the entire set of college applicants in a particular year) or as a process for generating training data to learn a submetric which generalizes to unseen samples as in Section 5, or as input to any other method for learning fairly with access to a sample of distance, e.g. [12, 15].
Naively, we could construct with queries to by simply querying for every distance from the representative . Furthermore, can be constructed in the same way by issuing queries to to constuct each representative submetric and then merging. Although the linear dependence on may seem good compared with , we anticipate that the cost of real-valued queries is high and increases with the number of queries. Although the number of queries is linear in , the cost in terms of human effort may not be.
We now work towards constructing a submetric from a sublinear number of real-valued queries by supplementing with triplet queries, at the cost of introducing bounded additive error. Our general strategy will be to show that given an ordering consistent with the metric, we can learn a submetric from a constant or sublinear number of queries to by rounding distances from the each representative down to fixed thresholds. More concretely, a representative consistent ordering for is an ordered list of elements from smallest to largest distance from .
Definition 16** (Representative-consistent ordering).**
An ordering of elements of is consistent with the representative element with respect to the metric if for all , .
Given the notion of a representative consistent ordering, we now show that rounding down to “threshold” distances at granularity is sufficient to produce an submetric. Threshold rounding is also very useful for preserving distances and can be helpful for generalization, as we will see in Sections 5 and 6. We now formally define a Threshold Consistent Underestimator and prove a bound on the maximum contraction and additive error.
A threshold consistent underestimator is the function which rounds down the distance between and element and a fixed representative to the nearest threshold in a prespecified set.
Definition 17** (consistent threshold underestimator).**
Given a universe , a metric , a representative , and an ordered set of distinct thresholds (for constant ) where ,
[TABLE]
is the threshold consistent underestimator wrt and . We refer to the maximum distance between any adjacent thresholds in as .
It is simplest to consider to consist of a set of evenly spaced thresholds at granularity , although the analysis does not depend on this and certainly allows varied threshold spacing. Lemma 11 formally states that an -consistent threshold underestimator is an -consistent underestimator that has contraction of distances between an element and the representative of at most .
Lemma 11**.**
Given for , an consistent underestimator, where . The submetric , is an submetric with maximum contraction with respect to bounded by , ie .
Proof.
By definition, satisfies conditions 1 and 2 of a consistent underestimator. Notice that and have distances from reduced from and by rounding down by at most , and thus , satisfying the third condition of a consistent underestimator and the bound on the maximum contraction of .
∎
This property of threshold consistent under estimators implies that if we can construct an ordering of the elements with respect to their distance from the representative and then label the elements at regular intervals, then we can produce a consistent underestimator.
4.1 Constructing metric consistent orderings
We can construct a metric consistent ordering by using as a comparator, as indicates which of or has greater distance from . Using such a comparator, we can build an ordered list via binary search.151515In practice, there may be many other simple to evaluate query types which can also be used to produce an ordering. We focus on Triplet Queries as they have some existing usage in the literature, but these results can generalize to any query type which can be used to generate an ordering or as a comparator. This procedure is detailed in Algorithm 3.
Lemma 12**.**
Given a universe and a representative , Algorithm 3 produces a representative consistent ordering for from queries to .
The proof follows from a straightforward analysis of the binary search procedure with used for comparisons.
Proof.
We consider correctness and query complexity separately.
Query complexity.
Notice that is called times, once for each element. Each recursive call to eliminates at least half of the sets in under consideration, and so has recursion depth of . Each recursive call to makes a single call to . Thus the total number of queries to is .
Correctness.
Each element is inserted into an ordered list via binary search, and as such every element earlier in the list is at least as close to as any element later in the list. ∎
4.2 Constructing submetrics from orderings
Algorithm 4, below, outlines the process of labeling and ordering by distance from the representative at a particular granularity, . Algorithm 4 repeatedly splits the input ordering into contiguous ranges of elements until the difference in distances between the first and last elements in the range to the representative are at most . Once each range has reached the appropriate size, the distance between each element in the range and the representative is then set to the minimum distance in its range, which maintains a weak ordering of distances from the representative and corresponds to rounding down by no more than .161616All arrays are indexed from [math] in all algorithms.
Lemma 13 states that given a representative consistent ordering, an submetric can be constructed via Algorithm 4 with queries to . Algorithm 4 utilizes the representative consistent ordering to make fewer queries to by labeling elements in the ordering with distances at granularity from and rounding intermediate elements to produce an consistent threshold underestimator, which is then used to construct an submetric.171717In Algorithm 4 we use “Set” and “Initialize” to mean setting or initializing a global copy of to avoid tedious bookkeeping. We also use to specify the midpoint function, which chooses the midpoint for odd length lists and rounds down for even length lists.
Lemma 13**.**
Given a universe , and an ordering consistent with a representative for a metric , Algorithm 4 produces an submetric of which preserves the distance between each element and (with additive error ) from queries to .
Proof.
We address query complexity and error magnitude separately for clarity.
Query complexity. At most 2 queries to are made per call of . Thus to analyze query complexity, it is sufficient to analyze the number of calls to . There are three conditions in which makes additional recursive calls:
makes two calls which immediately terminate, i.e. both sides of the split represented ranges with . 2. 2.
makes two calls which do not immediately terminate, i.e. both sides of the split represented ranges with . 3. 3.
makes one immediately terminating call and one not immediately terminating call, i.e. one side of the split represented a range of and the other
Notice that at any point we have identified some number of ranges of size at least , call this number , and some number of elements left to be labeled, call this number . There are at most disjoint continuous ranges of at least size in , so . Likewise, for additional calls to be made must be greater than [math].
Consider how each call type changes and :
Type 1 calls decrease by where is the recursion depth of the call, as every element in the current range will be labeled in the next step, and may increase by at most 1. 2. 2.
Every type 2 call increases by 1, as an existing range of size is split into two disjoint ranges of size . 3. 3.
Type 3 calls decrease by , as of the current range will be labeled in the next step.
If all of the calls to are type 1 or 2, then at most calls are made as there are at most disjoint continuous ranges of length in . If all calls to are type 1 or type 3, then at most calls are made as at least half of the elements in the range are labeled by the subsequent terminating call(s).
If there are a mix of all three types, notice that there can still be at most calls in the entire recursive tree of type 2. Thus it remains to consider how mixing type 3 calls with type 2 calls impacts the total number of calls.
As a warm-up, suppose a type 3 call is issued at depth . If all of its children are type 1 or 3 calls, then there can be at most children, as the parent call and each child call labels at least of its range. Now suppose a type 2 call is issued at depth . If its children are all type 1 or 3 calls, then there can be at most children, as the parent call spawns two sub-trees with initial size as opposed to just one. Therefore we know the worst case sequence of calls includes both type 2 calls and type 3 calls.
We now show that the worst case recursion tree has no type 2 calls as children of type 3 calls. Suppose for the sake of contradiction that a valid recursion tree has a node at depth of type 3 with a child of type 2. Recall that type 3 nodes have only one child which does not immediately terminate, but type 3 nodes have two. Call ’s children and . At depth , increases by , as half of its elements are set to be labeled by the type 3 node A. At depth , no additional elements are set to be labeled, but increases to .
Now consider an alternative tree, which is identical to in every way except: (1) Node is changed to type 2, (2) Node has two new children and of type 3, (3) ’s non-terminating child is and ’s non-terminating child is . At depth , increases to . At depth , and each set elements to be labeled, so increases by . Thus, is a valid recursion tree, but it exceeds the number of calls in by one.
Thus the worst case recursion tree will have some constant number of type 2 nodes in the highest levels which transition to type 3 and 1 nodes in the deeper levels. Suppose the type 2 nodes reach depth , where is bounded by as the number of type 2 nodes is a constant bounded by . Then there will be nodes at depth with elements in the range of each node. Each node can have at most type 1 or 3 descendants, so the total number of nodes in the recursion tree is .
However, the worst case analysis above must consider the most pathological cases. Notice that for every type 3 query made, there must have been half of the elements in the range in a clump of distances from with less than difference and the other half with distance greater than . If distances from each representative are distributed more smoothly, then this is unlikely to happen too many times.
Overestimate Error
To reason about the error, notice that , as each element’s distance from is rounded down by at most . Thus is an consistent underestimator (and also a threshold consistent underestimator) and the final construction of is an submetric by Lemma 8. ∎
The primary benefit of a sublinear number of queries to is that the human fairness arbiter needs to maintain consistency with a smaller set of previous outputs. Furthermore, human fairness arbiters may only be able to answer real-valued queries to within some minimum granularity, and stating the granularity up front may help them avoid wasting time verifying the consistency of ultimately inconsequentially small distance adjustments.181818See Section 7 For more complete treatment of a model in which the arbiter has limited distinguishing power. The following theorem, which states that a representative consistent underestimator submetric can be constructed in a sublinear number of queries to and queries to , is an immediate consequence of Lemmas 12 and 13.
Theorem 14**.**
Given access to and , an submetric can be constructed from queries to and queries to which preserves distances (up to the additive error) from a representative .
As before, we can also expand the expressiveness of the submetric by using , while still maintaining the same small additive error bound. Naively, this could be accomplished in queries to given orderings for a set of representatives by applying Algorithm 4 independently on each representative’s ordering. However, the linear dependence on can be improved by using our third query type, quad queries.
To see this, notice that the orderings, can be merged into a single ordering by distance from representative using quad queries. To compare two elements from different lists, will suffice to determine which is closer to its respective representative. Thus, we can use any standard sorted list merging approach to combine the sorted lists with respect to each specific representative into a single sorted list of (element, representative) pairs sorted by distance of the element from its corresponding representative with queries to . The logic of Algorithm 4 operating on this list of pairs goes through unchanged except for the representative used in the query to , and some bookkeeping to separate the labeled and rounded list of pairs back into individual representative orderings. Algorithm 5 outlines this process.
The following theorem summarizes this combined result and states that given a set of representatives , can be constructed with queries to , queries to and queries to .
Theorem 15**.**
Given a set of representatives and access to and , an submetric can be constructed from queries to , queries to and queries to which preserves distances (up to the additive error) from the set of representatives .
The proof of Theorem 15 follows from a straightforward analysis of list merging, detailed in Algorithm 5.
Proof.
A representative consistent ordering for each can be constructed via Algorithm 3 in queries to for each representative, queries to total.
Algorithm 5 given such a set of orderings constructs , an submetric which preserves distances up to the additive error from each representative . The modified version of still requires queries to as the list length has increased to . Thus all that remains to prove the theorem is to reason about the number of queries to . Algorithm 5 makes calls to as each element in each ordering is inserted at most once into a list of length at most . Each into a list of length requires queries to as a comparator. Thus the total number of queries to is . ∎
Summary
In this section, we have shown how to use real-valued queries and triplet queries in order to construct nontrivial representative submetric for a fixed universe of individuals. When learning multiple representative submetrics, we have also shown how to improve the naive linear dependency on the number of representatives to logarithmic by supplementing with a quad queries and triplet queries.
In the next section (5), we will show how to construct generalizable representative submetrics, i.e., how to predict what human fairness arbiters “would have said” on unseen examples. In the following section (6), we tackle how to choose a small set of representatives to improve nontriviality guarantees.
5 Generalization
In this section, we consider the problem of learning how to predict the human fairness arbiter’s judgments on unseen samples from . (We consider how to pick the set of representatives in Section 6.) In particular, we will consider the problem of generalizing a representative submetric to fresh samples from . Our goal is to construct efficient learners for submetrics as in Valiant’s Probably Approximately Correct (PAC) model of learning [18]. However, we do not want to be too prescriptive about the submetric concept class, particularly about the representation of elements in the universe. Instead, we will make an assumption about the learnability of threshold functions (Definition 18) and construct learning procedures for submetrics using threshold functions as building blocks without any additional direct access to labeled or unlabeled samples from .
We restate the formal definition of an efficient submetric learner below.191919This goal of learning a hypothesis that with high probability, does not exceed distances on most pairs in is almost identical to Rothblum and Yona’s notion of “approximately metric-fair” [15].
Definition 9 (Efficient Submetric Learner - Restatement).
We say that a learning procedure is an efficient submetric learner if for any error and failure probability parameters , given access to labeled examples of , with probability at least over the randomness of the sampling and the learning procedure produces a hypothesis such that
[TABLE]
in time .
In our formal definition, we are again purposefully vague about the type of the labeled examples, and all of our subsequent constructions will use labeled examples for the threshold functions and set corresponding to the maximum difference between adjacent thresholds. Whenever we use a set of ordered thresholds, , we will write to denote the maximum difference between adjacent thresholds.
In the remainder of this section, we formalize the relatively weak assumption that there exist a set of efficient learners for a set of binary threshold functions (Definition 18). Second, we show the construction of an efficient learner for a submetric with additive error dependent on the set of thresholds based on voting by hypotheses produced by each threshold function learner. Finally, we show how to combine a set of learners for submetrics as a first step to improving nontriviality as a warm-up for Section 6.
5.1 Learnability of threshold functions
Assumption 1 (restated below for clarity) states that for every representative, there exists a set of thresholds and a learner for each threshold in the set which, with high probability202020In the remainder of this work, when we state that a learner produces a hypothesis with high probability, we will always take the probability over the randomness of the sampling and the learning procedure., produces an accurate hypothesis for the threshold function for each threshold in the set which generalizes to unseen samples. We first formally define a threshold function, which is a binary indicator of whether a particular element is within distance of for a threshold and a representative , and then restate the learnability assumption.
Definition 18** (threshold function).**
A threshold function is defined
[TABLE]
with respect to a representative and metric .
Assumption 1 (Restatement).
Given a metric and a representative , there exists a set of thresholds such that
for all , 2. 2.
, 3. 3.
, 4. 4.
,
and for every there exists an efficient learner which for all , with probability at least over the randomness of the sample and the learning procedure produces a hypothesis such that
[TABLE]
in time with access to labeled samples of for any distribution over the universe. That is, the concept class is efficiently learnable for all .
As noted before, we are intentionally vague about the representation of because we tuck any issues of representation away into the assumption of learnability of threshold functions. All of our subsequent constructions will only interact with samples from through the learners for the threshold functions, and as such, the representation can be completely abstracted away. In Assumption 1, the choice of is also not explicitly specified. In this work, we will take Assumption 1 to apply to every .
5.2 Constructing submetric learners from threshold learners
Given Assumption 1, our next step is to determine how to combine the threshold learners into a learner for the threshold consistent underestimator for with respect to which can be post-processed into an submetric.
We first show how to combine a set of hypotheses for threshold functions into a hypothesis for a threshold consistent underestimator. The mechanism, redefined below, takes in a set of hypotheses for the thresholds and outputs the threshold that the most hypotheses agree with.
Definition 10 ( - Restatement).
Given an ordered set of thresholds, , and a set of hypotheses , one corresponding to each threshold function, outputs the threshold that the most hypotheses agree with.
[TABLE]
is equivalent to (Definition 17) when all of the output the correct value.
Algorithm 6 takes as input a set of thresholds and learners for those thresholds and (1) calls these learners with appropriately scaled parameters (2) and combines the resulting hypotheses via to produce a hypothesis for the -submetric .212121Algorithms 6, 7, and 8 are all invoked with error and failure parameters. To keep the parameter names clear, we refer to and for the threshold function learners; and for the single representative submetric learner Algorithm 6; and for the combined representative set submetric learner Algorithm 7; and and for the complete learning procedure Algorithm 8. Each time a learning procedure is invoked, we specify the relevant parameters using these variables. In Algorithms 6, 7, 8, we implicitly assume access to labeled samples of Sample complexity is explicitly analyzed in Theorem 20.
Theorem 16 states that given a set of learners as specified in Assumption 1, Algorithm 6 will produce a hypothesis for the submetric with probability at least with error at most .
Theorem 16**.**
Under Assumption 1, there exists an efficient submetric learner. That is, given a representative , a distance metric , a distribution over the universe, and a set of a constant number of thresholds , if there exists a set of efficient learners as specified in Assumption 1, then there exists an efficient learner which produces a hypothesis such that with probability at least for all , in time , where for all .
Proof.
Consider the construction of as specified in Algorithm 6. The failure probability of Algorithm 6 is by union bound, as the procedure only fails if at least one of the learners in failed to produce an good hypothesis for . As each learner in runs in time by Assumption 1, running all learners takes time , as Algorithm 6 invokes each with scaled by a factor of . Recall to satisfy the definition of an efficient learner (Definition 9), that Algorithm 6 must run in time . Given that is constant, this requirement is satisfied. With respect to accuracy, notice that only outputs a value more than away from if at least one of or is in error. Assuming all of the output good hypotheses, the probability that at least one of or is in error is at most by union bound. Thus, Algorithm 6 satisfies the conditions of the theorem. ∎
Two key properties of the proof, which will be important in our consideration of query complexity to generate the labeled samples (Theorem 20), are (1) each of the threshold function learners learns on the same distribution , and (2) no independence of errors between the threshold function learners is assumed.
As in the previous section, combining information from multiple representatives can improve nontriviality guarantees. Algorithm 7 takes as input a set of learners for representative submetrics for a set of representatives (for example, learners based on Algorithm 6) and produces a hypothesis based on the of the hypotheses produced by the input learners.
Theorem 17 states that given a set of learners for threshold functions for a set of representatives (Assumption 1), Algorithm 7 produces a hypothesis with probability at least with error at most which approximates , where the are based on threshold consistent underestimators. In contrast to the statement of Theorem 16, which does not explicitly address nontriviality, Theorem 17 introduces a nontriviality guarantee which relies on the fraction of distances that exceed the contraction of the consistent underestimators. This additional requirement stems from the fact that consistent underestimators with contraction in the distances between the representative and other elements in will not entirely preserve the original distance.222222Note that the choice of in order to preserve of the original distance is somewhat arbitrary. In Section 6 we give a parametrizable guarantee. Roughly speaking, for the nontriviality properties to hold, we need at least a -fraction of distances in the distribution to be large enough that an contraction of the original distance is insignificant. As we have not yet specified how representatives are chosen or how those choices preserve distances, we assume that all pairs with sufficiently large distances include at least one representative. We explicitly note the dependence on in the theorem statement as a placeholder until the required size for is established (Lemma 6).
Theorem 17**.**
Given a distance metric , and a distribution over the universe, if there exist a set of thresholds and efficient learners as in Assumption 1, and weight of pairs of elements in include at least one representative and have distance greater than , then there exists an efficient learner which produces a hypothesis with probability greater than such that
** 2. 2.
* is *nontrivial for .
The learner runs in time for all , .
That is, under Assumption 1, if weight of pairs in which include at least one representative in have distance greater than , then there exists an efficient nontrivial submetric learner.
Proof.
Consider Algorithm 7 parametrized with constructed via Algorithm 6 operating on .
Running time. Algorithm 7 makes calls to Algorithm 6. Algorithm 6 runs in time , where and are the error and failure probability parameters with which Algorithm 7 invokes Algorithm 6. Thus Algorithm 7 runs in time .
Failure probability. We say that Algorithm 7 has “failed” if at least one of fails to produce an good hypothesis . The failure probability of Algorithm 6 is by union bound.
Overestimate error probability. Suppose that all of the learners in produce a good candidate with error probability or less. Now, consider the probability that the result of is an over-estimate by more than . This can only happen if at least one of the is in error by more than . Thus by union bound, the probability of over-estimate is at most
Nontriviality. Each of the has additive and subtractive error at most , so for any and such that , at least half of the original distance will be preserved. Thus, making the worst case assumption232323We could omit the error probability in the statement of nontriviality and leave implicit that the nontriviality guarantees “stack” with the hypothesis error probability. However, this is somewhat misleading as we cannot assume that the errors of the hypothesis are randomly distributed. that all weight of errors result in distance underestimates on the relevant pairs, the metric learned is nontrivial for . ∎
Notice that in the analysis of the error and failure probability for Algorithm 7, there is no particular requirement that the learners used to produce for each representative be based on thresholds. The only requirement is that the learners produce such that with probability at least . Thus in settings with alternative mechanisms to produce such , they can be substituted without compromising the result. We state the following corollary to formalize this intuition.
Corollary 17.1**.**
Given a distance metric , and a distribution over the universe, if there exist a set of efficient learners such that, given access to labeled samples, produces a hypothesis such that with probability at least in time and weight of pairs of elements in include at least one representative and have distance greater than , then there exists an efficient learner which produces a hypothesis with probability greater than such that
** 2. 2.
* is *nontrivial for .
The learner runs in time for all , .
As discussed in Section 3 (Proposition 9), A submetric can be postprocessed to reduce the additive error. Corollary 17.2 below reflects the result of postprocessing, in particular the impact on the distance distribution requirements.
Corollary 17.2**.**
Given a distance metric , and a distribution over the universe, if there exist a set of efficient learners such that, given access to labeled samples, produces a hypothesis such that with probability at least in time and weight of pairs of elements in include at least one representative and have distance greater than , then there exists an efficient learner which produces a hypothesis with probability greater than such that
2. 2.
* is *nontrivial for .
The learner runs in time for all , .
Theorem 17 is the first step to learning submetrics which generalize to unseen samples, but the limited nontriviality guarantee is potentially problematic. The next section considers how the choice of representatives and the properties of the metric on the distribution impact nontriviality.
6 Choosing Representatives
There are two approaches one might take to improve the nontriviality guarantee of Theorem 17: (1) develop specialized strategies for combining representative submetrics which depend on the structure of the metric, or (2) characterize generic randomized strategies. We briefly consider the first approach below, and then devote the remainder of the section to the second approach.
6.1 Metric structure dependent strategies.
First, one could propose a representative selection mechanism tailored to a particular problem setting. This is a very reasonable strategy if some structure of the metric is known which can be exploited to better combine the representative submetrics, or there are specific distance preservation properties other than nontriviality which are deemed desirable.
For example, suppose that we had some understanding that the underlying metric we wish to learn is Euclidean distance in two dimensions. Even without knowing the features relevant to each dimension, we can propose a generic “representative GPS” submetric combination procedure. We could choose representatives (with some additional conditions to ensure they form a basis) and use Algorithm 6 to learn a representative submetric for each representative with reasonably small contraction which generalizes to unseen samples. These distances can be used to build up a dimensional embedding of the representative points and any new points observed. Notice that each new point can have at most one valid position in the embedding depending on its distance from the representatives.242424This assumes that all distances are exact, there is some slack when the distance from each representative is an underestimate. We omit a full treatment of this problem in this work, both in terms of number of dimensions and approximation of representative distance, as it is not inherently important to understanding the motivation for setting specific strategies. Briefly, when distances from each representative are not exact it is possible that the region of possible locations is not contiguous for a new point. In terms of computing distances between two points of uncertain location, this can be “fixed” from an overestimate perspective by taking the minimum of the distances between all possible locations, but at the cost of weaker nontriviality guarantees. Thus for any pair we can compute their distance based on their relative positions from the set of representatives with error probability proportional to the error of our hypotheses for . Essentially, with a strong assumption on the form of the metric, we may be able to propose a representative submetric combination strategy which gives very good nontriviality guarantees.
6.2 Random representatives
When little or no information is known about the structure of the metric, or the known structure dos not lend itself to a simple representative selection strategies, choosing a set of representatives at random is a reasonable alternative strategy. When a set of representatives is chosen at random, a key component of the argument for how well the set will preserve distances is how distances between pairs are distributed in . For instance, if most of the weight in is concentrated on pairs which are maximally distant, it may be more difficult to generate a set of good representatives compared with an alternative distribution over which results in a broader range of distances. A set of randomly chosen representatives will have certain nontriviality properties which depend on the more generic “density” properties of the metric and distribution , which we define below. In contrast to a setting-specific strategy, we don’t make any assumptions about how submetrics based on different representatives can be combined other than the universally applicable merges specified in Lemma 10.
We devote the remainder of this section to understanding the generalization properties of a random set of representatives. First, we formalize the definition of a net to capture the notion of a set of representatives “covering” a fraction of the distribution (subset of the universe) and prove several useful lemmas relating the size of to the nontriviality properties of the submetric. Next, we formally define the density and diffusion parameters for a metric and distribution over the universe, and show how the nontriviality properties of nets relate to these parameters. Roughly speaking, density describes how closely packed elements are and characterizes how easy it is to construct a -net, whereas diffusion describes how many distances are large enough to tolerate a contraction. Intuitively, more closely packed points (high density) will make it easier to find a representative closer to those points, but the tradeoff is additional small absolute distances between points (lower diffusion), which will be more impacted by the underestimate error of the net.252525For example, a universe with all points except one clustered together with distances less than will be easy to cover with representatives at distance at most from each element, but any contraction of size approximately will destroy any distinguishing power between the clustered points. Finally, we characterize the number of randomly sampled representatives needed to form a net, given the density and diffusion characteristics of the metric and distribution, and use this to prove our main generalization result.
6.3 Distance preservation via nets
The crux of the argument for nontriviality with random representatives is (1) a random sample of representatives is likely to be “close to” a significant portion of , and (2) we can bound the magnitude of underestimates based on the distance from a representative for arbitrary metrics. Recall the definition of a net, which captures the notion of being “close to” or “covering” a set of elements.
Definition 6 (Restatement).
A set is said to form a net for a subset under if for all balls of radius (determined by ) containing at least one element , the ball also contains .
To reason about nontriviality of a set of representatives which form a net, we derive a bound on the contraction of distances between pairs based on their distances to a representative. Intuitively, the distance between a representative and another element in the universe will be nearly identical to the distance between a close neighbor of the representative and that element. Lemma 3 (restated below) states that, given a representative , underestimates by at most .
Lemma 3 (Restatement).
For all , , where is the representative submetric for .
Proof.
By construction, Without loss of generality, assume By triangle inequality, , so . ∎
Corollary 17.3**.**
*For all , , where is the consistent underestimator representative submetric for with maximum contraction . *
Lemma 3 is very useful for understanding the distance contractions for sets of representatives which form nets for , as every pair is close to at least one representative. Of course, forming a net for an arbitrary isn’t enough on its own to give a good nontriviality guarantee.262626 For example, if all of the elements in are contained in two well separated balls of radius , a net will preserve distances between pairs with one element in each ball well, but distances between pairs within the same ball may not be. This issue is a significant motivation for defining nontriviality as a relative distance preservation guarantee, rather than an absolute maximum contraction. Notice that the absolute contraction in this case is potentially very small, only , but the relative contraction may be significantly higher for pairs contained in the same ball. Later applications seeking to use the submetric as constraints on a classifier will not be able to make nuanced decisions between elements in the same ball, which may be problematic for some settings.
6.4 Density and diffusion
To understand how representatives which form a net will preserve distances, we recall the definitions of density and diffusion below to characterize the relevant properties of the metric and distribution. The notion of dense is intended to capture the weight () of elements that have a significant weight () on their close (distance ) neighbors under as a way to characterize how likely it is that a randomly chosen representative will be -close to a significant fraction of elements.
Definition 7 (dense - Restatement).
Given a distribution over the universe , a metric is said to be dense for if there exists a subset with weight under such that for all
[TABLE]
Figure 2 illustrates the tradeoff between and for a particular choice of for on an example universe in .
In addition to density, we will also frequently consider the fraction of distances larger than a given constant. This allows us to reason about how much the contraction in the submetric will affect the distances preserved, as in the statement of Theorem 17. This notion is formalized as diffusion.
Definition 8 (diffuse- Restatement).
Given a distribution , a metric is diffuse if the fraction of distances between pairs of elements in greater than is , ie
[TABLE]
Definition 8 is highly reminiscent of nontriviality (Definition 5) and we formally relate diffusion to nontriviality in Lemma 18. Notice that, although there are five parameters describing a metric and distribution across the two definitions, these parameters are highly related. We will generally consider distributions which are dense and diffuse. Although initially seems an arbitrary quantity, it indicates that a fraction of pairs will have distances preserved by a factor of if the maximum contraction for those pairs is no more than . Thus the values of and , which in turn dictate , , and , (assuming ) can loosely be seen as a tradeoff between how many pairs will have distance preservation guarantees and how large the guarantees will be. In the case of the example in Figure 2, we could describe the uniform distribution as diffuse, or diffuse, where and . That is, with contraction at least 88% of the pairs in will have at least half of their distances preserved.
6.4.1 Nontriviality properties of nets
Given the formalization of diffusion, we can now relate the magnitude of to the nontriviality properties of the merged representative set submetric. Lemma 18 states that a set of representatives which form a net for will have nontriviality properties related to the diffusion properties of .
Lemma 18**.**
If a set of representatives form a net for a universe and is diffuse on , then is nontrivial on .
Proof.
Recall from the proof of Lemma 3 that the distance between a pair has contraction at most . Thus, the distance between any pair of elements is contracted by at most . A fraction of distances between pairs are greater than , so an absolute contraction of for these elements yields a ratio of at least and thus a absolute contraction is at most a relative contraction for this set of elements. So we conclude that the max-merge of for is nontrivial for . ∎
Corollary 18.1 states that in the case of consistent underestimators with that accounting for the potential underestimate error in the diffusion parameter is sufficient to yield the same nontriviality guarantees as in Lemma 18. Corollary 18.1 follows from observing the maximum possible contraction due to the underestimation from the net placement and the underestimation of the consistent underestimators.
Corollary 18.1**.**
If a set of representatives form a net for a universe and is diffuse on then , produced from consistent underestimators with maximum contraction , is nontrivial for .
Returning to the example universe from Figure 2, Lemma 18 implies that if we selected a set of representatives which formed a net for the whole universe, then produced from exact evaluations of for all and would be nontrivial for . That is, would preserve half of the original distance for almost of pairs in .
We now recall and present the proof for Lemma 5, the weighted subset analog of Lemma 18, which states that if a set of representatives form a net for a subset of , then the nontriviality properties depend on the weight of that subset in .
Lemma 5 (Restatement).
If a set of representatives form a net for weight of and is diffuse on , then the submetric is nontrivial for , where .
Proof.
Consider the pairs in which have distance at least . The total weight of such pairs in is . Pairs with neither element in the net can have weight at most . Assuming the worst case scenario that all weight of pairs with neither element in the net are also pairs with distance at least , at least a weight in have at least one element in the net and a distance of at least
By the same logic as in the proof of Lemma 18, pairs with distance at least have relative contraction at most if at least one member is in the net. Thus the of the submetrics from representatives in is nontrivial for . ∎
Corollary 5.1 restates Lemma 5 in terms of consistent underestimators, accounting for the maximum contraction in the diffusion parameters.
Corollary 5.1**.**
If a set of representatives form a net for weight of and is diffuse on , then the submetric , formed from consistent underestimators with maximum contraction , is nontrivial for , where .
The nontriviality guarantees of Lemmas 18 and 5 are conservative. They incorporate a worst-case assumption on the distribution of large distances in Lemma 5, and entirely ignore the exact distance preservation from the representatives in both Lemmas. Again, we stress that our goal in this section is to show the possibility of positive results, and we do not attempt to achieve optimal performance or guarantees.
Corollary 5.2 restates the Lemma directly in terms of the probability that at least one element in the pair sampled is covered by the net and the distance is greater than in order to get a tighter characterization of nontriviality.
Corollary 5.2**.**
If a set of representatives form a net for a subset , and , then the submetric , formed from consistent underestimators with maximum contraction , is nontrivial for .
Given a set of representatives, it is possible to empirically measure on a sample to improve the bounds given by Lemma 5 or Corollary 5.2. For maximum generality, we will rely only on the density and diffusion properties of the metric and distribution, but we include Corollary 5.2 as a reminder that the bounds given are by no means tight.
6.4.2 Representative set size
We now consider how likely it is that a set of random representatives drawn from will form a net for given the density properties of on . Lemma 6 (restated below) states that a set of random representatives of size will be sufficient to guarantee with high probability that the submetric constructed from exact evaluations of via queries to the human fairness arbiter on new samples from will have nontriviality properties related to the density and diffusion of for .
Lemma 6 (Restatement).
If a metric is dense and diffuse on , then a random set of representatives of size at least will produce a -nontrivial submetric for with probability at least , where is constructed from exact evaluations of via queries to the human fairness arbiter.
Proof.
Notice that if a set of representatives forms a net for an fraction of , then by Lemma 5 the submetric will be nontrivial for .
Suppose that a metric is dense. Denote the weight subset of (with associated weight close subsets) as . Suppose that a random sample of size does not form an net for . Then it must be the case that there is at least weight of not included in . That is, the associated weight subset of at least one element in is not “hit” by any representative. Thus, it is sufficient to bound the probability that weight of corresponding to an element in is not hit by a sample of size to determine if our sample forms an net for , satisfying the conditions of the lemma.
As a warm-up, suppose that all of the weight subsets corresponding to elements in are disjoint. The probability that all samples do not fall into a particular weight subset of is . Notice that if all elements in have disjoint associated weight subsets, then the probability that all samples do not fall into at least one of the disjoint weight subsets of is at most . (Notice, that there are at most disjoint weight subsets in total weight .) Rearranging and substituting , any which satisfies:
[TABLE]
[TABLE]
[TABLE]
will fail to hit any subset of weight at least with probability at most . Thus, if the associated weight subsets for are disjoint, a set of representatives of size is sufficient to produce a net for with probability at least .
Now, consider the (more likely) case that the weight subsets for elements in are not disjoint. We will show that there is a set of disjoint weight subsets, , such that if every disjoint subset in is “hit” by at least one element in , then every element in is at most distance from a representative, i.e. forms a net for .
Consider the entire set of weight subsets associated with elements in . Now, suppose that we removed the minimum number of subsets such that the remaining weight subsets were all disjoint. Call the minimal set of removed subsets , and the set of remaining disjoint weight subsets . Consider removing each subset in one at a time. The last subset removed must have overlap with at least one subset in , or there would be a smaller minimum set we could have removed which does not contain the last subset. Notice that we may remove the subsets in in any order, and yet this observation still holds for the final subset removed. Thus, each subset in must have overlap with a subset in , so the furthest any element in a subset in could be from a representative that “hits” a set in is . However, an element in in associated with a weight subset in can only be distance from the hitting representative, as it is at most distance from at least one of the element(s) overlapping with , which are in turn at most distance from the hitting representative.
As in the disjoint case above, the size of is bounded by , and the same logic applies, but forming a net. Thus for a set of randomly sampled representatives of size , the probability of the representatives chosen not forming a net for weight of is at most . ∎
Corollary 6.1 is the consistent underestimator analog of Lemma 6.
Corollary 6.1**.**
If a metric is dense and diffuse on , then a random set of representatives of size at least will produce a -nontrivial submetric , constructed from exact evaluations of consistent underestimators, for each representative with maximum contraction for with probability at least .
Our strategy of using random representatives is motivated by a desire for as much generality as possible with respect to the form of the metric. However, random sampling is not the only method to construct a net.
Remark 1**.**
Choosing a set at random to form a net ignores the information provided by each of the representatives. A net for a fixed sample, or some weight of a fixed sample, can be constructed via a greedy algorithm rather than random sampling. The key obstacle to analyzing the effectiveness of a greedy procedure is that the choice of the next representative, based on the weight of elements it may add to the net, can be based only on the existing incomplete distance information. In some cases, this incomplete information may lead to very sub-optimal choices. However, there may be procedures which take advantage of quad queries and rough ordering information to reduce the number of mistakes made, at the cost of additional queries to the human fairness arbiter. For example, quad queries can be used to check a small sample of the elements a candidate representative is expected to add against a known distance pair of approximately distance in order to better estimate the expected contribution to the net. We anticipate that such strategies may be useful in practice, even if a rigorous theoretical analysis for arbitrary metrics is pessimistic. It may also be useful to characterize the set of metrics which have bounded error in this incomplete information scenario, and we pose this as an open question for future work.
6.5 Generalization with random representative sets
Thus far we have shown that a random set of representatives can have good properties for new samples drawn from the distribution, assuming we construct the submetric from exact evaluations of or , i.e. with unlimited access to the human fairness arbiter. We now combine the results of Theorem 17 and Lemma 6 to show how to construct an efficient submetric learner which produces submetrics with good nontriviality properties, given limited query access to the arbiter for training data generation.
Algorithm 8 picks a set of representatives which will form a net for weight of a dense metric with probability at least . (Recall from Lemma 6 that the number of representatives required depends only on for a dense metric.) These representatives are then used to specify a set of submetric learners (via Algorithm 6) which are passed to Algorithm 7 to construct a good final combined submetric with probability at least . (That is, Algorithm 8 splits its failure probability “budget” evenly between the choice of representatives and the learners for each representative.)
Theorem 19**.**
Given a distance metric , and a distribution over the universe if
There exist a set of thresholds and efficient learners as in Assumption 1, and 2. 2.
* is **dense and *diffuse on ,
then there exists an efficient submetric learner which produces a hypothesis with probability greater than such that
** 2. 2.
* is *nontrivial for .
which runs in time for all .
Proof.
Claim: Algorithm 8 parametrized with a set of thresholds and learners as specified in Assumption 1 and for a dense metric is an efficient submetric learner as specified in the Theorem statement. We prove the claim with respect to each aspect of the theorem separately for clarity.
Running time. Algorithm 8 makes a single call to Algorithm 7 which runs in time (per Theorem 17). The parameters are set such that , and . Thus Algorithm 8 runs in time .
Failure probability. The failure probability is split evenly between the failure to produce a good set of representatives (per Lemma 6) and the failure probability of Algorithm 7.
Overestimate error probability. Algorithm 7 is invoked directly with , so the overestimate error probability is .
Nontriviality. The probability that the set of randomly chosen representatives in Algorithm 8 does not form a -net for at least weight of is less than or equal to per Lemma 6. Given that the randomly chosen representatives do form a net, notice that as in Corollary 5.1, if a fraction of distances in have distance greater than that is nontrivial. ∎
In the spirit of Corollary 17.1, we can also re-state Theorem 19 in terms of arbitrary learners for , rather than constructing directly from threshold function learners.
Corollary 19.1**.**
Given a distance metric and a distribution over the universe if
There exist a set of efficient learners such that given access to labeled samples, each produces a hypothesis such that with probability at least , and 2. 2.
* is **dense and *diffuse on ,
then there exists an efficient submetric learner which produces a hypothesis with probability greater than such that
** 2. 2.
* is *nontrivial for .
which runs in time for all .
Theorem 19 can also be restated to take into account postprocessing to reduce the additive error. In particular, Corollary 19.2 trades an increase of in diffusion for a reduction of in the error guarantee.
Corollary 19.2**.**
Given a distance metric and a distribution over the universe if
There exist a set of efficient learners such that given access to labeled samples, each produces a hypothesis such that with probability at least , and 2. 2.
* is **dense and *diffuse on ,
then there exists an efficient submetric learner which produces a hypothesis with probability greater than such that
** 2. 2.
* is *nontrivial for .
which runs in time for all .
6.5.1 Human fairness arbiter Query Complexity
We now formally reason about the query complexity to the human fairness arbiter to generate training data for Algorithm 8.
Theorem 20**.**
Assuming the minimum gap between any pair of thresholds in is at most a constant , sufficient labeled training data for Algorithm 8 can be produced from queries to and queries to , and queries to , where is the number of samples required to train a single threshold learner.
Proof.
First, notice that no assumption is made in the proofs of error or failure probability which requires independence of error or failure probability of the threshold function hypotheses. Thus, labeling a single set of training data at granularity is sufficient for all of the threshold function learners for a single representative, i.e. we do not need to label a new sample for each threshold function.
Call the number of samples needed to train a threshold function . Recall from Assumption 1 that the threshold function learners run in time . The choice of parameters in Algorithms 8, 7 and 6 result in
[TABLE]
and
[TABLE]
Thus the threshold function learners run in time , and can use no more than that many samples.
Recall from Theorem 15 that to produce labels for a set of elements of size to granularity for a set of representatives , we required at most queries to and queries to and queries to . Therefore to produce labels for a universe of size , for a set of representatives of size we will require queries to and queries to and queries to . ∎
7 Relaxed query model
In this section, we extend our results to a second, relaxed arbiter model, in which arbiters are not expected to make arbitrarily small distinctions between distances or individuals or to provide arbitrarily precise real-valued distances. The relaxed model assumes that there are two fixed constants, , the minimum precision with which the arbiter can distinguish elements or distances, and , a bound on the magnitude of the (potentially biased) noise in the arbiter’s real-valued responses. For any comparisons with difference smaller than , the arbiter declares the elements indistinguishable or the difference “too close to call.” The model allows for a “gray area” between and in which the arbiter may either respond with the true answer or “too close to call.” For any differences larger than , the arbiter responds with the true answer. We assume that and are fixed constants for each task and cannot be manipulated.272727i.e., we cannot parametrize or to use the arbiter as an arbitrary threshold distinguisher to improve query complexity and accuracy tradeoffs.
Definition 19** (Real-valued query (too close to call model)).**
, where i.e. the human fairness arbiter provides a real-valued distance between and with error at most .
Definition 20** (Triplet query (too close to call model)).**
Given , define .
[TABLE]
Definition 21** (Quad query(too close to call model)).**
Given , define .
[TABLE]
In addition to the arbiter consistency assumptions enumerated in Section 3 (all arbiters agree, query responses do not change over the learning period, real-valued and relative query responses are consistent), we also assume that if the arbiter answers that the distances between ( and ) and ( and ) are indistinguishable, then the real-valued distances will also be at most apart, and analogously that if the distances are distinguishable, then the real-valued distances will be at least apart.
In the remainder of this section, we extend our results from the original “exact” model to this “too close to call” (TCTC) model. We show that the too close to call model allows for a significant reduction in real-valued query complexity (from logarithmic to constant) but at the cost of always having perceivable additive error in the submetrics produced, i.e. no submetric for can be achieved without postprocessing and a corresponding trade-off in non-triviality parameters.
7.1 Submetrics from human judgements in the too close to call model
We first extend the results of Section 4 to the too close to call model. Algorithm 9 is the too close to call analog of Algorithm 4.282828As before, we use to specify the midpoint function, which chooses the midpoint for audit length lists and rounds down for even length lists. Algorithm 9 follows the same basic recipe of sorting and then labeling, but the sorting step produces sorted sets whose distances from the representative are indistinguishable. The elements in each set are then labeled with the distance between a distinguished element in the set and the representative. Thus the error of a distance label is a combination of the error of the real valued query for the distinguished element and the difference with the distinguished element’s distance to the representative.
Theorem 21 is the too close to call analog of Theorem 14, and states that Algorithm 9 requires only real-valued queries and triplet queries to produce a -submetric. The proof of the theorem follows from observing that there are at most sets of elements with indistinguishable differences in distance (i.e. differences of less than ) in , and that order errors in the distance labels accrue in the mapping to distinguish elements and in the real valued queries for the distinguished element. The primary difference between Algorithms 9 and 4 is that in Algorithm 9 the arbiter identifies when elements or distances indistinguishable (difference less than ) from relative queries alone. Thus Algorithm 9 groups indistinguishable elements together and acts only on the subset of distinguishable elements, which has size bounded by . The removal of the dependency in the number of real-valued queries compared with Lemma 13 follows from the query model explicitly preventing any recursive calls on ranges of size less than .
Theorem 21**.**
Given access to and , Algorithm 9 constructs a submetric from ) queries to and queries to which preserves distances (up to the additive error) from a representative .
Proof.
Query complexity. Queries to are made only by . Notice that if an element in is ever within distance of an existing item in the list, it is added to rather than the working ordering, . Thus, although is called for each element, it operates on a list of size at most , as there are at most elements with distances from which are different by at least , and contains at most one element from each indistinguishable set. Thus, it makes recursive calls for each element, yielding the desired bound of queries to . The desired bound on real-valued queries follows from observing that the ordering labeled by (Lines 3-5) has at most elements.
Correctness. Each element is considered by the algorithm, and is either sorted into the correct position in via binary search or, if its distance is indistinguishable from that of another element in , it is added to an associated set of indistinguishable elements. Once the elements are sorted, each element is either labeled with its true distance with less than error, i.e. , or the distance of a distinguished element whose distance from is within of its distance from . Thus , accounting for the additional error in evaluations of . Therefore . ∎
Theorem 22 likewise extends the results of Theorem 15 to the too close to call model using the same observations as in the proof of Theorem 21. As in Algorithm 5, Algorithm 10 uses quad queries to sort (element, representative) pairs, and then labels the resulting list at the specified granularity. As in Algorithm 9, the sorting step produces a sorted list of indistinguishable (element, representative) pair sets of size bounded by .
Theorem 22**.**
Given a set of representatives and access to and , a submetric can be constructed from queries to and queries to which preserves distances (up to the additive error) from the set of representatives .
Proof.
Consider Algorithm 10.
Query complexity. Queries to are made only by . As in the proof of Theorem 21, if an element in is ever within distance of an existing item in the list, it is added to rather than the working ordering, . Thus, although is called for each element times, it operates of a list of size at most so it makes recursive calls for each element, yielding the desired bound of queries to . The desired bound on real-valued queries follows from observing that the ordering labeled by (Lines 3-5) has at most elements, as in the proof of Theorem 21.
Correctness. By the same logic as in the proof of Theorem 21, each element is either labeled with its true distance with at most error, or the distance of a distinguished element whose distance from is within of its distance. Thus , accounting for the additional error in evaluations of . Therefore . ∎
Bounds on perceivable error.
Unlike in the exact arbiter model in which the additive error of a submetric can be made an arbitrarily small constant, Algorithms 9 and 10 result in additive error at least . A reasonable question is whether any query procedure in the too close to call model can produce a submetric with no perceivable additive error without some additional post-processing. Indeed, even with the naive construction of asking real-valued queries the submetric produced can have additive error strictly greater than , without further post-processing.
Proposition 23**.**
The representative submetric can have additive error greater than .
The proof of the proposition follows from the observation that each query to has error of such that . Thus, in the worst case, when , . So we cannot expect to produce submetrics without perceptible error without some additional post-processing on the values queried from the arbiter.
7.2 Generalization
We now turn our attention to extending the generalization results of Sections 5 and 6. Notice that unlike the exact model we won’t necessarily be able to label a sample with 100% accuracy for every threshold function for every representative. The key problem is that in the too close to call model each element’s distance from a representative has bi-directional error, i.e. it can have either over or under-estimated distance from the representative. This bi-directional error prevents us from using the nice properties of a consistent underestimator, so translating to the desired binary labels for a given threshold is not straightforward. To get around this labeling problem, we modify the distribution of samples presented to each learner, in particular eliminating samples whose labels are ambiguous. We then reason about the error of the combination of hypotheses for distributions with disjoint sets of ambiguous points removed.
Recall that Algorithm 10 assigns distances such that . Thus, any element such that is truly greater than distance from , (and analogously less than if ). Intuitively, this means that we can generate accurate threshold function labels for points sufficiently far from the threshold. We formally define the unambiguous threshold distribution below to capture only the elements whose relative distances are unambiguous.
Definition 22** (Unambiguous threshold distribution).**
Given a distribution over a universe of individuals , a representative , a labeling procedure which produces (noisy) distance labels with bi-directional additive error of at most from the representative , and a threshold , the unambiguous threshold distribution is the re-normalized distribution with all weights on elements labeled with distances within of set to 0.
Notice that the unambiguous threshold distribution is well-defined without knowledge of the exact distances from the representative, as it is specified based on the labeling procedure, rather than exact distances from the representative itself. Thus, we can reason about learning on the distribution without worrying about whether any elements are ambiguously labeled. Algorithm 11 specifies a labeling procedure for training data for each of the threshold functions for the distributions for , i.e., only samples with unambiguous labels.
In order for the threshold learners to succeed, we need sufficient labeled training data for each threshold function for each representative. However, Algorithm 11 tosses out any examples for a given learner which are too close to the threshold value. Thus, there is some risk that there are too few samples produced for a given threshold. Lemma 24 below states that Algorithm 11 generates a sufficient number of labeled samples of all but one for each representative given an initial sample of size , where is the number of labeled samples required for each threshold function learner.
Lemma 24**.**
Given a set of samples of size and a set of thresholds such that for all , Algorithm 11 produces at least labeled examples from for at least of the thresholds in .
Proof.
Correctness of labels. Recall from the proof of Theorem 22, that each element is labeled with a distance such that for each representative . Thus, each element labeled above or below which is at least distant from is correctly labeled for the representative .
Quantity of labeled examples. Since each threshold is at least away from its neighboring thresholds, therefore any element which is discarded for is included as a labeled example for every other threshold for a representative. Suppose that at least one threshold has fewer than labeled examples for a representative. Then at least examples were discarded for for the representative. However, this leaves at most samples which could be discarded for any other threshold, so all of the other thresholds must have at least labeled samples for this representative. Thus, at most one threshold will have fewer than labeled samples for each representative.
Correctness of distribution. is defined with respect to the labeling procedure, and thus it is possible to simulate by labeling elements and discarding an elements whose labels are ambiguous. Thus Algorithm 11 simulates , and the sets of labeled data produced are indistinguishable from a set drawn from directly.
∎
With the labeling procedure in place, we now introduce Algorithm 12, the too close to call analog of Algorithm 8. As in Algorithm 8, Algorithm 12 first samples a set of representatives, according to the size requirements of Lemma 6, generates a set of labeled samples for each threshold function via Algorithm 11 and then calls the threshold learners on the appropriate modified distributions with appropriately scaled parameters and combines their resulting hypotheses into a single hypothesis for the combined submetric.
To make the sample generation book-keeping clearer, we slightly modify the specification of the threshold learners (but not the core assumption) so that we can more clearly specify the sample distributions passed to each learner. We also introduce a minimum granularity for the thresholds determined by .
Assumption 2**.**
Given a metric and a representative , there exists a set of thresholds such that
for all , 2. 2.
, 3. 3.
, 4. 4.
,
and for every there exists an efficient learner which for all , with probability at least produces a hypothesis such that
[TABLE]
in time with access to labeled samples of for any distribution over the universe. That is, the concept class is efficiently learnable for all .
In order to prove the analog of the combined exact arbiter generalization (Theorem 19) we split the analysis into two steps. First, we analyze the error of running on the modified distributions and threshold sets and adjust the density and diffusion requirements accordingly. We then complete the argument by analyzing the full procedure parameter choices to derive the desired error and query complexity bounds.
Lemma 25 states that , when parametrized with learners and samples from where results in hypotheses which overestimate or underestimate distances by more no more than with probability with high probability.
Lemma 25**.**
Given a set of thresholds such that for all , , a set of learners as in Assumption 2, and access to sufficient labeled examples of from for all , with probability at least produces a hypothesis such that
[TABLE]
i.e., the representative submetric is efficiently learnable.
Proof.
The essence of the proof is to show that in order for to differ from by more than , then at least one threshold function other than the true thresholds for and must be in error.
Labeling samples. Lemma 24 states that sufficient labeled samples can be produced for all but one of the thresholds for each representative. Given that we must assume that we fail to produce labeled training data for one of the thresholds, the maximum gap between any pair of thresholds with sufficient training data is .
Producing a sufficiently large error in . Consider an element such that its true distance from the representative is between and . That is, and . First, notice that for to diverge from the true threshold, , by more than two threshold values, at least one threshold function hypothesis other than must be in error. Thus, even if is in error, at least one other must also be in error to produce . Thus, it is sufficient to reason about the probability that at least one threshold hypothesis, other than the correct threshold is in error.
Error probability. Our analysis of error probability takes the worst-case assumption that for every element in 292929For simplicity of notation, we use to denote the set of items with positive weight in but weight [math] in ., the hypothesis is in error. For each threshold , we use to represent the weight of under . Recall from the proof of Lemma 24 that all of the are disjoint, so . Notice that if each hypothesis is learned successfully, then it will have error probability at most to distribute on , and we assume that it always behaves badly on the weight region . In the worst case, a threshold function can be in error outside of its “bad” region resulting in a mistake of more than with probability at most . (Recall that the maximum gap between thresholds, accounting for the label generation is .) Thus, the probability that produces a value at least distant from the true threshold value for either element in a pair drawn from is at most .
∎
The final piece is to state the full generalization result including non-triviality guarantees. This theorem statement and proof are nearly identical to the exact arbiter versions, with modifications only to account for the difference in the additive error parameter.
Theorem 26**.**
Given a distance metric , and a distribution over the universe if
There exist a set of thresholds and efficient learners as in Assumption 2, and 2. 2.
* is **dense and *diffuse on ,
then there exists an efficient submetric learner which produces a hypothesis with probability greater than such that
** 2. 2.
* is *nontrivial for .
which runs in time for all .
Proof.
Claim: Algorithm 12 parametrized with a set of thresholds and learners as specified in Assumption 2 and for a dense metric is an efficient submetric learner as specified in the Theorem statement. We prove the claim with respect to each aspect of the theorem separately for clarity.
Running time. The running time argument is equivalent to the argument for the exact arbiter version, with the additional observation that labeling a sufficient number of samples requires an additional factor of samples.
Failure probability. As in the exact arbiter version, the failure probability is split evenly between the failure to produce a good set of representatives (per Lemma 6) and the failure probability of the representative submetric learners.
Overestimate error probability. The argument proceeds as in the exact arbiter version, relying on the error analysis of Lemma 25.
Nontriviality. The argument proceeds as in the exact arbiter version, with scaled to account for the additional error in the intermediate hypotheses . ∎
Finally, we re-state Theorem 20 in the too close to call model to account for the improved query complexity in label generation.
Theorem 27**.**
Sufficient labeled training data for Algorithm 12 can be produced from queries to and queries to where is the number of samples required to train a single threshold learner given a set of evenly spaced thresholds such that .
Proof.
Call the number of samples needed to train a threshold function . Recall from Assumption 1 that the threshold function learners run in time . The choice of parameters in Algorithms 8, 7 and 6 result in
[TABLE]
and
[TABLE]
Thus the threshold function learners run in time , and can use no more than that many samples.
Recall from Lemma 24 that to label a set of samples will require labeling samples via Algorithm 10. Recall from the proof of Theorem 22 that such a set of labels can be produced from queries to and queries to .
Therefore to produce labels for a universe of size , for a set of representatives of size we will require queries to and queries to . ∎
As previously noted, although the query complexity guarantees are much improved in the too close to call model, the additive error of Algorithm 12 is greater than the perceivable error threshold of . Of course, the metric designer may choose to post-process the resulting hypothesis be reducing every reported difference by , resulting in a [math]-submetric with error probability. However, this will require a corresponding increase in the diffusion parameter to maintain the same non-triviality guarantee, as in Corollary 19.2.
Summary
We have shown that in cases where the arbiter is not required to answer queries with specificity below a certain level of granularity, , that we can still achieve a small constant additive error of with a constant number of real-valued distance queries and relative distance queries. This additional model provides a good initial step towards handling imprecise arbiter decisions. Extending to other error modalities is an important direction for future work.
8 Discussion
8.1 Summary of main results
In summary, we have established a useful framework of nontrivial submetrics as approximations to the true metric for Individual Fairness. We have also shown that constructing submetrics based on threshold rounding on distances from representative elements has both good over and under-estimate error properties.
We have examined a limited, realistic query model of relative distance queries and real valued queries, and have shown how to construct submetrics on a fixed universe of individuals with a sublinear number of real-valued queries and relative distance queries. These procedures are useful both as a complete solution for offline settings, where the whole universe to be classified is known in advance, and as a way to generate training data for other fair classification schemes.
We have also shown how to learn hypotheses for a submetric which generalize well to unseen samples based on limited assumptions of efficient learnability of threshold functions. We demonstrated a technique to obtain good nontriviality guarantees in a specific setting for two dimensional Euclidean distances, and a more general framework for reasoning about the performance of a small set of random representatives with a reasonable number of queries to the human fairness arbiter to generate labeled examples for training.
With the statement of our results completed, we now pose several points of discussion and critique of the work as areas for future work and improvement.
8.2 Metric structure
Many settings where fairness is critical involve high-dimensional or unstructured data, e.g. college applications which include years of grades, test scores, free text essays and recommendations and many other features. In Section 6, we showed one special case in which the metric structure could be exploited to create more accurate submetrics with fewer representatives. How likely is it that the true metric is low-dimensional with such “nice” structure? We contend this case is more likely than it may initially appear. Consider a human fairness arbiter tasked with determining similarity for college applicants. She cannot possibly hold the entire applicant’s feature description in her working memory at once and compare it line by line with the next applicant’s. Instead, the human fairness arbiter likely has an intuitive model of what it means to be a good student, perhaps someone who is talented and has good work ethic. As she compares students, her true comparison is based on these unobservable, complex mappings of the high dimensional application to talent and work ethic, which represent her judgment criteria for similarity. Even if the human fairness arbiter cannot articulate her mapping from the high dimensional applicant information to her low dimensional representation, her judgments which reflect the low dimensional representation can still be used for triangulation. There is also an opportunity to build on prior work concerning human decision-making and categorization in other disciplines. Further cross-disciplinary inquiry is likely to be highly beneficial to producing more realistic models of how humans encode similarity judgments.
In this work, we have relied on learning methods with particular theoretical guarantees for generalization and nontriviality with the goal of stating results independent from assumptions on the form of the metric. This focus has resulted in conservative nontriviality guarantees and numbers of representatives. In practice, exploring alternative methods based on metric structure assumptions, whether or not they have theoretical guarantees on outcomes, and instead budgeting some labeled data to measure empirical error may be more practical.
8.3 Resolving disagreements between human fairness arbiters
Thus far, we have assumed that our procedures either use a single, internally consistent human fairness arbiter or that multiple human fairness arbiters agree on all queries. Multiple human fairness arbiters is likely preferable from the perspective of better capturing society’s view, and can answer relative distance queries in parallel for Algorithm 3. However, the assumption that all human fairness arbiters agree on every query is not likely to hold up in practice.
In the case of small disagreements between human fairness arbiters, (defined analogously to ) is a viable option. For example, if the ordering produced by two human fairness arbiters from a particular representative is the same, but there are inconsistencies in the real-valued queries (after any necessary scaling), will smooth out any small disagreements. Setting and to capture the varying levels of agreement can also have a similar effect in the too close to call model.
When human fairness arbiters strongly disagree, we consider this to be a situation where discussion between the human fairness arbiters, and perhaps additional external parties, is needed. If we assume that our human fairness arbiters are all fair-minded individuals (i.e., without explicitly unpalatable biases), then our interpretation of significant disagreements should be careful to acknowledge that disagreements may stem from either (1) differences in domain expertise, (2) genuine lack of consensus in society’s view of similarity for the task, (3) human or system error or bias in display of or acquisition of data, (4) other potentially serious failure modalities.
We view the potential for such disagreements as a feature, not a bug, and would be concerned if any system gathering judgments from human fairness arbiters never encountered disagreement. In the case of (1) we anticipate that there may be cases where a particular human fairness arbiter is selected precisely because she represents a unique viewpoint or has domain experience with different groups of individuals. Ensembles of human fairness arbiters with expertise in different groups of individuals may find augmenting the procedures outlined in this work with more nuanced merge and discussion steps for reconciliation between human fairness arbiters to be beneficial. In the case of lack of consensus (2), procedural fairness or other interventions may be more desirable than fairness derived from outcomes. We discuss human or system bias in Section 8.5.
A significant benefit of disagreement with a proposed submetric or individual query is that these disagreements represent specific, well-articulated cases rather than hypothetical or meta-disagreements. Our hope is that the discussion of specific cases will be more likely to result in agreement, either in the outcome or in the choice of an alternate procedure, than hypothetical cases or group-level statistics.
8.4 Selection of human fairness arbiters
Conspicuously missing from our discussion of human fairness arbiters is guidance on whom to select to be a human fairness arbiter. Our most basic requirement is that a human fairness arbiter be a “fair minded individual,” but practically speaking, this gives little indication of selection criteria. That being said, the selection of human fairness arbiters is likely to be critically important to the acceptance of any submetric produced. Our position is that selection of human fairness arbiters is a question which must be resolved at a philosophical, policy and social level. We can foresee many questions related to arbiter selection. For example, should historically disadvantaged groups be given the choice of some number of the human fairness arbiters? Is there some minimum qualification or “bias test” one must pass to be considered? Resolving, or even attempting to fully articulate such questions is well outside the scope of this work, and we anticipate that it is a significant area for future cross-disciplinary inquiry.
However, we are optimistic that selecting a group of human fairness arbiters is possible, because the learning process permits changing the set of human fairness arbiters or the merge strategy over time without “throwing away” past effort. Consider learning a separate submetric for each human fairness arbiter and merging these submetrics (either through , or any other more nuanced merging strategy). Adding or removing a human fairness arbiter is not wholly destructive to the existing submetric, although this strategy may preclude parallelizing relative distance queries. Loosely speaking, we may not be able to give good guidance up front about who should be a human fairness arbiter, but we can produce submetrics in a way that adding or removing an arbiter from the set is straightforward, allowing the metric to evolve as our understanding or opinion of who should be in the set of human fairness arbiters and how their judgments should be combined evolves. This replacement strategy may also help in cases where opinions shift gradually over time, and older arbiter submetrics may be swapped out for newer judgments to reflect shifting attitudes.
8.5 Query process and interface design
The design and process implementation for the interactions with human fairness arbiters is a significant area for future work. Problems of anchoring, particularly if many individuals are compared to the same representative, in addition to other issues with human judgment will be a significant consideration in system design [17]. Alternative query types could be explored, or alternative presentation of queries could be made to improve the consistency of answers or try to counteract implicit biases.
Of particular concern with the design of the interface is how information is presented and whether the presentation will allow or encourage implicit biases to creep into judgments. It is likely impossible to remove all signal for sensitive attributes like race or gender from the presentation of information to the judge. Indeed, there are many cases where the inclusion of sensitive information is critical to evaluating fairness. One possible way to detect and correct implicit bias would be to explicitly ask the human fairness arbiter if they believe a sensitive feature should impact a particular judgment. If they respond that it should not, then the system could spot check by asking other arbiters to evaluate the same query with as much sensitive information stripped out or changed to an alternative as possible. If the evaluations of the other human fairness arbiters indicate that removing or changing the sensitive information resulted in different judgments, then additional care could be taken to reconcile the sensitive-attribute-blind responses. This is by no means a complete solution to removing implicit bias, but we think that exploring how information is presented and in particular comparing judgments based on differing information will be critical to gathering consistent and consistently fair judgments from the human fairness arbiters.
Any judgments human fairness arbiters make based on the information presented to them will be just that: based on the information presented to them. In many cases, we might want to allow the human fairness arbiter to gather or request additional information if it is important to their judgment. For example, a human fairness arbiter evaluating a college application might see that a student took a year away from school. She may determine that additional information is needed to make any meaningful comparisons, because a year away from school for medical or family reasons is very different than a year’s suspension. Building in a way for human fairness arbiters to gather more information, and document the information they find for any later evaluations to consider, is likely to be expensive but may also be necessary to produce valid judgments.
8.6 Arbiter agreement with submetrics
Our initial assumption might be that a set of human fairness arbiters will agree with a submetric learned based on their judgments, modulo error parameters. In the case of real valued distance queries, the procedures outlined in this work will result in submetrics which underestimate real-valued distances with small error with high probability. However, with respect to relative distances, agreement is not guaranteed. For example, all of the human fairness arbiters may agree that is more similar to than , but the submetric may consider more similar to than (while still maintaining smaller real value distances) depending on the choice of representative elements.303030 This is illustrated in Figure 1, in which choosing the representative preserves the relative distance comparison between points , and ( is closer to than ) but choosing does not. If all original distances are maintained to a sufficient degree, then relative distances will also be preserved. However, when trade-offs between distance preservation and human fairness arbiter cost must be made, there is the potential to violate relative distance judgments made by the human fairness arbiter.
Although this does not technically violate the Individual Fairness definition of [4], there may be many scenarios where treating dissimilar individuals dis-similarly is just as important as treating similar individuals similarly. For example, in the case of setting taxation rates for individuals, one would likely consider treating the wealthiest and poorest individuals the same but treating the middle class differently to be unfair. Augmenting the existing Individual Fairness definition with the requirement that dissimilar individuals be treated dis-similarly is not entirely straightforward. In particular, there is no binary classifier which will maintain relative distances between three equally distant individuals. However, given the uncomfortable idea that the human fairness arbiters may not agree with the relative distances produced, it seems worthwhile to consider whether, or in which cases, it is desirable or possible to strengthen the Individual Fairness definition of [4] to capture relative distance constraints.
8.7 When arbiters agree but learning is hard
An important scenario to consider is the case in which the human fairness arbiters agree on all or most queries, but our usual learning procedures fail to produce a submetric which generalizes to unseen samples. Again, we view this failure as a feature rather than a bug as it may indicate that either (1) there are alternative learning strategies we should try or (2) that the metric is complex enough that human oversight is always needed to make fair decisions. Our model of the arbiter evaluating distances over an unobservable set of relevant attributes is very similar to the “construct space” of Friedler et al., [7]. Friedler et al. put forth a formalization of fairness in which the goal is to achieve fairness over an unobservable construct space which captures the relevant attributes (e.g., grit, talent, work ethic, etc) but our information constrained to the “observed” space. In some sense, we take the view that the arbiter is acting as a translator between these unobserved, difficult to articulate attributes and the observed features. As such, there isn’t always a guarantee that the observed features available for classification will be sufficient to capture the nuance in the arbiters’ judgments. In some sense, replacing direct human judgments with automated decisions in sensitive settings should be viewed as a privilege and not a right. Sensitive settings in which human fairness arbiters agree, but our system cannot generalize in a way that they would agree with, should be subject to significant scrutiny and the replacement of human judgment with automated decision-making should not be taken as given.
8.8 Comparison of submetrics
In this work, we have been somewhat unsophisticated in our comparisons of alternative submetrics beyond the basic worst-case additive error measure and nontriviality.
In this work we primarily consider absolute additive error. However, practical evaluation of error may be based entirely on how much an adversary could “get away with” using a submetric to derive a classifier. Suppose we are concerned an adversary will discriminate against a large subset of individuals and derives utility proportional to the difference in distances between pairs of elements where , and . A large number of small errors would allow the adversary to pull all or most members of further away from their counterparts. Alternatively, a smaller number of very large errors, so long as they are not concentrated on pairs containing a small group of individuals in , will be harder for the adversary to take advantage of, because there are many accurate distances making it difficult to “move” elements of relative to their close counterparts in . We expect that many of the error type questions we would pose for metric learning have a close analogy to the problem of selecting comparison sets in [12].
From a more constructive perspective, we might also find it difficult to compare nontriviality parameters absent understanding of how the submetric will be used. For example, a submetric which preserves distances very well between unqualified individuals but does little to distinguish qualified individuals may not be terribly helpful in deciding between qualified individuals. Developing a more nuanced model for evaluation of submetrics, both from the perspective of abuse and constructing distinguishing classifiers, will be critical to providing good guarantees on submetric use in practice.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Aurélien Bellet, Amaury Habrard and Marc Sebban “A Survey on Metric Learning for Feature Vectors and Structured Data” In Co RR abs/1306.6709 , 2013 ar Xiv: http://arxiv.org/abs/1306.6709
- 2[2] Alexandra Chouldechova “Fair prediction with disparate impact: A study of bias in recidivism prediction instruments” In ar Xiv preprint ar Xiv:1703.00056 , 2017
- 3[3] Sanjoy Dasgupta and Michael Luby “Learning from partial correction” In ar Xiv preprint ar Xiv:1705.08076 , 2017
- 4[4] Cynthia Dwork et al. “Fairness Through Awareness” In Co RR abs/1104.3913 , 2011 URL: http://arxiv.org/abs/1104.3913
- 5[5] Cynthia Dwork et al. “Learning from Outcomes: Evidence-Consistent Rankings” Manuscript submitted for publication, 2019
- 6[6] Cynthia Dwork, Ravi Kumar, Moni Naor and Dandapani Sivakumar “Rank aggregation methods for the web” In Proceedings of the 10th international conference on World Wide Web , 2001, pp. 613–622 ACM
- 7[7] Sorelle A Friedler, Carlos Scheidegger and Suresh Venkatasubramanian “On the (im) possibility of fairness” In ar Xiv preprint ar Xiv:1609.07236 , 2016
- 8[8] Andrea Frome, Yoram Singer, Fei Sha and Jitendra Malik “Learning globally-consistent local distance functions for shape-based image retrieval and classification” In Computer Vision, 2007. ICCV 2007. IEEE 11th International Conference on , 2007, pp. 1–8 IEEE
