arXiv:2611.05208cs.LGNov 2026

Manuscript Offprint

arXiv:2611.05208

Privacy for Free in Efficient Agnostic Halfspace Learning

Giorgio Racca, Amartya Sanyal, Vikrant Singhal

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We provide the first computationally efficient, differentially private algorithms for agnostically learning halfspaces. In particular, we study three different settings of agnostic learning: improper learning under Gaussian and log-concave marginals; proper learning under Gaussian marginals; and semi-agnostic learning under Gaussian marginals. In all three aforementioned settings, the added cost in the sample complexity due to privacy matches the respective non-private sample complexity, implying that we get privacy for free.

1 Introduction

Learning halfspaces is a classical problem in learning theory. A halfspace is specified by a weight vector w∈Rdw \in \mathbb{R}^d and a threshold t∈Rt \in \mathbb{R}, and classifies a point x∈Rdx \in \mathbb{R}^d according to sign(⟨w,x⟩+t)\text{sign}(\langle w, x \rangle + t). We write PP for the distribution of labeled examples and μ=PX\mu = P_X for its input marginal. In classical realizable PAC learning, the distribution PP is assumed to be linearly separable and the learner is required to output a classifier hh with errP(h)≤α\text{err}_P(h) \leq \alpha for any accuracy parameter α∈(0,1)\alpha \in (0,1). In the agnostic setting, the labels in the dataset may be arbitrary. Thus, the guarantee is relaxed to requiring the learner to output a classifier hh with error

errP(h)≤OPT+α,\text{err}_P(h) \leq \text{OPT} + \alpha,

where OPT is the minimum error achievable by a halfspace under PP. This setting allows the data to be noisy or imperfectly separable by a linear decision boundary. Differential privacy (DP) (Dwork et al., 2006) imposes an additional constraint, requiring the distribution of the learner's output to change only slightly when a single training example is replaced. In this paper, we study whether agnostic halfspace learning can be made differentially private with small computational and statistical overhead relative to non-private learning.

Agnostically learning halfspaces is known to be computationally hard, even for non-private improper learners, i.e., learners whose output need not be a halfspace (Tiegel, 2023). To overcome this, a rich line of work has focused on distributions with structured marginals but arbitrary labels. Under Gaussian and more generally log-concave marginals, Kalai et al. (2008) provided the first algorithm for agnostic learning of halfspaces whose runtime is polynomial in the dimension for every fixed accuracy. For Gaussian marginals, their complexity scales as dO(1/α4)d^{\mathcal{O}(1/\alpha^4)} which was later improved to dO(1/α2)d^{\mathcal{O}(1/\alpha^2)} by Diakonikolas et al. (2010). However, their algorithm was improper. A proper algorithm must output a halfspace and can be desirable because a linear halfspace offers a more compact and interpretable representation of the classifier with O(d)\mathcal{O}(d) parameters. For Gaussian marginals, Diakonikolas et al. (2021a) provided the first agnostic proper learner for halfspaces

Authors are listed in alphabetical order.

MarginalLearnerErrorSample complexity O~(⋅)\tilde{\mathcal{O}}(\cdot)
GaussianImproperOPT+α\alphaDGα2+DGεDPα\frac{D_G}{\alpha^2} + \frac{D_G}{\varepsilon_{\mathrm{DP}}\alpha}
Log-concaveImproperOPT+α\alphaDLα2+DLεDPα3/2\frac{D_L}{\alpha^2} + \frac{D_L}{\varepsilon_{\mathrm{DP}}\alpha^{3/2}}
GaussianProperOPT+α\alphaDGα2+DGεDPα+1α6+1εDPα5\frac{D_G}{\alpha^2} + \frac{D_G}{\varepsilon_{\mathrm{DP}}\alpha} + \frac{1}{\alpha^6} + \frac{1}{\varepsilon_{\mathrm{DP}}\alpha^5}
GaussianProperC⋅OPT+αC \cdot \mathrm{OPT} + \alphadα2+dεDPα\frac{d}{\alpha^2} + \frac{d}{\varepsilon_{\mathrm{DP}}\alpha}

Table 1: The rows correspond, respectively, to Theorem 2.1, Theorem D.1, Theorem 3.1, and Theorem 4.1. Here, DG≍dO(1/α2)D_G \asymp d^{\mathcal{O}(1/\alpha^2)} and DL≍dexp⁡(O(1/α))D_L \asymp d^{\exp(\mathcal{O}(1/\alpha))} match known rates in the non-private setting (Diakonikolas et al., 2010; Kalai et al., 2008), and O~\tilde{\mathcal{O}} suppresses polylogarithmic factors.

with somewhat comparable statistical and computational complexity. For DP agnostic learning, Kasiviswanathan et al. (2008) provided the first agnostic private learners for finite classes with sample complexity scaling logarithmically in the size of the hypothesis class. Alon et al. (2020) and Li et al. (2025) provided general reductions from agnostic learning to realisable learning. However, their reductions are not shown to be computationally efficient. For halfspaces over finite domains, Beimel et al. (2019) provided efficient private agnostic learners, but over infinite domains such as Rd\mathbb{R}^d, distribution-free private learning of halfspaces is information-theoretically impossible even in the realisable setting due to their infinite Littlestone dimension (Bun et al., 2015; Alon et al., 2019). Distributional assumptions on the marginal μ\mu are therefore essential for both privacy and computational efficiency. Given the non-private agnostic learners under structured marginals (Kalai et al., 2008; Diakonikolas et al., 2021a), our goal in this work is to obtain matching statistical and computational complexities under differential privacy.

However, even under Gaussian marginals, the dO(1/α2)d^{\mathcal{O}(1/\alpha^2)} dependence on statistical and therefore computational complexity is likely unavoidable for approaches using polynomial regression due to known SQ lower bounds (Diakonikolas et al., 2021b; Goel et al., 2020). A natural relaxation for the problem is semi-agnostic proper learning, which allows halfspaces hh with

errP(h)≤C⋅OPT+α,\mathrm{err}_P(h) \leq C \cdot \mathrm{OPT} + \alpha,

where CC is a known universal constant. Non-private learners, under Gaussian marginals, can achieve this guarantee in time polynomial in both dd and 1/α1/\alpha simultaneously (Diakonikolas et al., 2022). This raises the natural question of whether the polynomial dependence on d,1/αd, 1/\alpha can be maintained for semi-agnostic learning under privacy. Together, these lead to the following question:

What statistical and computational guarantees can DP algorithms get under Gaussian marginals for i) agnostic improper, ii) agnostic proper, and iii) semi-agnostic proper learning of halfspaces ?

References (78)