Position, Padding and Predictions: A Deeper Look at Position Information in CNNs
Ryerson University(瑞尔森大学);University of Waterloo(滑铁卢大学);University of Guelph(圭尔夫大学);Vector Institute of Artificial Intelligence(向量人工智能研究院);Samsung AI Centre Toronto(三星多伦多人工智能中心)
Md Amirul Islam, Matthew Kowal, Sen Jia, Konstantinos G. Derpanis, Neil D. B. Bruce
In contrast to fully connected networks, Convolutional Neural Networks (CNNs) achieve efficiency by learning weights associated with local filters with a finite spatial extent. An implication of this is that a filter may know what it is looking at, but not where it is positioned in the image. In this paper, we first test this hypothesis and reveal that a surprising degree of absolute position information is encoded in commonly used CNNs. We show that zero padding drives CNNs to encode position information in their internal representations, while a lack of padding precludes position encoding. This gives rise to deeper questions about the role of position information in CNNs: (i) What boundary heuristics enable optimal position encoding for downstream tasks?; (ii) Does position encoding affect the learning of semantic representations?; (iii) Does position encoding always improve performance? To provide answers, we perform the largest case study to date on the role that padding and border heuristics play in CNNs. We design novel tasks which allow us to quantify boundary effects as a function of the distance to the border. Numerous semantic objectives reveal the effect of the border on semantic representations. Finally, we demonstrate the implications of these findings on multiple real-world tasks to show that position information can both help or hurt performance.
深度卷积神经网络学习非常强大的图像表示,但大部分能力隐藏在数百万个深层参数中。这些参数究竟代表什么?最近的工作已经开始分析CNN表示,发现,例如,它们对某些2D变换是不变的Fischer et al.(2014),但被特定类型的图像噪声所混淆Nguyen et al.(2014)。在这项工作中,我们深入研究并提出问题:CNN对由3D形状,姿势和照片写实主义引起的对象类变化有多不变?