The input Jacobian of an image encoder provides a local linear approximation of its response to input perturbations, which is routinely used to construct adversarial examples, attribute predictions to pixels, and detect out-of-distribution inputs. But how accurately does this approximation describe changes of finite magnitude? In this work, we measure the extent of an image encoder's linear regime -- the scale at which its response departs from the linear prediction -- and characterize the response beyond that scale. We find that the linear regime is surprisingly short: the departure occurs at less than one gray level, at scales typically smaller than the 8-bit rounding error, and below what many methods use. Along the Jacobian's leading singular directions, where the encoder is most sensitive, the departure often occurs below the smallest scale we measure. Beyond the departure scale, the response follows distinct direction-dependent profiles: along random directions, it first exceeds and then falls below the linear prediction, whereas along the leading singular directions, it falls below from the outset. These results persist across convolutional and transformer architectures, and across supervised, self-supervised, and vision-language training.
翻译:暂无翻译