paper-with-me

Papers

When Does Embedding Magnitude Matter? A Cross-Task Functional-Symmetry Framework

2026-02-09 · Xincan Feng, Taro Watanabe arxiv

Cosine similarity normalizes both sides; dot product normalizes neither. We propose a 2x2 framework that independently controls query-side and document-side normalization, exposing two intermediate variants (QNorm, DNorm) that have not been previously studied. On retrieval with four encoders, evaluated in-domain on MS MARCO and out-of-domain on BEIR, BRIGHT, and multi-hop QA, the unilateral variants outperform both cosine and dot product, with relative gains of up to +72% out-of-domain and +24% on downstream RAG. Cross-evaluation reveals the mechanism: document magnitude scales inference scores while query magnitude modulates training gradients, and the Fisher Information Matrix condition number predicts which side to normalize. We then classify tasks by functional symmetry, defined as whether the aggregate scoring procedure treats Q and C as interchangeable, and test whether the mechanism extends beyond retrieval. On five additional task families (semantic textual similarity, CLIP, knowledge graph completion, few-shot classification, recommender systems), the coarse prediction (cosine for symmetric, magnitude-preserving for asymmetric) holds in every case examined; the unilateral variants beat Cosine on recommendation, and on few-shot classification DNorm beats both Cosine and the standard Euclidean default of Prototypical Networks.

📄 PDF Abstract BibTeX arXiv:2602.09229

Code (0)

등록된 구현이 없습니다.

Tasks

Semantic Textual SimilarityKnowledge Graph Completion

Similar Papers 제목 키워드 기반

Size Doesn't Matter: Cosine-Scored Sparse Autoencoders

2026-06-13 · Silen Naihin, Lev Stambler arxiv

Sparse autoencoders (SAEs) detect features via inner product, so a feature's activation scales with both its directional alignment and the input's norm. Features that fire on token norm therefore claim dictionary slots r…

A deep-learning algorithm to disentangle self-interacting dark matter and AGN feedback models

2024-05-27 · David Harvey

Different models of dark matter can alter the distribution of mass in galaxy clusters in a variety of ways. However, so can uncertain astrophysical feedback mechanisms. Here we present a Machine Learning method that ''le…

IMAE for Noise-Robust Learning: Mean Absolute Error Does Not Treat Examples Equally and Gradient Magnitude's Variance Matters

2019-03-28 · Xinshao Wang, Yang Hua, Elyor Kodirov, Neil M. Robertson

In this work, we study robust deep learning against abnormal training data from the perspective of example weighting built in empirical loss functions, i.e., gradient magnitude with respect to logits, an angle that is no…

image-classificationImage ClassificationVideo Retrieval

The Details Matter: Preventing Class Collapse in Supervised Contrastive Learning

2021-09-29 · Daniel Yang Fu, Mayee F Chen, Michael Zhang, Kayvon Fatahalian 외

Supervised contrastive learning optimizes a loss that pushes together embeddings of points from the same class while pulling apart embeddings of points from different classes. Class collapse—when every point from the sam…

Contrastive LearningTransfer Learning

Margin Matters: Towards More Discriminative Deep Neural Network Embeddings for Speaker Recognition

2019-06-18 · Xu Xiang, Shuai Wang, Houjun Huang, Yanmin Qian 외

Recently, speaker embeddings extracted from a speaker discriminative deep neural network (DNN) yield better performance than the conventional methods such as i-vector. In most cases, the DNN speaker classifier is trained…

Speaker Recognition