AgentDR: Dynamic Recommendation with Implicit Item-Item Relations via LLM-based Agents

Mingdai Yang, Nurendra Choudhary, Jiangshu Du, Edward W. Huang, Philip S. Yu, Karthik Subbian, Danai Koutra

TL;DR

This paper introduces AgentDR, a novel framework that leverages Large Language Models (LLMs) as agents to enhance recommendation systems. AgentDR addresses the limitations of LLMs in hallucination and full-catalog ranking by delegating these tasks to traditional recommendation tools, while using LLMs for personalized integration and relational reasoning over item substitutes and complements.

What Problem Does This Paper Address?

Traditional recommendation systems, often based on user-item interactions, struggle to capture the rich semantic information and implicit relationships between items. While LLMs offer powerful commonsense reasoning capabilities, directly using them as recommenders leads to issues like hallucinating non-existent items and high computational costs for full-catalog ranking. Existing LLM-based agent approaches also face challenges with scalability and are often evaluated on simplified ranking tasks that don't reflect real-world scenarios. This paper aims to bridge this gap by combining the strengths of LLMs and traditional recommendation models to achieve personalized, scalable, and semantically rich recommendations.

Methods

AgentDR is an LLM-agent framework that operates in several stages:

  • User Profile Generation: LLMs are used to summarize user preferences from their historical item descriptions, creating a personalized user profile.
  • Recommendation Tool Integration: AgentDR utilizes multiple traditional recommendation tools (e.g., graph-based, sequential, MF-based) to generate initial ranking lists.
  • Personalized Tool Selection: An LLM agent dynamically assesses the suitability of each recommendation tool for a given user, learning personalized weights for each tool. This is achieved through a "tool comparison" module.
  • Substitute and Complement Reasoning: The LLM agent infers user intent by identifying potential substitute and complement items based on the user's recent interactions. This leverages the LLM's world knowledge to understand implicit item relationships, which are often missing in datasets.
  • Dual Substitute & Complement (S&C) Reranking: The aggregated rankings from the tools are further refined by a reranking module that considers both substitute and complement relationships, guided by the inferred user intent.
  • General Reranking: An additional reranking step considers the user's general preferences, ensuring broader coverage and mitigating over-reliance on specific relational reasoning.
  • Full-Catalog Ranking: By delegating the initial ranking to traditional tools and using LLMs for refinement, AgentDR can handle full-catalog ranking efficiently.

A key innovation is the introduction of a new LLM-based evaluation metric, Vicinity-DCG (VDCG), which jointly assesses semantic alignment and ranking correctness, going beyond traditional metrics like Recall and NDCG.

Datasets

The experiments were conducted on three public grocery datasets: Instacart, Electronics, and Sports. These datasets were used for training the recommendation tools and evaluating the AgentDR framework.

Key Insights and Ideas

  • LLMs as Orchestrators, Not Sole Rankers: The core idea is to use LLMs not for direct item ranking, but as intelligent agents that orchestrate and refine the outputs of specialized recommendation tools. This effectively mitigates LLM hallucination and scalability issues.
  • Implicit Relational Reasoning is Key: AgentDR highlights the importance of understanding implicit item relationships (substitutes and complements) for truly personalized recommendations. LLMs are uniquely positioned to infer these relationships from textual descriptions.
  • Personalized Tool Suitability Matters: Different recommendation models excel for different users. AgentDR's ability to dynamically learn which tools are best suited for each user significantly improves performance.
  • Beyond Traditional Metrics: The introduction of VDCG is crucial for evaluating recommendation systems that leverage semantic understanding. It captures a more holistic view of recommendation quality than traditional metrics alone.

Key Results

  • AgentDR achieved superior full-ranking performance across all three datasets, outperforming its underlying recommendation tools by at least 33.3% in Recall and NDCG.
  • The framework demonstrated significant improvements in the novel VDCG metric, indicating better semantic alignment and ranking correctness.
  • The LLM-based reasoning modules (tool comparison and S&C reranking) were shown to be critical for AgentDR's performance gains.
  • The framework is scalable, with an inference time of less than 1 second per user for generating the final ranking list.

Limitations and Future Work

  • Domain Specificity: The paper notes that substitution and complementarity relationships are more prevalent in domains like groceries than in others like movies or music. This suggests potential limitations in applying the current approach directly to all domains without adaptation.
  • LLM Inference Latency: While AgentDR is practical for offline ranking, LLM-based agents generally have higher inference latency compared to traditional embedding-based models.
  • Future Work: The authors suggest exploring stronger underlying recommendation tools to further boost AgentDR's performance and investigating more advanced ensemble methods for combining tool outputs. They also mention the flexibility of the general preference signal, which can be optionally deactivated to save computational resources.

Summary updated

BibTeX
@inproceedings{yang2026agentdr,
  author = {Mingdai Yang and Nurendra Choudhary and Jiangshu Du and Edward W. Huang and Philip S. Yu and Karthik Subbian and Danai Koutra},
  title = {{AgentDR: Dynamic Recommendation with Implicit Item-Item Relations via LLM-based Agents}},
  booktitle = {The Web Conference},
  year = {2026},
  doi = {10.1145/3774904.3792304},
}
Figure