| Algorithm 2 Temporal Similarity Graph Learning |
|
Input: refined tokens . Output: classification logits . Graph node preparation: Compress the feature dimension and obtain node features . Graph structure construction: Build self-loop edges to preserve token identity. Build temporal-chain edges within window r to retain local continuity. Compute cosine similarity between normalized node features. Apply temporal penalty . Select top-k neighbors and form similarity edges . Fuse edges: . Hierarchical graph learning: Compute assignment and embedding matrices with DenseSAGEConv blocks. Apply DiffPool twice to obtain coarsened graph representations. Refine the final graph with DenseSAGEConv and average node embeddings. return . |