genrec icon indicating copy to clipboard operation
genrec copied to clipboard

Low scores on repo's HSTU on MovieLens

Open kzhirong opened this issue 7 months ago • 2 comments

Hi, thanks for maintaining this repo. I'm running the HSTU implementation in this repo on MovieLens-1M and getting numbers that are substantially below what Meta report in the original HSTU paper (NDCG@10 ≈ 0.1720). My setup follows the paper's protocol. Leave-one-out split, multi-epoch full-shuffle training, full-vocabulary ranking at eval. I tried both full-vocab cross-entropy and sampled-softmax (128 negatives). CE gave NDCG@10 = 0.1140 and SS gave 0.0948. I wanted to check with you before drawing any conclusions, since the README references the Meta paper as the source of this implementation. Can you clarify whether the HSTU here is intended/expected to reproduce Meta's MovieLens results, or has it only been validated on the Amazon datasets shown in the README benchmarks?

kzhirong avatar May 04 '26 08:05 kzhirong

@kzhirong Hi, To be upfront: the HSTU implementation in this repo has only been validated on the Amazon datasets shown in the README. I'll add MovieLens-1M to the validation set next and report back. Thanks for flagging this!

phonism avatar May 06 '26 06:05 phonism

@kzhirong Hi, a follow-up to my earlier reply: I still don't have a verified MovieLens-1M result matching Meta's reported score, so this repo should not be taken as having reproduced that result.

The current implementation has a MovieLens-1M adapter and fixes to sampled-softmax training/scoring, including per-positive negative sampling, matching L2 normalization/temperature at evaluation, and attention scaling that does not depend on the batch's padded length (6da9328). Those fixes are not a MovieLens reproduction result, and I can't attribute your gap to CE vs sampled softmax alone.

The validated matrix is still Amazon. This is a dense PyTorch adaptation with architectural differences, including the extra FFN and bucketed relative biases; the boundaries are now documented on the HSTU page. I'm keeping this issue open until there's a verified ML-1M comparison. Thanks for flagging this!

phonism avatar Oct 22 '26 05:10 phonism