Gransformer: Transformer-based Graph Generation

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Khajenezhad, Ahmad, Osia, Seyed Ali, Karimian, Mahmood, Beigy, Hamid
Format: Preprint
Published: 2022
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929366565388288
author Khajenezhad, Ahmad
Osia, Seyed Ali
Karimian, Mahmood
Beigy, Hamid
author_facet Khajenezhad, Ahmad
Osia, Seyed Ali
Karimian, Mahmood
Beigy, Hamid
contents Transformers have become widely used in various tasks, such as natural language processing and machine vision. This paper proposes Gransformer, an algorithm based on Transformer for generating graphs. We modify the Transformer encoder to exploit the structural information of the given graph. The attention mechanism is adapted to consider the presence or absence of edges between each pair of nodes. We also introduce a graph-based familiarity measure between node pairs that applies to both the attention and the positional encoding. This measure of familiarity is based on message-passing algorithms and contains structural information about the graph. Also, this measure is autoregressive, which allows our model to acquire the necessary conditional probabilities in a single forward pass. In the output layer, we also use a masked autoencoder for density estimation to efficiently model the sequential generation of dependent edges connected to each node. In addition, we propose a technique to prevent the model from generating isolated nodes without connection to preceding nodes by using BFS node orderings. We evaluate this method using synthetic and real-world datasets and compare it with related ones, including recurrent models and graph convolutional networks. Experimental results show that the proposed method performs comparatively to these methods.
format Preprint
id arxiv_https___arxiv_org_abs_2203_13655
institution arXiv
publishDate 2022
record_format arxiv
spellingShingle Gransformer: Transformer-based Graph Generation
Khajenezhad, Ahmad
Osia, Seyed Ali
Karimian, Mahmood
Beigy, Hamid
Machine Learning
Transformers have become widely used in various tasks, such as natural language processing and machine vision. This paper proposes Gransformer, an algorithm based on Transformer for generating graphs. We modify the Transformer encoder to exploit the structural information of the given graph. The attention mechanism is adapted to consider the presence or absence of edges between each pair of nodes. We also introduce a graph-based familiarity measure between node pairs that applies to both the attention and the positional encoding. This measure of familiarity is based on message-passing algorithms and contains structural information about the graph. Also, this measure is autoregressive, which allows our model to acquire the necessary conditional probabilities in a single forward pass. In the output layer, we also use a masked autoencoder for density estimation to efficiently model the sequential generation of dependent edges connected to each node. In addition, we propose a technique to prevent the model from generating isolated nodes without connection to preceding nodes by using BFS node orderings. We evaluate this method using synthetic and real-world datasets and compare it with related ones, including recurrent models and graph convolutional networks. Experimental results show that the proposed method performs comparatively to these methods.
title Gransformer: Transformer-based Graph Generation
topic Machine Learning
url https://arxiv.org/abs/2203.13655