HatLLM:用于增强基于LLM推荐中协同建模的分层注意力掩码
HatLLM: Hierarchical Attention Masking for Enhanced Collaborative Modeling in LLM-based Recommendation
AI总结:
针对LLM注意力机制难以捕捉跨物品协同信号的问题,提出分层注意力掩码策略HatLLM,在浅层促进物品内语义理解、深层强制捕捉跨物品相关性,实现token级与物品级依赖联合建模,性能平均提升9.13%。
摘要:
近年来,利用大型语言模型(LLM)进行序列推荐的研究激增。LLM在通过细粒度语义推理推断用户细微偏好方面展现出显著潜力。然而,它们在有效建模协同信号(即用户历史交互中固有的行为相关性)方面也表现出明显局限。我们的实证分析进一步揭示,LLM中的注意力机制往往不成比例地关注同一物品内的token,从而阻碍了跨物品相关性的捕捉。为了解决这一局限,我们提出了一种用于基于LLM推荐的新型分层注意力掩码策略,称为HatLLM。具体而言,在浅层中,HatLLM掩码不同物品token间的注意力,促进物品内语义理解;相反,在深层中,HatLLM掩码物品内的注意力,从而迫使模型捕捉跨物品相关性。这种渐进的逐层方法使LLM能够联合建模token级和物品级依赖。在三个真实世界数据集上的广泛实验表明,HatLLM相比现有基于LLM的方法实现了显著的性能提升(平均9.13%)。
英文摘要:
Recent years have witnessed a surge of research on leveraging large language models (LLMs) for sequential recommendation. LLMs have demonstrated remarkable potential in inferring users' nuanced preferences through fine-grained semantic reasoning. However, they also exhibit a notable limitation in effectively modeling collaborative signals, i.e., behavioral correlations inherent in users' historical interactions. Our empirical analysis further reveals that the attention mechanisms in LLMs tend to disproportionately focus on tokens within the same item, thereby impeding the capture of cross-item correlations. To address this limitation, we propose a novel hierarchical attention masking strategy for LLM-based recommendation, termed HatLLM. Specifically, in shallow layers, HatLLM masks attention between tokens from different items, facilitating intra-item semantic understanding; in contrast, in deep layers, HatLLM masks attention within items, thereby compelling the model to capture cross-item correlations. This progressive, layer-wise approach enables LLMs to jointly model both token-level and item-level dependencies. Extensive experiments on three real-world datasets demonstrate that HatLLM achieves significant performance gains (9.13% on average) over existing LLM-based methods.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。