﻿# LightGCN separates the propagation graph from candidate recommendation pairs

Understand LightGCN learned identity embeddings, propagation edges versus scored pairs, candidate user-item partitions, layer combinations, and cold-start boundaries.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-lightgcn-propagation-graph-candidate-pairs-id-vocabulary/
Language: en

## 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](https://arxiv.org/abs/2002.02126) 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](https://pytorch-geometric.readthedocs.io/en/latest/generated/torch_geometric.nn.models.LightGCN.html) 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](https://raw.githubusercontent.com/pyg-team/pytorch_geometric/master/torch_geometric/nn/models/lightgcn.py) 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](/journal/data-guide-coco-instance-caption-identities/) 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](/journal/safetensors-artifact-validation/) 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.
