← Back to Deep Learning Mind Map
🧠 Deep LearningID: receptive-field-flops

Receptive Field & FLOPs

感受野与 FLOPs 计算
🎯Core Definition
The receptive field (RF) is the region of the original input visible to one output pixel, with recurrence RFl=RFl−1+(kl−1)∏i=1l−1siRF_l = RF_{l-1} + (k_l - 1)\prod_{i=1}^{l-1} s_i, where klk_l is the kernel size of layer ll and sis_i the stride of layer ii — the stride product shows that earlier downsampling amplifies later receptive fields. With all strides 1 it simplifies to RFl=RFl−1+kl−1RF_l = RF_{l-1} + k_l - 1; e.g. three stacked 3×3 (stride 1) layers reach RF 7, and if the first layer has stride 2, the third layer reaches 7+2×2×1=117 + 2 \times 2 \times 1 = 11. Conv FLOPs: each output pixel performs khkwCink_h k_w C_{in} multiply-adds (1 multiply + 1 add, counted as 2), totalling 2HoutWoutkhkwCinCout2 H_{out} W_{out} k_h k_w C_{in} C_{out}; e.g. a 3×3 conv with 64→128 channels on 224×224 input: 2×224×224×9×64×128≈7.4×1092 \times 224 \times 224 \times 9 \times 64 \times 128 \approx 7.4 \times 10^9, i.e. ~7.4 GFLOPs.
💡Use Cases
hand-computing FLOPs/receptive fields is a core CNN interview staple — estimating model cost, comparing lightweight models (how much MobileNet saves), explaining stacked small kernels and dilated convolution; it is also the baseline against which ViT's global attention is contrasted.
⚡Key Problems Solved
the recurrence quantifies how much of the input a network sees — ll stacked 3×3 layers reach 2l+12l+1, so deep small-kernel networks match the global view of large kernels with fewer parameters; FLOPs measures per-sample multiply-add cost independently of parameter count, giving a unified yardstick for efficient-architecture design and deployment estimation.
🎯Core Interview Exam Points
Fundamentals · Production Scenarios · Deep Dive
Core Def
Explain the core definition, underlying mechanism/math, and key principles of Receptive Field & FLOPs.
Use Cases
In production engineering, what are the primary use cases for Receptive Field & FLOPs and what core pain points does it solve?
🔥 High-Frequency Deep-Dive Questions
1
Hand-compute receptive fields: three stacked 3×3 stride-1 layers? With the first layer at stride 2? Show the recurrence.
2
Hand-compute FLOPs: 3×3 conv, 64→128 channels on 224×224 input. Why the factor of 2?
3
Derive the receptive-field recurrence RFl=RFl−1+(kl−1)∏i=1l−1siRF_l = RF_{l-1} + (k_l-1)\prod_{i=1}^{l-1} s_i; what does the stride product mean?
4
Why do two stacked 3×3 convs match a 5×5 receptive field with fewer params and FLOPs? Give numbers.
5
Which factors does standard-conv FLOPs scale with, and how do you quickly estimate a whole network's FLOPs?
Updated 2026-08-12
🎯
Verify Mastery: Practice Exam Questions for "Receptive Field & FLOPs"
Take pitfall multiple-choice questions with derivation options; mistakes are automatically logged.
🚀 Start Card Practice ➔
← Previous CardConvolution BasicsNext Card →Classic CNN Architectures

🔗 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/receptive-field-flops
中文速览与面试要点

感受野与 FLOPs 计算 (Receptive Field & FLOPs)

定义: 感受野(RF)是输出层某像素在原始输入上可见的区域大小, 递推公式 RF_l = RF_l-1 + (k_l - 1) _i=1^l-1 s_i, 其中 k_l 为第 l 层核大小、s_i 为第 i 层 stride——stride 连乘项说明前置下采样会放大后续层的感受野。stride 全为 1 时简化为 RF_l = RF_l-1 + k_l - 1; 数值例: 连续 3 层 3×3(stride 1)感受野为 7, 若第一层 stride=2, 第三层感受野 = 7 + 2 2 1 = 11。卷积 FLOPs: 每个输出像素做 k_h k_w C_in 次乘加(一次乘 + 一次加, 计 2), 共 2 H_out W_out k_h k_w C_in C_out; 数值例: 224×224×64 输入上 3×3 卷积输出 128 通道, 2 224 224 9 64 128 7.4 10^9, 即约 7.4 GFLOPs。 使用场景: “手算 FLOPs/感受野”是 CNN 面试核心硬考点——估算模型算力、对比轻量模型(MobileNet 省多少)、回答“为什么堆叠小核”“为什么用空洞卷积”; 也是 ViT 全局注意力的对比基准。 解决的问题: 感受野递推把“网络看到多大区域”量化——堆叠 l 层 3×3 得到 2l+1, 使小核深层网络以更少参数获得与大核相同的全局视野; FLOPs 给出单位样本的乘加运算总量, 独立于参数量地度量推理算力, 是效率模型设计与硬件部署估算的统一标尺。

核心要点

  • 手算感受野: 连续 3 层 3×3(stride=1)感受野多大? 若第一层 stride=2 呢? 写出递推过程。
  • 手算 FLOPs: 224×224×64 输入上 3×3 卷积输出 128 通道, FLOPs 是多少? 为什么乘 2?
  • 推导感受野递推公式 RF_l = RF_l-1 + (k_l-1) _i=1^l-1 s_i, 解释 stride 连乘项的物理含义。
  • 为什么堆叠两个 3×3 等于一个 5×5 的感受野, 但参数与计算量更少? 请给出数字。
  • 标准卷积的 FLOPs 与哪些因子成正比? 如何快速估算一个网络的整体 FLOPs?