COMPOTE: collapse-resistant multi-hypothesis sequential recommendation
Treating next-item prediction as a multiple-choice problem rather than a single-label one is what keeps multiple heads from collapsing and lets retrieval skip the catalogue-wide softmax.
On this page
Your team holds a log of 20 recent clicks per user, and a vendor swears one ranked list is enough — but is it? The usual advice says yes: train one model, get one score vector, sort it, ship it. That advice assumes the history points at a single right answer. In practice the same history often points at an unopened pair of headphones and a child's birthday present at once, two shelves far apart, and a single model trained with cross-entropy — a loss that pushes all probability mass onto the one logged item — settles between them instead of matching either. COMPOTE, short for Collapse-resistant Multiple Hypothesis Learning, reframes the task as a multiple-choice problem and lets the model answer with several candidate distributions [1].
The default bet: one history, one ranking, and where it fails
Sequential recommendation usually learns a single conditional model: feed in the history, get a score vector, sort it, take the top K. The paper sorts existing work into two families. The first encodes the history with a sequence model — recurrent, convolutional, then causal self-attention — and scores items against a learned embedding table. The second treats retrieval as generation: TIGER quantizes item content into semantic identifiers and decodes the next item's identifier token by token, which helps on rare items but costs a content encoder, a learned tokenizer and beam search. Both families still learn one conditional model: one query representation, one score vector, one ranked list [1].
The trouble is that the next item is genuinely ambiguous. A single history often admits several plausible continuations in unrelated catalogue regions, so the conditional distribution is multimodal — several probability peaks for the same input. The paper's critique of the default is that cross-entropy pushes probability mass onto the single logged answer; when several answers are plausible, the paper argues a single query vector trained with cross-entropy settles between the modes instead of matching any one of them, producing something that resembles none of the user's actual intents. That is an argument about the 'one query representation, one score vector' modelling choice, not a general theorem about every cross-entropy model [1].
Multi-interest models tried to route around this. MIND extracts several interest vectors with dynamic routing over capsules; ComiRec uses multi-head attention plus a diversity-accuracy aggregation step; SINE activates a few concepts from a shared pool; REMI keeps the architecture and adds interest-aware hard negatives plus a regularizer against routing collapse. All of them already rely on a winner-takes-all style of training, but it arrives bundled with the routing architecture and is rarely examined as an objective in its own right. So the optimal interests are never characterized, and diversity has to be forced through architecture or extra penalties.
Training: let every head learn first, then close in on the winner
The obvious objective is pure winner-takes-all: among the M heads, take only the one that scores the correct answer best and compute the loss from it, ignoring the rest. Each head then owns a region and the best one handles each query. The catch is that the loss is a minimum of M smooth terms: it is continuous, but non-differentiable where the identity of the winner flips, so its gradient is discontinuous and direct optimisation tends to get stuck in poor local minima — the paper calls the min operator non-smooth (§3, Appendix H). Worse, a head that underperforms early gets switched off permanently — the head collapse that conventional multi-head architectures suffer from [1].
COMPOTE replaces the hard maximum with a temperature-controlled soft version:
loss_tau = -tau * log( sum over m of p[m, y]^(1/tau) )
tau large -> all heads updated roughly uniformly
tau -> 0 -> the loss becomes min over m of -log p[m, y] (pure winner-takes-all)At high temperature every head is pushed to learn. As training proceeds the temperature is annealed down, and the objective slides smoothly toward pure winner-takes-all. Proposition 1 proves the limit, so the τ = 0 case can be treated as a continuous extension. The recipe comes from multiple-choice learning, where an input admits several valid outputs and the model is only responsible for the best one, and the paper ports it to discrete catalogues.
The paper also pins down its relationship to prior annealed multiple-choice work. Proposition 2 states ℓ_τ = ℓ^aMCL_τ − τ·H(γ) — the prior objective minus an entropy term, not plus — and Corollary 3 shows that with the stop-gradient on the weighting term used in that prior implementation, the gradients coincide exactly. The learning dynamics are therefore the same; the real difference sits at inference, where the earlier literature never said how to recombine the heads into one ranking [1].
Inference: merge M scores without a catalogue-wide softmax
Training produces M distributions; production needs one ranked list. The paper pools them with a per-item maximum over the M heads and then sorts. Proposition 6 is conditional: it concerns the optimal prediction p⋆ that minimises the expected WTA loss under the true conditional distribution q⋆ in the population case. For that p⋆, ω(p⋆) ranks items in the same order as the Bayes predictor, with one exception — saturation ties, when two items both have q⋆ ≥ 1/M and ω equals 1 for both. Note also that ω and ω^τ need not lie in the probability simplex: they are not probabilities and do not equal the Bayes predictor; what survives is the ordering. The paper takes this as a reason not to choose M too large [1][2].
The paper then goes further with max-similarity, dropping softmax entirely and ranking each item by its largest cosine similarity across the M heads (Eq. 10, §4.1). The two rankings coincide when the per-head normalizer Z_m is nearly constant across heads; the paper checks this on Game with the same M=3 checkpoint in Table 2: max-softmax (normalizer required) versus max-cosine (no normalizer) gives H@5 6.04 / 6.06 and N@5 4.01 / 4.01, i.e. no loss in ranking accuracy. Proposition 5 is not that empirical result — it states the identity ℓ_τ = −log ω_y^τ(p) between the loss and the aggregation operator, and the limit ω^τ → ω. The deployment value of skipping the catalogue-wide normalizer is direct compatibility with vector databases and sublinear retrieval; the paper reports no measured latency or throughput [1][2].
score[i] = max over m of cos(h[m], e[i])
rank = argsort(score)No speed-up number is quoted here on purpose. The full text gives an accuracy-equivalence check (Table 2) and the vector-database argument, but no latency or throughput measurement; turning 'one fewer softmax' into 'N times faster' would be an extrapolation, not a result [2].
Guarantees and ablations: where the gain actually comes from
Three theoretical results carry the argument. The first is a generalization bound: Theorem 4 assumes every head assigns every catalogue item a probability bounded below by ε, and controls the expected WTA risk with the empirical risk, the per-head Rademacher complexity, and a term of order O(√(ln M / n)). M therefore enters only logarithmically (through √ln M), not linearly; the paper concludes that adding heads does not proportionally increase overfitting risk, and suggests label smoothing, temperature scaling or KL regularisation to keep ε from getting too small. This is a finite-sample bound for the τ→0 limiting loss, not a statement for arbitrary temperatures [1][2].
The second characterizes the optimum. Theorem 7 shows that in the population case the optimal M heads partition the conditional next-item distribution according to a max-entropy quantization principle, splitting the probability mass roughly evenly across cells. Head specialization is therefore emergent rather than something a diversity regularizer has to enforce. The third is Proposition 6, on pooling preserving the ranking.
| Piece | What it buys | Result |
|---|---|---|
| Annealed loss ℓ_τ | Uniform updates at high temperature, winner-takes-all in the limit | Proposition 1 |
| Link to annealed multiple-choice learning | ℓ_τ = aMCL − τ·H(γ); same gradient under stop-gradient | Proposition 2 / Corollary 3 |
| max-similarity retrieval | No catalogue-wide normalizer; accuracy equivalence in Table 2 | §4.1 / Table 2; identity in Proposition 5 |
| Generalization bound | O(√(ln M/n)) dependence on M; needs a probability floor ε | Theorem 4 |
| Optimal partition | Population optimum splits the conditional distribution by max-entropy quantization | Theorem 7 |
| Pooled ranking | For the optimal p⋆, Bayes ordering preserved except saturation ties | Proposition 6 |
The ablation section is the part worth reading closely. The authors run capacity-matched controls (Table 3), holding the encoder backbone and parameter budget fixed and swapping only the prediction head and training objective, against three variants: MCT-SASRec (single, deeper head), MCT-EnsCE (equal-weight ensemble) and MCT-Router (a learned gate picking one expert). All three trail COMPOTE on every dataset and metric; on N@5, Instrument reads 2.34 / 2.28 / 2.28 against 2.45, Scientific 1.71 / 1.60 / 1.64 against 1.92, and Game 3.78 / 3.78 / 3.78 against 4.01. Collapse is measured directly (Table 6): mean pairwise head cosine similarity is 1.00 on all three datasets for the two variants, versus 0.64 / 0.61 / 0.58 for COMPOTE. An oracle that sees the target and picks the best head (Table 7) lifts COMPOTE's N@5 to 3.75 on Instrument, 3.52 on Scientific and 7.78 on Game, while for the collapsed variants aggregated and oracle scores coincide exactly. In the main table (Table 1) COMPOTE is best in 11 of 12 columns, the exception being H@10 on Scientific, where HSTU (4.29) and TIGER (4.22) edge it out (4.20). The appendix also checks per-head normalizers, the score-loss weight α, the number of hypotheses M and the latent tiling; with α = 0, Scientific N@5 is already 1.82, above every single-head variant, so the gain comes from the annealed objective itself [2].
Boundaries: when this method does not apply
It fails when the ambiguity is not there. If the next action is nearly deterministic — periodic restocking, say — multiple hypotheses buy you M times the heads and a more fiddly training schedule for close to zero return. The entire motivation rests on one history pointing at several catalogue regions; remove that premise and the annealed objective has nothing to specialize.
It does not apply unchanged at extreme catalogue scale. The three Amazon Reviews 2023 categories hold roughly 25,000 items and 50,000 to 95,000 users each, which is modest for industrial catalogues. The selling point of normalizer-free retrieval is skipping the catalogue-wide softmax, yet the full text reports no validation beyond this scale; extrapolating to tens of millions of items is your inference, not the paper's result [2].
Optimality is proved in the population case. Theorem 7 concerns the infinite-sample optimum and Theorem 4 gives a finite-sample bound, so a gap remains between the two. The saturation ties of Proposition 6 also become more likely as M grows: in Appendix I the authors vary M from 1 to 12 and find N@5 on Scientific rises sharply from 1 to 3 and plateaus after 3. The full text only says τ is annealed towards 0 during training; it gives no schedule table or concrete values to copy, which is where reproductions are most likely to drift [2].
The model uses item IDs alone. The paper is explicit that COMPOTE beats strong ID-based, generative and multi-interest baselines using item IDs only. That is a strength and a limit at once: no content features are consumed, and the full text says nothing about cold-start items or fast-churning catalogues, so you cannot assume the behaviour carries over. One caveat about the main table: in Table 1 the ID-based and TIGER numbers come from the published results of Zheng et al. (2025), while only the six multi-interest models were trained by the authors under the same 5-core, leave-one-out protocol (Appendix F). 'Best in 11 of 12 columns' is a comparison inside that mixed-provenance table, not a result with every baseline retrained under one setup [2].
