Skip to main content
QUICK REVIEW

[论文解读] Large Language Models for Social Networks: Applications, Challenges, and Solutions

Jingying Zeng, Richard S.P. Huang|arXiv (Cornell University)|Jan 4, 2024
Topic ModelingComputer Science被引用 6
一句话总结

本文提出 LocalGPT,一种用于 Nextdoor 的领域特定大语言模型系统,结合检索增强式生成和多目标知识注入训练框架,旨在解决社交网络中的知识、参与度和基础任务。

ABSTRACT

Large Language Models (LLMs) are transforming the way people generate, explore, and engage with content. We study how we can develop LLM applications for online social networks. Despite LLMs' successes in other domains, it is challenging to develop LLM-based products for social networks for numerous reasons, and it has been relatively under-reported in the research community. We categorize LLM applications for social networks into three categories. First is knowledge tasks where users want to find new knowledge and information, such as search and question-answering. Second is entertainment tasks where users want to consume interesting content, such as getting entertaining notification content. Third is foundational tasks that need to be done to moderate and operate the social networks, such as content annotation and LLM monitoring. For each task, we share the challenges we found, solutions we developed, and lessons we learned. To the best of our knowledge, this is the first comprehensive paper about developing LLM applications for social networks.

研究动机与目标

  • 为社交网络的LLM应用定义一个分类法(知识、参与度、基础任务)。
  • 开发 LocalGPT,一种基于 RAG 的社区特定问答系统,并进行领域微调。
  • 提出一种多目标知识注入训练框架,在无需强化学习的情况下注入本地知识。
  • 建立一个自动评估系统,以评估LLM输出的真实性和根据性。
  • 讨论在大规模落地生产中部署LLMs的考虑因素和实际经验。

提出的方法

  • 实现 Retrieval-Augmented Generation (RAG),用最新的社区内容来锚定LLM。
  • 从 Nextdoor 数据构建 LocalGPT 知识库,并使用内存高效的嵌入(OpenAI 嵌入)进行向量索引。
  • 引入知识注入训练,将长文本问答、选择题式知识偏好数据和 IRAG(带检索上下文的指令遵循)结合在一起,且不使用强化学习。
  • 使用两阶段的数据管线,自动从帖子和评论中生成并筛选训练数据。
  • 将模型服务与向量存储的更新解耦,以保持对时效性查询的知识新鲜度。
  • 开发一个自动评估系统,包含问题生成和基于语言模型的评估器,用以监控锚定性与守护线。

实验结果

研究问题

  • RQ1如何通过检索增强和微调将LLM适应于社区特定的知识任务?
  • RQ2哪种训练框架最适合注入领域特定知识,从而在无RL的情况下减少幻觉?
  • RQ3如何在生产环境中对社交网络内容的LLM进行评估和防护?
  • RQ4在基于LLM的社交网络应用中保持知识更新的实际部署考量。

主要发现

  • LocalGPT 系统通过将基础的 RAG 方法与领域聚焦微调相结合,能够回答社区特定的问题。
  • 多目标知识注入训练框架在不使用强化学习的情况下改善了锚定性并降低幻觉。
  • 检索增强提示有助于 LLMs 从向量存储中获取最新内容,同时保持领域相关性。
  • 在缺乏领域基准的情况下,自动评估系统能够评估真实性和语境连贯性。
  • 解耦向量存储更新与模型服务的部署设计有助于实现知识的实时新鲜。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。