Official PyTorch implementation of the paper:
Dual-Perspective Interaction Modeling for Collaborative Filtering
DMICF is a collaborative filtering framework that models user--item interactions through:
- π· Dual-perspective structural encoding
- π§ Prototype-aware variational multi-intent modeling
- π― Interaction-driven semantic alignment
- β‘ Late fusion interaction prediction
Unlike conventional unified-space recommenders, DMICF explicitly preserves complementary user-centric and item-centric semantics prior to fusion, enabling more expressive and disentangled interaction modeling.
For every dataset used in our experiments, we provide:
- β Trained checkpoints for every training epoch
- β Complete evaluation scripts
- β Reproducible training configurations
- β Full experimental settings
This facilitates:
- detailed training dynamics analysis,
- result verification,
- fair comparison and reproducibility.
We additionally release:
- π Complete implementation of user interaction group partitioning
- π Quantitative disentanglement evaluation tools
- π¨ Qualitative intent visualization utilities
- π Semantic alignment analysis scripts
These tools support comprehensive analysis of learned latent intents and interaction semantics.
DMICF constructs high-order user--user and item--item homogeneous graphs following the strategy adopted in IPCCF.
To improve scalability on large-scale datasets, we further provide a GPU-accelerated graph construction implementation:
ml10m/uu_graph.py
which significantly improves preprocessing efficiency compared to the original implementation.
All experiments are conducted on:
- Ubuntu Server
- NVIDIA RTX 4090D GPU
The complete dependency configuration is provided in:
environment.yml
Main dependencies include:
torch==2.1.0
numpy==1.22.3
scipy==1.9.3
pandas==1.5.0
scikit-learn==1.1.2We directly adopt the three representative recommendation datasets released by LightGCL, covering diverse interaction distributions and sparsity characteristics.
python train.pypython eval_results.py- DMICF uses a unified experimental configuration across all datasets.
- Only minimal dataset-specific modifications are required during evaluation.
- All reported experimental results are averaged over five independent runs.
If you find this repository useful for your research, please consider citing our paper:
@article{DMICF,
title={Dual-Perspective Interaction Modeling for Collaborative Filtering},
author={Anonymous Authors},
journal={Under Review},
year={2026}
}Part of the high-order graph construction pipeline is inspired by the implementation of IPCCF. We thank the authors for making their code publicly available.