Overall Research Flowchart (Large Image) Prompt: Title: Overall Framework for Link Prediction in Temporal Knowledge Graphs Based on Hypergraphs and Dual Paths Objective: To visualize the entire research process, from data input to prediction output, highlighting the dual-path collaboration and contrastive learning mechanism. Core Elements and Process: 1. Input Layer: • Box element: Label "Temporal Knowledge Graph Data (e.g., ICEWS14, GDELT)", containing entity, relation, and timestamp triples. • Arrow pointing to "Data Preprocessing Module", indicating format standardization. 2. Semantic Initialization Module: • Box element: Label "Pre-trained Language Model (e.g., BERT)", input is entity/relation text description, output is "Semantic Initial Embedding". • Sub-process: Text Encoding → Linear Projection → Generate Initial Embedding Vector. 3. Dual-Path Construction Module: • Parallel Dual Branches: ◦ Local Query View Path: Based on the query entity and timestamp, construct a "Local Dynamic Hypergraph" (hyperedge encodes historical facts), output "Local Short-Path Embedding". ◦ Global Context View Path: Expand the time window, construct a "Long-Term Hypergraph" through "Multi-Hop Sampling", output "Long-Path Temporal Embedding". • Each branch contains hypergraph convolution steps: spatial dimension (multi-head attention aggregation) and temporal dimension (enhanced temporal encoder + decay weight). 4. Fusion and Optimization Module: • Box element: "Dual-Path Embedding Fusion", weighted combination of local and long-range embeddings through a gating mechanism. • Connect to "Contrastive Learning Constraint": Positive sample pairs (local/global embeddings of the same query) and negative sample pairs (embeddings of different queries), optimized through contrastive loss. • Final Output: "Link Prediction Results" (e.g., Hits@1, MRR metrics). Style Requirements: • Use rectangular boxes to represent modules, diamond boxes to represent decision points (e.g., decay threshold), and arrows to indicate the direction of the process. • Color coding: Local path uses blue tones, long path uses green tones, and the fusion part is emphasized with yellow. • Label key terms (e.g., "Dynamic Hypergraph", "Multi-Hop Sampling"), font is Times New Roman, 10-12pt. Local Short-Path Temporal Embedding Diagram (Small Image 1) Prompt: Title: Hypergraph Convolution and Temporal Embedding Process for Local Query View Objective: To refine the embedding generation process of the local path, highlighting the spatio-temporal two-dimensional processing of hypergraph convolution. Core Elements and Process: 1. Input: • Access from the "Local Query View Path" of the overall flowchart, the input is "Query Entity + Timestamp" and "Historical Facts within the Local Time Window". 2. Hypergraph Construction: • Diagram: Nodes represent entities, hyperedges (elliptical) enclose multiple
Research Background: Given that vulnerabilities are unavoida...