Manuscript Offprint

arXiv:2609.07961

αα-Graph: Attention-Infused Normalizing Flow Approach to Tractable Graph Modeling

Thanh-Dat Truong, Sarah Alharbi, Susan Gauch, Xinghui Zhao, Marios Savvides, Khoa Luu

Thanh-Dat Truong

CVIU Lab, Dep. of EECS

University of Arkansas

tt032@uark.edu

Sarah Alharbi

Dep. of Electrical and Computer Engineering

Carnegie Mellon University

sarahalh@andrew.cmu.edu

Susan Gauch

Dep. of EECS

University of Arkansas

sgauch@uark.edu

Xinghui Zhao

Dep. of Computer Science

Washington State University Vancouver

x.zhao@wsu.edu

Marios Savvides

Dep. of Electrical and Computer Engineering

Carnegie Mellon University

marioss@andrew.cmu.edu

Khoa Luu

CVIU Lab, Dep. of EECS

University of Arkansas

khoaluu@uark.edu

Abstract

Graph modeling, a crucial task for representing complex relationships in graph-structured data, has achieved significant success in recent years. However, current graph modeling methods rely on traditional Graph Neural Networks and pre-training approaches to implicitly learn the underlying relational structure of graph data. Thus, these prior methods cannot capture the complex graph structure and correlations among inputs. In this paper, we introduce a novel Attention-based Normalizing Flow-based Approach1^{1} (ANFA or α\alpha) that provides an explicit, interpretable, and tractable Graph Modeling (α\alpha-Graph). In particular, we propose a new Unconditional Graph Normalizing Flow with an Invertible Attention Mechanism to capture the complex relational structure of graph data. To further enhance the expressiveness of the model, we introduce Conditional Graph Normalizing Flow with Learnable Queries that enables efficient modeling of correlations in graph-structured data. We show that our Conditional Graph Normalizing Flows behave similarly to Unconditional Graph Normalizing Flows, enhancing expressiveness while maintaining training stability and efficiency. Our experimental results on three benchmarks will illustrate the effectiveness and the state-of-the-art (SoTA) performance of the proposed α\alpha-Graph method.

1 Introduction

Various practical problems, e.g., Scene Graph Generation Yang et al. (2022); Nguyen et al. (2024c;b), Action Recognition Shi et al. (2019a;b), can be represented as graphs that model entities and their complex

1^{1}Our implementation and models will be released publicly for research reproducibility.

interrelationships. Modeling these dependencies in graph-structured data is important because relationships among nodes often encode critical feature representations that directly influence the outcomes of prediction and reasoning tasks. Graph neural networks (GNNs) Kipf & Welling (2016a;b); Kim et al. (2024) have emerged as a powerful approach to graph modeling, yielding performance improvements by integrating graph topology into the learning process. This approach enables various applications, e.g., relationship modeling Nguyen et al. (2024c;b), molecular and drug discovery Ruan et al. (2021); Saifuddin et al. (2023), and robotics Pistilli & Averta (2023); Lei et al. (2023).

The success of graph modeling relies on advances in pre-training strategies and network design. Indeed, pre-training Kipf & Welling (2016b); Hou et al. (2022; 2023); Kim et al. (2024) enables GNNs to model generalizable structural and relational features from large-scale, unlabeled graphs, providing a strong initialization for downstream applications. Meanwhile, recent studies have introduced various network architectures for graphs, e.g., Graph CNN Kipf & Welling (2016a); Huang & Yang (2021), Graph Transformer Yun et al. (2019); Veličković et al. (2017), to enhance GNNs' ability to capture complex dependencies and hierarchical relationships in graph-structured data. However, these prior approaches Kipf & Welling (2016b); Hou et al. (2022; 2023); Kim et al. (2024) primarily rely on implicit modeling, where representations are learned directly from data without explicit encoding of domain knowledge or structural constraints. In particular, these models often lack interpretability, making it difficult to understand which structural features they capture. Graph Isomorphism Network Xu et al. (2018) or Graph Attention Network Veličković et al. (2017) rely purely on node aggregation without semantic decomposition. Deeper GNNs may also encounter the oversmoothing problem, where node representations become indistinguishable, and performance degrades, especially in large or sparse graphs Rusch et al. (2023). Other implicit pre-training methods, e.g., GraphVAE Kipf & Welling (2016b); Zhang et al. (2019) and contrastive learning Xia et al. (2022); Ju et al. (2024), may not align well with downstream goals since these learning objectives aim to reconstruct graph structures or maximize invariance under augmentations, rather than learning task-specific. Moreover, implicit modeling often relies on learning from large-scale data without enforcing structural priors Kim et al. (2024); Hou et al. (2022). As a result, the model can overfit to dataset-specific patterns, rather than modeling generalizable relationship structures Rusch et al. (2023).

While most recent graph modeling methods adopt attention mechanisms or message-passing schemes to implicitly capture structural dependencies, explicit modeling approaches have gained less attention. Normalizing Flows Dinh et al. (2016); Kingma & Dhariwal (2018); Sukthanker et al. (2022); Truong et al. (2025a) offer a promising approach for explicit modeling by learning exact likelihoods through invertible mappings between graph-structured data and latent spaces. By modeling the graphs via a bijection, normalizing flows enable stable and tractable training while capturing complex relational structures. In addition, this approach can represent complex graph distributions, capturing relational features and graph topologies, with direct control over model parameters Kingma & Dhariwal (2018); Sukthanker et al. (2022). This explicit approach also enhances interpretability and improves understanding of graph-structured dependencies, a limitation of prior implicit models Dinh et al. (2016); Ho et al. (2019). Compared to traditional methods Hou et al. (2023; 2022);

Figure

Figure 1: Our Conditional Normalizing Flow-based Approach Via Invertible Cross-Attention with Learnable Queries.

Kipf & Welling (2016b); Zhang et al. (2019), explicit modeling with normalizing flows offers a more effective mechanism for capturing graph structures without overemphasizing node-specific features. Consequently, it enables more precise, flexible, and robust graph modeling, improving generalization.

Limitations of Normalizing Flows in Graph Modeling. The properties of graph-structured data, e.g., permutation invariance, discrete representation, or relational dependencies, pose several challenges in designing an invertible network. Meanwhile, normalizing flows were initially designed for continuous or image spaces Dinh et al. (2014; 2016). Current normalizing flow designs rely on the coupling layer Dinh et al. (2016). However, it remains limited for graph-structured data. Indeed, the scale and transformation networks Dinh et al. (2016) in coupling layers are designed using residual networks He et al. (2016), which cannot capture the relational structure of the graph. While GNNs Kipf & Welling (2016a) can capture relational structure, these layers are not invertible. Recent work Liu et al. (2019) introduced invertible layers for GNNs based on coupling layers, the expressiveness of these layers is limited due to the fixed feature-dimension partition mechanism Kingma & Dhariwal (2018). Other studies have adopted autoregressive modeling with RNNs Li et al. (2018); You et al. (2018b) to model the likelihood of graph data, but this remains intractable and cannot capture long-range dependencies. Therefore, to develop an efficient normalizing flow approach to graph modeling, it is critical to address these limitations.

Contributions of this Work. This paper introduces the novel Attention-based Normalizing Flow-based Approach (α-Graph) to develop a new explicit, interpretable, and tractable Graph Modeling (Figure 1). Our contributions can be summarized as follows. First, we propose a new Invertible Attention layer for Graph Normalizing Flow Models. Our proposed invertible attention layer efficiently addresses the limitations of prior coupling layers while maintaining traceability and invertibility and enforcing graph-structured properties. Second, to further enhance the modeling capability of the graph normalizing flow, we propose a Conditional Normalizing Flow for Graph Modeling by introducing learnable queries and invertible cross-attention layers. Our conditional graph normalizing flow model can efficiently capture the correlations in graph-structured data. Third, we prove that our Conditional Graph Normalizing Flows have a gradient update similar to that of Unconditional Graph Normalizing Flows. This demonstrates that α-Graph enhances expressiveness while inheriting the strong optimization properties of unconditional graph normalizing flows, with theoretical guarantees. Finally, extensive experiments on diverse graph datasets demonstrate the effectiveness of α-Graph across various aspects, achieving State-of-the-Art (SoTA) performance compared to prior methods in graph modeling.

References (94)