← Back to Deep Learning Mind Map
🧠 Deep LearningID: convolution-basics

Convolution Basics

卷积与感受野
🎯Core Definition
Convolution is the fundamental operator of CNNs, with two core properties — parameter sharing and local connectivity. For input H×W×CinH \times W \times C_{in} and kernel kh×kw×Cin×Coutk_h \times k_w \times C_{in} \times C_{out}, the output size is Hout=⌊H+2p−ks⌋+1H_{out} = \lfloor\frac{H+2p-k}{s}\rfloor + 1 (similarly for WW, with padding pp and stride ss); parameters per layer: khkwCinCout+Coutk_h k_w C_{in} C_{out} + C_{out} (incl. bias). Sharing: the same filter slides over the whole image, so parameter count is independent of input resolution. Locality: each output pixel depends only on a kh×kw×Cink_h \times k_w \times C_{in} local window.
💡Use Cases
feature-extraction backbone for image classification/detection/segmentation; interview staples include hand-computing output sizes, parameter counts, the channel-mixing role of 1×1 conv, dilated convolution for larger receptive fields at fixed resolution, and why conv layers have far fewer parameters than fully connected layers.
⚡Key Problems Solved
vs. fully connected layers, parameters drop from O(HWCin×HWCout)O(HW C_{in} \times HWC_{out}) to O(khkwCinCout)O(k_h k_w C_{in} C_{out}) — tens of thousands of times fewer with 3×3 kernels and hundreds of channels — while encoding locality and translation-equivariance priors directly into the architecture, making deep networks on high-resolution inputs trainable.
🎯Core Interview Exam Points
Fundamentals · Production Scenarios · Deep Dive
Core Def
Explain the core definition, underlying mechanism/math, and key principles of Convolution Basics.
Use Cases
In production engineering, what are the primary use cases for Convolution Basics and what core pain points does it solve?
🔥 High-Frequency Deep-Dive Questions
1
Hand-compute the output size: 224×224 input, 5×5 kernel, stride 2, padding 1.
2
Count parameters: 3×3 conv, 64 input channels, 128 output channels, including bias.
3
What do parameter sharing and local connectivity each solve? Why is conv parameter count independent of input resolution?
4
A 5×5 conv vs two stacked 3×3 convs have the same receptive field; compare their parameter counts and the saving.
5
What does a 1×1 conv do? How does dilated convolution enlarge the receptive field without downsampling?
Updated 2026-08-12
🎯
Verify Mastery: Practice Exam Questions for "Convolution Basics"
Take pitfall multiple-choice questions with derivation options; mistakes are automatically logged.
🚀 Start Card Practice ➔
← Previous CardWeight Decay & AdamWNext Card →Receptive Field & FLOPs

🔗 More Deep Learning Knowledge Cards

引用出处: TalentMe 450+ 工业级 AI 架构考点知识库 (Tech Vault) · 遵循 CC-BY-4.0 知识共享协议
URL: https://talentme.airsota.com/resources/tech/roadmap/mindmap/DL/card/convolution-basics
中文速览与面试要点

卷积与感受野 (Convolution Basics)

定义: 卷积是 CNN 的基础算子, 两大核心特性——参数共享与局部连接。输入 H W C_in, 卷积核 k_h k_w C_in C_out, 输出尺寸 H_out = H+2p-ks + 1(W 同理, p 为 padding、s 为 stride); 每层参数量 k_h k_w C_in C_out + C_out(含偏置)。参数共享: 同一滤波器在整幅图上滑动, 参数量与输入分辨率无关; 局部连接: 每个输出像素仅依赖输入的 k_h k_w C_in 局部窗口。 使用场景: 图像分类/检测/分割的特征提取基础; 面试高频手算题——输出尺寸、参数量、1×1 卷积的通道混合作用、空洞卷积在分辨率不变下扩大感受野、以及“为什么卷积比全连接层参数少”。 解决的问题: 相对全连接层, 参数量从 O(HW C_in HWC_out) 降为 O(k_h k_w C_in C_out)——3×3 核、数百通道下约降低数万倍, 并把图像局部性与平移等变先验直接编码进结构, 使大分辨率输入上的深层网络训练成为可能。

核心要点

  • 手算输出尺寸: 输入 224×224, 5×5 卷积核, stride=2, padding=1, 输出多大?
  • 手算参数量: 3×3 卷积, 输入 64 通道输出 128 通道(含 bias)有多少参数?
  • 参数共享和局部连接分别解决了什么问题? 为什么卷积参数量与输入分辨率无关?
  • 一个 5×5 卷积和一个 3×3+3×3 堆叠感受野相同, 参数量分别是多少? 省了多少?
  • 1×1 卷积的作用是什么? 空洞卷积(dilated conv)如何在不降分辨率的前提下扩大感受野?