Compare sums with means when pooling

Preserve the order of coordinates and the signs of values. · 158 words

Pooling combines feature vectors into one vector. Sum pooling adds matching coordinates and keeps totals; mean pooling divides each coordinate sum by the number of vectors and gives averages. For example, a weather app records [rainfall_mm, sunshine_minutes] on two days: [10, 30] and [20, 45]. Sum pooling gives [30, 75]. Mean pooling gives [15, 37.5]. A sum fits combined-period questions, such as total rainfall. A mean fits comparisons between periods of different lengths.

Shopping baskets show why the choice matters. Two vectors [price, item_count] are [20, 2] and [30, 3]. Sum pooling gives [50, 5], meaning $50 and five items in total. Mean pooling gives [25, 2.5], meaning $25 and 2.5 items per basket. Add a third vector [40, 2]: the sum becomes [90, 7], while the mean becomes [30, 7/3]. A mean stays comparable across different numbers of records, but it can hide totals. Sum pooling preserves quantity; mean pooling controls for the number of records pooled.

Check your recall

What are sum pooling and mean pooling for [4, 1] and [8, 3], and which one preserves the total?

Check your answer

Sum pooling gives [4 + 8, 1 + 3] = [12, 4]. Mean pooling gives [12/2, 4/2] = [6, 2]. Sum pooling preserves the total.

Sources and credits

Original KeyTouch lesson. Background reading · Zhang et al. · Linear Algebra.