Introduction
Large Language Models (LLMs) like GPT-4 possess vast general knowledge but lack awareness of individual user context, making them "static" in personalized applications. Personalizing these models through fine-tuning is often impractical due to high computational costs and privacy risks. This paper introduces K-LaMP (Knowledge-augmented Large Language Models for Personalization), a framework designed to enhance web search by personalizing query suggestions using a lightweight, entity-centric knowledge store derived from a user's browsing history.
The K-LaMP Framework
The core of K-LaMP is the transformation of raw user history into a structured, manageable format. Instead of processing a noisy stream of visited URLs, K-LaMP builds an entity-centric personal knowledge store.
Entity-Centric Knowledge Store Construction
The system employs an entity linker to extract key concepts—such as topics, people, or locations—from search queries and browsed pages. These entities are aggregated into a store that tracks their frequency and recency, providing a compact representation of the user's interests.
Retrieval and Prompt Augmentation
When a user interacts with a search engine, K-LaMP retrieves relevant entities from the store based on three distinct strategies:
- Familiar: Frequently encountered topics representing the user's core expertise.
- Unfamiliar: Rarely seen topics to encourage exploratory search.
- Lapsed: Previously relevant topics that have not been engaged with recently.
These entities are then injected into the LLM prompt as a concise "cheat sheet," allowing the model to generate suggestions tailored to the user's specific background and current information needs.
Experimental Evaluation
The researchers evaluated K-LaMP using large-scale search logs from the Bing search engine (May–July 2023). The dataset included 1,000 users with an average of 493 queries and over 3,000 entities per user. Privacy was maintained through enterprise-level filtering and anonymization.
Key Results
Human evaluations across 12 judges measured the quality of suggestions based on validness, relatedness, and usefulness.
- Performance Gains: K-LaMP significantly outperformed standard GPT-4 baselines. It achieved a Relatedness score of 1.482 and a Usefulness score of 1.455 (on a 3-point scale), compared to 1.267 and 1.245 for the best non-augmented baseline.
- Ranking Preference: In head-to-head comparisons, K-LaMP was consistently preferred, achieving a ranking score of 2.160 (lower is better) versus 2.415 for the next best baseline.
- Model Agnostic: The framework improved smaller models like GPT-3.5 to levels competitive with un-augmented larger models.
Discussion and Insights
A notable finding was the effectiveness of the "Unfamiliar" retrieval strategy. Suggesting queries based on entities the user had rarely seen often resulted in the highest scores for relatedness and usefulness, indicating that users value assistance in exploring new facets of a topic. Furthermore, K-LaMP's performance improves as user history grows, effectively "learning" the user without the need for retraining. While the system is dependent on the accuracy of the underlying entity linker, its success suggests that entity-centric approaches are a viable path forward for personalized AI assistants and search engines.
Summary updated