Taxonomy-Guided Zero-Shot Recommendations with LLMs
Yueqing Liang, Liangwei Yang, Chen Wang, Xiongxiao Xu, Philip S. Yu, Kai Shu
TL;DR
This paper tackles the challenge of deploying large language models in zero‑shot recommender systems by introducing TaxRec, a taxonomy‑guided framework. TaxRec first generates an in‑domain taxonomy with a one‑time prompt, categorizes the candidate items into a structured pool, and then uses taxonomy‑aware prompts to elicit categorized recommendations from an LLM, followed by a feature‑based ranking in a zero‑shot setting. Across MovieLens and BookCrossing datasets, TaxRec demonstrates substantial improvements over strong zero‑shot baselines, with GPT‑4 yielding the largest gains, and its effectiveness arising from taxonomy‑driven information compression, structured prompting, and parsing/mapping of LLM outputs to a categorized item pool. The work highlights the importance of taxonomy‑informed prompting for aligning LLM capabilities with recommender tasks and provides practical evidence that structured domain knowledge can unlock zero‑shot performance without fine‑tuning.
Abstract
With the emergence of large language models (LLMs) and their ability to perform a variety of tasks, their application in recommender systems (RecSys) has shown promise. However, we are facing significant challenges when deploying LLMs into RecSys, such as limited prompt length, unstructured item information, and un-constrained generation of recommendations, leading to sub-optimal performance. To address these issues, we propose a novel method using a taxonomy dictionary. This method provides a systematic framework for categorizing and organizing items, improving the clarity and structure of item information. By incorporating the taxonomy dictionary into LLM prompts, we achieve efficient token utilization and controlled feature generation, leading to more accurate and contextually relevant recommendations. Our Taxonomy-guided Recommendation (TaxRec) approach features a two-step process: one-time taxonomy categorization and LLM-based recommendation, enabling zero-shot recommendations without the need for domain-specific fine-tuning. Experimental results demonstrate TaxRec significantly enhances recommendation quality compared to traditional zero-shot approaches, showcasing its efficacy as personal recommender with LLMs. Code is available at https://github.com/yueqingliang1/TaxRec.
