01 / AI · Analysis
T-DSM fine-tunes temporal graph models at test time
During initial training, a generator creates false examples to replace those made by swapping entities at random.

T-DSM fine-tunes temporal knowledge graph models during evaluation using predicted entity frequencies, the researchers reported in a paper published on 28 Nov 2026 in Data Science and Engineering. In experiments on five public datasets, they said T-DSM outperformed the best existing methods in most cases and reported a 16.55% improvement.
Existing models predict future events from recurring events and recent patterns in how entities relate to one another. The researchers said performance can fall when the event types that occur most often during evaluation differ from those seen in training. T-DSM adds a fine-tuning step during evaluation.
A temporal knowledge graph records each event as a subject, a relationship, an object and a timestamp. The task in the paper is to predict which entity fills the missing subject or object in a future event.
Entity frequencies guide fine-tuning
In the ICEWS18 dataset, the frequency of some relationship types changed between consecutive time points. The researchers used the Kolmogorov–Smirnov and U tests to compare distributions across time points. The paper calls these changes in the relative frequency of event types event distribution shift.
To estimate how often each entity will appear at a future time point, the researchers first counted how often it appeared in past events at each time point. A long short-term memory network, or LSTM, learns from that sequence of counts to estimate the future distribution of entities.
During evaluation, T-DSM also counts entity appearances in the reasoning model’s predicted events. It uses the difference between that distribution and the LSTM estimate to calculate a loss and fine-tune the reasoning model’s parameters. This continued learning during evaluation is called test-time training.
False examples that resemble real events
During initial training, T-DSM changes how it creates negative samples, the false examples a model learns to score lower than real events. A common method swaps an entity at random while keeping the relationship and timestamp fixed. The researchers said random swaps ignore logical relationships between entities and the structure of the graph.
TKGAN starts with a real event and replaces an entity to create a false candidate. The generator learns to produce candidates that score highly with a discriminator. It uses reinforcement learning to adjust which candidates it selects based on rewards.
The generator and discriminator take turns training. The reasoning model then trains on both the false examples produced by the trained generator and the real events recorded in the dataset. It learns to score real events higher and false examples lower.
The researchers said both the sampling method and test-time training can be added to existing reasoning models without major architectural changes. Once fine-tuning is complete, the model ranks the entities that could fill the missing subject or object in a future event.