Search papers, labs, and topics across Lattice.
This paper investigates the effectiveness of mean pooling in text embeddings by quantifying "second-order collapse," where spatial information of token embeddings is lost. They introduce a metric to measure this collapse and empirically evaluate it on various models, finding that contrastive fine-tuned encoders are more robust to collapse than their pretrained counterparts. The robustness is attributed to the concentration of token embeddings, and correlates with downstream task performance, suggesting mean pooling preserves sufficient information.
Despite its simplicity, mean pooling works surprisingly well because modern text encoders concentrate token embeddings, preserving crucial information about their distribution.
For constructing text embeddings, mean pooling, which averages token embeddings, is the standard approach. This paper examines whether mean pooling actually works well in real models. First, we note that mean pooling can collapse information beyond the first-order statistics of the token embeddings, such as second-order statistics that capture their spatial structure, potentially mapping distinct token embedding distributions to similar text embeddings. Motivated by this concern, we propose a simple metric to quantify such a collapse induced by mean pooling. Then, using this metric, we empirically measure how often this collapse occurs in actual models and texts, and find that modern text encoders are robust to this collapse. In particular, contrastive fine-tuned text encoders tend to be less prone to the collapse than their pretrained backbone models. We also find that the robustness of these text encoders lies in the concentration of token embeddings within each text. In addition, we find that robustness to the collapse, as quantified by our proposed metric, correlates with downstream task performance. Overall, our findings offer a new perspective on why modern text encoders remain effective despite relying on seemingly coarse mean pooling.