Skip to content

Question about Predicted Label Dimensions and the Usages of Test Node Label #3

Open

Description

@YanJiangJerry

Thanks for your great work, I have a quick question regarding label dimension and Figure 3 in your paper. In the inductive attention mechanism, the t×c dimension—does the c-dimension correspond to the label dimension of the training set or the test set? Additionally, how does the Linear GNN trained on the training set ensure that the output matches the label dimension of the test set if the label dimension is not consistent, such as training on cora and inference on arxiv? I understand the label-permutation invariance of the distance of LinearGNN predictions, but how can the linearGNN predict the exact test label dimension without any labelled test data? Does GraphAny need to use some test node labels to get the W for linearGNN?
Thanks in advance.

Activity

  1. changed the title [-]Question about Inductive Predicted Label Attention Dimensions[/-] [+]Question about Predicted Label Dimensions[/+] on Mar 2, 2025
  2. changed the title [-]Question about Predicted Label Dimensions[/-] [+]Question about Predicted Label Dimensions and the Usages of Test Node Label[/+] on Mar 2, 2025
  3. DuanhaoranCC commented on Mar 14, 2025

    @DuanhaoranCC

    Hello, I have similar questions regarding author paper.

    1. As I understand, the linear GNN mentioned in the paper is essentially SGC, Laplacian transformations, and other message-passing schemes. However, I could not find the analytical solution explicitly stated. Could you please point out where the analytical solution is discussed in the paper?

    2. Additionally, entropy normalization and distance normalization seem to serve the purpose of stabilizing and smoothing the model.

    3. Finally, as you mentioned, the GraphAny model trained on Cora has only 7 classes, while the Arxiv dataset has 40 classes. How are the results on new datasets reported in the table obtained? Are they based on few-shot learning, in-context learning, or zero-shot evaluation?

    Thank you in advance for your time and clarification!

  4. AndyJZhao commented on Aug 10, 2026

    @AndyJZhao
    Collaborator

    Hi all! Thanks for your interest. For your questions on "How to generalise to inconsistent label dimensions":

    Generally, GraphAny uses an inductive attention module to learn the map of txt -> tx1 and uses the tx1 inductive attention fuses txc predictions. Let's say we train Cora with 7 classes (c=7), and generalize to Arxiv with 40 classes:

    • Training: t=5 Linear GNNs are solved based on observed labels, that is, for any Cora data, we can predict labels using these Linear GNNs. Then, we construct train this inductive attention module to learn a map of txt->tx1: Given the label predictions of 5 Linear GNNs (txc), we compute their pairwise distances normalized by entropy (txt) and predict the correct way to fuse the LinearGNNs together (tx1).
    • Inference: For a new Arxiv graph with 40 classes (c'=40). We also solve t=5 same types of LinearGNNs, compute the pairwise distances normalized by entropy (txt), and use the inductive attention module trained on Cora, and predict the inductive attention (tx1) to fuse the predictions.

    As you may notice, the cool thing is, c and c' does not appear in our leaned inductive attention module (txt -> tx1). That is, as long as we keep t types of LinearGNNs (e.g. LinearSGC1, LinearSGC2, Linear, LinearHGC1, LinearHGC2) fixed, we can transfer to any graph.

    I hope this explains a bit how GraphAny learns. Further reading: Michael Galkin's blog on Graph/Geometric Foundation Model

    Sorry for the late reply. I didn't received notices of issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions