QuerySoftMax

technique

QuerySoftMax is how the ranker is trained: inside each crop it learns to push the one correct product above all the wrong ones. It handles groups of different sizes, from one candidate to twenty.

For engineers: a CatBoost listwise loss, softmax with cross-entropy inside each query group, normalized by group size; fits a binary in-group target.