Skip to content
The Plain Paper

New method · Information retrieval

MELODI separates a candidate’s match to history from the candidate’s own appeal

Ranking systems must score many candidate items quickly while using a person’s past activity. MELODI pools relevant history and keeps that match separate from candidate-only information; on Steam, its mean reciprocal rank was .4720 against .4609 for DIN plus DCN-v2. It also reports gains on two industrial datasets, but the tests are offline, and DIN is faster when public candidate lists are smaller.

  • Industrial-A overall AUPRC gain over the tabular baseline+25.0%against +16.7% for DIN
  • Industrial-B overall AUPRC gain over the tabular baseline+7.8%against +6.5% for DIN
Data and benchmarks
ML-25M, Industrial-A, Industrial-B
Released by the authors
None listed in the paper

MELODI ranking: the main findings and trade-offs

  • One condition. A short proof shows that pooling history before comparing it with a candidate gives the same result as comparing each history item first, provided the comparison is linear in history.
  • Not always fastest. On the public tests, DIN has lower latency at candidate counts 1, 10, and 100; MELODI’s advantage appears for larger candidate lists when history can be reused.
  • A metric exception. On Industrial-B, DIN’s AUROC gain over the tabular baseline is +2.5%, above MELODI’s +2.0%, even though MELODI leads on the other three overall metrics.
  • One full-catalogue miss. For Steam full-catalogue ranking, DIN’s hit rate at rank 1 is 0.0186, compared with 0.0177 for MELODI.
  • Component results vary. Adding a second similarity layer improves the one-run MRR on Steam but lowers it on ML-25M, so that comparison does not point to one setting that wins everywhere.
  • No public industrial data. The industrial datasets are proprietary; the paper does not provide a public release of those data or a code link.

Bottom line. The reported tests support MELODI as a candidate for ranking workloads with many candidates sharing one history: it performs well on the tested public and industrial metrics, and its design allows history work to be reused. They do not establish online business impact or performance on other processors, and DIN remains faster for smaller public candidate lists.

Why recommendation ranking needs candidate-specific history

A recommender first narrows a huge catalogue to a shortlist, then ranks those candidates. A candidate may fit one part of a person’s activity but not another: a camera should draw on photography history, not running history. The ranking model therefore needs to identify relevant past activity without spending too much time on each candidate.

MELODI separates two signals: how well a candidate matches the person’s history, and information about the candidate itself, such as its general appeal. Its key idea is to pool relevant history first and then compare it with the candidate. A simple mathematical condition makes that shortcut exact for the comparison operation it studies.

A target-aware model changes its use of history for each candidate. DIN is an earlier example: it gives more weight to past behaviours related to the candidate, then pools them into a user representation. MELODI builds on the same general need to adapt to each candidate, while giving the history match its own signal. [s1]1

The public tests use Steam and MovieLens-25M, a dataset of movie ratings and tags made available by GroupLens. The paper turns these histories into next-item ranking tests; its industrial tests instead use logged requests and candidates that have already passed an earlier selection step. [s3]2

MELODI results on Steam, ML-25M and industrial requests

The tests use different ranking settings: the public benchmark includes sampled negatives and additional hard-negative and full-catalogue evaluations; the industrial benchmark ranks logged candidates. Those results describe the tested offline setups, not performance in a live recommendation service.

Of 12 head-to-head comparisons the paper prints, 4 favour its own contribution, 8 go against it.

  • Compared with DIN, 3 results: 3 favour the paper, 0 go against it.
  • Compared with MELODI, 3 results: 0 favour the paper, 3 go against it.
  • Compared with MELODI (4 experts, 1 layer), 3 results: 0 favour the paper, 3 go against it.
  • Compared with SASRec, 2 results: 0 favour the paper, 2 go against it.
Results as the paper prints them, with the difference worked out for this page
What was measuredResultCompared withDifference
SASRec (history-only LN)
MRR on Steam in one training runTarget is not normalized; sampled public protocol.0.3736SASRec: 0.4311-0.0575 (-13.3%)Goes against the paper
MRR on ML-25M in one training runTarget is not normalized; sampled public protocol.0.4658SASRec: 0.6597-0.1939 (-29.4%)Goes against the paper
DIN
HIT@1 on Steam under full-catalogue rankingFull-catalogue ranking; ties counted against the test item.0.0186MELODI (4 experts, 1 layer): 0.0177+0.0009 (+5.1%)Goes against the paper
Request-local reuse latency at 1,000 candidates on SteamOne user, 50 history items; processor benchmark. · median of five replicate minima9.89 msMELODI (4 experts, 1 layer): 1.97+7.92 (+402.0%)Goes against the paper
Request-local reuse latency at 100 candidates on SteamOne user, 50 history items; processor benchmark. · median of five replicate minima0.63 msMELODI (4 experts, 1 layer): 1.21-0.58 (-47.9%)Goes against the paper
AUROC percentage change relative to the tabular baseline in Industrial-A Segment-1Industrial-A Segment-1.+2.6 %MELODI: +2.5+0.1Goes against the paper
MELODI
AUPRC percentage change relative to the tabular baseline on Industrial-A overallIndustrial-A logged-request evaluation.+25.0 %TA-Transformer: +22.2+2.8
NDCG@20 percentage change relative to the tabular baseline on Industrial-A overallIndustrial-A logged-request evaluation.+11.3 %DIN: +8.8+2.5
Show 6 more results
More results, as the paper prints them
What was measuredResultCompared withDifference
MELODI
AUPRC percentage change relative to the tabular baseline on Industrial-B overallIndustrial-B logged-request evaluation.+7.8 %DIN: +6.5+1.3
NDCG@20 percentage change relative to the tabular baseline on Industrial-B overallIndustrial-B logged-request evaluation.+3.2 %DIN: +2.7+0.5
DIN
AUROC percentage change relative to the tabular baseline on Industrial-B overallIndustrial-B logged-request evaluation.+2.5 %MELODI: +2.0+0.5Goes against the paper
TA-Transformer
AUPRC percentage change relative to the tabular baseline when the identifier is availableIndustrial-B, identifier available.-3.3 %MELODI: +3.3-6.6Goes against the paper
MELODI expert-count change with identity capacity fixed
MRR change from 4 to 8 experts on SteamTwo similarity layers; identity branch pinned.-0.0088Goes against the paper
MRR change from 4 to 8 experts on ML-25MOne similarity layer; identity branch pinned.-0.0032Goes against the paper

How MELODI separates history match from item identity

MELODI’s scoring path has three main stages:

  1. Project and normalize the history and candidate representations; add position information to history items.
  2. Use multi-head attention, a way to assign different relevance weights to history items, to pool history separately for each candidate.
  3. Apply a target-dependent comparison that is linear in the pooled history, producing the explicit history-match signal.
  4. Transform the candidate separately to produce its identity signal, then let a small neural network score both signals together.
  5. Optionally encode history once for a request and reuse it across that request’s candidates.

The proof covers the single-layer comparison when it is linear in history for each fixed candidate. This lets the model pool first and apply that comparison once per candidate while preserving the same pooled similarity result as comparing each history item separately.

What MELODI’s offline tests do not establish

The evidence is strongest for the specific datasets, sampled-ranking setup, and processor workloads tested. The main public results average three training seeds, but many other ranking comparisons and all component ablations use one run; the paper cautions that small differences in those ablations are not established.

The authors also note limits that matter for deployment:

  • The evaluation is offline and does not include an online A/B test.
  • Industrial data are proprietary, and logged purchase labels can reflect exposure and position bias that the model does not correct.
  • Latency was measured on one processor type, with a fixed history length that does not cover all observed industrial histories.

Taken together, the results suggest MELODI can be useful when many candidates share one history, but they do not show that it improves live business outcomes or transfers unchanged to other hardware and data. Smaller candidate lists are a real boundary: DIN is faster in the reported public tests at those sizes.

7 limits the authors state themselves
  • The evaluation is offline and does not include an online A/B test.
  • The industrial datasets are proprietary and cannot be publicly released.
  • Latency measurements use only one processor type.
  • The fixed history length used in timing does not cover all observed industrial histories.
  • Industrial results use logged purchase labels that reflect exposure and position biases, which MELODI does not correct.
  • Because the model does not correct exposure and position bias, it can inherit and perpetuate those biases.
  • Component ablations are single-run comparisons, so small MRR differences are not established.

Who can use MELODI and what is available

MELODI is aimed at recommender-system engineers who rank a shortlist of candidates against the same user history, especially when requests contain many candidates and history encoding can be shared. It is a ranking model; the paper does not model the earlier step that generates the candidate shortlist.

The paper gives architecture equations and evaluation details, but provides no linked code or released industrial dataset. The public tests use Steam and MovieLens-25M; the industrial data cannot be publicly released.

MELODI and earlier target-aware ranking methods

DIN, introduced in “Deep Interest Network for Click-Through Rate Prediction,” adapts a user representation to each candidate by weighting related past behaviours. MELODI shares the candidate-specific focus, then adds an explicit match signal separate from candidate-only information and evaluates reuse of history across candidates. [s1]1

MELODI ranking terms in plain language

Target-aware
A model is target-aware when it changes how it uses a person’s history depending on which candidate it is scoring.
Similarity–identity decoupling
MELODI’s separation of the candidate’s match to history from information about the candidate alone.
History pooling
Combining past interactions into a shorter representation, weighted here by how relevant each interaction is to a candidate.
History-linear
For a fixed candidate, the comparison operation preserves weighted sums of history; this is the condition behind MELODI’s exact reordering result.
Mean reciprocal rank (MRR)
A ranking score that rewards placing the first relevant item near the top; higher is better.
Normalized discounted cumulative gain (NDCG)
A ranking score that rewards relevant items near the top of a list, with more weight on higher positions.
Hit rate (HIT)
Whether a relevant item appears within the stated top part of the ranked list.
Area under the precision–recall curve (AUPRC)
A measure of how well a model finds positive cases while avoiding false alarms, summarized across decision thresholds.
Request-local history reuse
Encoding a request’s shared history once and reusing that representation while scoring its candidates.
Hard negatives
Non-relevant candidate items selected to be challenging comparisons for the ranking model.
similarity-then-pool (SP)
Apply the similarity operator separately to each history item and then aggregate its outputs with attention weights.
pool-then-similarity (PS)
Pool the history first and apply the similarity operator once to the pooled history and target.
target-aware pooled history vector
The attention-weighted sum of history vectors, where the attention weights may depend on the target.
identity
Target-only information, such as base-rate appeal and within-target feature interactions.
similarity
The user--target compatibility signal represented by interactions between the target and relevant history.

Questions about MELODI and its ranking tests

What is MELODI in recommender-system ranking?

MELODI is a target-aware ranking model that keeps a candidate’s match to user history separate from information about the candidate itself.

Why can MELODI pool history before comparing it with a candidate?

Its comparison operation is linear in history for each fixed candidate. Under that condition, the paper proves that pooling first gives the same pooled similarity as comparing each history item first.

When is MELODI faster than DIN in the reported public latency tests?

DIN is faster at the smaller reported candidate counts. In a repeated sweep, DIN remains faster up to 500 candidates; MELODI is faster at larger counts when history is reused.

Were MELODI’s industrial results tested in a live service?

No. The paper reports offline tests on logged industrial requests, not an online A/B test; the industrial datasets are proprietary.

MELODI claims, method and evidence

Everything below is recorded from the paper and matched against its text.

What the paper claims, in its own terms
  • Proven

    History-linearity is sufficient for pool-then-similarity to exactly reproduce similarity-then-pool.

    Holds when: For each fixed target, the similarity operator is linear in its history argument.

  • Shown

    MELODI instantiates the similarity--identity decoupling framework with a target-conditioned multi-head history pooling branch and a separate identity branch.

  • Shown

    On two industrial datasets, MELODI's reported AUPRC, NDCG, and recall values are equal to or higher than those of the evaluated target-aware baselines.

    Holds when: Industrial-A and Industrial-B offline evaluations.

  • Shown

    With request-local history reuse, MELODI has lower measured latency than evaluated candidate-conditioned baselines at large candidate counts.

    Holds when: The reported processor benchmarks; DIN is faster in the public benchmark through candidate counts up to 500.

  • Shown

    DIN is faster than MELODI at the reported public candidate counts 1, 10, and 100.

    Holds when: Request-local reuse on the tested processor.

  • Shown

    DIN's reused path remains faster than MELODI's up to 500 candidates in the repeated public latency sweep.

    Holds when: Repeated public sweep on the tested processor.

  • Shown

    The observed effect of adding a second similarity layer is dataset-dependent.

    Holds when: Single-run public component comparison with identity capacity fixed.

Theorems and stated results
  • equality of SP and PS pooled similarity for any history, target, and attention distribution. If the similarity operator is linear in its history argument for each fixed target, then boldsymbolψ_SP(X,t)=boldsymbolψ_PS(X,t). (The similarity operator is history-linear; the attention weights form a distribution.)
The method, step by step
  1. Project and normalize frozen history and candidate embeddings; add positional encodings to history only.
  2. Compute candidate-conditioned multi-head dot-product attention over the encoded history to obtain pooled history vectors.
  3. Apply per-head target-gated low-rank cross operators to pooled histories, producing an explicit similarity signal.
  4. Transform the target through a target-only identity branch; the headline configuration uses a DCN-v2 target self-cross.
  5. Score the concatenated similarity and identity signals with an MLP.
  6. For serving, optionally encode history once per request and reuse its keys and values across candidates.

New in this paper

  • The framework separates target-aware user--target similarity from target-only identity.
  • The SP/PS formulation and its history-linearity condition for exact equivalence.
  • MELODI's two-input cross is linear in pooled history for each target and uses per-head gates over shared experts without a residual.
  • The request-local history-reuse serving path is evaluated alongside candidate-flattened processing.

Taken from earlier work

  • The attention primitive is multi-head dot-product cross-attention, following Vaswani et al. (2017).
  • The low-rank mixture-of-experts cross is inspired by DCN-v2 (Wang et al., 2021).
  • Public models use BPR; industrial models use binary cross-entropy.

Assumptions

  • The SP/PS equivalence requires the similarity operator to be linear in its history argument for each fixed target.
  • Request-local reuse assumes candidates in a request share the same history.
  • The public and industrial results are offline evaluations; the industrial data are logged requests.
Methods, datasets and ideas it names
  • similarity--identity decoupling frameworkMethod · Introduced here

    A target-aware ranking framework that separates user--target similarity from target identity.

  • MELODIMethod · Introduced here

    The paper's architecture for ranking with a separate similarity branch and identity branch.

  • target-aware pooled history vectorConcept · Introduced here

    The attention-weighted sum of history items for a particular target.

  • multi-head dot-product cross-attentionMethod · Used

    The MELODI stage that pools history into per-head vectors conditioned on each candidate.

  • DCN-v2-style cross layerMethod · Extended

    A two-input, per-head gated cross operator that is linear in pooled history for a fixed target.

  • frozen pretrained item embeddingsTool · Used

    Fixed item embeddings used as the input to the public models.

  • ML-25MDataset · Used

    A public dataset used for ranking-quality and latency evaluation.

  • Industrial-ADataset · Used

    A proprietary logged-request ranking dataset used in industrial evaluation.

  • Industrial-BDataset · Used

    A proprietary logged-request ranking dataset used in industrial evaluation.

  • Deep Interest Network (DIN)Method · Compared against

    A target-aware baseline that pools history with target-conditioned weights and scores the pooled history with the target.

  • SASRecMethod · Compared against

    A target-agnostic public baseline that encodes the history into one vector.

  • target-aware Transformer (TA-Transformer)Method · Compared against

    A baseline that processes each candidate together with the history using self-attention.

  • TWo-stage Interest Network (TWIN)Method · Compared against

    Earlier target-aware work described as targeting much longer behaviour sequences.

  • Co-Action Network (CAN)Method · Compared against

    A target-conditioned baseline that applies an MLP to each behaviour.

  • Hierarchical Sequential Transduction Units (HSTU)Method · Compared against

    Earlier work that scores candidate microbatches and caches history keys and values.

  • paired-bootstrap intervalsInstrument · Used

    A resampling procedure used to estimate intervals for public ranking comparisons.

  • MiniLM nearest-neighbour searchTool · Used

    A retriever used to obtain hard negatives for a public ranking evaluation.

  • Bayesian Personalized Ranking (BPR)Method · Used

    The loss used to train the public models.

  • binary cross-entropyMethod · Used

    The loss used to train the industrial models.

How the evidence was gathered
Samples or repeats
Public main table: three training seeds. Other main-text ranking results use one run per model. Public latency: five process-isolated replicate minima. Paired-bootstrap intervals use 10,000 resamples. Industrial latency: five warm-up and 20 timed iterations. Public latency uses one user, S=50, and C candidates; headline measurements use C=1,000.
Uncertainty reported
For some results
Significance tested
Yes
Notes
Public main-table results report sample standard deviations over three seeds. Paired-bootstrap intervals are reported for selected public ranking comparisons. Component ablations are one-run comparisons and the authors caution that small differences are not established.
Questions the paper leaves open
  • How does the framework perform in an online A/B test?
  • How does latency generalize to processor types beyond the one measured?
  • How do MELODI's results change across the full range of observed industrial history lengths?

Sources

  1. 1Deep Interest Network for Click-Through Rate Predictionarxiv.org
  2. 2files.grouplens.orgfiles.grouplens.org

Paper details

Title
MELODI: Similarity-Identity Decoupling for Lightweight Ranking
Authors
Quoc Phong Nguyen, Vuong Le, Volodymyr Vaskovych, Julien Monteil
Published
24 November 2026
Version read
v1
Field
Information retrieval
arXiv
2611.31940

This explanation was written for this site from the paper's own source. 65 passages and figures recorded from the paper were matched against its own text; 16 that could not be matched were left off this page. It does not judge whether the paper is right, and most papers on arXiv have not been peer reviewed. Read the paper before relying on a result.