TL;DR
Multi-Modal Knowledge Graphs (MMKGs) often struggle to distinguish between different entities that share highly similar text and images. Time Imprint solves this by treating temporal information as a distinct, entity-level modality—just like text or images—and aligning it via a multi-view contrastive learning framework. By carefully filtering and pooling multiple timestamps, it achieves state-of-the-art link prediction performance, boosting accuracy on highly ambiguous entity pairs by up to 58%.
What Problem Does This Paper Address?
Knowledge graphs are great at structuring facts, and Multi-Modal Knowledge Graphs (MMKGs) make them even better by attaching images and text descriptions to entities. However, visual and textual features can be deceivingly similar. For instance, consider the historical figure "Napoleon Bonaparte" and the recent movie Napoleon (2023 film). They share overlapping text descriptions (French Revolution, Marie Antoinette) and highly similar imagery (men in 19th-century military uniforms).
While their lifetimes and release windows instantly clarify who is who, existing models fail to leverage this effectively. Most temporal knowledge graph methods treat time as a simple label on a specific relationship triple (e.g., a quadruple like [head, relation, tail, timestamp]). This restricts time to the relationship level rather than embedding it directly into the entity's identity.
The authors identify two core challenges to treating time as a full entity modality:
- Sparse Temporal Semantics: A year (e.g., "1769") contains far less semantic information than a rich paragraph or a high-res image, making cross-modal alignment difficult.
- Multi-Timestamp Ambiguity: Entities often have multiple associated years (birth, death, film release, photo upload dates), which introduces noise if not aggregated properly.
Methods
The authors introduce Time Imprint, a framework that systematically injects time into entity representations across three distinct stages:
-
Modality Encoding & Attention Pooling: Individual years are mapped to dense vectors using a sinusoidal encoder. To handle entities with multiple timestamps, Time Imprint uses a median-$K$ selection strategy with an earliest-year anchor. It selects $K$ timestamps closest to the median year of the entity but forces the inclusion of the earliest year to preserve historical context. These selected years are then fused into a single temporal embedding using cosine-similarity-based attention pooling, which naturally downweights outliers.
-
Time-Aware Entity Encoding: The aggregated temporal embedding is projected into a dedicated "time token." This token is prepended to the entity's structural, visual, and textual tokens before being fed into a multi-layer cross-modal Transformer. This allows self-attention mechanisms to directly condition the entity's overall meaning on its temporal context.
-
Time-Aware Scoring & Contrastive Alignment: During link prediction, the model uses a relation-aware gate to modulate how much temporal information should influence the score (e.g., highly important for "cast_member", but ignored for time-agnostic relations like "has_genre"). Finally, a Multi-View Contrastive Alignment objective (using an InfoNCE-style loss) forces five different views of an entity (including its temporal view) to align in a shared embedding space, pulling sparse temporal features into parity with rich visual and textual data.
Datasets
The framework was evaluated on three widely used MMKG benchmarks:
- DB15K
- MKG-W
- MKG-Y
To power the temporal modality, the authors extracted timestamps using a two-step strategy: pulling years mentioned in DBpedia text descriptions (rule-based extraction) and retrieving creation/upload dates from entity image metadata. Across the datasets, they successfully obtained timestamps for 90.94% of all entities, averaging 3.72 candidate years per entity.
Key Insights and Ideas
- Time is an Entity Property, Not Just a Triple Label: Moving temporal data from triple-level quadruples to entity-level prefix tokens fundamentally changes how well transformers can reason about an entity's core identity.
- The "Median + Anchor" Sweet Spot: Choosing timestamps around the median activity window provides the most representative central signal, while anchoring to the earliest year prevents the model from losing critical historical boundaries.
- Interdependent Architecture: Ablation studies revealed that the three stages of temporal injection (encoding, scoring, and contrastive alignment) are highly interdependent. Removing just one stage often caused performance to drop below the baseline that used no time data at all. This implies that partial or inconsistent temporal signals confuse the model more than omitting time entirely.
Key Results
Time Imprint achieved state-of-the-art performance across all three benchmarks for the link prediction task:
- Overall Improvements: On the MKG-W dataset, Time Imprint boosted Hits@1 by 6.07% and Mean Reciprocal Rank (MRR) by 4.53% over previous top-performing models like MOMOK and SNAG.
- Hard Disambiguation Gains: To test the core thesis, the authors evaluated a subset of the top-1% most ambiguous entities (those with nearly identical text and image embeddings). On this highly confusable subset, Time Imprint achieved massive gains, improving Hits@1 by up to 58.21% on MKG-W and 27.99% on DB15K.
- Noise Robustness: The model degraded gracefully under simulated timestamp corruption, maintaining stable performance even when up to 40% of entity timestamps were replaced with completely random years.
Limitations and Future Work
While the paper demonstrates that year-level granularity covers 86%–95% of entities and resolves the vast majority of ambiguous pairs, it relies on distribution differences rather than fine-grained time resolution for entities that overlap heavily within the same years.
Additionally, the authors noticed a peculiar phenomenon where mild timestamp noise (20-60% corruption) slightly improved performance on the MKG-Y dataset. They hypothesize this acts as a form of mild regularization against overfitting spurious temporal patterns, but leave a definitive audit and verification of this behavior to future work.
Summary updated