Hierarchical Graph Information Bottleneck for Multi-Behavior Recommendation

September 9, 2025 ยท View on GitHub

This is the official code for [HGIB (Hierarchical Graph Information Bottleneck for Multi-Behavior Recommendation)].

๐Ÿ“ RecSys 2025

๐Ÿ”ฌ Overview

In this project, we propose a novel model-agnostic Hierarchical Graph Information Bottleneck (HGIB) framework for multi-behavior recommendation to effectively address these challenges. Following information bottleneck principles, our framework optimizes the learning of compact yet sufficient representations that preserve essential information for target behavior prediction while eliminating task-irrelevant redundancies. To further mitigate interaction noise, we introduce a Graph Refinement Encoder (GRE) that dynamically prunes redundant edges through learnable edge dropout mechanisms. We conduct comprehensive experiments on three real-world public datasets, which demonstrate the superior effectiveness of our framework.

๐ŸŒŸ Environment Setup

Prerequisites

The main prerequisites are listed below:

Python 3.9
torch
tensorboard

And the entire dependencies can be set up by run:

pip install -r requirements.txt

Datasets

We provide the Taobao, Tmall and Jdata datasets in './data' folder.

DatasetUsersItemsViewsCollectsCartsBuys
Taobao15,44911,953873,954-195,47692,180
Tmall41,73811,9531,813,498221,5141,996255,586
Jdata93,33424,6241,681,43045,61349,891321,883

Tmall and Jdata datasets are gathered from CRGCN and Taobao dataset is gathered from MBCGCN.

You can run the following script for preprocessing:

python ./data/preprocess.py

๐Ÿš€ Getting Started

Train HGIB on the Taobao dataset

python ./src/main.py --dataset taobao --lr 5e-4 

Train HGIB on the Tmall dataset

python ./src/main.py --dataset tmall  --lr 5e-4 

Train HGIB on the Jdata dataset

python ./src/main.py --dataset jdata  --lr 5e-4 --alpha 0.5

โค๏ธ Acknowledgement

Our code is developed based on MuLe.

โœ… Cite our work

@inproceedings{10.1145/3705328.3748073,
author = {Zhang, Hengyu and Shen, Chunxu and Sun, Xiangguo and Tan, Jie and Tan, Yanchao and Rong, Yu and Cheng, Hong and Yi, Lingling},
title = {Hierarchical Graph Information Bottleneck for Multi-Behavior Recommendation},
year = {2025},
isbn = {9798400713644},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
url = {https://doi.org/10.1145/3705328.3748073},
doi = {10.1145/3705328.3748073},
booktitle = {Proceedings of the Nineteenth ACM Conference on Recommender Systems},
pages = {155โ€“164},
numpages = {10},
location = {Prague, Czech Republic},
series = {RecSys '25}
}