ArticleslgStudy

computer science

Error tolerance (PAC learning)

Error tolerance (PAC learning) is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Error tolerance (PAC learning) rather than just read about it. In short: In PAC learning, error tolerance refers to the ability of an algorithm to learn when the examples received have been corrupted in some way. In fact, this is a very common and important issue since in many applications it is not possible to access noise-free data.

Key takeaways

  • Error tolerance (PAC learning) belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Error tolerance (PAC learning) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Error tolerance (PAC learning) from memory before moving on to harder problems.

Reference excerpt

In PAC learning, error tolerance refers to the ability of an algorithm to learn when the examples received have been corrupted in some way. In fact, this is a very common and important issue since in many applications it is not possible to access noise-free data. Noise can interfere with the learning process at different levels: the algorithm may receive data that have been occasionally mislabeled, or the inputs may have some false information, or the classification of the examples may have been maliciously adulterated.

Notation and the Valiant learning model In the following, let X be our n-dimensional input space. Let ℋ be a class of functions that we wish to use in order to learn a {0,1}-valued target function f defined over X. Let 𝒟 be the distribution of the inputs over X. The goal of a learning algorithm 𝒜 is to choose the best function h∈ℋ such that it minimizes error(h)=Px∼𝒟(h(x)≠f(x)). Let us suppose we have a function size(f) that can measure the complexity of f. Let Oracle(x) be an oracle that, whenever called, returns an example x and its correct label f(x). When no noise corrupts the data, we can define learning in the Valiant setting: Definition: We say that f is efficiently learnable using ℋ in the Valiant setting if there exists a learning algorithm 𝒜 that has access to Oracle(x) and a polynomial p(⋅,⋅,⋅,⋅) such that for any 0<ε≤1 and 0<δ≤1 it outputs, in a number of calls to the oracle bounded by p(1ε,1δ,n,size(f)) , a function h∈ℋ that satisfies with probability at least 1−δ the condition error(h)≤ε. In the following we will define learnability of f when data have suffered some modification.

Classification noise In the classification noise model a noise rate 0≤η<12 is introduced. Then, instead of Oracle(x) that returns always the correct label of example x, algorithm 𝒜 can only call a faulty oracle Oracle(x,η) that will flip the label of x with probability η. As in the Valiant case, the goal of a learning algorithm 𝒜 is to choose the best function h∈ℋ such that it minimizes error(h)=Px∼𝒟(h(x)≠f(x)). In applications it is difficult to have access to the real value of η, but we assume we have access to its upperbound ηB. Note that if we allow the noise rate to be 1/2, then learning becomes impossible in any amount of computation time, because every label conveys no information about the target function. Definition: We say that f is efficiently learnable using ℋ in the classification noise model if there exists a learning algorithm 𝒜 that has access to Oracle(x,η) and a polynomial p(⋅,⋅,⋅,⋅) such that for any 0≤η≤12, 0≤ε≤1 and 0≤δ≤1 it outputs, in a number of calls to the oracle bounded by p(11−2ηB,1ε,1δ,n,size(f)) , a function h∈ℋ that satisfies with probability at least 1−δ the condition error(h)≤ε.

Statistical query learning Statistical Query Learning is a kind of active learning problem in which the learning algorithm 𝒜 can decide if to request information about the likelihood Pf(x) that a function f correctly labels example x, and receives an answer accurate within a tolerance α. Formally, whenever the learning algorithm 𝒜 calls the oracle Oracle(x,α), it receives as feedback probability Qf(x), such that Qf(x)−α≤Pf(x)≤Qf(x)+α. Definition: We say that f is efficiently learnable using ℋ in the statistical query learning model if there exists a learning algorithm 𝒜 that has access to Oracle(x,α) and polynomials p(⋅,⋅,⋅), q(⋅,⋅,⋅), and r(⋅,⋅,⋅) such that for any 0<ε≤1 the following hold:

Oracle(x,α) can evaluate Pf(x) in time q(1ε,n,size(f)); 1α is bounded by r(1ε,n,size(f)) 𝒜 outputs a model h such that err(h)<ε, in a number of calls to the oracle bounded by p(1ε,n,size(f)). Note that the confidence parameter δ does not appear in the definition of learning. This is because the main purpose of δ is to allow the learning algorithm a small probability of failure due to an unrepresentative sample. Since now Oracle(x,α) always guarantees to meet the approximation criterion Qf(x)−α≤Pf(x)≤Qf(x)+α, the failure probability is no longer needed. The statistical query model is strictly weaker than the PAC model: any efficiently SQ-learnable class is efficiently PAC learnable in the presence of classification noise, but there exist efficient PAC-learnable problems such as parity that are not efficiently SQ-learnable.

Malicious classification In the malicious classification model an adversary generates errors to foil the learning algorithm. This setting describes situations of error burst, which may occur when for a limited time transmission equipment malfunctions repeatedly. Formally, algorithm 𝒜 calls an oracle Oracle(x,β) that returns a correctly labeled example x drawn, as usual, from distribution 𝒟 over the input space with probability 1−β, but it returns with probability β an example drawn from a distribution that is not related to 𝒟. Moreover, this maliciously chosen example may strategically selected by an adversary who has knowledge of f, β, 𝒟, or the current progress of the learning algorithm. Definition: Given a bound βB<12 for 0≤β<12, we say that f is efficiently learnable using ℋ in the malicious classification model, if there exist a learning algorithm 𝒜 that has access to Oracle(x,β) and a polynomial p(⋅,⋅,⋅,⋅,⋅) such that for any 0<ε≤1, 0<δ≤1 it outputs, in a number of calls to the oracle bounded by p(11/2−βB,1ε,1δ,n,size(f)) , a function h∈ℋ that satisfies with probability at least 1−δ the condition error(h)≤ε.

Errors in the inputs: nonuniform random attribute noise In the nonuniform random attribute noise model the algorithm is learning a Boolean function, a malicious oracle Oracle(x,ν) may flip each i-th bit of example x=(x1,x2,…,xn) independently with probability νi≤ν. This type of error can irreparably foil the algorithm, in fact the following theorem holds: In the nonuniform random attribute noise setting, an algorithm 𝒜 can output a function h∈ℋ such that error(h)<ε only if ν<2ε.

See also

References

Worked examples

Example 1 — a first encounter with Error tolerance (PAC learning)

Start with the simplest possible case. Write down what Error tolerance (PAC learning) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Error tolerance (PAC learning) before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Error tolerance (PAC learning) ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Error tolerance (PAC learning)

In research
Error tolerance (PAC learning) appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Error tolerance (PAC learning) in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Error tolerance (PAC learning) is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computational learning theory, Theoretical computer science, so understanding it makes those chapters shorter.
In everyday life
Look for Error tolerance (PAC learning) outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Error tolerance (PAC learning)” →

How to study Error tolerance (PAC learning) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Error tolerance (PAC learning) means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Error tolerance (PAC learning) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Error tolerance (PAC learning) in simple terms?

In PAC learning, error tolerance refers to the ability of an algorithm to learn when the examples received have been corrupted in some way. In fact, this is a very common and important issue since in many applications it is not possible to access noise-free data.

Why does Error tolerance (PAC learning) matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Error tolerance (PAC learning)?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Error tolerance (PAC learning).

Tags

  • Computational learning theory
  • Theoretical computer science

Keep exploring