Nonuniform circuit-test distinguishing step from small-circuit learners #
This module formalizes a nonuniform single-point circuit-test step after [Val84] (locator unverified) and [RazborovRudich1997, Section 4], not the uniform polynomial-time unlearnability theorem of [Val84], which stays open on #4927.
A keyed family F of Boolean functions on n bits is pseudorandom against circuits when no small
circuit reading the whole truth table distinguishes the truth table of F key, for a uniformly
random key, from a uniformly random truth table
(Cslib.Crypto.PRG.truthTableGenerator, Cslib.Crypto.PRG.IsCircuitTest). A membership-query
learner has circuit tests of size t with q queries
(UniformLearning.QueryLearner.HasCircuitTests) when it agrees with a learner making at most q
queries and, for every seed and comparison point, its test (run the learner on the truth table and
compare its hypothesis with the table at the point) is computed by a circuit of at most t gates on
truth tables. Learners with circuits have circuit tests:
- with
qnon-adaptive queries and a circuit ofSgates (UniformLearning.QueryLearner.HasCircuit), of sizeS + 7(UniformLearning.QueryLearner.HasCircuit.isCircuitTest_agrees,UniformLearning.QueryLearner.HasCircuit.hasCircuitTests); - with
qadaptive queries and circuits ofSgates in all (UniformLearning.QueryLearner.HasAdaptiveCircuit), of sizeS + q (2 ^ n (2 n + 3) + 1) + 7, each query reading its answer from the table at the address its circuit computes (UniformLearning.QueryLearner.HasAdaptiveCircuit.isCircuitTest_agrees,UniformLearning.QueryLearner.HasAdaptiveCircuit.hasCircuitTests).
Hence the truth-table circuit security of F bounds the single-point accuracy of every learner with
circuit tests that learns a class containing every member of F
(UniformLearning.QueryLearner.Learns.le_of_secure): if F resists circuits with t gates with
advantage η, a learner with error ε and confidence 1 - δ satisfies
(1 - δ) (1 - ε) ≤ 1 / 2 + q / 2 ^ (n + 1) + η. For an exponentially secure family
(Cslib.Crypto.PRG.IsExponentiallySecure) this holds, for every c, for all large n, every
learner with t ≤ 2 ^ (c n) and η = 2 ^ (-c n)
(UniformLearning.eventually_le_of_isExponentiallySecure); the nonuniform GGM step is
CslibFrontier.MachineLearning.UniformLearning.CryptoHardness.GGM.
Gaps relative to the uniform polynomial-time statement, tracked on #4927:
- Circuit learners. The learner is a nonuniform circuit on each seed; running time is not modelled.
- Fixed seed and single point. The test fixes the learner's seed and a single comparison point
by averaging; it is a nonuniform whole-truth-table circuit test, and the resulting bound is
vacuous when
(1 - δ) (1 - ε) ≤ 1 / 2.
Main definitions #
Cslib.MachineLearning.UniformLearning.QueryLearner.HasCircuitTests: the learner agrees with one making at mostqqueries, and its tests are circuits of at mosttgates on truth tables.
Main results #
Cslib.MachineLearning.UniformLearning.QueryLearner.HasCircuit.isCircuitTest_agrees,Cslib.MachineLearning.UniformLearning.QueryLearner.HasCircuit.hasCircuitTests: the tests of a non-adaptive learner with a circuit ofSgates are circuits ofS + 7gates.Cslib.MachineLearning.UniformLearning.QueryLearner.HasAdaptiveCircuit.isCircuitTest_agrees,Cslib.MachineLearning.UniformLearning.QueryLearner.HasAdaptiveCircuit.hasCircuitTests: the tests of an adaptive learner with circuits ofSgates are circuits ofS + q (2 ^ n (2 n + 3) + 1) + 7gates.Cslib.MachineLearning.UniformLearning.QueryLearner.Learns.le_of_secure: single-point accuracy bound for learners with small circuit tests against a circuit-secure truth-table family.Cslib.MachineLearning.UniformLearning.eventually_le_of_isExponentiallySecure: the asymptotic form for exponentially secure truth-table families.
References #
The learner A has circuit tests of size t with q queries: it agrees with a learner
making at most q queries, and for every seed ω and point z its test A.agrees ω z, read on
truth tables, is computed by a circuit with at most t gates.
A learner with circuit tests agrees with a learner making at most q queries.
The tests of a learner with circuit tests of size t are circuits of at most t gates.
The test of a learner with a circuit is a small circuit on truth tables. If A has a
circuit with at most S gates, then for every seed ω and point z the test A.agrees ω z, read
on truth tables, is computed with at most S + 7 gates: the circuit with its queried values wired
from the truth table and the coordinates of z fixed, which costs the two constants of the
substitution, and five gates comparing the hypothesis with the truth table at z.
A learner with q non-adaptive queries and a circuit of S gates has circuit tests of size
S + 7.
The test of an adaptive learner with circuits is a small circuit on truth tables. If A
has adaptive circuits with at most S gates in all, then for every seed ω and point z the test
A.agrees ω z, read on truth tables, is computed with at most S + q (2 ^ n (2 n + 3) + 1) + 7
gates: the answers read from the truth table at the addresses the query circuits compute
(UniformLearning.QueryLearner.complexity_append_answers_le), the hypothesis circuit with the
coordinates of z fixed, which costs the two constants of the substitution, and five gates
comparing the hypothesis with the truth table at z.
A learner with q adaptive queries and circuits of S gates in all has circuit tests of size
S + q (2 ^ n (2 n + 3) + 1) + 7.
A nonuniform single-point circuit-test step after [Val84] (locator unverified) and
[RazborovRudich1997, Section 4], not the cited uniform polynomial-time unlearnability theorem. Let
A have circuit tests of size t with q queries, and learn, with error ε ≤ 1 and confidence
1 - δ, a class containing every member of the keyed family F of Boolean functions on n bits.
If no test computed with t gates distinguishes the truth table of F key, for a uniform key,
from a uniform truth table with advantage more than η, then
(1 - δ) (1 - ε) ≤ 1 / 2 + q / 2 ^ (n + 1) + η. The uniform polynomial-time objective stays open
on #4927.
A nonuniform circuit-test step for exponentially secure truth-table families, not a uniform
polynomial-time unlearnability theorem. Let F be an exponentially secure keyed family. For every
c, for all large n, every learner with circuit tests of size t ≤ 2 ^ (c n) with q queries
that learns a class containing every member of F n with error ε ≤ 1 and confidence 1 - δ
satisfies (1 - δ) (1 - ε) ≤ 1 / 2 + q / 2 ^ (n + 1) + 2 ^ (-c n). The uniform polynomial-time
objective stays open on #4927.