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

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

TL;DR

HMLET (Hybrid Method of Linear and non-linEar collaborative filTering) is a novel GCN-based recommendation model that ends the "linear vs. non-linear" debate by choosing both. Using a trainable gating mechanism, the model dynamically selects the best propagation method for each individual node, revealing that "popular" nodes benefit from non-linear complexity while "long-tail" nodes perform better with simple linear logic.

What Problem Does This Paper Address?

In the world of Graph Convolutional Networks (GCNs) for recommendation, there has been a tug-of-war between complexity and simplicity. Early models used non-linear activation functions (like ReLU) and heavy feature transformations. However, recent state-of-the-art models like LightGCN argued that these non-linearities actually hurt performance in collaborative filtering by making models harder to train and prone to "over-smoothing" (where all node embeddings become indistinguishable).

The authors of this paper ask: Is a purely linear approach always the answer? They hypothesize that the "optimal" level of linearity might depend on the specific characteristics of the user or item in the graph, rather than being a global setting for the entire model.

Methods

The authors propose HMLET (pronounced "Hamlet"), which introduces a gating module into the GCN architecture.

  1. Dual Paths: For every layer, the model calculates two potential embeddings for a node: one via a linear path (simple weighted sum of neighbors) and one via a non-linear path (incorporating activation functions like Leaky-ReLU or ELU).
  2. Gumbel-Softmax Gating: To choose between these paths, the model uses a Gumbel-softmax gating mechanism. This allows the model to make a discrete "either/or" choice during the forward pass while remaining differentiable so the "choice logic" can be learned during training.
  3. Architectural Variants: The researchers tested four versions of HMLET, varying where the gates were placed (All layers, Front, Middle, or End). They found that HMLET(End)—placing gates only in the final two layers—performed best, as it avoids early over-smoothing while allowing for complex pattern matching of distant neighbors.
  4. Residual Prediction: Like other modern GCNs, HMLET sums the embeddings from every layer to form the final representation used for prediction.

Datasets

The model was evaluated on three standard public benchmarks:

  • Gowalla: A location-based social network dataset.
  • Yelp2018: A dataset of business reviews and user interactions.
  • Amazon-Book: A product purchase dataset, notable for having the highest sparsity among the three.

All datasets were processed using a "10-core" setting, meaning only users and items with at least ten interactions were retained.

Key Insights and Ideas

  • The Centrality Correlation: The most striking finding is the link between a node's "importance" in the graph and its preference for non-linearity. High-degree nodes (popular items or active users) tend to prefer non-linear propagation (Full-Non-Linearity).
  • Noise Filtering: Popular nodes have many diverse neighbors, which introduces "noise." The authors argue that non-linear activations act as a filter, helping the model extract useful signals from a crowded neighborhood.
  • Linearity for the Long Tail: Conversely, nodes with few interactions (the "long tail") prefer linear propagation. Their neighborhoods are small and specific; non-linear transformations might distort the clear, simple signal provided by their few neighbors.
  • Location Matters: Non-linearity is most effective in the deeper layers of the network. Using it too early can lead to the over-smoothing problems identified in previous research, but using it late allows the model to capture complex, high-order relationships between distant nodes.

Key Results

HMLET(End) consistently outperformed both traditional non-linear models (like NGCF) and modern linear models (like LightGCN) across all metrics (NDCG, Recall, and Precision).

  • Amazon-Book: Showed the most significant gains, with a 6.00% improvement in NDCG@20 over LightGCN.
  • Yelp2018: Achieved a 3.33% improvement in NDCG@20.
  • Gowalla: Achieved a 1.56% improvement in NDCG@20.

The results were statistically significant (p-values < 0.05), proving that the hybrid approach captures nuances that purely linear or purely non-linear models miss.

Limitations and Future Work

  • Computational Overhead: By maintaining dual propagation paths and a gating module, HMLET is more computationally expensive to train than a purely linear model like LightGCN.
  • Gate Placement: While the authors tested four specific variants, they acknowledge that the "optimal" placement of gates is likely dataset-dependent.
  • Future Directions: The authors suggest that future work could explore more sophisticated ways to combine linear and non-linear paths beyond a simple binary gate, or apply this "node-wise" architectural search to other graph-based tasks like node classification or link prediction.

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},
}

Loading related content...

Figure