Bound Propagation: Intervals, Symbolic Bounds, and Lost Dependencies
Compute interval bounds, construct a ReLU relaxation, and use a small network to see what information each representation loses.
What you will be able to do
- Run IBP and say why it is cheap and loose
- Explain what symbolic bounds preserve that intervals lose, and at what memory cost
- Implement the positive and negative part split for an affine layer
Bound propagation replaces a set of possible values with a representation that is easier to transform. The required contract is containment: after each operation, the represented set must contain every value that operation can produce from the preceding set.
Tightness asks how much extra behaviour is included. Soundness asks whether any real behaviour has been excluded. Improving one is not permission to violate the other.
Interval propagation through an affine layer
This is interval bound propagation (IBP), and it is the cheapest domain in per-layer cost: one interval per coordinate, so the work is linear in the layer’s width, against a polytope or zonotope that grows with the number of constraints. As presented by Singh et al. (2019) in the DeepPoly framework, and earlier as the abstract-interpretation system of Singh et al. (2018), it replaces a set of reachable values with an interval per coordinate.
Let a layer input satisfy componentwise, and let . Define and elementwise. Then
A positive weight takes its lower contribution from ; a negative weight takes it from . This sign choice is the derivation, not a convention to memorise.
import numpy as np
def affine_bounds(W, b, lower, upper):
W = np.asarray(W, dtype=float)
b = np.asarray(b, dtype=float)
lower = np.asarray(lower, dtype=float)
upper = np.asarray(upper, dtype=float)
if W.ndim != 2 or lower.shape != (W.shape[1],):
raise ValueError("Incompatible matrix and input bounds")
if upper.shape != lower.shape or b.shape != (W.shape[0],):
raise ValueError("Incompatible upper bound or bias")
if not all(np.isfinite(a).all() for a in (W, b, lower, upper)):
raise ValueError("All inputs must be finite")
if np.any(lower > upper):
raise ValueError("An interval has lower > upper")
pos, neg = np.maximum(W, 0), np.minimum(W, 0)
return pos @ lower + neg @ upper + b, pos @ upper + neg @ lower + bThis is the real-arithmetic formula evaluated numerically for demonstration. Plain NumPy rounding is not a general proof that all returned machine intervals are outward-rounded.
For a dense matrix with output and input coordinates, the matrix-vector work is , not per layer independent of width. Special operators may have a different structure to exploit.
ReLU: stable and unstable intervals
For , interval propagation gives . If the interval is nonnegative, ; if it is nonpositive, .
An interval crossing zero requires a relaxation to retain the relationship between and . For , use
These inequalities describe the scalar graph hull. Omitting gives a looser set, not that exact hull.
The dependency that intervals forget
If and for , the true value of is zero. Treating the intervals independently gives .
The problem is not inaccurate scalar bounds: both bounds were exact. It is the missing relation . Describing the loss as “twice the true width” is invalid because the true width is zero.
Symbolic bounds retain expressions involving shared variables. Back-substitution can simplify such expressions before concretising them to numbers. When a coefficient is negative, a lower bound on the whole expression uses the corresponding upper bound on that variable. This sign rule is essential.
CROWN, introduced by Zhang et al. (2018), is one family of methods built around propagating bounds through activation surrogates. It should not be described as automatically recovering all dependencies or uniformly improving by a fixed exponential factor.
Compare three answers on one network
Use
The true value is always . Independent intervals give , then .
Retaining and both triangle hulls gives a smaller LP feasible set. Its minimum and maximum for are and . At the minimum, is feasible in the relaxation but not in the network.
| Representation | Bounds on | Proves ? |
|---|---|---|
| Independent intervals | No | |
| Independent scalar triangle hulls | No | |
| Add | Yes |
This is a comparison for one explicitly defined instance, not a ranking of all implementations of these methods.
Where zonotopes fit
A zonotope has the form . Its affine image under is exactly , preserving the shared generator coefficients.
A standard zonotope is centrally symmetric. Adding generators does not make it exactly represent a nondegenerate triangle. Nonlinear transformers may introduce slack, and generator reduction may discard dependencies. These choices matter when comparing an actual zonotope analysis with a symbolic-bound analysis.
Do not infer a universal comparison between DeepPoly (Singh et al., 2019) and CROWN (Zhang et al., 2018) and every zonotope method from the expressive power of unrestricted polyhedra. A representation class, the implemented transformers and the chosen optimisation routine are different objects.
Key Takeaways
Intervals can lose relations even when each scalar bound is exact. Shared dependence is information, not just interval width.
The ReLU triangle has three relation inequalities. State the input interval and every required facet.
A relaxed bad point is not a network counterexample. Test it against the original activations before interpreting it.
Compare explicit methods under explicit conditions. Avoid a total precision order over labels that mix domains and solvers.
Further Reading
Zhang, Weng, Chen, Hsieh and Daniel, “Efficient Neural Network Robustness Certification with General Activation Functions”, NeurIPS 2018 https://arxiv.org/abs/1811.00866 — this is CROWN.
Singh et al., “Fast and Effective Robustness Certification”, NeurIPS 2018 https://proceedings.neurips.cc/paper/2018/hash/f2f446980d8e971ef3da97af089481c3-Abstract.html — this is DeepZ, which is a distinct paper from both of the above.
Weng et al., “Towards Fast Computation of Certified Robustness for ReLU Networks”, ICML 2018 https://arxiv.org/abs/1804.09699 — the paper that names Fast-Lin and Fast-Lip, which propagate linear upper and lower bounds rather than an interval. The Weng here is the same Tsui-Wei Weng as on the CROWN paper above.
Singh et al., “An Abstract Domain for Certifying Neural Networks”, PACMPL (POPL) 2019 https://dl.acm.org/doi/10.1145/3290354 — for the interval domain this chapter computes by hand.
Continue with the LP chapter and multi-neuron relaxation.