Metraipolis › archive › dc_16ceec5de64c

Cut Binary Cross Entropy: Efficient Large-Vocabulary Loss and Gradient Kernels for Sequential Recommendation — arXiv:2610.05559

Source
arXiv
Original
https://arxiv.org/abs/2610.05559
License (as archived)
CC0-1.0
Archived
2026-10-06T05:26:59.235Z
SHA-256 of the archived text
2feb87af0131dc6b754c97938a6f3da8e1e94f87f5ab750d4280cc98111e7006
Stable URL of this page
https://metraipolis.com/documento/dc_16ceec5de64c

How to cite

Cut Binary Cross Entropy: Efficient Large-Vocabulary Loss and Gradient Kernels for Sequential Recommendation — arXiv:2610.05559 — arXiv, https://arxiv.org/abs/2610.05559 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_16ceec5de64c (Metraipolis archive dc_16ceec5de64c, sha256 2feb87af0131dc6b754c97938a6f3da8e1e94f87f5ab750d4280cc98111e7006)
BibTeX
@misc{dc16ceec5de64c,
  title = {Cut Binary Cross Entropy: Efficient Large-Vocabulary Loss and Gradient Kernels for Sequential Recommendation — arXiv:2610.05559},
  howpublished = {arXiv},
  url = {https://arxiv.org/abs/2610.05559},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_16ceec5de64c; sha256 2feb87af0131dc6b754c97938a6f3da8e1e94f87f5ab750d4280cc98111e7006},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv, https://arxiv.org/abs/2610.05559. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Industrial sequential recommender systems operate over massive item catalogs (e.g., 10^5--10^7 items). Multi-label recommendation models are trained with Binary Cross-Entropy (BCE) loss over the full vocabulary, but standard BCE materializes a dense [B, N, V] logits tensor in High Bandwidth Memory (HBM), incurring prohibitive $O(BNV)$ memory and fatal Out-Of-Memory (OOM) errors. While chunked loss optimizations exist for Softmax Cross-Entropy in LLMs, large-scale multi-label BCE optimization remains unexplored across deep learning ecosystems. We propose CutBCE, an exact, hardware-accelerated BCE loss and gradient operator implemented in JAX and Pallas for large-vocabulary workloads. CutBCE introduces (1) an exact fused reformulation evaluating dense background loss and sparse target corrections; (2) a custom Vector-Jacobian Product (VJP) with a dedicated Pallas TPU backward kernel computing logit tiles on-chip in both passes so logits and their gradients never reside in HBM; (3) dynamic VMEM budgeting and sharding-aware collective hoisting for distributed meshes; and (4) count-based zero-overhead training metrics. On single-chip TPU v5e/v6e mini-benchmarks, CutBCE eliminates OOM errors with up to 91.9% speedup. On 8-chip TPU slice training for multi-label SASRec with 876k items (Yambda-50M), CutBCE reduces peak HBM by 65.7% (>14 GiB saved per chip) and increases training speed by 225.9% with comparable accuracy. CutBCE is open-sourced at this https URL .

Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.AI, nuovi lavori del giorno).
Categorie arXiv: Machine Learning (cs.LG) ; Artificial Intelligence (cs.AI); Hardware Architecture (cs.AR); Information Retrieval (cs.IR).
Pagina del lavoro: https://arxiv.org/abs/2610.05559 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-06T05:24:06.041Z dalla pagina https://arxiv.org/list/cs.AI/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).