Manuscript Offprint
arXiv:2611.05296Universal Hardness From Masking Channels
Abstract
We prove a broad learning-theoretic generalization of the celebrated hardcore lemma concerning the average-case complexity of computing a Boolean function (Impagliazzo, 1995). Our starting point is the observation that the classic notion of a hardcore measure, which reweights a function's input distribution, is equivalent to an input-dependent masking channel that injects randomness into the function's output distribution until it appears fully pseudorandom. The analogue of density of the measure is the fidelity of the channel; a high-fidelity channel injects very little noise. From this viewpoint, we develop a general framework for certifying hardness that allows for non-Boolean functions and a wide range of notions of hardness besides the classic 0-1 loss, by choosing the right notion of fidelity via convex duality. We show the difficulty of learning using a class to minimize a convex loss is tightly characterized by the maximum fidelity possible for a masking channel, which measures the least amount of noise the channel must add to hide the structure of and make it -indistinguishable from random noise.
We derive the following concrete applications from this general framework:
- We instantiate our framework to derive a number of multiclass generalizations of the hardcore lemma, and reveal some unexpected subtleties in going to larger alphabets. We tightly characterize the hardness of learning with various losses in the binary setting.
- We prove the existence of a universal masking channel that applies to many natural notions of hardness and fidelity simultaneously. Our results show that such channels are dual to omnipredictors [GKR+22], which optimize multiple losses at once.
- We observe a symmetry between masking channels and generalizations of the hardcore lemma using pseudoentropy. We present a tight characterization of pseudoentropy using the MaxEnt algorithm from machine learning.
A long line of research has shown that learning and hardness are two sides of the same coin; our framework gives a crisp and general formulation of this principle via convex duality.
*Work done partly while at Apple. †Work done during an internship at Apple, as well as with support from Simons Foundation Grant 733782 and Cooperative Agreement CB20ADR0160001 with the United States Census Bureau.
Contents
1 Introduction 1
1.1 Hardness Equals Best Masking Channel Fidelity 3
1.2 Multiclass Hardcore Lemmas 6
1.3 Universal Masking Channels From Multicalibration 9
1.4 Characterizing Pseudoentropy via MaxEnt 12
1.5 Related Work 14
1.6 AI Methodology 15
2 Preliminaries 15
2.1 Convex Analysis 16
2.2 Hinge Loss Rounding 18
2.3 Multicalibration 18
3 A General Framework 19
4 Hardness of Learning and Masking Channel Fidelity 22
5 Multiclass Hardcore Lemmas 23
5.1 Bounds for Surrogate Losses 26
6 Universal Masking Channels From Multicalibration 28
6.1 Deriving the Multiclass Result 28
6.2 Recovering the Binary Result 33
7 Characterizing Pseudoentropy via MaxEnt 35
A Additional Calculations 39
One possible explanation is that the function has a hardcore set of density at least on which every circuit in errs with probability close to , the same error as achieved by naive random guessing. The classic hardcore lemma in complexity theory states that this is, in fact, the only possible explanation. The lemma can be stated as follows, where we set and :
Theorem 1.1 (Hardcore Lemma [Imp95, Hol05]). For all distributions over , functions , classes , and , at least one of the following holds:
- ( Case) For some that is the average of functions in ,
where is some threshold.
- ( Case) There exists a measure with the following properties:
This lemma was first proved by Impagliazzo in [Imp95] with density . Holenstein [Hol05] improved the density to the tight bound of .
From Measures to Noisy Channels. In this paper, we propose a new generalization of the hardcore lemma approach to certifying hardness beyond the setting described in Theorem 1.1, which will naturally extend to settings where is not necessarily Boolean-valued and there are a variety of loss functions of interest beyond 0-1 loss. To begin, let us consider a natural relaxation of the property that has a hardcore measure: that the output of can be made computationally indistinguishable from pure random noise by passing it through a masking channel which flips the bit with probability , where
Note that the noise rate is allowed to depend on , which allows an adversary to concentrate noise on the easy parts of the domain. This relaxed property is directly implied by the hardcore property, and it directly implies that is -hard against .
Given a hardcore set , we can construct such a masking channel by replacing the function outside by random bits, as shown in Figure 1. For a distinguisher from to tell the resulting labels apart from random noise, they would need to have an advantage over the set itself, which is not possible by the hardcore property. The larger the hardcore set, the less the noise needed in expectation. In contrast, for an easy function (say if ), the channel would need to randomize every point in the domain , or, more generally, corrupt half the labels on average. More generally,
Throughout this paper, we use boldface, as in “” and “”, to indicate random variables.
In many cases, a -valued hardcore measure can be converted to a -valued indicator function, or equivalently, a hardcore set [Imp95]. In this paper, we do not belabor the distinction between these two objects.
We ignore the small error term in this informal discussion.

Figure 1: Masking by randomizing outside the hardcore set.
given a -dense hardcore measure , it is easy to see that one such masking channel arises from the channel given by , or equivalently from a noisy label with .
Further, we claim that any such masking channel certifies the hardness of . The quantitative bound is better when the amount of noise added is small. To see this, recall that two functions are said to be -indistinguishable [TTV09] if , and that this definition extends easily to pairs of non-deterministic conditional distributions and ^4 If we let denote , the noisy label, and an independent uniform bit, respectively, then for all ,
Our framework reinterprets the role of the measure . While was originally conceived as a reweighting of the distribution over features , it recasts as a noisy channel that leaves the marginal distribution over features fixed and instead modifies the conditional distribution over labels. This change in perspective was crucially used in distribution-specific agnostic boosting algorithms [Fel10, KK09]. We will see that it is extremely fruitful for certifying hardness.
Our Contributions. In this work, we design a general framework, based on masking channels, for certifying the hardness of a function, under various notions of what it means for functions to be easy, or have structure that is identifiable by , that substantially generalizes and extends the hardcore lemma for Boolean functions and 0-1 loss. From a machine learning point of view, this generalization gives tight, quantitative characterizations of the best loss one might hope to achieve when fitting a distribution over labeled data points using models from a prescribed class. From a computational complexity point of view, we give characterizations of the average-case complexity of a function, with respect to a wide range of notions of hardness for functions , where is finite. In particular:
(1) (Section 1.1) Our main conceptual contribution is a shift in focus from hardcore measures to hardness certificates based on input-dependent masking channels
Here, is a column-stochastic matrix mapping each possible label to a distribution over noisy labels , all represented as -dimensional column vectors.
For simplicity, let us suppose that is closed under negation, so that the absolute values become irrelevant.
Suppose the noisy label distribution is -indistinguishable from the uniform distribution when labeled data points are drawn from a given distribution . We call such a channel a masking channel for under the distribution and say that the output of the masking channel is -pseudorandom.
(2) (Section 1.1 and Section 4) We show that the average-case hardness of approximating the labels using is equal to the highest fidelity masking channel with -pseudorandom outputs, provided that the chosen notions of “hardness” and “fidelity” are convex-concave conjugates. In other words, hardness is related to the least amount of noise that must be added to the function’s output to mask the signal and make it -pseudorandom. Our theorem, which crucially relates pseudorandomness constraints to regularization via convex duality, can be viewed as sharpening a complexity-theoretic result via a learning-theoretic perspective.
(3) (Section 1.2 and Section 5) We show that our hardness-fidelity theorem implies the existence of several distinct and interesting hardness certificates in the multiclass setting. In particular, by combining our framework with new insights on surrogate losses for the 0-1 loss, we uncover a landscape of novel “hardcore lemmas” in the multiclass setting.
(4) (Section 1.3 and Section 6) Using multicalibration and related ideas, we construct a universal masking channel, which serves as a nearly tight certificate of the hardness of a function with respect to a wide range of different notions of hardness simultaneously. A priori, the existence of such a universal channel is very surprising.
(5) (Section 1.4 and Section 7) Finally, we observe an elegant symmetry between our results and existing results on generalized pseudoentropy in complexity theory. We show that MaxEnt algorithm in machine learning gives a learning-theoretic exact characterization of pseudoentropy.
1.1 Hardness Equals Best Masking Channel Fidelity
Before setting up our framework of masking channels and channel fidelity, we give a simple example of what the framework has to offer. To begin, let us consider the optimal -hardcore density in the binary setting which can be expressed with the following optimization problem:
The optimization problem above is well-defined for any fixed distribution over . In the special case that for a deterministic function , we may assume without loss of generality that ignores its second input and is a function of alone.
Our framework will connect to a different optimization problem, which at first seems entirely unrelated. This alternate problem attempts to minimize -regularized hinge loss attainable by the slightly enlarged class span() under the same distribution over pairs. Let us use the abbreviation for the linear combination of functions in with coefficient vector . Define the hinge loss for a label and action by the standard formula , where . Then, the value we seek is:
The constraint differs slightly from the definition of a hardcore measure that we gave in Theorem 1.1, which can be expressed as . Ultimately, our general theorem will be flexible enough to handle both types of constraints and more.
Soon, we will see that , and we claim that this equality immediately implies the optimal -density version of the classic binary hardcore lemma. Indeed, it is well known in machine learning that the hinge loss of an action for a label exceeds its 0-1 loss by at least a factor of 2 after appropriate rounding ([KKMS08], also see Section 1.2 and Remark 2.13). Therefore, the inequality yields the following chain of implications:
Remarkably, we see that the elusive factor of 2, which was absent in the original version of the theorem [Imp95] and only appeared much later [Hol05], arises precisely because of the factor of 2 relating 0-1 loss to hinge loss. The factor-2 bound on the gap between the hinge loss and 0-1 loss was shown in the work of [KKMS08] on agnostic learning, there it was used to give an agnostic learning algorithm with optimal error, rather than twice the optimal error.
In this paper, as we explore multiclass analogues of the hardcore lemma, this surrogate loss point of view will turn out to be quite fruitful.
Masking Channels. In the multiclass case, the label is an element of a size- set , which we view interchangeably as either or the standard basis vectors (a.k.a. “one-hot encodings”). We are given a distribution over labeled data points . Our goal is to either find a structured explanation for how the labels are generated from , or certify that is pseudorandom. In some cases, we view as a deterministic function of the input , and in other cases, we consider an arbitrary joint distribution over input-output pairs, which we shall often refer to as feature-label pairs.
Instead of measures , we now study input-dependent noisy channels , which map a given label to an -dependent distribution over noisy labels.
Definition 1.2 (Noisy Channel [CT06]). We let denote the probability simplex of vectors with nonnegative coordinates summing to 1. We similarly let denote the set of -by- column-stochastic matrices with columns in . Given finite sets and , a noisy channel is simply a function .
Given a deterministic function , a noisy channel can be used to define a corrupted version of , where (one-hot encoded) is replaced with (a probability distribution). To study the hardness of a function w.r.t. a function class , we now introduce the notion of a masking channel for , which corrupts into a randomized function that appears totally random to . Below we define a masking channel not for a deterministic function , but for a distribution over (allowing for randomized functions, and incorporating a distribution on the inputs).
Complexity-theoretic (as opposed to learning theoretic) statements of the hardcore lemma, such as Theorem 1.1, typically take to be the set of Boolean circuits of size at most , and they assume that is -hard under for Boolean circuits of size at most , for some scaling factor (see Theorem 1.1). Technically, functions in thr(span( )) need not be computable by circuits of this size unless we verify that there exists a sparse vector , with roughly or fewer nonzero coefficients, that is -approximately optimal for the optimization problem in (2). This is indeed true, with , but we omit the proof since it is not the focus of this work.
Definition 1.3 (Masking Channel). Given a distribution over labeled data points , a finite collection of functions , a noisy channel and , we say that is a -masking channel for the distribution , if for all ,
We say that a random variable that is distributed jointly with is -pseudorandom if for every , we have . Thus the definition of a masking channel for requires the induced label distribution is -pseudorandom. If the distribution is clear from the context, we will suppress and refer to as a -masking channel.
Example 1.4. For a simple example of such a masking channel, suppose that the label is independent of the features and has the following distribution:
Then, one possibility for the channel is to redistribute some of the mass from the labels 1 and 2 to each of the remaining labels, until the marginal distribution is uniform:
Since , the pseudorandomness condition is clearly satisfied for any and . As this example illustrates, if a label occurs with probability 0, then the corresponding column of can be defined arbitrarily; in particular, if for a deterministic function , then there is only a single relevant column of for each .
Channel Fidelity. In the binary setting, we sought the hardcore measure with the highest possible density. By analogy, in the multiclass setting, we shall seek the highest possible fidelity among masking channels. Intuitively, a channel has high fidelity if it adds little noise to the original label. In various scenarios, there are many reasonable ways to quantify a channel's fidelity, and we would like a definition that can capture them all. In the following definition, we use the abbreviation for the set of extended real numbers.
Definition 1.5 (Fidelity Function). Given a finite label set , a fidelity function is any function that is closed, proper, and concave in its second input (Definition 2.2).
Example 1.6. The simplest example of a fidelity function, which we will use repeatedly, is
This function takes as input the original label and a noisy label distribution , and outputs the scalar , which is the probability that the label is not corrupted. Note that this fidelity function decreases as the total variation distance between and (a point mass) increases. Eventually, we will plug in , where is a column-stochastic channel matrix.
Example 1.7. Another example of a fidelity function is the negated cross-entropy or log-loss
Note that this fidelity function outputs when , which is a valid output in .
Example 1.8. For yet another example of a fidelity function, consider
This fidelity function equals the one in the first example when the noisy label distribution has a specific form: it mixes the original label with the uniform distribution, with some mixing parameter If the noisy label distribution does not have this form, then this fidelity function penalizes it by assigning a fidelity value of .
Fidelity of Masking Channel Certifies Hardness of Learning. Our first main result states:
The highest possible fidelity of a masking channel for a distribution exactly characterizes how hard it is to learn the distribution.
More precisely, given a fidelity function , there is a convex conjugate loss function (see Section 2.1) , such that the highest fidelity of a -masking channel for equals the smallest loss incurred in representing by a linear combination of functions from (with an -regularization penalty weighted by ).
In what follows, and in the rest of this paper, the abbreviation denotes the “centered” mean-0 version of an action vector . Also, recall from the discussion of equation (2) that is the function in span() with coefficients . We will prove the following theorem in Section 4.
Theorem 1.9 (Hardness vs Fidelity). For all finite , distributions over , finite , convex-concave conjugates , and ,
A unifying insight that runs through several works on the hardcore lemma is that learning and hardness are intimately related. Theorem 1.9 gives a particularly general and crisp formulation of this insight through the lens of convex duality.
1.2 Multiclass Hardcore Lemmas
We now consider concrete instantiations of Theorem 1.9. Doing so will lead to a rich landscape of distinct hardcore-like objects in the multiclass setting, each natural and interesting in its own right, that capture hardness with respect to different multiclass loss functions. We then connect these various hardness certificates back to the classic (multiclass) 0-1 loss via its convex surrogate losses. All the results described in this section will be proved in Section 5.
As we will later see, it is not by accident that we have used the same variable here as for hardcore measures.
When and is bounded below, the infimum on the left-hand side can be replaced with a minimum.
Binary Setting. As a warm-up, we state several instantiations of Theorem 1.9 in the binary setting, with specific choices of convex-concave conjugate pairs. Theorem 1.10 below includes three versions, captured by equations (3), (4), and (5).
Theorem 1.10 (Hinge, , and Hardcore Lemmas). Fix a finite set , a distribution over pairs , a finite , and . Then, using the abbreviation ,
where p, q > 1 are any real numbers satisfying .
We defer the proof to Section 5, but discuss their interpretation now.
-
First, equation (3) is the relationship between hinge loss and hardcore density discussed in the previous section.
-
Next, equation (4) relates the minimum loss to the maximum expected value of a -valued signed measure. loss minimization followed by randomized rounding is the algorithm used in [KKMS08] to agnostically learn functions that are well approximated by linear combinations of . Its dual, which allows to take values in the interval is quite natural; for example, multiplying by a factor of -1 corresponds to deterministically flipping the label.
-
Finally, equation (5) characterizes hardness with respect to all losses for . In this case, is both a signed and unbounded measure. Although it is no longer forced to output values in , it is nevertheless strongly encouraged to do so by a penalty term of in the objective for , which is negligible when and very large when .
Multiclass Setting. Let us now discuss three natural ways to certify the hardness of a conditional label distribution in the k-class setting, all of which generalize the familiar notion of a hardcore measure in the binary case (k=2). Using our framework, we show that each of these three distinct hardness certificates (i.e. “hardcore-like” objects) tightly characterizes hardness with respect to a distinct multiclass loss function.
First, one might seek the densest measure on which the labels are -indistinguishable from the uniform distribution , or equivalently, such that the noisy channel outputting the mixture is in fact a -masking channel. Theorem 1.11 below shows that this density captures hardness with respect to what we call the weak hinge loss, defined for and mean-0 vectors by the formula . (If is not mean-0, we center it first.) We call this loss “weak” because it is relatively easy to minimize: if even a single label can be eliminated with certainty, then achieves 0 loss.
Theorem 1.11 (Weak Hinge Loss vs Uniform Noise). For all finite and , distributions over , finite , and ,
Second, one might seek the least amount of (not necessarily uniform!) noise that must be added to the labels to achieve global indistinguishability from uniform over . Theorem 1.12 below shows that among such masking channels , the maximum possible fidelity , which can also be written , captures hardness with respect to what we call the strong hinge loss, defined for and mean-0 vectors by the formula . (If is not mean-0, center it first.) We call this loss “strong” simply because it is a pointwise upper bound on .
Theorem 1.12 (Strong Hinge Loss vs Arbitrary Noise). For all finite and , distributions over , finite , and ,
Third, one might seek modified labels that are as statistically far as possible from the original labels while remaining computationally indistinguishable from them. Theorem 1.13 below shows that the maximum attainable statistical distance captures hardness with respect to the well-established Crammer-Singer hinge loss [CS01], defined for and by the formula , which depends on the margin by which the score assigned to the correct label exceeds the maximum score assigned to any wrong label . We emphasize that this statistical distance is measured from point mass distribution , which depends on the coupling between original and noisy labels, as opposed to being measured from .
Theorem 1.13 (Crammer-Singer Hinge Loss vs Maximum TV Distance). For all finite and , distributions over , finite , and ,
Surrogate Losses. At this point, we have shown that -hardness under implies a -density hardcore measure, that -hardness under implies a hardcore channel with total variation distance at most , and that -hardness for implies an indistinguishable model at total variation distance at least . But each of these seems to be a different hardness assumption. In analogy to the binary hardcore lemma, one could ask: What certificates of hardness can we construct in the multiclass setting assuming only -hardness under the 0-1 loss ? Although this loss is not convex (for starters, because its action space is discrete), the previous consequences can be derived assuming -hardness if we could show that were surrogate losses for in the following sense:
Definition 1.14 (-surrogate Loss). Given a label set and action sets , and , we say that a loss function is a -surrogate for a loss function if is finite and there exists a rounding function such that for all and ,
Later, in Section 1.4, we discuss a closely related fourth possibility: finding the highest-entropy labels that are indistinguishable from the original, which has been studied extensively in recent work.
Unlike the previous several results, Theorem 1.13 will not follow from Theorem 1.9 itself, but rather from a more general version of it, Theorem 3.3, which we state and prove in Section 3.
We show that whether or not a loss function, such as , , , is a surrogate for the 0-1 loss can be completely determined from its associated entropy function:
Definition 1.15 (Entropy). Given a label set , an action set , and a loss function , the entropy of is the concave function given by the formula
Theorem 1.16 (Entropy Surrogates). Given sets and and finite losses and , let denote their entropy functions. If are finite, then is a -surrogate loss for if and only if for all .
An additive term can easily be incorporated in the Definition 1.14 and Theorem 1.16 (i.e. ). This result is proved using the MinMax theorem. For the special case when , we present an alternate proof with an explicit rounding. We will also show that simple projection onto is an optimal rounding rule for .
With this characterization, by calculating the entropy functions and coefficients for loss functions, we can compare our results for those losses for the binary and multiclass case, as follows:
is not a surrogate loss for unless , in which case it matches the hinge loss. Thus, for , one cannot conclude the hardness of minimizing from hardness for . Indeed, for a deterministic labeling function, the learner which is able to eliminate just 1 in labels but then guesses at random will have 0 loss for , but loss for .
is a surrogate for with coefficient . In particular, -hardness under implies -hardness under , and hence a hardcore channel whose noisy labels are at total variation distance at most . When , in fact , from which -hardness under implies -hardness under , and hence a channel whose noisy labels are at distance , as expected (and shown in Figure 1).
is a surrogate loss with . Hence -hardness under implies a -indistinguishable model at TV distance at least . This is -distance when , where for a Boolean function, such a model can be obtained from a -dense hardcore set by complementing labels on .
Thus we see that the familiar for the binary setting generalizes differently to larger for differing loss functions.
We remark that these are not “if and only if” statements, as additional scaling factors are incurred by converting back to hardness. For example, a -distance indistinguishable model only implies -hardness for , not -hardness for , since all the mass at a label may have simply been moved to a different , rather than spread out evenly among all labels.
1.3 Universal Masking Channels From Multicalibration
Although Theorem 1.9 gives an exact quantitative relationship between average-case hardness and masking channel fidelity, for each hardness notion g and each associated fidelity notion h, the optimal channel W may differ depending on the choice of h. What if we want a single masking channel that witnesses the hardness of f against C for all fidelity functions h simultaneously?
This question of the existence of a universal channel brings to mind recent results in learning theory regarding the existence of omnipredictors, which are predictive models that outperform a benchmark class with respect to a wide range of loss functions simultaneously, rather than being tailored to one specific such . Perhaps surprisingly, it is known that such omnipredictors indeed exist for arbitrary families of loss functions satisfying mild conditions [GKR, GHK]. In light of the duality between learning and masking channels, the question posed above seeks the “dual” channel corresponding to an omnipredictor.
We show that even for an entire collection of loss-fidelity pairs , there exists a single universal model of the conditional label distribution that is not only an omnipredictor for the losses in the class, but also yields approximately optimal-fidelity masking channels for all in the family, provided that we slightly enlarge . Put differently, the action used to minimize and the channel used to maximize will only depend on through the model's prediction . To state this formally, we will express the chosen action as , where is the lowest-loss response to with respect to , and we will express the chosen channel as , where is the highest-fidelity response to with respect to . We define these best responses as follows:
Definition 1.17 (Lowest-Loss Response). Given a function , a distribution , and a label , a lowest-loss response to with respect to is any
assuming any exist. We instead say is -optimal if it achieves loss within of the infimum.
This lowest-loss response function plays a prominent role in the literature on omniprediction [GKR, GHK], where it is used to post-process predictions for a specific loss.
Definition 1.18 (Highest-Fidelity Response). Given a fidelity function , a distribution , and a label , a best-fidelity response to with respect to is any
assuming any exist. We instead say is -optimal if it achieves fidelity within of the maximum.
The space of channels we optimize over in this definition maps to the uniform distribution, as in Example 1.4. Thus high-fidelity responses generalize the re-balancing functions on the level sets of a predictor, which are used in the proof of the hardcore lemma in [TTV09, CDV24, CGKR25].
Better yet, if each fidelity function in the collection is a nondecreasing function of , as the ones in Examples 1.6 and 1.7, then there not only exists a universal model , but there also exists a universal highest-fidelity post-processing of that works for all fidelity functions in the collection. We call such fidelity functions monotone. Besides monotone fidelity functions, we also consider the natural class of monotone mixing fidelity functions, such as the one in Example 1.8, which constrain the noisy label distribution to be a mixture of the original label and the uniform distribution:
Definition 1.19 (Monotone Fidelity). Let . We say a fidelity function is monotone if there is a nondecreasing function such that
We instead say that is monotone mixing if for some such ,
Although monotone mixing fidelity functions might appear to be a subset of monotone fidelity functions, this is not the case because of their differing effective domains.
In the following theorem statement, there are three parts. First, part (a) asserts that the channels are indeed “valid” or “feasible”, in the sense that they lower bound the loss of the class for . Next, part (b) asserts that the bound from part (a) is nearly tight, in the sense that some circuit of “complexity” not much higher than that of the complexity class indeed achieves similar loss. Finally, part (c) asserts that a single masking channel works for all monotone fidelity functions, or for all monotone mixing fidelity functions.
Theorem 1.20 (Universal Masking Channels, Informal Version of Theorems 6.4, 6.5, and 6.6). For all finite and , distributions over , finite , and , and a family of tuples , where are convex-concave conjugates and are best responses, there exists a model of “complexity” times that of the functions in and , such that the following properties hold for all :
(a) (Hardness Average Channel Fidelity) The channel obtained from post-processing the model certifies hardness against , in the sense that for all ,
(b) (Hardness Average Channel Fidelity) The action derived from post-processing the model is nearly tight for the bound from part (a):
Note that even if , its “complexity” is at most times that of .
(c) (Universal Masking Channel) A single works for all monotone fidelity functions. A (different) single works for all monotone mixing fidelity functions.
The key technical tool underlying the proof of Theorem 1.20, which we present in Section 6, is multicalibration [HKRR18]. Multicalibration is an enhanced notion of computational indistinguishability that has been used both in omniprediction [GKR , GHK ] and in recent new proofs of the traditional hardcore lemma [CDV24, CGKR25]. A model of is said to be -multicalibrated if the level sets of partition into regions where the real label is indistinguishable from a simulated label distributed according to . More formally,
It is known that regardless of the complexity of the conditional distribution , multicalibrated models always exist with complexity comparable to that of [HKRR18], and the complexity gap can be shrunk considerably in the cases that we only require indistinguishability on certain weighted combinations of the level sets of , as opposed to all level sets [GKSZ22].
In this informal statement, we have omitted an important assumption regarding boundedness of the functions in and . For details, see the formal statement in Theorem 6.5.

(a) Move mass from above 1/k to below 1/k

(b) Uniformly redistribute mass above
Figure 2: Multicalibration-based constructions of the universal noisy channel .
Given a multicalibrated model, it is not too hard to see how to construct an optimal universal masking channel for monotone or monotone mixing fidelity functions. Indeed, given a label distribution , consider the -level set of the model , which we denote by . On this level set, we know that each label is indistinguishable from a fresh sample . Therefore, at least intuitively, any noisy channel that redistributes the mass of into the uniform distribution should also map the label to a noisy label that is indistinguishable from uniform. Among such channels, it is clear that the highest fidelity (least noisy) choice is the channel that redistributes mass from the label set to the label set . This construction of the universal channel is illustrated in Figure 2a.
For monotone mixing fidelity functions, which only allow the channel to redistribute mass uniformly, the construction instead uniformly redistributes excess mass from the label set . This alternate construction is illustrated in Figure 2b. In fact, both constructions can be seen as multiclass generalizations of a previously known multicalibration-based construction of a hardcore measure in the binary 0-1 loss setting [CDV24, CGKR25]. We show in Section 6.2 how to recover this result from our new one.
Remark 1.21. The formal version of Theorem 1.20 in Section 6 is stronger than the informal version sketched here. While our informal discussion uses multicalibration, the full version will only require calibration [Daw82] and weighted multiaccuracy [TTV09, HKRR18]. These conditions are more efficiently achieved than multicalibration, improving the complexity of p relative to C.
1.4 Characterizing Pseudoentropy via MaxEnt
In this section, we discuss the relationship between our results on masking channels and related work on pseudoentropy [VZ12, Zhe14, HV25]. We show that a tight learning-theoretic characterization of pseudoentropy can be derived using the MaxEnt algorithm [BPP96, LDPDP97, DPS07, AS06].
Much like our high fidelity masking channels, the property of having high pseudoentropy [HILL99], generalized in [VZ12, Zhe14, HV25], is a hardness-certifying relaxation of the hardcore property. This property states that itself is -indistinguishable from a model that is highly random. In this most basic setting, “highly random” means being -close in statistical distance to pure random noise. Equivalently, the model has high entropy: , where (see Definition 1.15). As with the masking channels property, it is easy to check that high pseudoentropy certifies hardness. Also, randomizing labels on the hardcore measure yields the high-entropy model . There is a symmetry

Figure 3: Symmetry between Theorem 1.9 (Noisy Channels) and Theorem 1.22 (MaxEnt) for binary 0-1 loss. The polytopes are -indistinguishability regions, one centered at the original and another at pure noise 0. If (-valued) is -hard for and if ([0,1]-valued) is a -dense hardcore measure, the high-entropy model is and the noisy channel output is .
between these two approaches to characterizing average-case hardness, which Figure 3 depicts in the most basic setting.
As shown in [VZ12, Zhe14], having high pseudoentropy, much like our novel noisy channel property, extends naturally to the multiclass setting and to essentially arbitrary concave “entropy” functions , such as the 0-1 entropy function , the Shannon entropy , and many more. They show that for any reasonably well-behaved entropy function and associated GLM loss function , the best loss attainable by circuits in a class related to is approximately equal to the maximum entropy of a -indistinguishable model.
The elegant recent work of Hu and Vadhan [HV25] shows that in fact, even for an entire collection of entropy functions and associated GLM loss functions, there exists a single universal model with complexity comparable to that of , whose -entropy certifies the hardness of for the class , and whose own loss on is close to the certified lower bound.
Our new Theorem 1.20 on universal masking channels is inspired by their result and this symmetry between masking channels and pseudoentropy. But this raises the question of whether there is a parallel to Theorem 1.9. In other words, is there a learning problem that tightly characterizes pseudoentropy?
We show that the answer comes from a line of work in the natural language processing on the MaxEnt algorithm [BPP96, LDPDP97, DPS07, AS06]. The MaxEnt algorithm attempts to learn a probability distribution of the highest possible entropy, subject to a collection of linear constraints imposed by observed data points. In our setting, we wish to learn under the linear constraints of -indistinguishability. The objective is , the model's average -entropy. The convex dual is known to be the problem of minimizing a generalized linear model (GLM) loss over span(), with regularization; yielding a learning problem that exactly characterizes pseudoentropy.
Theorem 1.22 (Characterizing pseudoentropy using MaxEnt [BPP96, LDPDP97, DPS07, AS06]). For all finite and , distributions over pairs , finite and convex-concave conjugate pairs and , let (GLM
Technically, the equivalence stated in [Zhe14] is not between GLM loss minimization and entropy maximization, but rather between minimization of a Bregman divergence and maximization of a certain entropy gap. These two formulations turn out to be exactly equivalent.
loss). Then, for all ,¹³
In Section 7, we will show that Theorem 1.22, just like our new Theorems 1.9 and 1.20, can be derived from the same underlying general framework based on convex duality.
1.5 Related Work
Impagliazzo's Hardcore Lemma [Imp95, Hol05] is a cornerstone result in our understanding of the average-case complexity of Boolean functions. It has applications to hardness amplification [Imp95, Tre03, O'D04], the derandomization of BPP [IW97], cryptography [Hol05] and the design of better boosting algorithms [KS03]. There has been an extensive body of work devoted to optimizing, generalizing and extending this result. While a comprehensive survey of this work is beyond the scope of this section, we identify three broad approaches to proving the hardcore lemma that are relevant to our work.
Boosting/Learning. As observed by Klivans and Servedio [KS03], Impagliazzo's original constructive proof is naturally viewed as a boosting procedure. We assume that the function is not too hard for dense subsets; that there is a hypothesis that does well for every dense subset . We use boosting to combine these hypotheses into one that does well on average. This approach is further developed in the works of [Hol05, BHK09, Fel10]. Better boosting algorithms yield improvements in various parameters of the hardcore lemma, and more recently in works such as [BCHM20, BDMM23, BBC+25].
MinMax. Impagliazzo presents an alternate proof of the hardcore lemma by Nisan using the MinMax theorem [Imp95]. We consider a two-player zero-sum game between a learner who makes predictions using hypotheses and an adversary who uses dense subsets , the payoff is how well can predict on . Depending on the value of the game, either the function is easy on average, or there is a dense hardcore measure. This approach is used by [Hol05, TTV09, VZ12, VZ13].
Regularity. This approach was initiated in the seminal work of Trevisan, Tulsiani and Vadhan [TTV09]. We use a randomized function which is a regular model of the Boolean function , meaning it is indistinguishable from to .¹⁴ We then explicitly reweight the input using the pair to get a hardcore measure. The notion of regularity in [TTV09] corresponds to multiaccuracy [HKRR18]. More recent works [CDV24, CGKR25, HV25] derive stronger results using stronger regularity notions, such as multicalibration or calibrated multiaccuracy which originated in the multigroup fairness literature [HKRR18, GKR+22, GHK+23]. We discuss these in more detail shortly.
Our work builds on key ideas from each of these lines of work, and generalizes them substantially. The use of Fenchel duality considerably generalizes the use of the MinMax Theorem for 2 player games, which is implied by it [Ber15]. While learning and hardness have long been understood to be two sides of the same coin, our formulation reveals them to be convex duals. Strong notions of regularity are crucial in our results on universal masking channels, which simultaneously certify hardness for a number of learning tasks, which we view as dual objects to omnipredictors.
¹³When and is bounded below, the infimum on the left-hand side can be replaced with a minimum.
¹⁴The term “regularity” has its roots in graph regularity lemmas in combinatorics [Sze75, FK96].
Having discussed the techniques used to prove the hardcore lemma, we now discuss extensions of the original hardcore lemma which are particularly relevant to our work.
Beyond 0-1 Loss. Much of the initial work on the hardcore lemma focuses on 0-1 loss and min-entropy. The work of Vadhan and Zheng considered cross-entropy loss and Shannon entropy, motivated by simpler constructions of pseudorandom generators from one-way functions [VZ12, VZ13]. Zheng's thesis considers more general entropy functions and Bregman divergences [Zhe14]. These works view the hardcore lemma as explaining hardness through pseudoentropy; given a distribution , the aim is to construct a -indistinguishable distribution that has high conditional entropy . They characterize pseudoentropy by the optimal Bregman divergence achievable when sampling using an efficient sampler. By standard characterizations of proper losses [Sav71], this is equivalent to minimizing a proper loss on the distribution .
Multiple Losses at Once. The work of [GKR+22] introduced the notion of an -omnipredictor, which is a single universal predictor that can perform competitively with the best hypothesis from a class , for any loss in a family of loss functions. The best hypothesis in can be specific to the loss function, but the omnipredictor is loss-oblivious. The elegant recent work of Hu and Vadhan [HV25] gives an analogous statement from the hardness perspective: they show that a suitable predictor yields a joint distribution that has optimal pseudoentropy for a large family of entropy functions. The conditions on (calibrated multiaccuracy) and on the entropy/loss functions (proper loss) exactly match those needed for loss outcome indistinguishability (loss OI) for proper loss functions [GHK+23], which is a strong form of omniprediction. Our construction of universal masking channels is inspired by their work.
Surrogate Losses. Surrogate losses are used in machine learning as a way to come up with tractable convex substitutes for non-convex losses like 0-1 loss [BJM06, TB07]. Indeed, many commonly used convex losses like hinge loss, loss and logistic loss are known to give upper bounds on the 0-1 loss [BJM06]. The tight factor of 2 for and hinge loss is crucial to optimality in the learning algorithm of [KKMS08]. Other works that give bounds for surrogate losses for 0-1 loss in the multiclass setting include [vdH20, vdHFCB21]. Theorem 1.16 which gives a tight characterization of the optimal rounding factor for any pair of losses via entropy appears to be new.
1.6 AI Methodology
ChatGPT 5.6 and 6 were used for several brainstorming discussions, to speed up the calculation of numerous convex conjugates, dual programs, and entropy functions, to determine the rounding schemes presented in Theorem 1.16 and Lemma 5.2 and the associated entropy functions and surrogate constants, to determine the precise technical conditions needed for strong duality and the attainment of optimizers in our application of convex duality, to search for and understand relevant related work, and to generate figures from screenshots of hand-drawn sketches. All other theorems were formulated and proved without substantial AI assistance. None of the writing in this paper (exposition, definitions, theorems, proofs, etc.) was done by an AI model.
2 Preliminaries
In this section, we review the relevant background material on convex analysis (Section 2.1) and multicalibration (Section 2.3) needed to prove our main results. We especially encourage readers who have not previously seen Fenchel duality to read Theorem 2.9 and the subsequent remarks, as there are some differences from the more familiar notion of linear programming duality.
2.1 Convex Analysis
In this section, we briefly describe the elements of convex analysis that we require to prove our general theorem on average-case hardness. For simplicity, we restrict attention to the finite-dimensional case, which is the only case that we will require in this paper. We assume the reader is already familiar with the definitions of convex sets and convex/concave functions. The following definitions are all more or less standard (see, for example, [Roc70]).
Definition 2.1 (Extended Real Numbers). Let denote the extended real numbers. The effective domain of an extended-real-valued function is the set
Definition 2.2 (Closed Proper Convex/Concave Functions). We say that is a closed proper convex function if it is lower semicontinuous (i.e. has closed sublevel sets for each ), if it is proper (i.e. never outputs , does not always output ), and if it is convex over its effective domain, which must be a convex set. If is defined only on a subset , then whether or not is a closed proper convex function is judged from its extension
We say that is a closed proper concave function if is a closed proper convex function.
Example 2.3 (Convex Indicator). If is a closed nonempty convex set, then its convex indicator , defined as follows, is a closed proper convex function:
Definition 2.4 (Subgradients). We say that a vector is a subgradient of a function at if for all ,
In general, subgradients need not exist or be unique. The set of all subgradients of at is called the subdifferential at , and it is denoted by . (It is known that if is convex, then at each point where is differentiable.)
Definition 2.5 (Convex Conjugates). We say that two functions are convex conjugates if they are both closed proper convex functions and
(It is known that every closed proper convex function has a unique convex conjugate , and that applying this transformation twice recovers the original .)
Definition 2.6 (Convex-Concave Conjugates). We say that are convex-concave conjugates if is a closed proper convex function, is a closed proper concave function, and the functions and are convex conjugates as per Definition 2.5. Equivalently,
Definition 2.7 (Convex-Concave Conjugates With Two Inputs). Given finite , we say that the two-input functions are convex-concave conjugates if the single-input functions and are convex-concave conjugates as per Definition 2.6 for all .
Definition 2.8 (Duality Map). Given convex conjugates , we say that points are dual to each other if they make equality hold in the following inequality, called the Fenchel-Young inequality, which holds for all :
(When and are differentiable, it is known that are dual to each other iff iff . In general, are dual to each other iff iff .) Similarly, given a convex-concave conjugate pair , we say that are dual to each other if the following inequality holds with equality:
Theorem 2.9 (Fenchel's Duality Theorem, Special Case [Roc70]). Let and be two convex-concave conjugate pairs. If at least one of these four functions is finite everywhere (i.e. never outputs ), then
If the finite function among the four was one of , then the supremum on the right-hand side is achieved by some particular . If the finite function among the four was one of , then the infimum on the left-hand side is achieved by some particular .
Remark 2.10. To build intuition for Theorem 2.9, here is a neat “proof”:
The preceding calculation is not entirely rigorous, since it swaps the inf and sup without proper justification. Nevertheless, it conveys the main idea. There also exist simple and fully rigorous proofs of Theorem 2.9 using the separating hyperplane theorem.
Remark 2.11. It is clear that achieve equality in (6) (i.e. are a “saddle point”) iff they are dual for and are dual for . Indeed, by the Fenchel-Young inequality, we have
with equality iff the two duality conditions hold (see Definition 2.8).
Remark 2.12. The finiteness assumption in our statement of Theorem 2.9 is actually far stronger than necessary, not only for equating the primal value with dual value , but also for proving that these values are attained when finite. In fact, to prove that there exists with , we only require there to be a non-vertical hyperplane that weakly separates the disjoint convex sets and . A weakly separating hyperplane between two disjoint convex sets always exists by the separating hyperplane theorem, and assuming that or is finite everywhere is just one of many convenient ways to force this hyperplane to be non-vertical.
2.2 Hinge Loss Rounding
We now discuss the known relationship between 0-1 loss, the binary hinge loss , and the Crammer-Singer multiclass hinge loss [CS01]
Remark 2.13 (Hinge Loss Rounding [KKMS08, Section 3.2]). Given , let be its projection onto the interval . If we sample a random threshold , then
Thus, a -upper bound on hinge loss implies a -upper bound on 0-1 loss.
Remark 2.14 (Crammer-Singer Rounding [CS01]). Given , let . Then,
Thus, a -upper bound on Crammer-Singer hinge loss implies a -upper bound on 0-1 loss.
2.3 Multicalibration
Here, we state the precise forms of computational indistinguishability that we require for the proof of our universal multiclass hardcore lemma. There are two definitions that we need: calibration [Daw82] and multiaccuracy [HKRR18, KNRW18].
We begin with the definition of weight-restricted calibration. This condition requires the error of the model to be approximately uncorrelated with the model's predictions themselves, even after post-processing by some appropriately bounded weight functions in a prespecified collection . We remark that the notational similarity of (the weight function class) and (our noisy channel) is not intentional but nevertheless convenient since the former will be largely determined by the latter.
Definition 2.15 (Weighted Calibration [Daw82, GKSZ22]). Given finite and , a distribution over , and , we say that is -calibrated if for all ,
Next, we define multiaccuracy and its weighted variant. Intuitively, multiaccuracy requires the error of to be approximately uncorrelated with each function in a prespecified collection . The weighted version also includes a factor depending on the model's predictions themselves, as in the definition of a calibration weight function.
Definition 2.16 (Multiaccuracy [HKRR18, KNRW18]). Given finite and , a distribution over , and a collection , we say that is -multiaccurate if for all ,
Definition 2.17 (Weighted Multiaccuracy [GKSZ22, CGKR25]). In the setting of Definition 2.16, given a weight function , we say that is -multiaccurate with respect to if for all ,
Note that standard -multiaccuracy corresponds to the case that .
It is by now well known that for any class (e.g. a Boolean circuit complexity class), one can construct a multiaccurate predictor of “complexity” not much greater than that of itself. By this, we mean that can be evaluated by performing simple arithmetic operations on the values , where and the functions all belong to the class . With , this has been known since the work of [TTV09], and the fact that the same bound holds even if one incorporates weight functions depending on the model itself in complex ways has been known since [HKRR18, DKR].
Theorem 2.18 (Outcome Indistinguishability via Multiplicative Updates [DLLT23, Example 5.6]). For all finite and , distributions over , collections of functions , and , there exists with the following properties:
• (Indistinguishability) For all functions ,
• (Complexity Bound) The model has the form , where we define and
normalized so that , for some functions .
3 A General Framework
In this section, we present a very general framework, captured by Theorem 3.3, which we will instantiate in later sections to prove our main results. We will also see in later sections that this framework can be used to derive several of the prior results on pseudoentropy and the MaxEnt algorithm that we discussed in the introduction.
Before stating the result, let us recall from Section 2.1 the precise statement of our convex-concave conjugacy requirement on the loss function g and fidelity function h:
Since a supremum of linear functions is convex, and since an infimum of linear functions is concave, these conditions imply that and are convex and concave, respectively. Later, we will also require the effective domain of in its second input to be contained in , but we do not yet need to impose that requirement.
Our general result will be stated not only in terms of , but also in terms of a pair of regularizer or constraint functionals . These take as input a function from to , and they output a value in . Intuitively, we will use these functions to impose penalties like the penalty appearing in (1) and Theorem 1.9, as well as the indistinguishability constraints appearing in (2) and Theorem 1.9. We require the functionals and to satisfy a conjugacy relationship similar to the one satisfied by and :
There are a couple key differences between the conjugacy relationships in (7) and (8). The first difference is that (7) optimizes over -dimensional vectors , but (8) optimizes over entire functions , which can be viewed as -dimensional vectors. The second difference is that (7) uses the standard inner product in , but (8) uses an inner product that crucially depends on the given distribution over pairs. We now give two examples of pairs of interest. The first is the one that we saw implicitly in the introduction.
Definition 3.1 (Indistinguishability Constraint Functionals). Given finite and , a distribution over a finite collection , and , the indistinguishability constraint functionals are defined as follows. For a function , the concave functional enforces the constraint that is approximately uncorrelated with each :
Next, for , the convex functional checks that (in particular, must ignore its -input), and then applies an penalty to the coefficients used to form :
Note that if . The types of these functionals are .
Definition 3.2 (Indistinguishability Penalty Functionals). Given finite and , a distribution over and a convex compact collection , the indistinguishability penalty functionals are defined as follows. For a function , the concave functional penalizes for being too positively correlated with any :
Note that is roughly 0 when is uncorrelated with but takes on a large negative value when some is positively correlated with some . We also write “max” instead of “sup” since
In particular, is not finite whenever it contains two or more elements!
The reason for focusing on , as opposed to , will become apparent later when we state Theorem 3.3.
is assumed to be compact. Next, for , the convex functional simply checks that (in particular, must ignore its -input):
This is closely related to the convex indicator function defined in Example 2.3. Finally, as in Definition 3.1, the types of these functionals are .
Our general theorem, which we state and prove below, asserts that for any suitable , minimizing in expectation over functions that have been penalized (or constrained) by is equivalent to maximizing in expectation over functions that have been penalized (or constrained) by . Despite the seemingly abstract form of the theorem, involving six functions , the proof is actually a surprisingly straightforward application of Fenchel duality (Theorem 2.9). The theorem statement will inherit some mild technical assumptions from our stated version of Fenchel duality, which, as we explain in Remark 2.12, can easily be relaxed.
In subsequent sections, we will see even more examples of pairs and pairs that convey the significance of Theorem 3.3. For example, in Section 4, we apply the general result to prove our main result on channel fidelity, Theorem 1.9, and its soft penalty variant. In Section 6, we use it to prove our universal hardcore lemma, Theorem 1.20. In Section 7, we use it to recover MaxEnt duality, Theorem 1.22, as a special case. Finally, in Section 5, we use it to prove several additional interesting and concrete multiclass generalizations of the hardcore lemma.
Theorem 3.3 (Six Functions). Fix finite sets , a distribution over , functions , and functionals . Then, under the three technical conditions stated below, strong duality holds:
The three technical conditions are:
(a) and are two-input convex-concave conjugates as in Definition 2.7.
(b) and are one-input convex-concave conjugates as in Definition 2.6 under
(c) At least one of the functions , or is finite everywhere (i.e. never outputs ).
Also, if the finite function among the four was one of , then the supremum on the right-hand side of equation (9) is attained if finite. Similarly, if the finite function among the four was one of , then the infimum on the left-hand side of equation (9) is attained if finite.
Proof. In order to apply Fenchel duality (Theorem 2.9), we must define suitable convex-concave conjugate pairs and on the space ^{18}\mathcal{V}\dim\mathcal{V}=kn$, where the
There is actually a fourth technical condition. We require that and only depend on the values and for pairs that actually occur with positive probability under . Equivalently, if , then , and a similar condition should hold for .
Technically, modulo functions that output 0 with probability 1, as explained in the previous footnote.
integer is the number of pairs that occur with strictly positive probability under . With this in mind, define
It is clear that these are closed proper convex and closed proper concave functions on , respectively. It is also easy to check that these are conjugates, as per Definition 2.6, because for ,
Next, we define and . By assumption, these are also a convex-concave conjugate pair of -valued functions on . Finally, we conclude the proof by applying Theorem 2.9 to the pairs and defined above.
4 Hardness of Learning and Masking Channel Fidelity
In this section, we prove Theorem 1.9, restated below for convenience, which is our precise characterization of average-case hardness in terms of the fidelity of masking channels. Our proof strategy will be to carefully instantiate our general framework (Theorem 3.3) with an appropriate choice of the functions and . The proof relies on various helper lemmas that calculate convex-concave conjugate pairs; we generally defer such lemmas to Appendix A.
Theorem 1.9 (Hardness vs Fidelity). For all finite , distributions over , finite , convex-concave conjugates , , and ,
Proof. Given the functions from the theorem statement, define
and
These are convex-concave conjugates by Lemma A.1. Next, let be the indistinguishability constraint functionals (Definition 3.1), which are convex-concave conjugates by Lemma A.2. Since has a bounded effective domain, its conjugate , which is defined as a supremum over this domain, is always finite. Hence, so is . Therefore, applying Theorem 3.3 to yields
When and is bounded below, the infimum on the left-hand side can be replaced with a minimum.
Next, we make a simple notational change. Specifically, we define the noisy channel such that the column of is . Then, the optimization problem on the right-hand side of the above equation can be rewritten as
Of course, the constraint on is precisely the requirement that is -pseudorandom, as per Definition 1.3. This proves the main part of Theorem 1.9.
For the second part, suppose is bounded below by the value on centered actions. If , then it is never beneficial to use whose norm exceeds
Indeed, any such is strictly outperformed by . Thus, we can restrict the search space to the ball of radius , which is compact since is finite. Since the left-hand side minimizes a lower semicontinuous function over a compact set, it attains this minimum.
Next, we prove a slightly different version of the preceding theorem which uses a soft hardcore penalty instead of the hardcore constraint. This version is appealing for its more flexible treatment of the class C and fewer hyperparameters.
Theorem 4.1 (Hardness vs Fidelity, Soft Penalty). For all finite and , distributions over , compact convex , and convex-concave conjugates and ,
Proof. Define in terms of as in the preceding proof of Theorem 1.9. Let be the hardcore penalty functionals (Definition 3.2), which are convex-concave conjugates by Lemma A.3. Finally, we note that the function is always finite by assumption, which lets us apply our general duality framework (Theorem 3.3) to . This concludes the proof.
5 Multiclass Hardcore Lemmas
In this section, we state and prove our various instantiations of Theorem 1.9 and investigate multiclass hardcore certificates via surrogate losses for , as discussed in Section 1.2. We begin with our result in the binary setting, whose statement we recall for convenience.
Theorem 1.10 (Hinge, , and Hardcore Lemmas). Fix a finite set , a distribution over pairs , a finite , and . Then, using the abbreviation ,
where p, q > 1 are any real numbers satisfying .
Proof. Given Theorems 1.9 and 3.3, the current proof is mostly a matter of defining appropriate loss-fidelity pairs and verifying that they are indeed convex-concave conjugates:
- First, consider the fidelity function
By Definition 2.6, its conjugate is
where we have used the fact that an affine function of is maximized at either or . This is precisely hinge loss.
- Next, consider the fidelity function
By Definition 2.6, its conjugate is
Since , this is precisely loss.
- Finally, consider the fidelity function
We show in Lemma A.4 that the conjugate of is precisely loss.
To conclude the proof, we invoke Theorem 1.9 with . (Technically, we must map distributions in , which is a line segment, to the interval , but we omit the details of this very simple change of variables, which is essentially just a change of notation. Also, for the third example, where is not bounded in the interval , we instead apply Theorem 3.3 with and the indistinguishability constraint functionals from Definition 3.1.)
Next, we prove our results regarding the multiclass hardness certificates associated with multi-class hinge losses , , and . We recall the definitions of these loss functions and the statements of the relevant theorems below. For the meaning of these losses and the interpretations of their corresponding hardness certificates, see Section 1.2.
Definition 5.1 (Multiclass Hinge Losses). Given with mean 0, let
We extend these formulas to all by first centering to have mean 0. The third of these hinge-like loss functions, the Crammer-Singer loss, was introduced by [CS01].
Theorem 1.11 (Weak Hinge Loss vs Uniform Noise). For all finite and , distributions over , finite , and ,
Proof. We apply Theorem 1.9 with the fidelity function from Example 1.8, which constrains the masking channel to mix the labels with uniform noise:
Its conjugate is the loss function
which agrees with for all mean-0 inputs .
Theorem 1.12 (Strong Hinge Loss vs Arbitrary Noise). For all finite and , distributions over , finite , and ,
Proof. We apply Theorem 1.9 with the fidelity function from Example 1.6:
Its conjugate is the loss function
which agrees with for mean-0 actions a.
Theorem 1.13 (Crammer-Singer Hinge Loss vs Maximum TV Distance). For all finite and , distributions over , finite , and ,
Proof. We apply Theorem 3.3 with the indistinguishability constraints in Definition 3.1, which are conjugates by Lemma A.2, as well as the function
Its conjugate is the function
which is precisely .
5.1 Bounds for Surrogate Losses
We now shift gears to our study of surrogate losses for , with the goal of understanding which hardness certificates are guaranteed to exist under the mild assumption of -hardness under 0-1 loss for a given class after appropriate rounding to . As a warm-up before proving our main result showing that surrogate losses can be determined from a loss function's associated entropy, we prove a result specific to the Crammer-Singer loss . The result states that 0-1 loss is at most times the Crammer-Singer hinge loss, provided that we first project onto the probability simplex . While similar bounds appear in the literature [vdHFCB21], we provide a proof for completeness.
Lemma 5.2 (Crammer-Singer Rounding). Given and , let . Equivalently, let for the unique threshold such that . Then,
Proof. Let . When , there's nothing to prove. Otherwise, we have , so there must be some with . Since and ,
The preceding result implies, in particular, that is a -surrogate loss for , as formulated in Definition 1.14. Next, we prove Theorem 1.16, which shows that -surrogate losses can be completely determined by inspecting the relevant losses' associated entropy functions, which are given by the formula in Definition 1.15.
Theorem 1.16 (Entropy Surrogates). Given sets and and finite losses and , let denote their entropy functions. If are finite, then is a -surrogate loss for if and only if for all .
Proof. Suppose first that is a -surrogate loss for with rounding rule . Then,
Conversely, suppose that . Then, by the minimax theorem, for all ,
Note that switching the “min” and “max” is certainly valid because and are finite. Therefore, any maximizer for the left-hand side is a rounding rule proving -surrogacy.
In Appendix A, we give an alternate proof of Theorem 1.16 in the special case of surrogates for the 0-1 loss. This proof is quite a bit more intuitive than the previous one, and it also clarifies the structure of the optimal rounding rule. Next, we calculate the entropy functions for , , , and and plug these into Theorem 1.16 to relate each of the losses , , and to 0-1 loss. This implies, in particular, that -hardness under implies the existence of the hardness certificates corresponding to and with the parameters discussed in Section 1.2.
Lemma 5.3 (Entropy Calculations). For any , we have
Corollary 5.4. If , the loss functions , , and are surrogate losses for with parameters , , . If , then all three parameters are equal to 2 instead. Each of these parameters is optimal.
Proof. We combine Theorem 1.16 with the formulas from Lemma 5.3.
- For weak hinge loss, take any with some coordinate equal to 0 and no coordinate equal to 1 (needs ). By Lemma 5.3, we have but , so .
• For strong hinge loss, let and note that and . Therefore,
with equality at .
• For Crammer-Singer hinge loss, the ratio between and is precisely , which is minimized at the uniform distribution with .
The case k = 2 is easily checked separately.
Although we have focused our discussion in the multiclass case on various generalizations of hinge loss that are closely related to 0-1 loss, there are of course many other multiclass convex losses, such as losses and more. Each of these gives rise to its own quantitative notion of hardness and, via our results, its own notion of a “hardness certificate”. We conclude this section with just one such example, pertaining to multiclass loss. Here, the hardness certificate is neither a measure nor a masking channel, but a function , whose outputs need not comprise a probability distribution over (in fact, some coordinates may even be negative).
Theorem 5.5 (Multiclass Hardcore). For all finite and , distributions over , finite , and ,
Proof. As usual, we apply Theorem 3.3 with the indistinguishability constraints from Definition 3.1. We use the functions and
These are conjugates because
Invoking Theorem 3.3 as usual completes the proof.
6 Universal Masking Channels From Multicalibration
In this section, we first prove our theorem on universal hardness certificates via masking channels (Theorem 1.20). We then show how this result can be instantiated to recover a previous multicalibration-based construction of hardcore measures in the setting of binary 0-1 loss [CDV24, CGKR25]. We state and prove our new result in Section 6.1 and compare it to the prior one in Section 6.2.
6.1 Deriving the Multiclass Result
To begin, we need a certain helper lemma. This lemma establishes the key relationship between the lowest-loss response to a loss function g and the highest-fidelity response to a fidelity function h. To begin, we recall the definitions of these post-processing functions:
Definition 1.17 (Lowest-Loss Response). Given a function , a distribution , and a label , a lowest-loss response to with respect to is any
assuming any exist. We instead say is -optimal if it achieves loss within of the infimum.
Definition 1.18 (Highest-Fidelity Response). Given a fidelity function , a distribution , and a label , a best-fidelity response to with respect to is any
assuming any exist. We instead say is -optimal if it achieves fidelity within of the maximum.
Having reviewed the definitions of and , we now state and prove our key helper lemma, which states that these two functions actually achieve the same value for their respective goals:
Lemma 6.1. Given a label distribution , let . Then, for all convex-concave conjugates and , all -optimal , and all -optimal ,
Proof. First, define
Next, define
By Definitions 1.17 and 1.18, the function is -optimal for the optimization problem defining and is -optimal for the optimization problem defining . Therefore, if we could show that , we would be done. For this, we just apply Theorem 1.9 with containing just the functions , so that for all , and error parameter . We let . The constraint is -masking for translates to .
The preceding lemma corresponds to the important special case of Theorem 1.9 where the label is a truly random sample from a distribution , entirely independent of the “context”, “feature vector”, or “input” . Soon, we will apply this helper lemma to each z-level set of a multicalibrated model, within which the true label is computationally indistinguishable from precisely this scenario.
We now state and prove the formal version of Theorem 1.20, which is the main result of this section. For clarity, we shall split the formal theorem into three parts:
(1) The first part, Theorem 6.4, shows that if there exists a model of the conditional distribution with certain indistinguishability properties depending on the loss function , the fidelity function , and the class , then yields a near-optimal noisy channel certifying the hardness of approximating by members of .
Implicit in our “near-optimal” claim is the assumption that the complexity of p is comparable to that of C. The required complexity bound on p is established in the next part.
(2) The second part, Theorem 6.5, shows that even for a large family of loss functions and fidelity functions , there exists a single universal model satisfying the relevant indistinguishability properties for all simultaneously. Moreover, if the functions and and can all be computed efficiently, then so can .
The proof of this part will be very simple. It involves a direct appeal to well-known constructions of low-complexity models satisfying calibration and multiaccuracy, which we reviewed in Section 2.3.
(3) The third part, Theorem 6.6, highlights special cases where the noisy channel itself, not just the model , can be made universal. Specifically, we show that the same post-processing works if all fidelity functions h in the class are monotone, or if they are all monotone mixing. For the definition of such loss functions, recall Definition 1.19.
Before stating the first part of our result, Theorem 6.4, we must define the specific indistinguishability conditions that we will require of the model . The first condition is a type of weighted multiaccuracy (i.e. a special case of Definition 2.17). We shall refer to this condition as channel-weighted multiaccuracy:
Definition 6.2 (Channel-Weighted Multiaccuracy). Given finite and , a distribution over , finite , and a fidelity function response we say that a model satisfies -weighted -multiaccuracy if for all ,
Intuition for this condition comes from rewriting the left-hand side as
and interpreting this as saying that is -masking.
The second indistinguishability condition that we will require of the model is a type of weighted calibration (i.e. a special case of Definition 2.15). We shall refer to this condition as duality gap calibration since the weight functions will be derived from the duality gap in Lemma 6.1.
Definition 6.3 (Duality Gap Calibration). Given finite and , a distribution over , finite , a loss function response and a fidelity function response we say that a model satisfies -duality gap calibration if
where we define by the formula
For applications, we will typically assume that is bounded in a box .
Intuition for this condition comes from the loss OI technique [GHK 23, DKR 21]. Lemma 6.1 gives us a guarantee that holds for labels , the simulated distribution of the predictor . We want this guarantee to hold for the true labels . Since the tests we wish to fool only depend on the predictions, this can be framed as a calibration condition.
At this point, having defined channel-weighted multiaccuracy and duality gap calibration, we are ready to state and prove the three main results of this section. First, we show that these properties of a model are sufficient for constructing masking channels that certify hardness:
Theorem 6.4 (Universal Masking Channels – Properties). Fix finite and , a distribution over , finite , a model , and convex-concave conjugates and . Let be an -optimal lowest-loss response, and let be an -optimal highest-fidelity response. Then,
(a) (Hardness Fidelity) If the model is -weighted -multiaccurate, then the masking channel derived from certifies hardness, in the sense that for all ,
(b) (Hardness Fidelity) If the model is -duality gap calibrated, then the bound from part (a) is nearly tight, in the sense that the action achieves loss
(Note: although in general, we show in Theorem 6.5 that “nearly” belongs to .)
Proof. We prove each part separately.
(a) Convex-concave conjugacy of (Definition 2.7) says that for all ,
For each and , we can set and , which gives
Our goal is to show that the inner product term on the right is small in expectation. To begin, let us rewrite it slightly. Since the centering function is equivalent to subtracting off the mean of , we can rewrite this inner product as
Next, we make the substitution , where we define . This is valid by the very definition of (Definition 1.18). Making this substitution yields the expression
Next, we move the factor of to the other side of the inner product:
By the -weighted -multiaccuracy assumption, in expectation, this quantity is
(b) Our goal is to show that
Alternatively, phrased in terms of the function Gap from Definition 6.3, we want
By the -duality gap calibration assumption, it suffices to show that
But we have
So the desired bound follows from Lemma 6.1.
At this point, we have shown that if the model satisfies weighted calibration and weighted multiaccuracy, it yields our desired universal masking channel. The next theorem asserts that such models indeed exist for a large family of loss functions and fidelity functions simultaneously. Perhaps the best way to interpret the following statement, which expresses as a combination of various functions , is as follows: if the are efficiently computable, which they generally should be, then the predicted label distribution is computable by combining the outputs of functions from the class on the input . In other words, the complexity of exceeds that of by only an factor.
Theorem 6.5 (Universal Masking Channels – Existence). In the setting of Theorem 6.4, consider a family of tuples , where are convex-concave loss-fidelity pairs and are (possibly suboptimal) responses. Let be the collection of all functions with one of two possible forms:
Suppose that the range of each is contained in the box . Then, there exists a single model satisfying all of the assumptions in Theorem 6.4 for all loss-fidelity pairs in the family. Moreover, has the form , where we define and
normalized so that , for some functions , and for some common error parameter , where is defined in Theorem 6.4.
Proof. Apply Theorem 2.18 to scaled down by a factor of , as well as .
Theorem 6.6 (Universal Masking Channels – Common Post-Processing). There exists a common highest-fidelity response function for all monotone fidelity functions. There exists a (different) common highest-fidelity response function for all monotone mixing fidelity functions.
Proof. The proof is essentially exactly as we sketched in the introduction and depicted in Figure 2. Indeed, let be any noisy channel satisfying the following properties:
• (Feasible) . That is, adjusts the probability mass of to be uniform.
• (Minimal Movement) For all , write the probability mass moved from to as
For all , we require , and for all , we require .
It is clear that such a function , visualized in Figure 2a, maximizes over subject to the feasibility constraint for any monotone fidelity function , as defined in Definition 1.19. Similarly, for monotone mixing fidelity functions, also defined in Definition 1.19, let and consider the matrix whose column is
Intuitively, this channel takes all probability mass initially on label above the minimum and redistributes it uniformly among the labels. Clearly, is feasible and maximizes for any monotone mixing fidelity function . This concludes the proof.
6.2 Recovering the Binary Result
In this section, we show how Theorems 6.4, 6.5, and 6.6 can be used to recover a recent result of [CDV24, CGKR25], which shows how to construct a hardcore measure in the traditional setting of binary 0-1 loss given a multicalibrated (or calibrated multiaccurate) predictor . In fact, our new Theorem 6.6 shows that the construction of this recent result actually works for all monotone fidelity functions in the binary setting.
Theorem 6.7 ([CDV24, CGKR25]). For all finite , distributions over , finite , and models , define by
Then, the following statements hold:
(a) (Hardness Density) If satisfies the weighted multiaccuracy condition
then the measure derived from certifies hardness against :
(b) (Hardness Density) If satisfies the calibration condition
then the bound from part (a) is nearly tight:
Proof. In the statements of Theorems 6.4, 6.5, and 6.6, let us substitute and map the set , which is a line segment, to the interval in the natural way. In particular, the highest-fidelity response , which was previously a 2-by-2 matrix with columns in , is now just a pair of scalars for . We must verify three properties:
(i) The highest-fidelity response simplifies to
(ii) The channel-weighted multiaccuracy distinguishers simplify to
(iii) The duality gap calibration distinguishers simplify to
To begin, consider the fidelity function from Example 1.8, specialized to and notation:
Its convex conjugate is hinge loss, whose lowest-loss response is . We now check the three properties listed earlier:
(i) First, to determine the highest-fidelity response, which we write as , we could appeal to Theorem 6.6 by monotonicity, but for clarity, let us calculate it directly using Definition 1.18. In notation, we seek the function that maximizes
subject to the constraint
From the constraint, we immediately see that must have the form
for some function . In terms of , our objective is to maximize
Thus, we should take to be as large as possible. However, we also need the range of to remain bounded in the interval . Thus, we choose , which leads to
(ii) The channel-weighted multiaccuracy test
which can be rewritten as
simplifies substantially in notation to
as desired.
(iii) The duality gap calibration test
which can be rewritten as
simplifies substantially in notation to
as desired.
□
7 Characterizing Pseudoentropy via MaxEnt
In this section, we show that an exact characterization of pseudoentropy can be obtained using the MaxEnt algorithm. As discussed in the introduction, this result brings together two quite distinct lines of work: one in complexity theory [VZ12, Zhe14, HV25] and another in machine learning [BPP96, LDPDP97, DPS07, AS06]. We also show that it can be derived from our general Theorem 3.3.
To begin, let us revisit the starting point of our investigation: the classic hardcore lemma for binary 0-1 loss (Theorem 1.1). Recall that the first step we took, even before moving to the multiclass case, was to take the -hardcore measure and use it to decompose the function into
The first term, , which randomizes outside the hardcore set, was the inspiration for our new noisy channel property. However, the other term, , which randomized inside the hardcore, is the starting point for the investigation of generalized pseudoentropy, pioneered by [VZ12, VZ13]. The relation between these two views can be visualized using Figure 3.
We now state a result that exactly characterizes pseudoentropy via (the hardness of) minimizing the associated GLM loss. This provides an analogue of our Theorem 1.9 in the setting of pseudoentropy.
Theorem 1.22 (Characterizing pseudoentropy using MaxEnt [BPP96, LDPDP97, DPS07, AS06]). For all finite and , distributions over pairs , finite and convex-concave conjugate pairs and , let (GLM loss). Then, for all ,
When and is bounded below, the infimum on the left-hand side can be replaced with a minimum.
Proof. Given from the theorem statement, let and
By Lemma A.5, the functions and are conjugates. Next, let be the indistinguishability constraint functions from Definition 3.1, which are also conjugates by Lemma A.2. Since has a bounded effective domain, its conjugate , which is defined as a supremum over this domain, is always finite. Hence, so is . Therefore, applying Theorem 3.3 to yields
Next, we show that without loss of generality, we may assume that the function on the right-hand side ignores its second input. To this end, define
Clearly, if is -multiaccurate (i.e. feasible for the maximization problem) then so is . Moreover, by concavity of and Jensen's inequality, we have
Thus, replacing with , we see that -dependence in the maximizer is unnecessary.
The proof of the final claim is almost exactly the same as in the proof of Theorem 1.9, and we include it for the sake of completeness: Suppose is bounded below by the value . If , then it is never beneficial to use whose norm exceeds
Indeed, any such is strictly outperformed by . Thus, we can restrict the search space to the ball of radius , which is compact since is finite. Since the left-hand side minimizes a lower semicontinuous function over a compact set, it attains this minimum.
References
[AS06] Yasemin Altun and Alex Smola. Unifying divergence minimization and statistical inference via convex duality. In Gábor Lugosi and Hans Ulrich Simon, editors, Learning Theory, pages 139–153, Berlin, Heidelberg, 2006. Springer Berlin Heidelberg.
[BBC+25] Marco Bressan, Nataly Brukhim, Nicolò Cesa-Bianchi, Emmanuel Esposito, Yishay Mansour, Shay Moran, and Maximilian Thiessen. Of dice and games: A theory of generalized boosting. In Nika Haghtalab and Ankur Moitra, editors, The Thirty Eighth Annual Conference on Learning Theory, June 30 - July 4, 2025, Lyon, France, volume 291 of Proceedings of Machine Learning Research, pages 596–640. PMLR, 2025.
[BCHM20] Nataly Brukhim, Xinyi Chen, Elad Hazan, and Shay Moran. Online agnostic boosting via regret minimization. In Hugo Larochelle, Marc'Aurelio Ranzato, Raia Hadsell, Maria-Florina Balcan, and Hsuan-Tien Lin, editors, Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual, 2020.
[BDMM23] Nataly Brukhim, Amit Daniely, Yishay Mansour, and Shay Moran. Multiclass boosting: Simple and intuitive weak learning criteria. In Alice Oh, Tristan Naumann, Amir Globerson, Kate Saenko, Moritz Hardt, and Sergey Levine, editors, Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023, 2023.
[Ber15] Dimitri P. Bertsekas. Convex Optimization Algorithms. Athena Scientific, 2015.
[BHK09] Boaz Barak, Moritz Hardt, and Satyen Kale. The uniform hardcore lemma via approximate Bregman projections. In Proceedings of the Twentieth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA '09, pages 1193–1200. Society for Industrial and Applied Mathematics, 2009.
[BJM06] Peter L. Bartlett, Michael I. Jordan, and Jon D. McAuliffe. Convexity, classification, and risk bounds. Journal of the American Statistical Association, 101(473):138–156, 2006.
[BPP96] Adam L. Berger, Vincent J. Della Pietra, and Stephen A. Della Pietra. A maximum entropy approach to natural language processing. Comput. Linguist., 22(1):39–71, March 1996.
[CDV24] Sílvia Casacuberta, Cynthia Dwork, and Salil P. Vadhan. Complexity-theoretic implications of multicalibration. In ACM Symposium on Theory of Computing (STOC), 2024.
[CGKR25] Sílvia Casacuberta, Parikshit Gopalan, Varun Kanade, and Omer Reingold. How global calibration strengthens multiaccuracy. In IEEE Symposium on Foundations of Computer Science (FOCS), 2025.
[CS01] Koby Crammer and Yoram Singer. On the algorithmic implementation of multiclass kernel-based vector machines. J. Mach. Learn. Res., 2:265–292, 2001.
[CT06] Thomas M. Cover and Joy A. Thomas. Elements of information theory. Wiley, 2006.
[Daw82] A. Philip Dawid. The well-calibrated bayesian. Journal of the American Statistical Association, 77:605–610, 1982.
[DKR 21] Cynthia Dwork, Michael P. Kim, Omer Reingold, Guy N. Rothblum, and Gal Yona. Outcome indistinguishability. In ACM Symposium on Theory of Computing (STOC), 2021.
[DLLT23] Cynthia Dwork, Daniel Lee, Huijia Lin, and Pranay Tankala. From pseudorandomness to multi-group fairness and back. In Conference on Learning Theory (COLT), 2023.
[DPS07] Miroslav Dudík, Steven J. Phillips, and Robert E. Schapire. Maximum entropy density estimation with generalized regularization and an application to species distribution modeling. Journal of Machine Learning Research, 8(44):1217–1260, 2007.
[Fel10] Vitaly Feldman. Distribution-specific agnostic boosting. In Andrew Chi-Chih Yao, editor, Innovations in Computer Science - ICS 2010, Tsinghua University, Beijing, China, January 5-7, 2010. Proceedings, pages 241–250. Tsinghua University Press, 2010.
[FK96] Alan M. Frieze and Ravi Kannan. The regularity lemma and approximation schemes for dense problems. In IEEE Symposium on Foundations of Computer Science (FOCS), 1996.
[GHK ] Parikshit Gopalan, Lunjia Hu, Michael P. Kim, Omer Reingold, and Udi Wieder. Loss minimization through the lens of outcome indistinguishability. In Innovations in Theoretical Computer Science Conference (ITCS), 2023.
[GKR ] Parikshit Gopalan, Adam Tauman Kalai, Omer Reingold, Vatsal Sharan, and Udi Wieder. Omnipredictors. In Innovations in Theoretical Computer Science Conference (ITCS), 2022.
[GKSZ22] Parikshit Gopalan, Michael P. Kim, Mihir Singhal, and Shengjia Zhao. Low-degree multicalibration. In Conference on Learning Theory (COLT), 2022.
[HILL99] Johan Hästad, Russell Impagliazzo, Leonid A. Levin, and Michael Luby. A pseudorandom generator from any one-way function. SIAM Journal on Computing, 28(4):1364–1396, 1999.
[HKRR18] Úrsula Hébert-Johnson, Michael P. Kim, Omer Reingold, and Guy N. Rothblum. Multicalibration: Calibration for the (computationally-identifiable) masses. In International Conference on Machine Learning (ICML), 2018.
[Hol05] Thomas Holenstein. Key agreement from weak bit agreement. In ACM Symposium on Theory of Computing (STOC), 2005.
[HV25] Lunjia Hu and Salil Vadhan. Generalized and unified equivalences between hardness and pseudoentropy. In Theory of Cryptography Conference (TCC), 2025.
[Imp95] Russell Impagliazzo. Hard-core distributions for somewhat hard problems. In IEEE Symposium on Foundations of Computer Science (FOCS), 1995.
[IW97] Russell Impagliazzo and Avi Wigderson. P = BPP if E requires exponential circuits: Derandomizing the XOR lemma. In Proceedings of the 29th Annual ACM Symposium on Theory of Computing (STOC), pages 220–229. ACM, 1997.
[KK09] Varun Kanade and Adam Kalai. Potential-based agnostic boosting. In Y. Bengio, D. Schuurmans, J. Lafferty, C. Williams, and A. Culotta, editors, Advances in Neural Information Processing Systems, volume 22. Curran Associates, Inc., 2009.
[KKMS08] Adam Tauman Kalai, Adam R. Klivans, Yishay Mansour, and Rocco A. Servedio. Agnostically learning halfspaces. SIAM J. Comput., 37(6):1777–1805, 2008.
[KNRW18] Michael J. Kearns, Seth Neel, Aaron Roth, and Zhiwei Steven Wu. Preventing fairness gerrymandering: Auditing and learning for subgroup fairness. In International Conference on Machine Learning (ICML), 2018.
[KS03] Adam R. Klivans and Rocco A. Servedio. Boosting and hard-core set construction. Machine Learning, 51(3):217–238, 2003.
[LDPDP97] John Lafferty, Stephen Della Pietra, and Vincent Della Pietra. Statistical learning algorithms based on Bregman distances. In Proceedings of the 1997 Canadian Workshop on Information Theory, pages 77–80, Fields Institute, Toronto, Canada, 1997.
[O'D04] Ryan O'Donnell. Hardness amplification within NP. Journal of Computer and System Sciences, 69(1):68–94, 2004.
[Roc70] R. Tyrrell Rockafellar. Convex Analysis. Princeton University Press, 1970.
[Sav71] Leonard J Savage. Elicitation of personal probabilities and expectations. Journal of the American Statistical Association, 66(336):783–801, 1971.
[Sze75] Endre Szemerédi. Regular partitions of graphs. Technical report, Stanford University, Stanford, CA, USA, 1975.
[TB07] Ambuj Tewari and Peter L. Bartlett. On the consistency of multiclass classification methods. Journal of Machine Learning Research, 8:1007–1025, 2007.
[Tre03] Luca Trevisan. List-decoding using the XOR lemma. In Proceedings of the 44th Annual IEEE Symposium on Foundations of Computer Science (FOCS), pages 126–135. IEEE Computer Society, 2003.
[TTV09] Luca Trevisan, Madhur Tulsiani, and Salil P. Vadhan. Regularity, boosting, and efficiently simulating every high-entropy distribution. In IEEE Conference on Computational Complexity (CCC), 2009.
[vdH20] Dirk van der Hoeven. Exploiting the surrogate gap in online multiclass classification. In Advances in Neural Information Processing Systems, volume 33, 2020.
[vdHFCB21] Dirk van der Hoeven, Federico Fusco, and Nicolò Cesa-Bianchi. Beyond bandit feedback in online multiclass classification. In Advances in Neural Information Processing Systems, volume 34, pages 13280–13291, 2021.
[VZ12] Salil P. Vadhan and Colin Jia Zheng. Characterizing pseudoentropy and simplifying pseudorandom generator constructions. In ACM Symposium on Theory of Computing (STOC), 2012.
[VZ13] Salil P. Vadhan and Colin Jia Zheng. A uniform min-max theorem with applications in cryptography. In CRYPTO: Annual International Cryptology Conference, 2013.
[Zhe14] Colin Jia Zheng. A Uniform Min-Max Theorem and Characterizations of Computational Randomness. PhD thesis, Harvard University, 2014.
A Additional Calculations
Lemma A.1. Given convex-concave conjugates and , define
and
Then are also convex-concave conjugates.
Proof. We calculate the conjugate of as follows:
Lemma A.2. The indistinguishability constraint functionals (Definition 3.1) are conjugates.
Proof. We first recall the definitions of R and S:
Note that if . To verify that and are conjugates, we first write down the expression for the conjugate of , as described in Definition 2.6:
This quantity is clearly if there exists any with . Indeed, just let the coefficient vector assign increasingly large positive (or negative) values to the coordinate corresponding to , while assigning 0 to all other coordinates. Otherwise, if for every , the overall quantity is 0, which is attained by the optimizer . This is precisely the function that we just defined.
Lemma A.3. The indistinguishability penalty functionals (Definition 3.2) are conjugates.
Proof. We first recall the definitions of R and S:
To verify that and are conjugates, we simply write down the expression for the conjugate of , as described in Definition 2.6. Doing so gives , which is just for the function that we just defined.
Lemma A.4. Let satisfy . Then and
are convex-concave conjugates, assuming .
Proof. To see that these are conjugates, let us calculate
Taking the derivative of the right-hand side objective, we see that it is maximized at the point . Completing the calculation with , we see that
where, in the last step, we used the fact that .
Next, we give an alternate proof of Theorem 1.16 in the special case of surrogates for the 0-1 loss. This proof is quite a bit more intuitive than the one we gave in Section 5, and it also clarifies the structure of the optimal rounding rule. As in our first proof, the non-trivial direction is to show the existence of a rounding scheme that matches the entropy gap. Before starting the proof, we make some simplifying observations.
-
We have not assumed that the losses are non-negative, but when , it is an implicit requirement for either inequality to hold with , since both and are non-negative. For instance, if , then clearly , so cannot be a -surrogate for for any . This is not a strong restriction since natural losses and entropies are non-negative.
-
Scaling the loss by a constant positive factor also scales the entropy . So after scaling both by , we may in fact assume .
-
The non-trivial direction is to come up with a rounding scheme that matches the entropy gap. With the rescaling , the guarantee becomes trivial if . This suggests that the rounding focus on labels where .
-
Since the probability should decrease with loss, this naturally suggests the quantities . Indeed, the proof will show that they can be used as probabilities. The rest of the mass can be distributed arbitrarily.
Alternate Proof of Theorem 1.16 when . As in our previous proof of Theorem 1.16, the surrogate loss relation implies the entropy relation by monotonicity. In the other direction, assume and satisfy for . For each , define the quantity
and let . We first show that . Let , and let . We may assume is non-empty, else for all and the claimed bound holds trivially. We consider , the uniform distribution over . Then,
Hence
We use this to bound
Our rounding will distribute probability mass according to and the remaining mass arbitrarily, so that for every . So we can bound the 0-1 loss by
where the last inequality holds since
Proof of Lemma 5.3.
• For 0-1 loss, it's clear the best action is , which incurs loss .
- For weak hinge loss, let be the least likely label. The action incurs loss . To see that this is optimal, consider any with mean 0. Then,
- For strong hinge loss, let and consider the action . After subtracting from each coordinate, it has mean 0 and incurs loss
This is just where is the uniform distribution, or equivalently . To see that this is tight, for any , define the margins . It is clear that incur the same loss. Using the fact that , this loss is
Each summand is minimized at either or , and picking the better of the two yields , as claimed.
- For Crammer-Singer hinge loss, consider any and let and let be the margin between the top two coordinates of . If the label is , then incurs loss , and otherwise incurs loss or more. Therefore,
As a function of , this is minimized at either m = 0 or m = 1, which yield loss values 1 and , respectively, attained by a = 0 and after centering.
Lemma A.5. If are convex-concave conjugates, then so are
and
Proof. We calculate the conjugate of as follows:
By definition, this is precisely .