Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is observe_class_IL_batch function considering inter-edge connections in pipeline_class_IL_no_inter_edge_minibatch? #23

Open
arnabkmondal opened this issue Sep 2, 2023 · 1 comment

Comments

@arnabkmondal
Copy link

In the observe_class_IL_batch function of ergnn_model.py while sampling the subgraph corresponding to task id t > 0 the code seems to sample the subgraph from the entire dataset. However,

  1. The entire graph should not be available for any task ID during training.
  2. It may include inter-task edges between different task IDs already existing in the dataset.

Therefore, this code seems to take an extra advantage in the class incremental setting without inter-edge connections in pipeline_class_IL_no_inter_edge_minibatch.

Can you please clarify our concern?

@QueuQ
Copy link
Owner

QueuQ commented Aug 10, 2024

Thanks for the question,

if remove_edges:
# to facilitate the methods like ER-GNN to only retrieve nodes

In the line above, the remove_edge is used to remove the edges from the retrived subgraphs, therefore the inter-task edges will not participate in methods like ergnn.

Besides, it is true that the entire graph should not be available during training. The code you quoted only retrived the stored node ids, which means only these buffered node ids are available for memory replay. Therefore, although the model retrives the nodes from the datasets everytime for memory replay, since it only gets the previously stored ids, it is same as storing the nodes and does not access the entire datasets anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants