突破长度障碍:长文本用户行为中经 LLM 增强的 CTR 预测
Breaking the Length Barrier: LLM-Enhanced CTR Prediction in Long Textual User Behaviors
AI总结:
针对 LLM 处理长用户行为序列效率低的问题,本文提出 BAHE 分层编码架构,将行为编码与交互解耦并离线缓存原子行为嵌入,在保持 CTR 预测性能的同时将训练时间和内存降低五倍,并已在工业系统中实现千万级数据日更。
摘要:
随着大语言模型(LLMs)的兴起,近期工作已利用 LLMs 来提升点击率(CTR)预测的性能。然而,我们认为在将 LLMs 部署于实际应用时仍存在一个关键障碍:LLMs 处理长文本用户行为时的效率问题。随着用户序列不断变长,当前 LLMs 的效率不足以支持在数十亿用户和物品上进行训练。为突破 LLMs 的效率障碍,我们提出行为聚合分层编码(BAHE)以提升基于 LLM 的 CTR 建模效率。具体而言,BAHE 提出了一种新颖的分层架构,将用户行为编码与行为间交互解耦。首先,为防止对相同用户行为的重复编码造成计算冗余,BAHE 利用 LLM 的预训练浅层从大规模用户序列中提取最细粒度、原子性的用户行为嵌入,并将其存储于离线数据库中。随后,LLM 更深层的可训练层促进复杂的行为间交互,从而生成全面的用户嵌入。这种分离使得高层用户表示的学习独立于低层行为编码,显著降低了计算复杂度。最后,这些精炼后的用户嵌入与相应处理后的物品嵌入一起输入 CTR 模型以计算 CTR 分数。大量实验结果表明,BAHE 使采用 LLMs 的 CTR 模型训练时间和内存减少五倍,尤其在用户序列更长时效果更为明显。BAHE 已部署于真实系统中,可在 8 块 A100 GPU 上每日更新 5000 万条 CTR 数据,使 LLMs 在工业级 CTR 预测中切实可行。
英文摘要:
With the rise of large language models (LLMs), recent works have leveraged LLMs to improve the performance of click-through rate (CTR) prediction. However, we argue that a critical obstacle remains in deploying LLMs for practical use: the efficiency of LLMs when processing long textual user behaviors. As user sequences grow longer, the current efficiency of LLMs is inadequate for training on billions of users and items. To break through the efficiency barrier of LLMs, we propose Behavior Aggregated Hierarchical Encoding (BAHE) to enhance the efficiency of LLM-based CTR modeling. Specifically, BAHE proposes a novel hierarchical architecture that decouples the encoding of user behaviors from inter-behavior interactions. Firstly, to prevent computational redundancy from repeated encoding of identical user behaviors, BAHE employs the LLM's pre-trained shallow layers to extract embeddings of the most granular, atomic user behaviors from extensive user sequences and stores them in the offline database. Subsequently, the deeper, trainable layers of the LLM facilitate intricate inter-behavior interactions, thereby generating comprehensive user embeddings. This separation allows the learning of high-level user representations to be independent of low-level behavior encoding, significantly reducing computational complexity. Finally, these refined user embeddings, in conjunction with correspondingly processed item embeddings, are incorporated into the CTR model to compute the CTR scores. Extensive experimental results show that BAHE reduces training time and memory by five times for CTR models using LLMs, especially with longer user sequences. BAHE has been deployed in a real-world system, allowing for daily updates of 50 million CTR data on 8 A100 GPUs, making LLMs practical for industrial CTR prediction.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。