arXiv:2607.25110v1 cs.IR

메모리 층: 추천 모델을 위한 모델 내 캐시 학습

Memory Layer: Train the In-Model Cache for Recommendation Models

Liangyuan Na, Gufan Yin, Yixin Bao, Xianjie Chen, Justin Lin, Ziheng huang, Xinyuan Zhang, Wen Zhang, Hao Lin, Xiaoheng Mao, Shuo Tang, Min Yu, Lei Chen, Chao yang, Ziliang Zhao 외 7명

제출 2026-07-27

한국어 초록

추천 시스템의 초기 랭킹 단계에서는 엄격한 지연 시간(latency) 제약 조건 내에서 점수를 계산하기 위해 아이템 임베딩(item embedding)을 사전 계산하고 이를 모델 내에 캐싱합니다. 그러나 이 캐시는 학습 루프(training loop) 외부인 서빙 시점에만 존재하기 때문에, 학습과 서빙에서 서로 다른 아이템 표현(representation)을 사용하게 되며, 이러한 구조적 불일치는 품질을 제한하고 운영상의 취약성을 가중시킵니다. 본 논문에서는 학습과 서빙 경로를 통합 설계(co-design)함으로써 이러한 표현 불일치를 근본적으로 제거할 수 있음을 보여줍니다. 저자들은 모델과 함께 공동 학습되는 모델 내 키-값 임베딩 캐시인 메모리 층(memory layer)을 도입합니다. 아이템 타워(item tower)는 학습 중에 임베딩을 기록하고 모델은 서빙 시점에 이를 읽어 옴으로써, 구조적으로 아이템 표현에 대한 단일 진실 공급원(single source of truth)을 형성합니다. 상시 가동(always-on) 임베딩은 아직 캐싱되지 않은 아이템을 포괄하여 모든 아이템이 예측을 받을 수 있도록 하며, 이 설계는 기존 세 가지의 개별 트레이너-예측기(trainer-to-predictor) 업데이트 경로를 단일 자립형 파이프라인으로 통합합니다. Instagram Reels 프로덕션 환경에 배포된 메모리 층은 예측 커버리지를 96%에서 100%로 끌어올리고, 임베딩 최신성(freshness)을 $O(5\text{ min})$에서 $O(20\text{ s})$로 개선하였으며, 학습-서빙 간 정규화된 엔트로피(NE) 격차를 최대 86%까지 좁혀 가장 최신 콘텐츠에 대해 2배 이상의 재현율(recall)과 5-6%의 콜드 스타트(cold start) 인게이지먼트 향상을 달성했습니다. 또한 학습 과정에서 임베딩이 생성되므로 별도의 대규모 일괄 평가나 발행 시점 재계산이 필요하지 않아, 중립적인 서빙 연산 비용을 유지하면서도 학습 및 배포 연산 비용을 30% 절감합니다.

원문 초록

Early ranking stages in recommendation systems precompute item embeddings and cache them in-model for scoring within strict latency constraints. Because this cache exists only at serving time, outside the training loop, training and serving use different item representations, a structural discrepancy that limits quality and adds operational fragility. We show that co-designing the training and serving paths removes this representation discrepancy at its source. We introduce the memory layer, an in-model key-value embedding cache co-trained with the model: the item tower writes embeddings during training and the model reads them at serving, one source of truth for item representations by construction. Always-on embeddings cover items not yet cached, so every item receives a prediction, and the design consolidates three separate trainer-to-predictor update paths into a single self-contained pipeline. Deployed in production on Instagram Reels, the memory layer raises prediction coverage from 96% to 100%, improves embedding freshness from $O(5\text{ min})$ to $O(20\text{ s})$, and narrows the training-serving Normalized Entropy (NE) gap by up to 86%, yielding over $2\times$ recall for the freshest content and a 5-6% cold start engagement lift. Because embeddings are produced during training, the system needs no separate bulk-evaluation or publish-time recomputation, cutting training-and-publish computational cost by 30% at neutral serving computational cost.

제출 이력

확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.

  1. arXiv:2607.25110v1제출 시각 미확인

함께 살펴볼 논문

공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.

공통 태그로 연결된 공개 논문이 아직 없습니다.

토론

이 논문과 연결된 포럼 글이 아직 없습니다.