Sentence Operators: Second-Order Representations for Retrieval
Abstract
Sentence embedding models typically compress contextual token states into a single vector and compare texts with cosine similarity. We study a second-order alternative that represents each sentence as a trace-normalized positive semidefinite (PSD) operator over normalized token directions, preserving geometry discarded by pooling. We compare mean-pooled cosine with full-operator similarities and two low-rank eigenspace scores, computed through token Gram matrices without forming dense d \times d operators. We also fine-tune encoders on MS~MARCO using contrastive objectives defined by these similarities. Across multiple encoder families and MTEB retrieval tasks, normalized and low-rank scores expose retrieval-relevant structure beyond pooled cosine. Unnormalized Hilbert--Schmidt overlap is generally weaker, while low-rank subspace comparison produces the strongest gains for BERT-based encoders. On frozen bert-base-cased, which lacks sentence-level training, the best projection score more than doubles average retrieval quality. The gains shrink or disappear for backbones already optimized for retrieval, indicating that the value of sentence operators is backbone-dependent. Overall, sentence operators provide a scoring and diagnostic framework for identifying when retrieval benefits from multi-directional token-state structure.