← notes

HSTU 기반 Generative Recommenders @Meta

2025-10-10 · recsys, generative-recsys

Actions Speak Louder than Words: Trillion-Parameter Sequential Transducers for Generative Recommendations (2024)

추천 문제를 sequential transduction으로 재정의한 Generative Recommenders(GR) 프레임워크와 HSTU 아키텍처 - 1.5조 파라미터 모델을 Meta 플랫폼에 배포해 A/B 테스트 +12.4% 달성.

  • DLRM의 수천 개 heterogeneous feature를 unified time series로 통합 → 수백 명의 엔지니어가 수년간 쌓은 feature engineering을 sequential modeling으로 대체
  • HSTU가 FlashAttention2 Transformer 대비 training 최대 15.2x, inference 최대 5.6x 빠름 (8192 length 기준)
  • M-FALCON 알고리즘으로 285x 복잡한 모델을 동일 inference budget에서 1.5x~3x 높은 QPS로 서빙
  • 추천 시스템 최초로 3 orders of magnitude에 걸친 power-law scaling law 검증 (GPT-3/LLaMa-2 수준까지)

Background


Method

Heterogeneous Feature → Unified Time Series

Ranking/Retrieval as Sequential Transduction

Generative Training

HSTU 아키텍처

HSTU(Hierarchical Sequential Transduction Unit)는 세 개의 sub-layer로 구성된 identical block을 stack:

U(X),V(X),Q(X),K(X)=Split(ϕ1(f1(X)))(1)U(X), V(X), Q(X), K(X) = \text{Split}(\phi_1(f_1(X))) \tag{1} A(X)V(X)=ϕ2(Q(X)K(X)T+rabp,t)V(X)(2)A(X)V(X) = \phi_2\left(Q(X)K(X)^T + r^{abp,t}\right) V(X) \tag{2} Y(X)=f2(Norm(A(X)V(X))U(X))(3)Y(X) = f_2\left(\text{Norm}(A(X)V(X)) \odot U(X)\right) \tag{3}

DLRM 3단계를 HSTU 하나로 대체:

Pointwise Aggregated Attention

Sparsity 활용 + Stochastic Length (SL)

Activation Memory 최소화

M-FALCON: Inference Cost Amortization


Experiments

Public Dataset (전통적 sequential 설정)

Industrial-Scale Streaming 설정

실제 서비스에서 GR vs DLRM

Scaling Law


💭