The approximation method in Hamming terms #
A local approximation scheme (Cslib.Circuits.Approximation.Scheme) evaluates a circuit in an
approximate interpretation and decodes each approximate value a as a function decode a on the
samples. When correctness of a decoded value implies equality, the exceptions charged to the gates
measure how far the decoded output of a circuit is from the function the circuit computes:
- a circuit computing
fon the samples has a decoded outputf̃withd_H(f, f̃) ≤ ∑_gates errorCost(gate), the sum of the local errors of its gates (Cslib.Circuits.Approximation.Scheme.hammingDist_le_sum_errorCost); - hence the lower-bound principle: if every gate errs on at most
δsamples andfis at Hamming distance at leastεfrom every decoded approximate value, thenε ≤ δ C(f), soC(f) ≥ ε / δforδ > 0(Cslib.Circuits.Approximation.Scheme.le_mul_complexity_of_le_hammingDist), and the same with the failures of a one-sided correctness relation in place of the Hamming distance (Cslib.Circuits.Approximation.Scheme.le_mul_complexity).
Weighting the samples by μ ≥ 0, for instance a probability distribution, the union bound over
the gates bounds the weight of the samples on which the approximate output fails by the sum of
per-gate bounds on the weights of the gates' exceptions
(Cslib.Circuits.Approximation.Scheme.sum_failures_le), with the weighted lower-bound principle
as a consequence (Cslib.Circuits.Approximation.Scheme.le_mul_complexity_of_le_sum_failures).
This is a reformulation of the classical method of approximations Jukna, Chapter 9 in the language of the Hamming distance, not a new lower-bound technique, and the known limitations of the method of approximations apply to it unchanged.
Main results #
Cslib.Circuits.Approximation.Scheme.hammingDist_le_cost,Cslib.Circuits.Approximation.Scheme.hammingDist_le_sum_errorCost: the decoded output is within the total local error of the target.Cslib.Circuits.Approximation.Scheme.le_mul_size: every circuit computing the target hasε ≤ δ sfor its numbersof gates.Cslib.Circuits.Approximation.Scheme.le_mul_complexity,Cslib.Circuits.Approximation.Scheme.le_mul_complexity_of_le_hammingDist: the lower-bound principleε ≤ δ C(f).Cslib.Circuits.Approximation.Scheme.sum_programExceptions_le,Cslib.Circuits.Approximation.Scheme.sum_failures_le: the weighted union bound.Cslib.Circuits.Approximation.Scheme.le_mul_complexity_of_le_sum_failures: the weighted lower-bound principle.
References #
Lower bounds from failures #
If every operation errs on at most δ samples and every approximate value fails on at least
ε of the samples, then every circuit computing target on the samples has ε ≤ δ s for its
number s of gates, that is, at least ε / δ gates when δ > 0.
The lower-bound principle of the approximation method: if every operation errs on at most
δ samples and every approximate value fails on at least ε of the samples for f, then
ε ≤ δ C(f), that is, C(f) ≥ ε / δ when δ > 0.
The Hamming distance #
When correctness implies equality, the decoded approximate output of a circuit computing
target differs from target on at most as many samples as the total cost of its gates.
The decoded output is within the total local error of the target: when correctness
implies equality, a circuit computing f has a decoded approximate output f̃ with
d_H(f, f̃) ≤ ∑_gates errorCost(gate).
The lower-bound principle in Hamming terms: when correctness implies equality, if every
operation errs on at most δ samples and f is at Hamming distance at least ε from every
decoded approximate value, then ε ≤ δ C(f), that is, C(f) ≥ ε / δ when δ > 0.
Weighted samples #
The weighted union bound over the gates: if the exceptions of every operation weigh at
most w op, then the exceptions of all gates of a program weigh at most the sum of w over its
gates.
The weighted approximation method. If the exceptions of every operation weigh at most
w op, then the samples on which the approximate output of a circuit computing target fails
weigh at most the sum of w over its gates. For a probability distribution μ, this bounds the
probability of failure.
The weighted lower-bound principle: if the exceptions of every operation weigh at most
δ and every approximate value fails for f on samples of total weight at least ε, then
ε ≤ δ C(f), that is, C(f) ≥ ε / δ when δ > 0.