What is a pyramid network in the context of CNNs, and why is it useful for dense prediction?
Answer
A feature pyramid network (FPN) builds a hierarchy of semantically strong feature maps at multiple spatial resolutions. A bottom-up backbone produces progressively smaller maps with richer semantics; a top-down pathway upsamples deep features and merges them with same-resolution lateral projections from earlier stages. The resulting maps combine localization detail with high-level context. Detection, instance segmentation, and keypoint heads can then select a pyramid level appropriate to each object or region scale.

Figure 1: FPN construction showing tensor resolution, lateral 1×1 projection, top-down upsampling, fusion, and 3×3 smoothing.
(1) Bottom-up Hierarchy: Backbone stages reduce spatial resolution while increasing receptive field and semantic abstraction.
(2) Top-down Fusion: Nearest-neighbor upsampling and 1×1 lateral projections align channel widths before element-wise addition; a 3×3 convolution commonly smooths each merged map.
(3) Scale Assignment: Small objects use high-resolution levels such as or
, while large objects use coarser levels such as
or
.

Figure 2: How object size directs prediction heads toward fine, medium, or coarse pyramid levels.
Mathematical Formulation:
Where:
is the bottom-up backbone feature and
is the fused pyramid output at level
.
aligns channel width,
doubles spatial resolution, and
smooths the merged feature.
is the assigned pyramid level,
is the reference level, and
are the region width and height.
is the canonical reference scale and
maps the continuous log-scale value to a discrete level.
Leave a Reply