arXiv:2611.05296cs.LGNov 2026

Manuscript Offprint

arXiv:2611.05296

Universal Hardness From Masking Channels

Parikshit Gopalan, Manoj Prabhakaran, Pranay Tankala

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 ff 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 ff using a class C\mathcal{C} 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 ff and make it C\mathcal{C}-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

References (40)