In this article
A candidate pair can be scored without becoming a propagation edge; adding it to the graph changes the representation.
Scoring a pair need not insert a relationship
A recommendation service may add every requested user-item pair to its graph before evaluating the model. That changes the connectivity used to construct embeddings, potentially turning a held-out candidate into part of the supplied evidence. The propagation graph and evaluation pairs have separate roles.
The LightGCN paper describes learning user and item embeddings through linear neighborhood propagation. Preserve what interactions were available to that computation when defining a recommendation experiment.
The interface names both edge domains
The LightGCN API distinguishes edge_index, which supplies propagation connectivity, from edge_label_index, which identifies scored pairs. Reusing one array for both is a choice, not a universal requirement.
Keep held-out interactions out of the propagation graph when the evaluation protocol requires that separation. A pair’s presence in a candidate list does not justify presenting its relationship to the encoder as an observed training interaction.
Initial representations are learned identity rows
The implementation starts from an embedding table and combines propagated representations across layers. It does not automatically encode arbitrary product descriptions through a text feature interface.
Preserve the node vocabulary and user/item partitions. Reusing an integer for a different product changes identity without changing tensor shape. The data identity guide explains why external entities need a stable internal mapping.
Layer combinations and candidate scope define output meaning
Changing the propagation depth or combination coefficients changes the final representation. Likewise, scoring against all graph nodes differs from restricting candidates to the intended item population. A node being indexable does not make it an eligible recommendation target.
Record candidate filtering and prior-interaction exclusion as application rules. Keep them separate from the graph operator so ranking comparisons do not silently mix model changes with changes to the set of permitted results.
Cold start requires more than an unused identifier
Allocating an embedding row for a new entity does not establish that it contains a learned useful representation. A new isolated item and an existing item with historical interactions have different evidence available to the model.
The artifact validation guide motivates retaining vocabulary, graph snapshot, and model state together. Verify scored-pair identity and graph separation before interpreting ranking metrics. Correct computation alone does not establish cold-start quality, calibrated purchase probability, or improved recommendations in a new catalog.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.