He et al. cite VLAD (Jégou et al. 2010) as an earlier “residual representation.” An image is a bag of local descriptors (here, points in 2-D). A small dictionary of visual words (k-means centers) is learned once. Bag of words just counts how many descriptors land on each word. VLAD keeps, for each word, the sum of residuals, descriptor minus center: where in the cluster the descriptors fell. Flip between two images that a bag of words cannot tell apart.
The recipe. (1) Extract local descriptors, in practice a few hundred 128-d SIFT vectors describing small patches. (2) Once, offline, run k-means on descriptors from many images to get K centers c1…cK (often K = 64). (3) For each image, assign every descriptor x to its nearest center and accumulate vk = Σx→k (x − ck). (4) Concatenate v1…vK into one K·d vector (64 × 128 = 8192 numbers) and normalize it (a signed square root, then unit length). Why residuals. The center is the same for every image, so it carries no information about this one; the residual is the image-specific part, small and centered on zero, which makes it compare and compress well. That is the sense in which He et al. say encoding residual vectors works better than encoding the original vectors, the same intuition as F(x) = H(x) − x: describe the change relative to a sensible reference. The Fisher vector is the soft, probabilistic version (a Gaussian mixture instead of k-means), and NetVLAD (Arandjelović et al. 2016) made VLAD a trainable layer. The analogy to ResNet is loose: VLAD is a fixed encoding, and its reference is a cluster center rather than the layer’s own input.