Skip to content

Fast Quantum Algorithms for Learning Linear Threshold Functions

Aleksandrs Krivcenko, Tuyen Nguyen, Ronald de Wolf

quant-ph

Abstract

Linear threshold functions (LTFs) are {−1,1}\{-1,1\}-valued functions fw,θ(x)=sgn(⟨w,x⟩−θ)f_{w,θ}(x)=\text{sgn}(\langle w,x\rangle-θ), where w∈Rnw\in\mathbb R^n has unit norm, θ∈Rθ\in\mathbb R, and x∈Rnx\in\mathbb R^n or {−1,1}n\{-1,1\}^n. If θ=0θ=0, the LTF is homogeneous, denoted fw=fw,0f_w=f_{w,0}. LTFs are fundamental linear classifiers. We give three results: one for general LTFs and two for homogeneous LTFs. (1) With real-domain membership queries evaluating fw,θ(x)f_{w,θ}(x) at any chosen x∈Rnx\in\mathbb R^n, we learn an LTF with classification error at most ε\varepsilon under the standard Gaussian distribution using O(log⁡(n/ε))O(\log(n/\varepsilon)) queries and O~(n)\widetilde{O}(n) other gates. Classically, Ω(nlog⁡(1/ε))Ω(n\log(1/\varepsilon)) queries are required, giving an exponential quantum query speedup. (2) A homogeneous LTF fwf_w over {−1,1}n\{-1,1\}^n whose kk nonzero weights are equal and positive is Majority on the support of ww. We identify this hidden support exactly using O(log⁡k)O(\log k) queries, exponentially improving Belovs' O(k1/4)O(k^{1/4}) upper bound. Our algorithm uses O(nlog⁡nlog⁡k)O(n\log n\log k) gates and has O(log⁡nlog⁡k)O(\log n\log k) non-oracle depth. Classical algorithms require Ω(klog⁡(n/k))Ω(k\log(n/k)) queries. (3) Suppose a unitary UU prepares discretized Gaussian quantum examples, corresponding to ∫xγn(x)∣x⟩∣fw(x)⟩ dx\int_x\sqrt{γ_n(x)}|x\rangle|f_w(x)\rangle\,dx. This is weaker than membership queries. Using the efficient quantum Hermite transform circuit, we learn homogeneous LTFs with classification error at most ε\varepsilon under the Gaussian distribution using O(n1/4/ε)O(n^{1/4}/\sqrt{\varepsilon}) applications of UU and U†U^\dagger and O~ ⁣(n5/4ε+nε2)\widetilde{O}\!(\frac{n^{5/4}}{\sqrt{\varepsilon}}+\frac{n}{\varepsilon^2}) other gates. Classically, Ω(n/ε)Ω(n/\varepsilon) examples are needed, giving a quartic quantum speedup in nn. We show that the quantum query complexities in all three cases are optimal by proving matching lower bounds.

Create a lesson

Metadata

Comments
v2: In section 3, new optimal lower bound. Small improvements in the presentation v3: Added new optimal lower bounds in Section 3 and 5, added gate complexity upper bound in Section 4, and improved the presentation in several places