210 likes | 333 Views
Massive Online Teaching to Bounded Learners. Brendan Juba (Harvard) Ryan Williams (Stanford). Teaching. Massive Online Teaching. Arbitrary “consistent (proper) learner” [Goldman-Kearns, Shinohara- Miyano ]. Bounded complexity “consistent learner” (possibly improper) [this work].
E N D
Massive Online Teaching to Bounded Learners Brendan Juba (Harvard) Ryan Williams (Stanford)
Massive Online Teaching Arbitrary “consistent (proper) learner”[Goldman-Kearns, Shinohara-Miyano] Bounded complexity “consistent learner”(possibly improper)[this work] f∈Cf:{0,1}n→{0,1} x∈{0,1}n (g∈C) g? g? (g∈C) f? f(x)∈{0,1} y f(y) …
THIS WORK We design strategies for teaching consistent learners of bounded computational complexity.
A hard concept 00 10 11 01 (1,0,0,0)(0,1,0,0)(0,0,1,0)(0,0,0,1)(0,0,0,0) We primarily focus on the number of mistakes made during learning, not the number of examples sent. Requires all 2n examples!! Prop’n: teaching this concept to the class of consistent learners with linear-size AC0 circuits requires sending all 2n examples.(learners’ initial hypothesis may be arbitrary)
WE SHOW • The state complexity of the learners controls the optimal number of mistakes in teaching • It also controls the optimal length of an individually tailored sequence of examples • The strategy establishing (1) can be partiallyderandomized (to a polynomial-size seed), but full derandomization implies strong circuit lower bounds.
The model (cont’d) • Theorems: Teaching state-bounded learners • Theorems: Derandomizing teaching
Bounded consistent learners • Learner given by pair of bounded functions, EVAL and UPDATE • Consistent: learner correct on all seen examples • …for f∈C f∈C x∈{0,1}n σ(g?) σ(g?) σ’ (f?) f(x)∈{0,1} EVAL(σ,x) = g(x) (σ∈{0,1}s(n)) UPDATE(σ,x,f(x)) = σ’ (Require EVAL(σ’,x) = f(x)) • We consider all bounded & C-consistent (EVAL,UPDATE)
The model • Theorems: Teaching state-bounded learners • Theorems: Derandomizing teaching
Uniform random examples are good • Theorem: under uniform random examples, any consistent s(n)-state bounded learner identifies the concept with probability 1-δ after O(s(n)(n+log 1/δ)) mistakes. • Corollary: Every consistent learner with S(n)-size (bdd. fan-in) circuits identifies the concept after O(S(n)2log S(n)) mistakes on an example sequence drawn from the uniform dist. (whp).
A lower bound vs. O(sn) • Theorem: There is a consistent learner for singleton/empty with s-bit states (and O(sn)-size AC0 circuits) that makes s-1 mistakes on the empty concept. (2n ≥ s ≥ n) Idea:Divide {0,1}n into s-1 intervals; the learner’s state initially indicates whether each interval should be labeled 0 or (by default) 1. It switches to a singleton hypothesis on a positive example, and switches off the corresponding interval on negative examples.
Main Lemma • After s(n) mistakes, the fraction of {0,1}n that the learner could ever label incorrectly is reduced by a ¾ factor whp. • Suppose not: then since the learner is consistent, the mistakes are on ¼ of thisinitial set of examples W • Uniform dist: hit Sw.p. < ¼ conditioned on hitting W {0,1}n W S
Main Lemma • Each mistake must come from W (by def.); to reach the givenstate, they all must hit S. • The ≥s(n) draws from W allfall into Sw.p. < ¼s(n) • we reach the state with ≥¾ of Wremaining w.p. < ½2s(n) • Union bound over the (≤2s(n))states with ≥¾ of W remaining • Custom sequences: sample from W directly. {0,1}n W S
RECAP • Theorem: under uniform random examples, any consistent s(n)-state bounded learner identifies the concept with probability 1-δ after O(s(n)(n+log 1/δ)) mistakes. • Theorem: Every deterministic consistent s(n)-state bounded learner has a sequence of examples of length O(s(n) n) after which it identifies the concept.
The model • Theorems: Teaching state-bounded learners • Theorems: Derandomizing teaching
Derandomization • Our strategy uses ≈n22n random bits • The learner takes examples given by blocks of n uniform-random bits at a time and stores only s(n) bits between examples • Nisan’s pseudorandom generator should apply!
Using Nisan’s generator • Theorem: Nisan’s generator produces a sequence of O(n2n) examples from a seed of length O((n+log1/δ)(s(n)+n+log1/δ)) s.t.w.p. 1-δ, a s(n)-state bounded learner identifies the concept and makes at most O(s(n)(n+log1/δ)) mistakes. Idea: consider A’ that simulates A and counts its mistakes using n more bits. The “good event” for A can be defined in terms of the states of A’.
Using Nisan’s generator still requires poly(n) random bits. Can we construct a low-mistake sequence deterministically? • Theorem: Suppose there is an EXP algorithm that for every polynomial S(n) and suff. large n, produces a sequence s.t. every S(n)-size circuit learner makes less than 2n mistakes to learn the empty concept. Then EXP ⊄ P/poly. Idea: there is then an EXP learner that switches to the next singleton in the sequence as long as the examples remain on the sequence. This learner makes 2n mistakes, and so can’t be in P/poly.
{0,1}n WE SHOWED W S • The state complexity of the learners controls the optimal number of mistakes in teaching • It also controls the optimal length of an individually tailored sequence of examples • The strategy establishing (1) can be partiallyderandomized (to a polynomial-size seed), but full derandomization implies strong circuit lower bounds.
Open problems • O(sn) mistake upper bound vs. Ω(s) mistake lower bound—what’s the right bound? • Can we weaken the consistency requirement? • Can we establish EXP ⊄ ACC by constructing deterministic teaching sequences for ACC? • Does EXP⊄P/poly conversely imply deterministic algorithms for teaching?
{0,1}n WE SHOWED W S • The state complexity of the learners controls the optimal number of mistakes in teaching • It also controls the optimal length of an individually tailored sequence of examples • The strategy establishing (1) can be partiallyderandomized (to a polynomial-size seed), but full derandomization implies strong circuit lower bounds.