A Lagrangian Approach to Information Propagation in Graph Neural Networks

Matteo Tiezzi, Giuseppe Marra, Stefano Melacci, Marco Maggini, Marco Gori

TL;DR

This paper introduces a novel Lagrangian approach to training Graph Neural Networks (GNNs). By formulating GNN learning as a constrained optimization problem, they enable joint optimization of network weights and node states, eliminating the need for separate iterative phases for information diffusion and learning, leading to a more efficient and unified training process.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) are powerful tools for processing data with graph structures, finding applications in areas like social networks, molecular analysis, and recommendation systems. A core component of GNNs is the "encoding" or "aggregation" phase, where information from neighboring nodes is iteratively propagated to update each node's state. This process aims to reach a stable "fixed point" that represents the node's local context within the graph. However, this iterative fixed-point computation can be computationally expensive, especially for large graphs, and typically requires a separate phase before the learning (weight update) phase. This separation can slow down training and makes it challenging to optimize the diffusion process and weight learning simultaneously. The paper addresses this by proposing a method to integrate the fixed-point computation directly into the optimization problem, allowing for a more streamlined and potentially faster training process.

Methods

The paper proposes a "Lagrangian approach to information propagation in Graph Neural Networks." Instead of explicitly computing the fixed point of the state transition function iteratively, they frame the GNN learning problem as a constrained optimization task. This involves:

  • Lagrangian Formulation: The GNN's state transition function and output function are treated as learnable parameters. The core constraint is that the node states must satisfy the fixed-point equation (i.e., x_v = f_a,v). This constraint is incorporated into a Lagrangian function by introducing Lagrange multipliers for each node.
  • Joint Optimization: The learning objective becomes finding a saddle point of this Lagrangian function. This allows for the simultaneous optimization of the neural network weights (for the state transition and output functions) and the node states themselves. This is a key departure from traditional GNN training, where node states are computed first, and then weights are updated.
  • Gradient Descent/Ascent: The saddle point is found using a mixed gradient descent (for weights and states) and gradient ascent (for Lagrange multipliers) strategy, inspired by methods like the Basic Differential Multiplier Method.
  • Constraint Function G(x): The paper introduces a flexible constraint function G(x) that enforces the fixed-point condition. Different variants of G(x) (e.g., linear, absolute value, squared, or epsilon-insensitive) are explored, allowing for controlled tolerance in constraint satisfaction and potentially improving generalization and robustness.

Datasets

The paper evaluates their proposed method on two types of tasks:

  • Artificial Tasks:
    • Subgraph Matching: Finding nodes in a larger graph that belong to a specific smaller subgraph.
  • Clique Localization: Identifying complete subgraphs (cliques) within a larger graph.
  • These tasks use custom datasets with a fixed number of nodes and target subgraph sizes.
  • Graph Classification Benchmarks:
    • Bioinformatics: MUTAG, PTC, NCI1, PROTEINS.
  • Social Networks: IMDB-BINARY, IMDB-MULTI.
  • These are standard benchmarks for evaluating graph classification models.

Key Insights and Ideas

  • Unified Training: The most significant insight is the unification of the information diffusion (fixed-point computation) and weight learning processes into a single optimization problem. This eliminates the need for separate, sequential phases, potentially leading to more efficient training.
  • Implicit Fixed-Point Computation: By treating node states as learnable variables subject to constraints, the fixed-point computation is implicitly handled during the optimization process, rather than being an explicit iterative step.
  • Flexibility in Constraint Enforcement: The introduction of the G(x) function allows for tunable "softness" in enforcing the fixed-point constraints. Epsilon-insensitive constraints, for example, can introduce tolerance to noise and improve generalization.
  • Reduced Memory Footprint: The proposed method requires storing node states and Lagrange multipliers, which is argued to be more memory-efficient than methods that need to store intermediate states from multiple diffusion iterations for backpropagation.

Key Results

  • Artificial Tasks: The proposed Lagrangian Propagation GNN (LP-GNN) achieved competitive accuracies on subgraph matching and clique localization tasks, often outperforming the standard GNN model, especially with certain constraint function choices. For instance, the "squared" constraint function showed particularly strong results on the clique detection task.
  • Graph Classification: LP-GNN performed on par with or better than several state-of-the-art GNN models on graph classification benchmarks. Notably, it achieved a new state-of-the-art performance on the Proteins dataset, despite using a shallower architecture compared to some of the more complex models.
  • Efficiency: The paper claims a computational complexity of O(|V| + |E|) per parameter update, which is comparable to or better than some existing GNN models, especially when considering the elimination of explicit iterative diffusion phases.

Limitations and Future Work

  • Memory Requirements: While claimed to be more memory-efficient than some methods, the approach still requires storing node states and Lagrange multipliers, which could be a limitation for extremely large graphs.
  • Generalization of G(x): The paper explored several variants of G(x), but further systematic investigation into the properties and optimal choices of this function for different tasks and datasets is suggested.
  • Deeper Architectures: The current LP-GNN implementation focuses on a shallow diffusion process. Future work could explore extending the Lagrangian approach to allow for multiple layers of diffusion, integrating it with deep feature extraction mechanisms.
  • Systematic Exploration: The authors plan to systematically explore the algorithm's convergence properties, complexity, and behavior with respect to various graph characteristics and model architecture choices.

Summary updated

BibTeX
@inproceedings{tiezzi2020lagrangian,
  author = {Matteo Tiezzi and Giuseppe Marra and Stefano Melacci and Marco Maggini and Marco Gori},
  title = {{A Lagrangian Approach to Information Propagation in Graph Neural Networks}},
  booktitle = {ECAI},
  year = {2020},
  doi = {10.3233/faia200262},
}
Figure