Best-of-k selection for membership-query learners #
A learner whose hypothesis is good only with small probability p becomes a learner with
confidence 1 - η by the standard repetition-and-selection argument: run it on k independent
seeds, estimate the agreement of each of the k hypotheses with the target on t fresh uniform
points by membership queries, and output a hypothesis of largest empirical agreement
(UniformLearning.QueryLearner.bestOf). This is the confidence boosting step of
[Carmosino, Impagliazzo, Kabanets and Kolokolova, Theorem 2.11, p. 10:9]
[CIKK16], which applies it to the Nisan–Wigderson
reconstruction learner.
The hypotheses are fixed before the estimation queries, so the combined learner makes at most
k * q + t queries when each run makes at most q
(UniformLearning.QueryLearner.queriesAtMost_bestOf), and its output is the hypothesis of one of
the runs (UniformLearning.QueryLearner.exists_eval_bestOf_eq). Any bound on the hypotheses of
all runs, such as their circuit or formula complexity, therefore bounds the output
(UniformLearning.QueryLearner.le_sup_eval_bestOf).
The seeds of the combined learner are k independent seeds of the given learner together with
t independent uniform points (UniformLearning.QueryLearner.bestOfSeed). If the given learner
has error above ε with probability at most δ, the combined learner has error above ε + 2θ
with probability at most δ ^ k + 2 k exp (-2 t θ²): every run fails with probability δ ^ k,
and otherwise some agreement estimate is off by t θ with probability at most
2 k exp (-2 t θ²) by Hoeffding's inequality and a union bound
(UniformLearning.QueryLearner.learns_bestOf). For a learner with error at most ε with
probability at least p, taking k ≥ log (2/η) / p and t ≥ log (4k/η) / (2θ²) gives error at
most ε + 2θ with probability at least 1 - η
(UniformLearning.QueryLearner.learns_bestOf_of_success). For a weak learner, with agreement at
least 1/2 + γ with probability at least p, taking θ = γ/4 gives agreement at least
1/2 + γ/2 with probability at least 1 - η once t ≥ 8 log (4k/η) / γ²
(UniformLearning.QueryLearner.learns_bestOf_of_weak).
As for the other query learners here, only the number of queries is certified; running time is not. Selection compares exact integer agreement counts; ties go to the first maximizing run.
Main definitions #
Cslib.MachineLearning.UniformLearning.QueryLearner.agreeCount: the number of sample points where a hypothesis agrees with the target.Cslib.MachineLearning.UniformLearning.QueryLearner.selectBest: the index of a hypothesis of largest agreement count.Cslib.MachineLearning.UniformLearning.QueryLearner.bestOf: runktimes, estimate and select.Cslib.MachineLearning.UniformLearning.QueryLearner.bestOfSeed: the seed distribution ofbestOf.
Main results #
Cslib.MachineLearning.UniformLearning.QueryLearner.eval_bestOf: the output ofbestOfis the hypothesis of the selected run.Cslib.MachineLearning.UniformLearning.QueryLearner.queriesAtMost_bestOf:bestOfmakes at mostk * q + tqueries.Cslib.MachineLearning.UniformLearning.QueryLearner.le_sup_eval_bestOf: hypothesis complexity is at most the largest among the runs.Cslib.MachineLearning.UniformLearning.QueryLearner.learns_bestOf: the confidence ofbestOf.Cslib.MachineLearning.UniformLearning.QueryLearner.learns_bestOf_of_success: a learner that succeeds with probabilitypbecomes one with confidence1 - η, at errorε + 2θ.Cslib.MachineLearning.UniformLearning.QueryLearner.learns_bestOf_of_weak: weak learners become learners with confidence1 - η.
References #
Unfolding of agreeCount as the cardinality of the agreeing sample indices.
The agreement count on t sample points is at most t.
The index of a hypothesis among hs with the largest agreement count with g on the sample
x; the first such index.
Tie-breaking characterization of selectBest: j is the selected index iff it has maximal
agreement count and strictly beats every earlier index j' < j.
Best-of-k selection: run A on the seeds ω 0, …, ω (k - 1), query the target at the
sample points x 0, …, x (t - 1), and output a hypothesis of a run with the largest number of
agreements with the target at those points.
Run on the target f, bestOf outputs the hypothesis of the run selected by its agreement
with f on the sample.
Any measure c of the output hypothesis, such as its circuit complexity, is at most the
largest value of c on the hypotheses of the runs.
If every run makes at most q queries, bestOf makes at most k * q + t: k * q for the
runs and t for the agreement estimates.
The seed distribution of bestOf: k independent seeds drawn from μ and t independent
uniform sample points.
Confidence of best-of-k selection. If A has error above ε with probability at most
δ, then bestOf A k t has error above ε + 2θ with probability at most
δ ^ k + 2 k exp (-2 t θ²).
Boosting the confidence. If A has error at most ε with probability at least p, then
bestOf A k t with k ≥ log (2/η) / p runs and t ≥ log (4k/η) / (2θ²) sample points has error at
most ε + 2θ with probability at least 1 - η: all runs fail with probability at most η / 2, and
some agreement estimate is off by tθ with probability at most η / 2.
From weak to confident learning. If A outputs a hypothesis with agreement at least
1/2 + γ (error at most 1/2 - γ) with probability at least p, then bestOf A k t with
k ≥ log (2/η) / p runs and t ≥ 8 log (4k/η) / γ² sample points outputs a hypothesis with
agreement at least 1/2 + γ/2 with probability at least 1 - η. This is
learns_bestOf_of_success with θ = γ / 4.