﻿# Temporal Graph Benchmark: repeated interactions are events, not duplicate static edges

Preserve temporal interaction identity in TGB, score events before memory updates and use the benchmark candidate sets instead of silently evaluating a static graph.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-tgb-event-repetition-memory-evaluation-order/
Language: en

## Preserve an interaction rather than only an endpoint pair

The [TGB link-task documentation](https://tgb.complexdatalab.com/docs/linkprop/) describes timestamped interactions, such as an editor acting on a page. The same endpoints can interact again at another time. Removing all repeated endpoint pairs produces a static connectivity summary and discards observations the temporal task was meant to predict. Decide whether an apparent duplicate has the same event identity before filtering it, and retain the event timestamp with any message or interaction attributes.

## Respect the score-before-update boundary

The [reference temporal model example](https://raw.githubusercontent.com/shenyangHuang/TGB/main/examples/linkproppred/tgbl-wiki/tgn.py) evaluates candidates before updating memory with the observed positive interactions. This ordering prevents the current answer from entering its own predictive state. In a custom implementation, inspect when a memory write becomes visible to later scoring operations. A shuffled mini-batch or an eager state update can change available history even when the train/test timestamp boundary remains correct.

## Keep candidate sets with the evaluated event

The [TGB paper](https://arxiv.org/abs/2307.01026) defines application-driven temporal evaluation, while the reference example queries event-specific evaluation negatives. Replacing those candidates with a fresh convenient draw changes the ranking problem. A model can appear stronger simply because alternative destinations became easier to reject. Store the candidate-generation policy or supplied artifact identity alongside the metric, and distinguish training-time sampling from the candidate sets required for a comparable validation or test result.

## Reconstruct history deliberately between runs

A stateful graph model needs a declared reset and replay policy. Restoring neural weights without reconstructing the corresponding temporal memory does not necessarily restore the same predictor. Test whether the beginning of a new run sees only the allowed historical events. At validation-to-test transitions, follow the selected protocol rather than either carrying every prior state or clearing everything by habit. Document batching of equal-time events because their mutual visibility can otherwise depend on accidental file order.

## Record the active dataset and loader release

The [project repository](https://github.com/shenyangHuang/TGB) currently notes storage migration and deprecated older download links. Use its supported release guidance rather than treating a historical tutorial URL as a verified archive. The existing [entity-group guide](/journal/data-guide-entity-group-split-design/) and [software reproducibility guide](/journal/software-stack-reproducibility/) provide related split and environment context. A useful temporal benchmark record includes event identity, allowable history, candidate sets and state reconstruction, so the reported score measures the intended sequence prediction task.
