Manuscript Offprint
arXiv:2609.17406On testing the incentive compatibility of single-parameter allocation mechanisms
Abstract
This paper is the first work at the intersection of game theory and property testing, giving algorithms and lower bounds for efficiently testing whether an allocation mechanism is incentive compatible (IC). We propose distinguishing whether a mechanism is -far from being IC, i.e., when it observes many monotonicity “violations.” Conceptually, inspired by the literature on Boolean function monotonicity testing, we construct a tester for discrete single-parameter allocation rules. Technically, our work is the first to consider monotonicity testing of vector-valued functions on the hypergrid. We give a -query algorithm to test whether a function (representing n-player allocation mechanisms) is coordinate-wise monotone versus -far from it. We also show a matching lower bound: the class of coordinate-wise monotone vector-valued functions on a Boolean hypercube or hypergrid requires queries to test whether it is -far from monotonicity, and this holds even if the tester is two-sided and allowed to make adaptive queries. Finally, we extend our upper bound to and give a tester of the same query complexity for pricing functions of allocation mechanisms. This requires overcoming the technical challenge that the path in function space to the closest IC mechanism may involve interdependent changes to both the price and the allocation rule.
1 Introduction
In the field of algorithmic game theory, mechanism design studies the derivation of rules that induce rational agents to behave in a desired way. A mechanism is a system that specifies the actions, outcomes, and payoffs for each agent, given their preferences and information. A mechanism is said to be incentive compatible if it aligns the agents' individual incentives with the mechanism's social objective, such that no agent has an incentive to deviate from the prescribed strategy. Carefully considering and reasoning for strategic behavior has played a significant role in the design and analysis of modern algorithms and infrastructure, especially with the advent of the internet (Roughgarden, 2016), and has led to the flourishing of the field of mechanism design.
However, nowadays, an increasing array of downstream applications of mechanisms has been operating within environments characterized by partial or obscured transparency, most of the times by virtue of the sheer intricacy and computational intensity of the implemented resource allocation mechanisms. In this light, and in the era of complex infrastructure and massive computation, a key concern remains unaddressed:
Question 1. Is a mechanism that players engage in truthful (even on most inputs) or not?
Simply put, how can participants efficiently verify that an allocation mechanism they participate in—and to the internals of which they do not have access to—is actually truthful? This question forms the focal point of our paper.
A prime example of the significance of probing the incentive compatibility (IC) of black-box mechanisms—as opposed to trusting that mechanisms are out-of-the-box guaranteed to be IC—arises from the allegations of anti-competitiveness and non-truthful behavior brought by the US Department of Justice (2023), illustrating that non-IC mechanisms may have severe real-world implications: distorting market incentives, harming participants, and undermining the economic fairness of allocation mechanisms. This paper initiates the study of efficiently testing whether a black-box allocation mechanism is truthful to some accuracy . More specifically, our investigation is inspired by and closely follows the extensive literature on property testing.
In property testing, one is interested in designing a fast randomized algorithm (called a tester) to distinguish if an input object has some property , or is far from any object with this property. In particular, in the model we hereby adopt, the algorithm only has query access to the object, and the goal is to develop a tester that makes as few queries as possible, thereby being efficient.
A natural question one might ask is: why not test whether the mechanism conforms to exact IC, and reject it if it does not? The reason is that, in the property testing light, such a test is highly inefficient from a computational standpoint—intractable one might say—intuitively because, e.g., in the case of discrete bids, one would have to test every single combination of bids to verify that the mechanism is exactly IC (there might be a single violation of incentive compatibility in a hidden combination of bids that leads to untruthful pricing or allocations); we call such deviations from IC principles, "violations." Furthermore, besides the utter inefficiency of such a quest, in the key application we have in mind where the allocations are black-box for a good reason (e.g., for problems whose optimal—or even approximate—welfare allocation is computationally taxing to find out), performing all these oracle queries would put a significant strain on outside computational resources. The query complexity hardness of exactly testing whether an allocation rule x is IC follows roughly from ideas inspired by the traditional principles of property testing literature. As a matter of fact, as we will later see that our lower bounds establish (see, e.g., Informal Theorem 1 and set ), it is indeed hopeless to aim for the detection of just a single violation of incentive compatibility in the whole binary bid space of an auction, as such a quest would necessitate, even under adaptive two-sided testers, exponential query complexity, on the order of .
This paper is the first, then, to tackle the problem of efficiently verifying whether a given allocation mechanism with black-box access is ( -)close to some incentive-compatible mechanism, or far from any IC mechanism.
A mechanism is called dominant-strategy incentive-compatible (DSIC), if and only if, for all and any bids by the other users , the best action for the user is to truthfully report their private value, i.e., for all , it holds that . The following is a crisp characterization of all implementable single-parameter DSIC mechanisms, due to Myerson.
Lemma 1.1 ((Myerson, 1981)). An allocation rule for a set with a total order can be implemented (i.e., there exists an appropriate payment rule that makes the pair of the allocation and payment rule truthful) as a dominant-strategy incentive-compatible (DSIC) mechanism, if and only if
We call the above a coordinate-wise monotone function. Under the normalization , the payment rule must be , where the integral is a Riemann–Stieltjes integral.
Myerson’s lemma, therefore, gives an equivalence between incentive compatibility and coordinate-wise monotonicity. It additionally gives a special form that the normalized payment rule has to obey. Note that the payment rule has this exact form in the case where bids are continuous, and when they are in a discrete space, it corresponds to the maximum payment; we will explore in full detail the structure of these rules in the core of the paper, and will not bother with this distinction for the purposes of this introductory exposition.
The first step towards looking at how to test if a mechanism is incentive-compatible is to understand coordinate-wise monotonicity. Already, the reader might wonder why testing coordinate-wise monotonicity of a function does not simply reduce to testing that for each bit , the output of is monotone in bit . Here is a counterexample that shows why such an approach would fail. Consider and defined as per and . This function is coordinate-wise monotone, but, if one were to look at only one of the two output bits, the result would not be monotone. Indeed, for , we would always have . That is, if we fix all but coordinate of the input, the function obtained by looking only at the -th output bit is monotone.
Since the center of our focus in this work will revolve around vector-valued functions on a hypergrid, we will restrict our attention to the discrete case, as an important first step into the venture of property testing and game theory. At the same time, most common regimes consist of allocation rules that concern combinatorial cases, see, e.g., Roughgarden, 2016 Roughgarden, 2016. In the discrete case, even after this normalization, a coordinate-wise monotone allocation need not have a unique price function such that the pair is DSIC. Indeed, if we allow the prices to be real-valued, there are infinitely many functions that would result in an IC mechanism. However, the behavior of any such is tightly related to the "jumps" in the allocations . Formally, our setting here will be to examine vector-valued functions of the form for the allocation rule, and for the joint allocation-price rule, functions of the form .
Up to this point, we have almost completely translated the problem to the language of a property testing one. The only definition we are missing is the -far part. For this, we define the distance of
For example, imagine that the bid space has been discretized. Note that such a restriction is not extremely strong, as we have the slack of distinguishing -far monotone mechanisms, hence providing natural discretization intervals. However, our focus will not be on such a correspondence.
a mechanism to IC (in general, we will refer to it as "distance to monotonicity") as the minimum distance of an allocation rule x to any IC mechanism, i.e., the minimum number of corrections of "violations" in the allocation function needed to be made, in order for the resulting mechanism to be (exactly) IC. In an analogous way, the distance to monotonicity of a joint allocation-price rule is defined to be the minimum distance to any mechanism that is jointly correct, i.e., both allocations and prices are set according to a DSIC rule. In order not to clutter the notation, we will not give the full definition here, but later in Section 3.3.
1.2 Main Contributions
Our main contributions with this work can be summarized in two key pillars as follows:
- Conceptually, we propose a novel approach of efficiently, approximately verifying the incentive compatibility of allocation mechanisms with few queries. With this, we hope to open up a new area at the intersection of mechanism design and property testing resulting in many fruitful avenues of research.
• Technically, we make the first known contribution to monotonicity testing of vector-valued Boolean functions, and vector-valued functions on a hypergrid. We show that the class of such coordinate-wise monotone functions is "hard to test" (compared to standard results of the property testing literature) and we derive optimal upper and lower bounds to do so.
Before presenting our results, note that a tester can be one or two sided, and adaptive or non-adaptive. We provide definitions of these in Section 2 and sketch them here. Roughly speaking a tester A for a property gets as input query access to a function f and must have the following properties: if f is "far" from any function in , the algorithm should reject with high probability. If A is one-sided, it must always accept when . If A is two-sided, it must accept f with high probability when . If A is non-adaptive, the algorithm makes all its queries at once in parallel before deciding to accept or reject. However if A is adaptive, it's i-th query can depend on all the previous queries as well the answers received for them.
We will now present informal versions of our main theorems, whose full versions can be found in Theorems 3.5, 3.6, 3.10 and 3.13, respectively. We first look at the complexity of testing coordinate-wise monotonicity.
Informal Theorem 1. Any two-sided adaptive tester for coordinate-wise monotonicity must have query complexity .
Informal Theorem 2. There exists a one-sided non-adaptive tester for coordinate-wise monotonicity with query complexity .
Using the insights we get from testing coordinate-wise monotonicity, we tackle the more challenging task of testing incentive-compatibility. We then give two testers for DSIC mechanisms. First, we show that if computational complexity is not a consideration—but rather oracle queries are—then an algorithm of ours obtains a near-optimal (because of our lower bound in Informal Theorem 1) sample complexity (in Informal Theorem 4). However, with polynomial computational complexity, we identify a tester that does not asymptotically achieve the near-optimal sample complexity shown by Informal Theorem 1 (in Informal Theorem 3). We leave the issue of potentially
Π should be thought as a set of function closing this gap (or providing a formal separation of the two regimes) as a very interesting future direction of study in the new area of literature that we initiate.
Informal Theorem 3. There exists a one-sided tester for DSIC mechanisms (including prices) with query complexity . The running time of the tester is .
Informal Theorem 4. There exists a one-sided tester for DSIC mechanisms (including prices) with query complexity . The running time is .
1.3 Techniques
1.3.1 Lower bounds
Our lower bounds concern the case of coordinate-wise monotonicity testing for vector-valued Boolean functions (i.e., a hypercube), and since the case of a hypergrid contains as a special case that of the hypercube, these lower bounds also apply then, and also even if we also test prices (which we do in the above general algorithm we gave). The tester we will analyze in Section 1.3.2 matches the lower bound, hence it is optimal to test both allocations and prices when prices are derived from Boolean allocations, and even in the most general case of completely generic discrete allocation mechanisms (hypergrid allocations), up to log factors.
We show that testing whether a function is coordinate-wise monotone or -far from it is hard, even for a two-sided adaptive tester. Before rising to the full generality of this claim, let us first consider (as an instructive warm-up) a simpler case of our lower bound against one-sided non-adaptive testers, to give a better intuition as to why coordinate-wise monotonicity might be a hard-to-test property.
Lemma 1.2. For every , any one-sided non-adaptive -tester for coordinate-wise monotonicity must have query complexity .
The key point is that, to show the hardness, we rely on the following lemma, whose formal version will be presented in Theorem 3.3, and roughly arises from a characterization of coordinate-wise monotonicity:
Lemma 1.3 (informal). A one-sided -tester for coordinate-wise monotonicity cannot reject a function , unless it queries the two end points of an edge violating coordinate-wise monotonicity.
In order to proceed, we extend the above lemma (presented in Theorem 3.2) to one that shows that, even with two-sided adaptive testers, querying an entire set of points does not help unless these specifically include a collection of at least end points of edges, and we prove our stronger lower bound, referenced above as Informal Theorem 1, and formally shown in Theorem 3.5.
The proof of our lower bound is inspired by the technique used by Chockler and Gutfreund (2004), who proved a lower bound of against two-sided adaptive testing of k-juntas.
More specifically, we define two randomized processes, and , which reply to the adaptive queries of the tester while building a function . The function built by ,
The rest of the proof that we develop in the main text goes through a classic lower bound technique against one-sided testers (see, e.g., Fischer et al., 2002).
A k-junta is a function on the hypercube that depends on at most k variables.
during this procedure, is -far from coordinate-wise monotonicity with very high probability while the function built by is always coordinate-wise monotone. In particular, starts by sampling a small random set S of edges along which it places violations to coordinate wise monotonicity as it replies to the algorithm's queries.
Therefore, a two-sided tester for coordinate-wise monotonicity should reject with high probability when interacting with but accept with high probability when interacting with . However, we argue that an algorithm can't distinguish from as long as it hasn't queried the two end points of an edge in . Unlike Chockler and Gutfreund (2004), we are able to make our lower bound depend on . There are two reasons for this: first, the way we define the behavior of depends on and we argue in Theorem A.1 that if an algorithm only makes queries, it has queried the two end points of at most edges. Thus, if the algorithm makes few queries, it's unlikely to hit both end points of an edge in when interacting with .
1.3.2 Upper bounds
We start by demonstrating the key ideas to get our one-sided non-adaptive tester for coordinate-wise monotonicity.
Theorem 1.4. There exists a one-sided non-adaptive tester with query complexity that tests if a function is coordinate-wise monotone or -far from monotonicity.
In our tester, we turn to the analysis of Dodis et al. (1999), where the authors were interested in testing monotonicity of functions , where is an ordered set, which does not apply for our setting. Specifically, given the function , we decompose the hypergrid into "lines". That is, for , , , we define the line , as the restriction for all .
We show that sampling a random "line" of the hypergrid gives a function that, in expectation, is at least far from monotonicity. We combine this with a result of Dodis et al. (1999) who gave a distribution such that if is far from monotonicity, a pair sampled from the witnesses a violation to monotonicity with high probability. Thus, if if far from being coordinate-wise monotone, the following test should reject with "good" probability: Sample a line of uniformly at random, draw and reject if . Also observe that this test never rejects when is coordinate wise monotone. Our tester then simply repeats the above test times.
Finally, we give two one-sided testers to test whether a pair , of an allocation function and a price function form a DSIC mechanism.
Theorem 1.5
• There exists a one-sided tester with query complexity to test if a pair implements a DSIC mechanism or is -far from any DSIC mechanism. This tester runs in time .
• There exists a one-sided tester with query complexity for the same task. This tester runs in time .
The tester of Theorem 1.4 is optimal (up to log factors) for testing coordinate-wise monotonicity. Hence, we use a similar idea for the joint testing of allocation rules and prices. As a reminder, given a function , we decompose it into "lines". As a corollary of the DSIC definition, we derive what it means for the "line" to obey DSIC, and show that again, if is far from being DSIC, then a randomly sampled line is at distance from DSIC in expectation. Assume we have an algorithm that test if function is DSIC or -far from being DSIC (we call such an algorithm a line tester). Then we can test if is DSIC using the work investment strategy of Goldreich (2014). Roughly speaking, we try different distance parameters : For each we sample lines of and run our line tester on each them with distance parameter . If a line is rejected by the tester, we reject , otherwise we accept. We can show that by picking the different choices of appropriately, with high probability is rejected if it is far from DSIC.
In particular, we give two different line testers, which can then be used to get the two different algorithm of Theorem 1.5.
Our first tester, which is a "learner", works by finding all the "jumps" in the allocation function x, and then guessing a DSIC function c based on the value of x and p at these points. If a is DSIC this function is a itself, otherwise a must be far from c so a and c must disagree on a randomly chosen point with high probability.
The second tester is more involved. We consider a tree binary tree of height . The root of the tree is labeled with the interval . Then, given a node , its left child is with the first half of the interval while the right child is labeled with the second half, the leafs are labeled with for each . Each node in the tree is associated with a set of DSIC functions. Roughly speaking corresponds to the set of DSIC functions which agree with for all is an interval on the path from the root of to .
As such, given , we can check with queries if this set is empty. Finally, If is DSIC then for all we have (since itself if always in ), otherwise with high probability on a randomly chosen .
Our first line tester has query complexity while our second tester uses only queries. Computing if is empty is non trivial, and takes time : we search over all possible choices of allocation , to see if there is some way to assign prices while being consistent with on the needed points (once is fixed, this is done using a linear program). This explains the difference in query complexity and running time between the two results of Theorem 1.5.
Distance and distribution. So far, we haven’t mentioned how the distance from to being DSIC is computed. One could consider the uniform distribution, that is we are interested in minimum fraction of points in where one needs to change so that the resulting function is DSIC. However, when thinking about mechanisms, it seems unlikely that the users’ valuations are distributed uniformly. Therefore, when testing if is DSIC, we will actually consider its distance to being DSIC under an unknown distribution over . That is, given what is the minimum over all DSIC functions of .
In particular, we will consider that our testers have conditional sample access to . This means we can sample but also that for each user , we can fix a vector a vector and ask for a sample conditioned on the bids of users being . This is equivalent to sampling the bid of user , conditioned on the bids of the other users being .
If one assumes bidders act independently, then is a product distribution where each is a distribution over . Note that in such a case, we do not need conditional sampling access to . Indeed for any the distribution of bids of user conditioned on the bids of the other users being some fixed vector follows . Hence, whenever we need a conditional sample for some , we can instead sample from and then look at .
A remark about -IC testing. In mechanism design, we sometimes refer to approximately truthful mechanisms, where the desideratum (in the worst-case, distribution-independent version) is for the maximum utility gain that any single player can get from deviating from the truthful strategy to be at most . However, from our results, it is not straightforward to test for -IC, and we leave this direction as a very interesting future avenue of research. The following simple example shows why we cannot hope to get -IC consequences from -far monotonicity (or vice-versa) in a meaningful way: it is possible to create instances that are far from being -IC, but with a single change of a price, can be made exactly DSIC; the reverse is also true, and intuitively, a function may be very far from any single monotone allocation rule, but still be close to being approximately IC from the point of view of any single player's deviation in their strategy space. As -IC is out of scope for the present work, we will not elaborate further on that.
1.4 Related Work
Hereby, we offer a comprehensive review of various parts of the relevant literature.
Balcan et al. (2019) use samples from agents' type distributions in a Bayesian setting to bound the average utility gain from strategic deviations over the distribution of other players' types, and, in a sample complexity manner, estimate the (Bayesian) -IC of a mechanism. The distributional assumption assists their quest. In contrast, our work seeks to uniformly and unconditionally test the distance to monotonicity; see the discussion in Section 1.3 on the relation of that to worst-case utility gains from deviating. Lahaie et al. (2018) and Deng and Lahaie (2019) focus on the perspective of systematic testing from the viewpoint of a single bidder in the specific case of a second-price auction with reserves, and derive A/B testing setups for this format, utilizing simple bid perturbations. Our work considers a significantly larger standpoint of allocation mechanisms, and thus exact testing is computationally inefficient to achieve, as highlighted in Section 1. Moreover, their work does not concern or relate to property testing, which is our predominant focus in the current paper.
The above work relates to a more general literature on learning from auctions, mostly with the goal of figuring out (optimal or almost optimal) reserve prices (Dhangwatnotai et al., 2010; Chawla et al., 2010; Cole and Roughgarden, 2014; Huang et al., 2015; Morgenstern and Roughgarden, 2015; Paes Leme et al., 2016; Roughgarden and Wang, 2016). Such work could be used to verify if the reserve price is approximately what would be expected, but we are in a much more generic setting with no guarantees that the allocation observes such a format, as described above.
Another line of work centers around designing verifiably correct auctions from the point of the auctioneer who might be interested in malicious deviations (Parkes et al., 2008; Akbarpour and Li, 2020); such work is only tangentially relevant to our focus here, since it is usually not completely general for allocation rules, but most importantly, their objective lies on trying to make following the auction be a dominant strategy of the auctioneer, hence assuming a particular utility structure for the auctioneer, who nonetheless might have other reasons to deviate from the auction's specification. We, in contrast, do not assume anything about the reason for the mechanism's deviation from IC, i.e., about the source of (reason for) violations. A now-mature line of research is dedicated to bypassing the impossibility of designing credible IC mechanisms (Akbarpour and Li, 2020) by using cryptographic commitments and multi-round auction mechanisms (Milionis et al., 2022; Chitra et al., 2023; Ferreira and Weinberg, 2020).
Our work also contributes to the literature on trust and transparency in market design. Canetti et al. (2023) study the possibility of participants verifying whether a mechanism is DSIC, and doing so without revealing that the mechanism itself (in what is called the “zero-knowledge” approach). Unlike our work, Canetti et al. (2023) abstract away from quantifying the number of queries it takes to test DSIC, or the computational complexity of testing algorithms. Relatedly, Gonczarowski and Thomas (2024) study the question of how many bits of information it takes for participants to verify that correct allocation mechanism has been used. Grigoryan and Möller (2023) study the question of market participants detecting whether the designer runs the mechanism as promised; unlike (Akbarpour and Li, 2020), and similarly to our work, they are concerned with general allocation problems and arbitrary reasons for deviations.
The other side of the literature that our work builds upon and extends is that of property testing of Boolean functions and hypergrids. Starting with Goldreich et al. (2000), extensive work has been done in that area (Batu et al., 2004; Chen et al., 2014; Chen et al., 2015; Belovs and Blais, 2016; Khot et al., 2018; Chen et al., 2017; Dodis et al., 1999; Fischer et al., 2002; Chakrabarty and Seshadhri, 2013a; Chakrabarty and Seshadhri, 2013b; Black et al., 2023), culminating in a non-adaptive algorithm with query complexity by Khot et al. (2018). To this date, there are no known adaptive testers achieving better query complexity. Non-adaptive testers have a matching (up to log factors) lower bound of queries when is a constant (Chen et al., 2017). Nevertheless, for adaptive testers, the gap is still open, since the best lower bound is (Chen et al., 2017). On the front of property testing for vector-valued Boolean functions, some works (Li, 2021; Cui and Guo, 2019) on quantum computing have been interested in various flavors of testing, e.g., for linearity; nonetheless, none of these works concern monotonicity testing (our sole focus), and other quantum testing papers (Belovs and Blais, 2015) only consider the case of univariate functions on the Boolean hypercube. As mentioned before, when testing if a function is DSIC we will consider the distance with respect to unknown distribution and we assume our tester can has conditional sample access to . This model is very similar to the distribution free model of property testing first investigated by (Goldreich et al., 1998). In this model one has query access to a function and sample access to a an unknown distribution (but one cannot ask for conditional samples). The goal is to test whether has some property or if for any function with the property we have .
Lastly, in general, results in high-dimensional hypergrid and hypercube settings has been notoriously hard to obtain. Inequalities involving vector-valued functions on the Boolean hypercube have recently been given by Beltran et al. (2023) and Eskenazis and Ivanisvili (2020), but these have no algorithmic or testing consequences known to this date, like the ones we focus on, nor do they easily translate to the hypergrid.
2 Preliminaries and Definitions
Unless stated otherwise, , and are positive integers. We denote by the set and by the set of integers . In this work we will be interested in vector-valued (or multi-output) functions, meaning their output is a vector. Some examples that we will use in this work are , , or .
Given and , we will often denote by their concatenation. That is is the string that agrees with on coordinates , has -th coordinate being , and agrees with on coordinates .
We proceed to give some basic definitions that we will later use.
Definition 1 (Monotonicity). Let and be totally ordered sets. A function is monotone if whenever .
Definition 2 (Distance between two functions). Given two functions , we define the distance between and as
Definition 3 (Distance to monotonicity). Let and be finite totally ordered sets and let . The distance of to monotonicity is
where the minimum ranges over all monotone functions .
Definition 4 (Coordinate-wise monotonicity and distance). A function is coordinate-wise monotone if, for every , , and , the scalar function
is monotone. Its distance to coordinate-wise monotonicity is
where the minimum ranges over all coordinate-wise monotone functions .
Likewise, the distance to monotonicity of a joint allocation and price rule is defined to be the minimum distance to any mechanism that is jointly correct, i.e., both allocations and prices are set correctly. So that we not clutter the notation, we will not give the full definition here, but later in Section 3.3.
We will consider two different types of testers, two-sided and one-sided testers.
Definition 5 (Two sided property tester). Consider a property . A tester for is a randomized algorithm that, given a parameter and query access to a function , satisfies the following conditions:
- accepts a function from with high probability. That is, if , then
- rejects a function that is far from with high probability. That is, if for all , then
In the above, the probabilities are taken over the randomness used by A.
Definition 6 (One-sided property tester). The definition is similar to that of a two-sided tester, except the first condition becomes: if the tester must always accept . That is, if , then .
In particular, a one-sided tester cannot reject a function x, unless, based on the queries it made it can infer that . Qualitatively, the difference between one-sided and two-sided testers might appear to be minor, but in fact, there are strong separations between achievable outcomes for the two kinds of testers, see, e.g., the reference by Roughgarden, 2021 Roughgarden, 2021.
Another distinction is to consider adaptive and non-adaptive testers. Letting denote the -th queried made by the tester, the way an adaptive tester picks its -th query can be viewed as a randomized mapping from to . On the other hand, if is non-adaptive, then the choice of isn't allowed to depend on the answer to the queries . So, we can view a non-adaptive tester as performing all its queries at once, then receiving for each of them, and finally choosing to accept or not.
3 Main Results
3.1 Lower bounds for coordinate-wise monotonicity
We begin our study by considering the case of binary bids and binary allocations, where we show a lower bound of against two-sided adaptive testers. To give better intuition for the reader as to why testing coordinate-wise monotonicity might be harder (as in, requiring more queries) than might be expected from standard property testing results, we first consider the simpler case of an lower bound for one-sided non-adaptive testers.
Definition 7 (i-twin). Let and let . The i-twin of , denoted , is the unique element of that differs from only in the i-th coordinate, i.e., it has that coordinate flipped.
Given , we define . So is the set edge of the hypercube in the -th direction, where the first element of the edge is always the one with a -th bit of 0. Finally, given , we define .
Definition 8 (Viol(i)). Let and . We define
Given , we define .
When it is clear from context, we will drop the subscript from . We will often refer to an edge of the hypercube as violating if but , where is the unique coordinate that differ on.
Using the definition of coordinate-wise monotonicity, the following lemma follows easily.
Lemma 3.1. Let , . We say that is S-monotone if and only if . is coordinate-wise monotone if and only if it is -monotone.
We use the distance from Definition 4; a change at one input counts once even if several output coordinates change there.
3.1.1 One-sided non-adaptive lower bound
As a warm-up, we first present our lower bound against one-sided, non-adaptive testers.
Theorem 3.2. Let and . Let be a one-sided non-adaptive tester that rejects with probability at least when . Then, must have query complexity .
The following lemma which shows that coordinate-wise monotonicity is a very local property, will be key in our lower bound. This is in contrast with monotonicity testing, where a one-sided algorithm can reject as long as it finds with , even if are not neighbors.
Lemma 3.3. A one-sided tester for coordinate-wise monotonicity, can't reject x unless it queried the two endpoints of an edge in Viol([n]).
Proof. Consider a one-sided non-adaptive tester for coordinate-wise monotonicity. Say that made queries to an unknown function , and has learnt a set of pairs . Furthermore, assume that the algorithm hasn't queried both end points of any edges in . Then, we can define function with the following properties:
•
• For all , we have . That is, is consistent with on points queried by .
Assuming such a function exists, since is one-sided, it cannot reject since it could be coordinate-wise monotone, which proves the lemma. We define on all unqueried points as and for all queried points , we define .
We now show that is coordinate-wise monotone. Let . And let be an edge in the -th direction, we claim we always have . We consider several cases:
-
Case 1: Both were queried by . Then, and , but didn't query any violating edge, so we must have . So there is no violation along that edge.
-
Case 2: Neither were queried by . Then, we defined and , so there is no violation along the edge.
-
Case 3: was queried by but not . Then, we have . So, no matter what is, we must have . Hence, there is no violation along that edge.
-
Case 4: was queried by but not . Then, we have . So, no matter what is, we must have . Hence, there is no violation along that edge.
Thus, y is coordinate-wise monotone, as claimed. ☐
We will also use the following lemma by Chockler and Gutfreund (2004).
Lemma 3.4 (Chockler and Gutfreund, 2004). Given a set , we have
In particular, given a set Q of q points from the hypercube, there are at most q - 1 different i such that and were queried.
We can now prove the lower bound of Theorem 3.2.
Proof. Let be a one-sided non-adaptive tester for coordinate-wise monotonicity with query complexity . Given unknown function , must reject with probability at least if is far from coordinate-wise monotone and if is coordinate-wise monotone it must always accept. We will show .
For every , we define function as follow: For all :
• For all , .
• .
We have the following easy to see properties about : All violations are along edges in the -th direction , and is at distance from coordinate-wise monotonicity.
By Theorem 3.3, we know can reject if and only if it queries the two end points of some edge in . Since is non-adaptive, we can assume it samples its randomness, makes all the queries and finally decides whether or not to reject the function. So, let denote the randomness used by , and be the set of queries made by the algorithm when the randomness is . We have:
In particular, there is a specific fixing of the randomness to , such that:
That is, . So by Theorem 3.4, we must have . That is, must make at least queries, as claimed.
3.1.2 Two-sided adaptive lower bound
We defer to Section A.1 the proof that, perhaps surprisingly, one cannot do better even with a two-sided adaptive algorithm. Specifically, the theorem whose proof we defer is the following:
Theorem 3.5. Let and . Let be a two-sided adaptive tester that rejects with probability at least when and accepts with probability at least when . Then, must have query complexity .
3.2 Testing coordinate-wise monotonicity (upper bounds)
In this section, we consider the task of testing coordinate-wise monotonicity when bids can be integers between 0 and m, and allocations can be between 0 and d. Our goal is to prove the following theorem:
Theorem 3.6. Given a function and , there exists a one-sided non-adaptive tester with query complexity to test if is coordinate-wise monotone or .
The above result shows that one cannot hope to get a tester with sub-linear dependency on . For coordinate-wise monotonicity the dimensions are independent, which isn't the case for monotonicity. Understanding the interactions between the dimensions of the hypercube played a key role in Khot et al. (2018), who gave the state of the art monotonicity tester. Their algorithm is a one-sided non-adaptive tester for the monotonicity of functions using oracle queries.
To this end, we first define "lines" for the hypergrid of our vector-valued functions.
Definition 9 (Lines of ). Let , and consider a function . Let , , , the line is defined as
The set of -lines of is the set .
The below corollary follows from the definition of coordinate-wise monotonicity.
Corollary 3.7. Consider a function . For a set , we say that is -monotone if for all , all the -lines of are monotone. is coordinate-wise monotone if and only if it is -monotone.
We will use the following result from Dodis et al. (1999) to define a distribution on pairs such that, if a function is far from monotone, a sampled pair detects a violation with sufficiently high probability.
Lemma 3.8 (Dodis et al., 1999). Let , let be a finite totally ordered set, and consider a function . If is sampled according to of Eq. (1), then
for an absolute constant C. To define , let be the largest integer such that divides the positive integer . Then is the uniform distribution over
Based on this lemma, the tester we consider is the following one:
Algorithm 1 One-sided non-adaptive coordinate-wise monotonicity tester for .
Input: Distance parameter and query access to .
1: for to do
2: Sample uniformly at random.
3: Select pair according to the distribution of Eq. (1)
4: if then
5: Reject .
6: Accept .
To show our tester works, we will need the following crucial lemma, the proof of which we defer to Section A.2, and after which we can complete our proof.
Lemma 3.9. Let be -far from being coordinate-wise monotone. If we sample a line uniformly at random, its expected distance to monotonicity is at least . That is, .
Proof of Theorem 3.6. The query complexity is , and a coordinate-wise monotone function is never rejected.
Now let be -far from coordinate-wise monotonicity. By Theorem 3.8, after sampling , the pair witnesses
with probability at least . Since the line is uniform, Theorem 3.9 implies that the rejection probability in each iteration is at least
Thus the probability of failing to reject is at most
3.3 Testing mechanisms
We now consider a richer model of functions, . That is, we view the function as a pair of functions , where describes the allocation to each bidder and describes the price they each pay. In particular, for , we denote by the pair .
As mentioned earlier, in this setting it might not make sense to consider the distance under the uniform distribution, but rather an arbitrary distribution over . In particular, it seems unlikely that each bidder has the same distribution of bids. Thus, we will consider that our algorithm has sample access to the distribution . We will consider a model where we can ask for conditional samples from , that is we can ask for a sample from conditioned on the bids of bidders.
We begin this section by the definitions needed to understand allocation functions and the correct price associated with them.
Definition 10 (Valid price function). Let be a monotone function. Let
records the bids for which we observe a "jump" in and 0.
Let , writing , where , we denote by the index of the unique with . Note that in the above, we always have .
Then, a valid price function for is any function such that there exists values where:
• For any , , and
• for all , we have
In particular, given a valid price function is uniquely defined by the values , since given we can compute each as
Furthermore, observe that we always have and for any we have , that is is the same as the price at the smallest with .
Given a function , a valid price function for is any function , such that for all , , , we have that
corresponds to a valid price function for .
The above definition is the discrete DSIC characterization under the normalization . We thus have the following definition of DSIC.
Definition 11 (DSIC function). A function is said to be DSIC if and only if :
• x is coordinate wise monotone.
• p is a valid price function for x.
Finally, the distance to being DSIC under a distribution D is given as follows:
Definition 12 (Distance to DSIC). Let . Let . Let be a distribution over , the distance of to being DSIC under , denoted can be expressed as
where the minimum ranges over all coordinate-wise monotone functions and all valid price functions for .
Note that under the above definition we can have , but not being DSIC. In such a case, the testers we present might reject even if its distance to DSIC is 0 under .
The main idea of our testers is to decompose a into its "lines", and consider each line as a separate function a to test.
Definition 13 (Lines of ). Consider a function . Let , , . The line is described in two parts as and .
In particular for , we have
where and .
The set of i-lines of is the set .
As mentioned before, we will assume that we have conditional sampling access to D. This corresponds to fixing the bids of bidders, and sampling the bid of the remaining bidder.
Definition 14 (Line distribution of ). For , , and , define
Definition 15 (Projection of to a line). Consider a distribution over given , we define its projection by to be the distribution over defined as:
In the degenerate case where , we simply define to be the uniform distribution over . However, note that our algorithm will never ask for samples from in this case.
Hence, we will assume that given , our algorithm can get samples from .
Using the above definitions, we defer the analysis of the tester to Section A.3 for brevity of exposition. The interested reader can refer to that section for the full details. The broad idea is to use the following tester (Algorithm 2) that we devise for a "line" of the hypergrid that operates using binary search to identify potential points of disagreement.
Algorithm 2 One-sided adaptive DSIC tester for under distribution .
Input: Distance parameter , sample access to a distribution over and query access to .
1: .
2: for to do
3: Perform binary search to try to find the smallest with .
4: if such a value is found then
5: Record it as and add to .
6: Write , such that . And let .
7: if then
8: reject .
9: for to do 10: if then 11: Reject . 12: Let and add to . 13: if or then 14: Reject . 15: Consider the (monotone) function defined as: where is the largest with . 16: For any , denote by the index of the unique such that . Consider the valid price function for defined as: . 17: for to do Sample a point from and query . 18: if then 19: Reject . 20: Accept .
Then, the formal theorem that we will prove in Section A.3 follows:
Theorem 3.10. Given an allocation function , conditional sampling access to a distribution over , and , there exists a one-sided tester with query complexity
to test if is DSIC or . The tester uses conditional samples and runs in time under exact unit-cost arithmetic, charging time per query or sample.
The tester we consider to prove the above theorem is the following one:
Algorithm 3 One-sided DSIC tester for under distribution .
Input: Distance parameter , query access to and conditional sampling access to .
1: Let be Algorithm 2. Let .
2: Let .
3: for to do
4: Repeat times:
5: Sample . Sample uniformly at random.
6: Fix and .
7: Run twice independently on , with sample access to the distribution and distance parameter .
8: if rejected at least once then
9: Reject .
10: Accept .
3.4 A tester with better query complexity
In this section, we present the key ideas of our DSIC tester for functions with better query complexity than Algorithm 2 whose query complexity and running time are given in Theorem A.6. The query complexity of the tester is . However, this tester has a worse running time than the tester presented before, in particular it runs in time up to polynomial factors. Using this tester, we can achieve a DSIC tester with query complexity for functions .
More specifically, given , we can assume is a power of 2. Indeed, if isn't a power of two, we can proceed as follows, let . Then . So, we extend to a function
by setting
Likewise, we extend the distribution over to a distribution over by setting
It’s easy to see that and we can easily simulate query access to by querying . Hence, from now on, we assume for some and consider a binary tree of depth .
Each node in the tree corresponds to an interval , where the leafs of the tree correspond to the intervals . For simplicity we might sometimes refer to a leaf labeled with as simply being labeled with .
For each node we keep track of a set of DSIC function. Given a node with parent , the set depends on the sets as well as a constant number of extra queries made to . Hence for any leaf , one can compute using queries.
In particular, the tree is formally defined as follow:
Definition 16 (Tree ). Assume , where . is a binary decision tree of height .
The root of is labeled with . Then if a node is labeled with an interval , its left child is labeled with (the first half of the interval) and the right child with with (the second half).
For each internal node u we will consider two sets of functions these are sets of DSIC functions. The leaves of the tree are only labeled with an interval . The intervals are defined in a top-down fashion as follow:
• The root is labeled with
This is simply the set of DSIC function consistent with a on 0 and m.
• Then for an internal node , we define
That is, we restrict to the functions which agree with a on the two middle points of u.
• For an non-root node with parent , we set .
The proof of correctness of this second tester is more challenging than the one of Algorithm 2. The key properties of are captured in the following two theorems. They relate the distance of to being DSIC under a distribution to the probability that a leaf of the tree, where , is such that .
Theorem 3.11. Consider a function such that is DSIC. Then, for any node of , we have . Furthermore, if is an internal node, we also have .
Theorem 3.12. Let be a distribution and consider a function . If , then in the tree we have
The proof of the above two theorems can be found in Section A.6. As such, our tester for functions simply samples many and rejects if for any of the sampled points . Note that checking if is a non trivial task, in particular to solve we problem, we solve many linear programs. This explains the running time of our algorithm.
Using this tester as a subroutine, we can obtain the following theorem :
Theorem 3.13. Given an allocation function , conditional sampling access to a distribution over , and , there exists a one-sided tester with query complexity
to test if is DSIC or . The tester uses conditional samples and runs in time
under the unit-cost convention of Theorem 3.10.
The proof of the above theorem, as well the formal description and analysis of our second DSIC tester for functions can be found in Section A.7.
4 Conclusion and Future Directions
This paper opens up a new area, the intersection between two fields, those of algorithmic game theory and property testing. In this work, we investigated the hardness of testing whether a mechanism is IC or -far from any IC mechanism and gave a one-sided adaptive tester for this task. We also showed that testing whether a function is coordinate-wise monotone or -far from it requires queries, even for a two-sided adaptive tester, and gave an algorithm with a matching upper bound.
We now present a few open questions arising from this new area that we believe would be well-motivated for future research:
- Recall that one of our one-sided DSIC testers for functions with query complexity is optimal (up to log factors) when it comes to query complexity, but it has exponential running time. We also gave a tester with polynomial running time but query complexity
Can this computational gap be closed, or is there a provable separation? If the latter is true, this would enter into the (few) separations known in computational learning theory.
• Our second one-sided DSIC tester had query complexity . Can we also get a tester with complexity ? Such an improvement would be well-motivated in a setting with a lot of players (dependent on dimension ) and few items (dependent on dimension ). We conjecture this to be true: Pallavoor et al. (2017) gave a one-sided tester for the monotonicity of functions with queries. Hence, we could hope that such an approach leads to a tester with no dependency on . However, Pallavoor et al. (2017) crucially rely on the definition of distance under the uniform distribution to prove the correctness of their algorithm, whereas we would like it with respect to an unknown distribution .
Acknowledgments
This research was supported in part by NSF awards CNS-2212745, CCF-2212233, DMS-2134059, and CCF-1763970. Jason Milionis' research was also supported by an Onassis Foundation Scholarship and an A.G. Leventis educational grant.
References
Akbarpour, Mohammad and Shengwu Li (2020). “Credible Auctions: A Trilemma”. In: Econometrica 88.2, pp. 425–467. DOI: https://doi.org/10.3982/ECTA15925. eprint: https://onlinelibrary.wiley.com/doi/pdf/10.3982/ECTA15925. URL: https://onlinelibrary.wiley.com/doi/abs/10.3982/ECTA15925.
Balcan, Maria-Florina, Tuomas Sandholm, and Ellen Vitercik (2019). “Estimating Approximate Incentive Compatibility”. In: Proceedings of the 2019 ACM Conference on Economics and Computation. EC '19. Phoenix, AZ, USA: Association for Computing Machinery, p. 867. ISBN: 9781450367929. DOI: 10.1145/3328526.3329628. URL: https://doi.org/10.1145/3328526.3329628.
Batu, Tugkan, Ravi Kumar, and Ronitt Rubinfeld (2004). “Sublinear algorithms for testing monotone and unimodal distributions”. In: Proceedings of the Thirty-Sixth Annual ACM Symposium on Theory of Computing. STOC '04. Chicago, IL, USA: Association for Computing Machinery, pp. 381–390. ISBN: 1581138520. DOI: 10.1145/1007352.1007414. URL: https://doi.org/10.1145/1007352.1007414.
Belovs, Aleksandrs and Eric Blais (2015). “Quantum Algorithm for Monotonicity Testing on the Hypercube”. In: Theory of Computing 11.16, pp. 403–412. DOI: 10.4086/toc.2015.v011a016. URL: https://theoryofcomputing.org/articles/v011a016.
Belovs, Aleksandrs and Eric Blais (2016). “A polynomial lower bound for testing monotonicity”. In: Proceedings of the Forty-Eighth Annual ACM Symposium on Theory of Computing. STOC '16. Cambridge, MA, USA: Association for Computing Machinery, pp. 1021–1032. ISBN: 9781450341325. DOI: 10.1145/2897518.2897567. URL: https://doi.org/10.1145/2897518.2897567.
Beltran, David, Paata Ivanisvili, and Jos'e Madrid (2023). “On sharp isoperimetric inequalities on the hypercube”. In: URL: https://api.semanticscholar.org/CorpusID:257496206.
Black, Hadley, Deeparnab Chakrabarty, and C. Seshadhri (Nov. 2023). “A d1/2+o(1) Monotonicity Tester for Boolean Functions on d-Dimensional Hypergrids*”. In: 2023 IEEE 64th Annual Symposium on Foundations of Computer Science (FOCS). Los Alamitos, CA, USA: IEEE Computer Society, pp. 1796–1821. DOI: 10.1109/FOCS57990.2023.00110. URL: https://doi.ieeecomputersociety.org/10.1109/FOCS57990.2023.00110.
Canetti, Ran, Amos Fiat, and Yannai A. Gonczarowski (2023). Zero-Knowledge Mechanisms. arXiv:2302.05590 [econ.TH]. URL: https://arxiv.org/abs/2302.05590.
Chakrabarty, Deeparnab and C. Seshadhri (2013a). “An Optimal Lower Bound for Monotonicity Testing over Hypergrids”. In: Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques. Ed. by Prasad Raghavendra, Sofya Raskhodnikova, Klaus Jansen, and José D. P. Rolim. Berlin, Heidelberg: Springer Berlin Heidelberg, pp. 425–435. ISBN: 978-3-642-40328-6.
Chakrabarty, Deeparnab and Comandur Seshadhri (2013b). “Optimal bounds for monotonicity and Lipschitz testing over hypercubes and hypergrids”. In: Proceedings of the forty-fifth annual ACM symposium on Theory of computing, pp. 419–428.
Chawla, Shuchi, Jason D. Hartline, David L. Malec, and Balasubramanian Sivan (2010). “Multi-parameter mechanism design and sequential posted pricing”. In: Proceedings of the Forty-Second ACM Symposium on Theory of Computing. STOC '10. Cambridge, Massachusetts, USA: Association for Computing Machinery, pp. 311–320. ISBN: 9781450300506. DOI: 10.1145/1806689.1806733. URL: https://doi.org/10.1145/1806689.1806733.
Chen, Xi, Anindya De, Rocco A. Servedio, and Li-Yang Tan (2015). “Boolean Function Monotonicity Testing Requires (Almost) n 1/2 Non-adaptive Queries”. In: Proceedings of the Forty-Seventh Annual ACM Symposium on Theory of Computing. STOC '15. Portland, Oregon, USA: Association for Computing Machinery, pp. 519–528. ISBN: 9781450335362. DOI: 10.1145/2746539.2746570. URL: https://doi.org/10.1145/2746539.2746570.
Chen, Xi, Rocco A. Servedio, and Li-Yang Tan (2014). “New Algorithms and Lower Bounds for Monotonicity Testing”. In: 2014 IEEE 55th Annual Symposium on Foundations of Computer Science, pp. 286–295. DOI: 10.1109/FOCS.2014.38.
Chen, Xi, Erik Waingarten, and Jinyu Xie (2017). “Beyond Talagrand functions: new lower bounds for testing monotonicity and unateness”. In: Proceedings of the 49th Annual ACM SIGACT Symposium on Theory of Computing. STOC 2017. Montreal, Canada: Association for Computing Machinery, pp. 523–536. ISBN: 9781450345286. DOI: 10.1145/3055399.3055461. URL: https://doi.org/10.1145/3055399.3055461.
Chitra, Tarun, Matheus V. X. Ferreira, and Kshitij Kulkarni (2023). Credible, Optimal Auctions via Blockchains. arXiv: 2301.12532 [cs.GT].
Chockler, Hana and Dan Gutfreund (2004). “A lower bound for testing juntas”. In: Information Processing Letters 90.6, pp. 301–305. ISSN: 0020-0190. DOI: https://doi.org/10.1016/j.ipl.2004.01.023. URL: https://www.sciencedirect.com/science/article/pii/S0020019004000833.
Cole, Richard and Tim Roughgarden (2014). “The sample complexity of revenue maximization”. In: Proceedings of the forty-sixth annual ACM symposium on Theory of computing, pp. 243–252.
Cui, Jingyi and Jiansheng Guo (May 2019). “Quantum cryptographic property testing of multi-output Boolean functions”. In: Quantum Information Processing 18. DOI: 10.1007/s11128-019-2299-1.
Deng, Yuan and Sebastien Lahaie (2019). “Testing Dynamic Incentive Compatibility in Display Ad Auctions”. In: KDD '19. Anchorage, AK, USA: Association for Computing Machinery, pp. 1616–1624. ISBN: 9781450362016. DOI: 10.1145/3292500.3330943. URL: https://doi.org/10.1145/3292500.3330943.
Dhangwatnotai, Peerapong, Tim Roughgarden, and Qiqi Yan (2010). “Revenue maximization with a single sample”. In: Proceedings of the 11th ACM Conference on Electronic Commerce. EC '10. Cambridge, Massachusetts, USA: Association for Computing Machinery, pp. 129–138. ISBN: 9781605588223. DOI: 10.1145/1807342.1807364. URL: https://doi.org/10.1145/1807342.1807364.
Dodis, Yevgeniy, Oded Goldreich, Eric Lehman, Sofya Raskhodnikova, Dana Ron, and Alex Samorodnitsky (1999). “Improved Testing Algorithms for Monotonicity”. In: Randomization, Approximation, and Combinatorial Optimization. Algorithms and Techniques. Ed. by Dorit S. Hochbaum,
Klaus Jansen, José D. P. Rolim, and Alistair Sinclair. Berlin, Heidelberg: Springer Berlin Heidelberg, pp. 97–108. ISBN: 978-3-540-48413-4.
Eskenazis, Alexandros and Paata Ivanisvili (Oct. 2020). “Polynomial inequalities on the Hamming cube”. en. In: Probability Theory and Related Fields 178.1-2, pp. 235–287. ISSN: 0178-8051, 1432-2064. DOI: 10.1007/s00440-020-00973-y. URL: https://link.springer.com/10.1007/s00440-020-00973-y (visited on 02/05/2024).
Ferreira, Matheus V. X. and S. Matthew Weinberg (2020). “Credible, Truthful, and Two-Round (Optimal) Auctions via Cryptographic Commitments”. In: Proceedings of the 21st ACM Conference on Economics and Computation. EC '20. Virtual Event, Hungary: Association for Computing Machinery, pp. 683–712. ISBN: 9781450379755. DOI: 10.1145/3391403.3399495. URL: https://doi.org/10.1145/3391403.3399495.
Fischer, Eldar, Eric Lehman, Ilan Newman, Sofya Raskhodnikova, Ronitt Rubinfeld, and Alex Samorodnitsky (2002). “Monotonicity testing over general poset domains”. English (US). In: Conference Proceedings of the Annual ACM Symposium on Theory of Computing. Proceedings of the 34th Annual ACM Symposium on Theory of Computing ; Conference date: 19-05-2002 Through 21-05-2002, pp. 474–483. ISSN: 0734-9025. DOI: 10.1145/509907.509977.
Goldreich, Oded (2014). “On Multiple Input Problems in Property Testing”. In: Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques (APPROX-/RANDOM 2014). Ed. by Klaus Jansen, José Rolim, Nikhil R. Devanur, and Cristopher Moore. Vol. 28. Leibniz International Proceedings in Informatics (LIPIcs). Dagstuhl, Germany: Schloss Dagstuhl – Leibniz-Zentrum für Informatik, pp. 704–720. ISBN: 978-3-939897-74-3. DOI: 10.4230/LIPIcs.APPROX-RANDOM.2014.704. URL: https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.APPROX-RANDOM.2014.704.
Goldreich, Oded, Shafira Goldwasser, E Lehman, Dorit Ron, and A Samorodnitsky (2000). “Testing monotonicity”. English. In: Combinatorica 20.3, pp. 301–337. ISSN: 0209-9683. DOI: 10.1007/s004930070011.
Goldreich, Oded, Shari Goldwasser, and Dana Ron (July 1998). “Property testing and its connection to learning and approximation”. In: J. ACM 45.4, pp. 653–750. ISSN: 0004-5411. DOI: 10.1145/285055.285060. URL: https://doi.org/10.1145/285055.285060.
Gonczarowski, Yannai A. and Clayton Thomas (2024). “Structural Complexities of Matching Mechanisms”. In: Proceedings of the 56th Annual ACM Symposium on Theory of Computing. STOC 2024. Vancouver, BC, Canada: Association for Computing Machinery, pp. 455–466. ISBN: 9798400703836. DOI: 10.1145/3618260.3649737. URL: https://doi.org/10.1145/3618260.3649737.
Grigoryan, Aram and Markus Möller (2023). “A Theory of Auditability for Allocation and Social Choice Mechanisms”. In: Proceedings of the 2023 ACM Conference on Fairness, Accountability, and Transparency. FAccT '23. Chicago, IL, USA: Association for Computing Machinery, p. 518. ISBN: 9798400701924. DOI: 10.1145/3593013.3594017. URL: https://doi.org/10.1145/3593013.3594017.
Huang, Zhiyi, Yishay Mansour, and Tim Roughgarden (2015). “Making the Most of Your Samples”. In: Proceedings of the Sixteenth ACM Conference on Economics and Computation. EC '15. Portland, Oregon, USA: Association for Computing Machinery, pp. 45–60. ISBN: 9781450334105. DOI: 10.1145/2764468.2764475. URL: https://doi.org/10.1145/2764468.2764475.
Khot, Subhash, Dor Minzer, and Muli Safra (2018). “On Monotonicity Testing and Boolean Isoperimetric-type Theorems”. In: SIAM Journal on Computing 47.6, pp. 2238–2276. DOI:
10.1137/16M1065872. eprint: https://doi.org/10.1137/16M1065872. URL: https://doi.org/10.1137/16M1065872.
Lahaie, Sébastien, Andrés Munoz Medina, Balasubramanian Sivan, and Sergei Vassilvitskii (2018). "Testing Incentive Compatibility in Display Ad Auctions". In: Proceedings of the 2018 World Wide Web Conference. WWW '18. Lyon, France: International World Wide Web Conferences Steering Committee, pp. 1419–1428. ISBN: 9781450356398. DOI: 10.1145/3178876.3186047. URL: https://doi.org/10.1145/3178876.3186047.
Li, Hongwei (Apr. 2021). “Quantum Algorithms for the Resiliency of Vectorial Boolean Functions”. In: International Journal of Theoretical Physics 60. DOI: 10.1007/s10773-021-04779-z.
Milionis, Jason, Dean Hirsch, Andy Arditi, and Pranav Garimidi (2022). “A Framework for Single-Item NFT Auction Mechanism Design”. In: Proceedings of the 2022 ACM CCS Workshop on Decentralized Finance and Security. DeFi'22. Los Angeles, CA, USA: Association for Computing Machinery, pp. 31–38. ISBN: 9781450398824. DOI: 10.1145/3560832.3563436. URL: https://doi.org/10.1145/3560832.3563436.
Morgenstern, Jamie and Tim Roughgarden (2015). “The pseudo-dimension of near-optimal auctions”. In: Proceedings of the 28th International Conference on Neural Information Processing Systems - Volume 1. NIPS'15. Montreal, Canada: MIT Press, pp. 136–144.
Myerson, Roger B. (1981). “Optimal Auction Design”. In: Mathematics of Operations Research 6.1, pp. 58–73. ISSN: 0364765X, 15265471. URL: http://www.jstor.org/stable/3689266 (visited on 12/31/2023).
Paes Leme, Renato, Martin Pal, and Sergei Vassilvitskii (2016). “A Field Guide to Personalized Reserve Prices”. In: Proceedings of the 25th International Conference on World Wide Web. WWW '16. Montréal, Québec, Canada: International World Wide Web Conferences Steering Committee, pp. 1093–1102. ISBN: 9781450341431. DOI: 10.1145/2872427.2883071. URL: https://doi.org/10.1145/2872427.2883071.
Pallavoor, Ramesh Krishnan S., Sofya Raskhodnikova, and Nithin Varma (Dec. 2017). “Parameterized Property Testing of Functions”. In: ACM Trans. Comput. Theory 9.4. ISSN: 1942-3454. DOI: 10.1145/3155296. URL: https://doi.org/10.1145/3155296.
Parkes, David C., Michael O. Rabin, Stuart M. Shieber, and Christopher Thorpe (2008). “Practical secrecy-preserving, verifiably correct and trustworthy auctions”. In: Electronic Commerce Research and Applications 7.3. Special Section: New Research from the 2006 International Conference on Electronic Commerce, pp. 294–312. ISSN: 1567-4223. DOI: https://doi.org/10.1016/j.elerap.2008.04.006. URL: https://www.sciencedirect.com/science/article/pii/S1567422308000197.
Roughgarden, Tim (2016). Twenty lectures on algorithmic game theory. Cambridge ; New York, NY: Cambridge University Press. ISBN: 9781107172661 9781316624791.
Roughgarden, Tim, ed. (2021). Beyond worst-case analysis of algorithms. New York: Cambridge University Press. ISBN: 9781108637435.
Roughgarden, Tim and Joshua R. Wang (2016). “Minimizing Regret with Multiple Reserves”. In: Proceedings of the 2016 ACM Conference on Economics and Computation. EC '16. Maastricht, The Netherlands: Association for Computing Machinery, pp. 601–616. ISBN: 9781450339360. DOI: 10.1145/2940716.2940792. URL: https://doi.org/10.1145/2940716.2940792.
US Department of Justice (Jan. 2023). Office of Public Affairs — Justice Department Sues Google for Monopolizing Digital Advertising Technologies — United States Department of Justice. en. URL:
https://www.justice.gov/opa/pr/justice-department-sues-google-monopolizing-digital-advertising-technologies (visited on 02/08/2024).
A Deferred Proofs
A.1 Proof of Theorem 3.5
We first prove the following lemma for our analysis.
Lemma A.1. Given a set , we have
In particular, given a set of Q of q points from the hypercube, there is at most different edges such that both end points of the edge are in Q.
Proof of Theorem A.1. Let be the dimension of the hypercube, and be a set of points of the dimensional hypercube with . Let be the indicator vector of what point of the hypercube are in . To prove the lemma, we need to bound , where is the adjacency matrix of the dimensional hypercube. has a recursive structure, in particular, letting be the identity matrix:
The proof is by induction on n and our goal is to show that
The case where is easy. So let , and decompose , where and note that one of isn't the all 0 vector.
If is the all 0 vector by the inductive hypothesis, we get:
We have the same result if is the all 0 vector.
Otherwise, we can apply the inductive hypothesis to both and , to obtain
Let , , and assume wlog , so that we have . The expression becomes
Maximizing the right hand side yields a function value of by setting (the right hand side is convex in the domain of , and we evaluate local extrema and endpoints). Hence, we get
as claimed. ☐
Before proving Theorem 3.5, we first define different distributions of functions:
• Distribution , for each let . We set such that with probability and otherwise.
• Let , we define the distribution as follows:
– For each edge , we sample with probability . Let be the set of all sampled edges. For each if the edge was sampled, we set both and independently at random from . Else, we set as with probability and otherwise otherwise.
– For each , let . We proceed as in and set as with probability and otherwise.
Finally we define the distribution by first sampling uniformly at random and then sampling a function from .
Lemma A.2. Let . Any function sampled from is coordinate-wise monotone, and with probability at least 19/20 a function sampled from is -far from being coordinate-wise monotone.
Proof. The first part of the lemma is trivial. So, consider a function sampled from . Notice that for , we have . Consider an edge . If the edge wasn't sampled, then there is no need to change and as there is no violation along that edge. Otherwise, and are set independently at random, so with probability , we have and , making a violating edge. It's clear that for each edge in , we must change the allocation at one of the endpoints of the function to make coordinate-wise monotone. Thus, .
For each edge let be the indicator variable that records whether notices a violation or not. We have . Since all edges are independent, by Chernoff bound,
Since . Thus, with probability at most , less than edges in the -th direction are violating in . So, with probability at least , a function sampled from is far from being coordinate-wise monotone.
We can always assume , since it's the minimum distance between two non equal functions with domain
Proof of Theorem 3.5. Let . And let be a randomized adaptive, two-sided, algorithm for testing coordinate-wise monotonicity with query complexity . Wlog, we can assume that always makes exactly queries and never queries the same point twice. In our setting, when queries a point , we will answer with and sometimes when we can answer with success (so the tester knows the function isn't coordinate-wise monotone and can immediately reject). This is slight generalization of the usual setting, but clearly a lower bound in this model is a lower bound for the usual setting where a query is always replied to with .
We can view as a randomized mapping from query/answer history to for and to when . Here, can be either one of or success.
We will describe two processes , that correspond to sampling a function from and respectively, as they answer queries from . Given , is the distribution of the final query-answer history of when interacting with . That is is the query/answer produced once has finished its queries. Thus, the probability accepts a function from is
Note that must accept a function from with probability at least since all function from are coordinate-wise monotone. However, with probability at least a function from is far from coordinate-wise monotone and such functions must be rejected by the algorithm with probability at least . As such, can accept function sampled from with probability at most . Thus, the statistical difference between and must be at least . We will show that if , then the statistical difference between and is strictly less than 0.3.
The process proceeds as follows when queries , sets bit by bit. For each :
• If has already queried the -twin of , set .
• Else set as 0 or 1 uniformly at random.
Finally, answers with . After made all its queries, samples a function from uniformly at random that is consistent with the function it built so far. It's easy to see that produces a function according to the distribution .
The process proceeds as follow. First, the algorithm samples uniformly at random. Then, for each edge , we sample with probability . Let be the set of sampled edges. When queries , sets bit by bit.
• For each
– If has already queried the -twin of , set .
– Else set as 0 or 1 uniformly at random.
• If (or ) was sampled in S, then sets as 0 or 1 uniformly at random.
• Else:
– If wasn't already queried by , then sets as 0 or 1 uniformly at random.
– Else, if has already queried the -twin of , set .
Finally, if had already queried and (or ), answers the query with success. Else, it replies with .
After A made all its queries, samples a function from uniformly at random that is consistent with the function it built so far. It's easy to see that produces a function according to the distribution .
When interacts with and makes its -th query, then for each , the bit is sampled uniformly at random, or is set to if the -twin of was already queried. When interacts with , and makes its -th query, if was already queried, where was the coordinate sampled at first by the process and the edge was sampled, then the query is replied to with success. If this doesn't happen, then for each , the bit of is set according to the same process as in . In particular, if doesn't reply with success, the answer of and are indistinguishable.
Thus, conditioned on the event that never replied success to any of the queries, the distribution of query-answer histories and are identical. So, an upper bound on the statistical distance between and is the probability that that replies success to some query of .
By Theorem A.1, if perform queries, there are at most different edges such that queried both end points of the edge. initially samples , and a set of edges in and replies success only if queries and has already queried its -twin where (or ) was sampled.
Assume for contradiction . Then, queries the two end points of at most edges of the hypercube. By a Markov bound, we get that with probability at least 6/7, has queried the two end points of less than many edges in the j-th direction.
Now each edge in is independently sampled with probability . So conditioned on querying the two end points of at most many edges in the -th direction, the probability that the algorithm queries the two end points of some edge in is at most whenever . Hence, with probability at least , doesn't answer success. Thus, if , we have that the statistical difference between and is < 0.3, contradicting the correctness of . Therefore, we must have .
A.2 Proof of Theorem 3.9
We first define the line sorting operator.
Definition 17 (Line sorting operator). Consider a function . The function is defined as follows: For every , we let be where is the monotone function closest to . Finally, for , , we always have .
In particular, the line sorting operator makes all the i-lines of x monotone by mapping them to the closest monotone function, and it does so by only changing the i-th bit of x.
We now show some crucial properties of our operator:
Lemma A.3. Consider a function , . Let and . We have the following:
• For we have .
• is coordinate-wise monotone.
•
Proof. makes all the -lines of monotone, and in particular only changes the -th bit of for . As such it's obvious that for any and we have , as in only the first bits of have possibly been changed.
Since acts on independent output bits of , if was monotone, it's easy to see is monotone. As such is -monotone, which is equivalent to being coordinate-wise monotone.
Finally, note that in we always have by the first point, thus , since the definition of doesn't depend on bits of output.
We now complete the lemma's proof.
Proof of Theorem 3.9. Consider an -line of . By definition is a closest monotone function to , and hence
We have:
and
Thus, we have
A.3 Proof of Theorem 3.10
First, we will need the following result from Goldreich (2014).
Lemma A.4 (Goldreich, 2014). Let be a random variable that takes values in . Suppose . Let . Then, there exists such that .
We will also need the following two results, proofs for which can be found in Sections A.4 and A.5 respectively.
Lemma A.5. Consider a function , and a distribution over . If , then
Lemma A.6. Given a function , sample access to a distribution over , and , Algorithm 2 is an adaptive one-sided tester with query complexity
to test if a is DSIC or . The tester uses samples from and runs in time under the unit-cost convention used in Theorem 3.10.
Our algorithm and the proof of its correctness follow the one of Goldreich (2014) for what the author calls the concatenation problem. However, a key difference in our algorithm is that it picks the instances to test according to the distribution and not uniformly at random.
Proof of Theorem 3.10. Recall that the tester we consider is given in Algorithm 3. If a is DSIC, then by definition, each line is DSIC. So, T (which is a one-sided tester) never rejects at any iteration and the tester accepts a.
Otherwise, we fail to reject if all calls to accept. Combining Theorem A.6 and Theorem A.4 with our choice of , we see that there exists some such that
For this , the algorithm samples at least triples from . Thus the probability that every corresponding line is at distance is at most
Hence, with probability at least 9/10, the algorithm samples a line with . The two independent runs of Algorithm 2 on that line both accept with probability at most .
So, the algorithm rejects a with probability at least .
We now look at the query complexity of our tester. A call to Algorithm 2 with distance parameter requires queries, where
Since , every unrounded repetition count is greater than . Thus the ceilings change the following bounds by at most a constant factor.
Finally, each call to Algorithm 2 with distance parameter uses samples from . Hence the total number of conditional samples is
We use exact, unit-cost arithmetic for reported prices and charge time for each query to and each sample from or a conditional distribution . A call to with distance parameter takes time . Thus the running time is
A.4 Proof of Theorem A.5
Before proving the lemma, we will need the following result.
Lemma A.7. Let , fix , and let denote the first coordinates of and the last coordinates of the vector. We have
Proof. By the definition of , we have
If we have :
If , which implies , we get
Proof of Theorem A.5.
Consider a function and a distribution over . For , , , let be the DSIC function closest to under the distribution . That is,
We then define the functions such that for all .
Note that this is a valid definition for since each bit of the output is defined exactly once. Moreover, it's easy to see that is DSIC since all the lines of are coordinate wise monotone, and each of is a valid price function for the corresponding line of .
Since and is DSIC, we have that
Finally, using the above, we derive the lemma:
where we used Theorem A.7 in the fourth line. ☐
A.5 Proof of Theorem A.6
Proof. The tester we consider is the one given by Algorithm 2. The idea of the algorithm is the following: Given query access to , we try to find all the "jumps" in the allocation function . That is, for each we look for the smallest bid such that . We record these bids in a set . We first check if the points in reveal isn't monotone (we always have ). And that at each jump point, the increase in the price is "possible" ( ).
Finally, we build a DSIC function that agrees with a on . In particular, if a is DSIC this function will exactly be a. Otherwise, we know that a and the built function must disagree on a randomly chosen point with high probability.
The binary searches use at most queries: answers are cached, so the search stops costing new queries once all points have been queried. Querying any jump points not already cached costs at most additional queries, which is absorbed by this bound. The last loop uses queries.
It remains to prove this tester is indeed one-sided. Since is the smallest allocation for which we found a bid with , we must have , unless isn't monotone. Assume is DSIC, then is monotone. Then, for , such that there exists a bid with , we will add to . Furthermore, for in , is always the smallest bid with , and we have . Since is monotone, we always have . Because of how we define , it's not hard to see that we have . We then define and build the function . It's easy to see that is a valid price function for and thus also for . However, note that since is a valid price for , it is implicitly defined by values such that for all , we have
But, because of how is computed we have for all . So . So we if is DSIC then and , so it's clear we will accept .
Now assume is far from DSIC under . If we haven't rejected by the end of the second for loop, we consider the function . Since is monotone and is a valid price function for , this is a DSIC function. However, since this implies
We sample according to and check this condition times, so the tester fails to reject with probability at most . Hence, this is a one-sided adaptive DSIC tester under .
Recall that we assume sampling from and querying a take time .
Hence the first for loop, where perform the binary search phase takes time . Sorting takes time . The second for loops takes time .
One doesn’t have to write down for all . Given , one can perform binary search in (assuming it’s sorted) to find . Then is the sum of at most many values, all of which are already known. So computing would take time .
So each time we sample a point, it takes time to compute and it took to query and sample . So the last for loop takes time .
So the runtime of the algorithm is .
A.6 Proof of Theorem 3.11 and Theorem 3.12
First, we will work with an equivalent definition of DSIC, which will make the theorems of this section easier to prove.
Definition 18 (DSIC function). is DSIC if and, for all :
•
• where .
We will consider the tree as we defined it in Definition 16. Here are some simple observations:
Observation 1. Consider the tree for some function .
• For any node with parent if then .
• For an internal node , if , then for any of its successors we have . If is internal, this also means .
- Consider an internal node . Let , then for any of 's successor , since , we have that if then .
We begin with the proof of Theorem 3.11.
Proof.
Assume that is DSIC. We prove by induction on the depth of the nodes that for every node , and that whenever is internal.
For the root , we have because is DSIC and agrees with itself at 0 and . Moreover, , since also agrees with itself at the two middle points of .
Now let be a non-root node with parent . By the induction hypothesis, . Since , we obtain . If is internal, the set consists of the functions in that agree with at
The function itself satisfies these two conditions, so as well. This completes the induction. Thus for every node , and for every internal node .
We will now turn to the proof of Theorem 3.12, which is more involved. We will first prove the following lemma.
Lemma A.8. Consider a function . Assume the root of is such that . Then let
• If are in then isn't an ancestor of .
- is such that if and only if there exists a unique node such that .
Proof.
First, let be two nodes in . Assume for contradiction that is an ancestor of . Then, we have that . So by Observation 1 we have that for any successor of . But is in , so , which contradicts the fact is a successor of .
Note be such that , we first prove that has an ancestor , meaning such that .
By Observation 1, we know that for the parent of we must have . Hence, either , or . In the first case, we're done. Else we can look at the parent of . Since the root is such that , we're guaranteed to hit an ancestor of that we can put in , and we have .
If had two ancestors . Then without loss of generality is an ancestor of , which is contradiction.
Finally for the other direction, if and , then by Observation 1 we have that for the successors of have . So, .
We now turn to the proof of Theorem 3.12.
Proof. Let , let and assume for contradiction .
First, we can’t have that for the root has . Indeed, all the leaves of the tree would have . Which would contradict our assumption since .
Hence, consider the set B as defined in Theorem A.8. Let
By Theorem A.8 if , then for all , we have . And for with , there is a unique with . Thus, .
We will now construct a DSIC function such that . Assuming, we can do this, we immediately reach a contradiction since .
For each node , pick a function in . Note that is DSIC. Finally, we define as follow:
Thus functions is well defined since for every , there is at most one with by Theorem A.8. We also have
So it remains to prove is DSIC. We will now prove this using the equivalent definition of DSIC given in Definition 18.
First, . There are two cases.
-
, meaning . By our assumption isn't empty, so it must be that , as otherwise there would be no DSIC function consistent with a on .
-
Otherwise there exists with , meaning . Since is DSIC, we must have that .
We will now show that for any , we have , and there exists such that .
• If are in the same interval . Then , . Since, is DSIC we must have that . We also have there must exist such that
• Else, let be the last interval in containing both . In particular, it must be that are the "middle points" of , that is , . Since aren't in the same interval of , it must be that . Indeed, suppose first that . Since , let be the first node on the path from the root to for which , and let be its parent. Then and , so . But is an ancestor of and therefore contains both and , contradicting our assumption that these points do not lie in a common interval of . Hence . If , then itself belongs to , giving the same contradiction. Thus as well.
Note that for any function in , we must have and .
Let :
– If isn't in some interval in , then .
– If is in some interval , then , where is a descendant of . Hence we have . So .
So, we have and .
Furthermore, since , we must and there exists such that , as otherwise there would be no DSIC functions in .
So this proves that . And there is with
This proves is DSIC. Hence, we must have .
A.7 Proof of Theorem 3.13
We first present a simple algorithm to check if with queries.
Algorithm 4 Algorithm to check if .
Input: Query access to , a value
1: Let , , .
2: Query , .
3: while do
4: Add , to and query , .
5: if then
6: Set .
7: else
8: Set .
9: for each function do
10: if isn't monotone then
11: Continue.
12: Check if the following system has a solution:
Variables: ,
Constraints:
(1)
(2)
(3)
(4)
(5)
13: if a solution exists then
14: Output .
15: Output .
Theorem A.9. Given and query access to , Algorithm 4 correctly checks if is empty in . The algorithm uses queries and runs in time in the unit-cost model.
Proof. For any that is an ancestor of in , we have and we also have . In particular, is the set of DSIC functions that are consistent with and for all nodes that are ancestors of in .
Hence, the algorithm starts by querying a on 0 and m. Then the algorithm goes from to in and each time it's at interval , the algorithms queries a on and . Which takes many queries and takes time .
Now to check if the set is empty, we look at all possible allocations . If the allocation isn't monotone, we reject since no DSIC functions would have such an allocation scheme.
Hence, we check if it's possible to build a DSIC function that is DSIC and consistent with a on the points in C. Constraints (1) to (4) correspond to enforcing prices to be well-defined. Constraint (5) ensures that the function agrees with a on the points in C.
If the constraints have a solution then clearly . If for all functions , isn't monotone or the constraints have no solution we have that .
The while loop takes time under the oracle-cost convention. The algorithm then loops over all functions . For each one, checking monotonicity and linear feasibility takes time polynomial in .
Thus the overall running time is .
With the above algorithm, we can build a tester with query complexity to test if a is DSIC or for an arbitrary distribution :
Algorithm 5 One-sided non-adaptive DSIC tester for under distribution .
Input: Distance parameter , sample access to a distribution over and query access to .
1: for to do
2: Sample a point from and use Algorithm 4 to check if .
3: if then
4: Reject .
5: Accept .
Lemma A.10. Given a function , sample access to a distribution over , and , Algorithm 5 is a non-adaptive one-sided tester with query complexity to test if a is DSIC or . The tester uses samples and runs in time .
Proof. The samples may be drawn before any oracle response is seen, and each root-to-leaf query path depends only on its sampled . Thus the tester is non-adaptive. It calls Algorithm 4 times, so the total number of queries is and the running time is .
From Theorem 3.11 we know that if is DSIC, for all we have that . So we never reject if it DSIC. From Theorem 3.12, we know that if , then . Hence the tester fails to reject with probability at most .
The tester is non-adaptive and improves the query complexity of Algorithm 2, at the cost of running time exponential in m.
Proof of Theorem 3.13.
The algorithm is obtained by taking Algorithm 3 and replacing calls to Algorithm 2 by calls to Algorithm 5. Recall that the correctness, query and sampling complexity of Algorithm 5 were characterized in Theorem A.10.
The proof of correctness is the same as the proof of Theorem 3.10, since Theorem A.6 and Theorem A.10 show Algorithm 2 and Algorithm 5 have the same correctness guarantees.
A call to Algorithm 5 with distance parameter requires queries. Thus
Algorithm 5 and Algorithm 2 have the same sampling complexity. Hence, as before, the tester uses conditional samples.
Under the unit-cost convention of Theorem 3.10, a call to with distance parameter takes time . Therefore the running time is
□