Generalized Mean Pooling (GeM) computes the generalized mean of each channel in a tensor. Formally:
where is a parameter. Setting this exponent as increases the contrast of the pooled feature map and focuses on the salient features of the image. GeM is a generalization of the average pooling commonly used in classification networks () and of spatial max-pooling layer ().
Source: MultiGrain
Image Source: Eva Mohedano