Gradient Rewiring for Editable Graph Neural Network Training

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Jiang, Zhimeng, Liu, Zirui, Han, Xiaotian, Feng, Qizhang, Jin, Hongye, Tan, Qiaoyu, Zhou, Kaixiong, Zou, Na, Hu, Xia
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909366050881536
author Jiang, Zhimeng
Liu, Zirui
Han, Xiaotian
Feng, Qizhang
Jin, Hongye
Tan, Qiaoyu
Zhou, Kaixiong
Zou, Na
Hu, Xia
author_facet Jiang, Zhimeng
Liu, Zirui
Han, Xiaotian
Feng, Qizhang
Jin, Hongye
Tan, Qiaoyu
Zhou, Kaixiong
Zou, Na
Hu, Xia
contents Deep neural networks are ubiquitously adopted in many applications, such as computer vision, natural language processing, and graph analytics. However, well-trained neural networks can make prediction errors after deployment as the world changes. \textit{Model editing} involves updating the base model to correct prediction errors with less accessible training data and computational resources. Despite recent advances in model editors in computer vision and natural language processing, editable training in graph neural networks (GNNs) is rarely explored. The challenge with editable GNN training lies in the inherent information aggregation across neighbors, which can lead model editors to affect the predictions of other nodes unintentionally. In this paper, we first observe the gradient of cross-entropy loss for the target node and training nodes with significant inconsistency, which indicates that directly fine-tuning the base model using the loss on the target node deteriorates the performance on training nodes. Motivated by the gradient inconsistency observation, we propose a simple yet effective \underline{G}radient \underline{R}ewiring method for \underline{E}ditable graph neural network training, named \textbf{GRE}. Specifically, we first store the anchor gradient of the loss on training nodes to preserve the locality. Subsequently, we rewire the gradient of the loss on the target node to preserve performance on the training node using anchor gradient. Experiments demonstrate the effectiveness of GRE on various model architectures and graph datasets in terms of multiple editing situations. The source code is available at \url{https://github.com/zhimengj0326/Gradient_rewiring_editing}
format Preprint
id arxiv_https___arxiv_org_abs_2410_15556
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Gradient Rewiring for Editable Graph Neural Network Training
Jiang, Zhimeng
Liu, Zirui
Han, Xiaotian
Feng, Qizhang
Jin, Hongye
Tan, Qiaoyu
Zhou, Kaixiong
Zou, Na
Hu, Xia
Machine Learning
Deep neural networks are ubiquitously adopted in many applications, such as computer vision, natural language processing, and graph analytics. However, well-trained neural networks can make prediction errors after deployment as the world changes. \textit{Model editing} involves updating the base model to correct prediction errors with less accessible training data and computational resources. Despite recent advances in model editors in computer vision and natural language processing, editable training in graph neural networks (GNNs) is rarely explored. The challenge with editable GNN training lies in the inherent information aggregation across neighbors, which can lead model editors to affect the predictions of other nodes unintentionally. In this paper, we first observe the gradient of cross-entropy loss for the target node and training nodes with significant inconsistency, which indicates that directly fine-tuning the base model using the loss on the target node deteriorates the performance on training nodes. Motivated by the gradient inconsistency observation, we propose a simple yet effective \underline{G}radient \underline{R}ewiring method for \underline{E}ditable graph neural network training, named \textbf{GRE}. Specifically, we first store the anchor gradient of the loss on training nodes to preserve the locality. Subsequently, we rewire the gradient of the loss on the target node to preserve performance on the training node using anchor gradient. Experiments demonstrate the effectiveness of GRE on various model architectures and graph datasets in terms of multiple editing situations. The source code is available at \url{https://github.com/zhimengj0326/Gradient_rewiring_editing}
title Gradient Rewiring for Editable Graph Neural Network Training
topic Machine Learning
url https://arxiv.org/abs/2410.15556