Linear, or Non-Linear, That is the Question!

Taeyong Kong, Taeri Kim, Jinsung Jeon, Jeongwhan Choi, Yeon-Chang Lee, Noseong Park, Sang-Wook Kim

Abstract

There were fierce debates on whether the non-linear embedding propagation of GCNs is appropriate to GCN-based recommender systems. It was recently found that the linear embedding propagation shows better accuracy than the non-linear embedding propagation. Since this phenomenon was discovered especially in recommender systems, it is required that we carefully analyze the linearity and non-linearity issue. In this work, therefore, we revisit the issues of i) which of the linear or non-linear propagation is better and ii) which factors of users/items decide the linearity/non-linearity of the embedding propagation. We propose a novel Hybrid Method of Linear and non-linEar collaborative filTering method (HMLET, pronounced as Hamlet). In our design, there exist both linear and non-linear propagation steps, when processing each user or item node, and our gating module chooses one of them, which results in a hybrid model of the linear and non-linear GCN-based collaborative filtering (CF). The proposed model yields the best accuracy in three public benchmark datasets. Moreover, we classify users/items into the following three classes depending on our gating modules' selections: Full-Non-Linearity (FNL), Partial-Non-Linearity (PNL), and Full-Linearity (FL). We found that there exist strong correlations between nodes' centrality and their class membership, i.e., important user/item nodes exhibit more preferences towards the non-linearity during the propagation steps. To our knowledge, we are the first who design a hybrid method and report the correlation between the graph centrality and the linearity/non-linearity of nodes.

Introduction

Graph Convolutional Networks (GCNs) have become a cornerstone of modern collaborative filtering (CF). However, a significant debate exists regarding the necessity of non-linear transformations within these architectures. Early models like Neural Graph Collaborative Filtering (NGCF) utilized non-linear activation functions and feature transformations. In contrast, subsequent research, notably LightGCN, demonstrated that removing these non-linearities often leads to superior performance by mitigating training difficulties and over-smoothing. This paper investigates whether the optimal choice between linear and non-linear propagation is a global property or if it varies at the individual node level.

Methodology: The HMLET Framework

We propose HMLET (Hybrid Method of Linear and non-linEar collaborative filTering), a model that dynamically selects between linear and non-linear propagation paths for each node.

Dual Propagation Paths and Gating

For each layer in the GCN, HMLET computes two potential embeddings:

  1. Linear Path: A simple weighted sum of neighbor embeddings, following the design of LightGCN.
  2. Non-linear Path: Incorporates non-linear activation functions (e.g., Leaky-ReLU) to capture more complex patterns.

To decide which path to take, the model employs a Gumbel-Softmax gating module. This mechanism allows the model to make discrete, node-specific choices during the forward pass while remaining end-to-end differentiable, enabling the "choice logic" to be learned alongside the embeddings.

The overall architecture of HMLET, illustrating the dual linear and non-linear embedding propagation paths controlled by a gating module.

Architectural Variants

We explored four architectural configurations based on the placement of the gating modules:

  • HMLET(All): Gates in all layers.
  • HMLET(Front): Gates in the initial layers.
  • HMLET(Middle): Gates in the middle layers.
  • HMLET(End): Gates in the final layers, which avoids early over-smoothing while capturing complex high-order relationships.

Experimental Results

The performance of HMLET was evaluated on three benchmark datasets: Gowalla, Yelp2018, and Amazon-Book.

Comparative Performance

HMLET(End) consistently outperformed both purely linear (LightGCN) and purely non-linear (NGCF) baselines. The most significant improvement was observed on the Amazon-Book dataset, with a 6.00% increase in NDCG@20 over LightGCN.

Performance comparison (NDCG@20) of HMLET variants across three benchmark datasets, showing the superiority of the HMLET(End) configuration.

The Centrality Correlation

A key contribution of this work is the discovery of a correlation between a node's graph centrality and its preference for non-linearity.

  • Popular Nodes (High Centrality): These nodes tend to prefer non-linear propagation. We hypothesize that non-linear activations help filter noise from their large and diverse neighborhoods.
  • Long-Tail Nodes (Low Centrality): These nodes prefer linear propagation, as their sparse interactions provide a clear signal that non-linear transformations might otherwise distort.

Conclusion

HMLET resolves the linear vs. non-linear debate by demonstrating that both are necessary, depending on node characteristics. By allowing the model to adapt its complexity to the local graph structure, we achieve state-of-the-art results and provide new insights into the role of non-linearity in graph-based recommendation.

Summary updated

BibTeX
@inproceedings{kong2022linear,
  author = {Taeyong Kong and Taeri Kim and Jinsung Jeon and Jeongwhan Choi and Yeon-Chang Lee and Noseong Park and Sang-Wook Kim},
  title = {{Linear, or Non-Linear, That is the Question!}},
  booktitle = {WSDM},
  year = {2022},
  doi = {10.1145/3488560.3498501},
}
Figure