Skip to content

FuCongResearchSquad/ManCAR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

ManCAR

This repository provides a PyTorch reference implementation of the main models and training procedures described in our paper:

Kun Yang, Yuxuan Zhu, Yazhe Chen, Siyao Zheng, Bangyang Hong, Kangle Wu, Yabo Ni, Anxiang Zeng, Cong Fu, Hui Li. ManCAR: Manifold-Constrained Latent Reasoning with Adaptive Test-Time Computation for Sequential Recommendation.

Overview

image

we propose ManCAR, a principled framework that grounds reasoning within the topology of a global interaction graph. ManCAR constructs a local intent prior from the collaborative neighborhood of a user's recent actions, represented as a distribution over the item simplex. During training, the model progressively aligns its latent predictive distribution with this prior, forcing the reasoning trajectory to remain within the valid manifold. At test time, reasoning proceeds adaptively until the predictive distribution stabilizes, avoiding over-refinement.

image

Paper & Resources

Dataset process

you can download CDs dataset from Hugging Face

After downloading the dataset, you need put the dataset into dataset/processed/.

or use the following commands to process your datasets

  1. Download the dataset from Amazon

  2. python ./datasets/process_data.py

  3. python ./datasets/item_csv.py

After processed, you need to put the processed dataset into dataset/processed/.

image

Requirements

torch==2.4.1

numpy

tqdm

Training

To run ManCAR, use the following command:

  1. cd ManCAR
  2. bash run.sh

Results

image

Acknowledgements

We greatly appreciate the official ReaRec repository. Our code is based on the ReaRec repository.

Citation

If you use this dataset, please cite:

@article{mancar2026,
  title={ManCAR: Manifold-Constrained Latent Reasoning with Adaptive Test-Time Computation for Sequential Recommendation},
  author={Kun Yang, Yuxuan Zhu, Yazhe Chen, Siyao Zheng, Bangyang Hong, Kangle Wu, Yabo Ni, Anxiang Zeng, Cong Fu, Hui Li},
  journal={arXiv preprint arXiv:2602.20093},
  year={2026}
}

About

Official implementation of the paper "ManCAR: Manifold-Constrained Latent Reasoning with Adaptive Test-Time Computation for Sequential Recommendation"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors