Skip to main content
QUICK REVIEW

[Paper 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 Science6 citations
TL;DR

The paper presents LocalGPT, a domain-specific LLM system for Nextdoor, combining retrieval-augmented generation and a multi-objective knowledge injection training framework to address knowledge, engagement, and foundation tasks in social networks.

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.

Motivation & Objective

  • Define a taxonomy of LLM applications for social networks (knowledge, engagement, foundation tasks).
  • Develop LocalGPT, a neighborhood-specific Q&A system using RAG and domain fine-tuning.
  • Propose a multi-objective knowledge injection training framework to inject local knowledge without RL.
  • Build an automatic evaluation system to assess truthfulness and grounding of LLM outputs.
  • Discuss deployment considerations and practical lessons from productionizing LLMs at scale.

Proposed method

  • Implement Retrieval-Augmented Generation (RAG) to ground LLMs with up-to-date neighborhood content.
  • Build a LocalGPT knowledge base from Nextdoor data and use memory-efficient embeddings (OpenAI embeddings) for vector indexing.
  • Introduce knowledge injection training that combines long-form Q&A, multiple-choice knowledge preference data, and IRAG (instruction-following with retrieved context) without reinforcement learning.
  • Use a two-phase data pipeline to automatically generate and filter training data from posts and comments.
  • Decouple model serving from vector-store updates to maintain freshness of knowledge for time-sensitive queries.
  • Develop an automatic evaluation system with question generation and LM-based evaluators to monitor grounding and guardrails.

Experimental results

Research questions

  • RQ1How can LLMs be adapted for neighborhood-specific knowledge tasks using retrieval augmentation and fine-tuning?
  • RQ2What training framework best injects domain-specific knowledge to reduce hallucinations without RL?
  • RQ3How can LLMs be evaluated and guarded in production for social network content?
  • RQ4What are practical deployment considerations for keeping knowledge up-to-date in LLM-based social network applications.

Key findings

  • A LocalGPT system can answer neighborhood-specific questions by combining a base RAG approach with domain-focused fine-tuning.
  • A multi-objective knowledge injection training framework improves grounding and reduces hallucinations without reinforcement learning.
  • Retrieval-augmented prompts help LLMs leverage up-to-date content from the vector store while maintaining domain relevance.
  • An automatic evaluation system can assess truthfulness and contextual coherence in the absence of domain benchmarks.
  • Deployment design that decouples vector-store updates from model serving supports real-time freshness of knowledge.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.