AgentTailor: Dual-Gate LLM-Assisted Re-ranking for Personalized Long-Tail Recommendation

Jinpeng Chen, Zhenye Yang, Huan Li, Kaimin Wei, Senzhang Wang, Hongbo GaoNeurIPS 2026

TL;DR

Recommender systems notoriously favor mega-hits while burying niche, "long-tail" gems—and blindly promoting unpopular items just ruins the user experience. AgentTailor solves this by pairing semantic search with a selective, dual-gate LLM pipeline: it first retrieves hidden candidates based on meaning rather than popularity, and then uses an LLM to gather evidence on whether a specific user actually wants niche recommendations before deterministically updating the final list.

What Problem Does This Paper Address?

Digital platforms suffer from a classic "rich-get-richer" feedback loop: popular "head" items have dense interaction histories, making them easy for collaborative filtering algorithms to recommend, while niche "long-tail" items starve for exposure.

Existing fixes tend to use blunt instruments, like globally boosting unpopular items across the board. That hurts users who genuinely just want the latest blockbuster. Recently, researchers have tried using Large Language Models (LLMs) to re-rank recommendations using rich text descriptions. However, running a monolithic LLM re-ranker for every user is expensive, opaque, and misses a crucial distinction: reachability vs. worthiness. If a great niche item isn't retrieved in the initial search pool, no re-ranker can save it; if it is retrieved, promoting it solely because it's obscure can tank recommendation quality.

Methods

AgentTailor breaks personalized long-tail recommendation into two distinct stages, explicitly separating evidence gathering from ranking authority.

Figure 1: Overview of AgentTailor. Stage 1 uses the Semantic Recall Agent to build schema- normalized texts, fine-tune GritLM, and retrieve Top-N candidates. Stage 2 uses a dual-gate tail- specialist branch: the activation gate decides whether to invoke LLM-assisted evidence assessment, while the placement gate decides whether SPA updates the ranking or preserves the Stage 1 order. ESA and SPA are deterministic operators, so the LLM provides item-level evidence rather than directly generating the final ranking.
  • Preprocessing & Stage 1 (Candidate Accessibility): Raw metadata is often messy or favors popular items. The authors first use an LLM to generate standardized, schema-constrained text profiles for all items and user histories. A fine-tuned text retriever (GritLM) then performs cosine-similarity search to pull a Top-$N$ candidate pool, ensuring relevant niche items actually make it to the starting line.
  • Stage 2 (Conditional Tail-Specialist Re-ranking): Instead of letting an LLM freely rewrite the recommendation list for everyone, Stage 2 introduces a dual-gate tail-pressure router based on $\lambda_u$—a lightweight statistic measuring a user's historical appetite for niche items:
  • The Activation Gate ($\lambda_u \ge \delta_a$): Decides if it’s worth paying the compute cost to invoke the LLM. If passed, an LLM summarizes the user's preferences and evaluates candidate items, outputting two scores between 0 and 1: relevance (preference match) and tail-fit (is it a genuinely good niche match, rather than just random obscurity?).
  • Deterministic Synthesis: Rather than trusting the LLM to sort the list, a deterministic operator multiplies relevance $\times$ tail-fit and adds a tiny prior from Stage 1's original rank. Both scores must be high for an item to shine.
  • The Placement Gate ($\lambda_u \ge \delta_p$, where $\delta_p \ge \delta_a$): Even if the LLM gathered evidence, the system only alters the final ranking if the user clears this stricter threshold. Otherwise, it safely defaults to Stage 1's ordering. When permitted, a StableMerge algorithm promotes supported niche items while strictly preserving the relative order of untouched items.

Datasets

The authors evaluate AgentTailor using chronological leave-one-out splits on two standard, publicly available benchmarks (no new datasets are introduced):

  • MovieLens-1M: Movie ratings converted to implicit feedback, where the top 20% most frequent items are defined as "head" and the remaining 80% as "tail."
  • BookCrossing: A much sparser, noisier book-interaction dataset. Here, the top 1% of items represent the "head" and 99% form the "tail" (with text reconstructed for a 40% interaction subset due to scale).

Key Insights and Ideas

  • Don't let the LLM drive; let it navigate: Having an LLM directly generate rankings is brittle and hard to audit. Asking the LLM for structured item-level judgments (relevance and tail-fit) and letting deterministic math handle the sorting makes every promotion inspectable and locally stable against small score perturbations.
  • Inspection $\neq$ Intervention: Separating the activation gate from the placement gate means system designers can broadly inspect evidence for moderate-tail users (useful for logging and analysis) while keeping actual list modifications conservative.
  • Backbone Agnosticism: Because Stage 2 only cares about text descriptions and initial rank order—not internal embedding geometry—the re-ranking module plugs cleanly into different retrievers. Swapping GritLM for a fine-tuned Qwen3-4B retriever still yielded substantial tail improvements.

Key Results

AgentTailor outperforms conventional collaborative filtering, specialized long-tail debiasing methods (like BUHS), and modern LLM re-rankers (GPT-4.1, DeepSeek-V3, LLM4Rerank) on overall and tail hit rates (HR@$k$).

Table 1: Comparison against baselines on MovieLens-1M and BookCrossing. We denote HR@k and NDCG@k as H@k and N@k, respectively.
  • MovieLens-1M (@10): AgentTailor achieves an Overall HR@10 of 0.099 and a Tail HR@10 of 0.081—more than doubling the best traditional long-tail baseline (BUHS–Attn at 0.036) and beating the strongest LLM re-ranker, LLM4Rerank (0.069 Tail HR@10).
  • BookCrossing (@100): It secures top marks across both Overall (HR@100 of 0.109, NDCG@100 of 0.031) and Tail metrics (HR@100 of 0.102, NDCG@100 of 0.031).
  • The Head–Tail Trade-off: Promoting tail items naturally displaces some popular ones. On MovieLens-1M, adding Stage 2 boosts GritLM-FT's Tail HR@10 from 0.032 to 0.081, while Head HR@10 dips slightly from 0.133 to 0.119—a trade-off that still nets a higher overall accuracy.

Limitations and Future Work

The authors are candid about what AgentTailor cannot do:

  • Bounded by Stage 1: If the semantic retriever misses a relevant item, Stage 2 cannot magically recover it.
  • LLM Fallibility & Static Heuristics: Valid JSON formatting doesn't guarantee factual LLM reasoning, and a user's past engagement with niche items doesn't guarantee they want niche items right now.
  • Offline Scope: Experiments rely on static, offline pools rather than live user traffic or shifting catalogs.

For future work, the authors suggest moving from static history thresholds to adaptive routing trained with online user feedback, allowing the system to dynamically balance LLM inference costs against real-time user satisfaction.

Summary updated

Abstract

Recommender systems are central to modern digital platforms but remain vulnerable to popularity bias, where head items dominate exposure while many long-tail items are underrepresented. Existing long-tail methods often rely on global reweighting or opaque ranking models, making it difficult to personalize tail exposure without degrading recommendation utility. To address this challenge, we propose AgentTailor, a modular LLM-assisted framework for personalized long-tail recommendation. AgentTailor decomposes recommendation into two complementary stages. First, a semantic recall module retrieves a semantically aligned candidate pool, determining whether relevant long-tail items are accessible to later ranking. Second, a conditional tail-specialist branch performs evidence-based re-ranking through a dual-gate tail-pressure router: the activation gate decides whether LLM-assisted evidence assessment should be invoked, while the placement gate decides whether the extracted evidence is allowed to modify the final ranking. Activated users receive item-level relevance and tail-fit evidence for routed candidates, but ranking changes require placement permission from the history-based router; otherwise, the Stage 1 order is preserved. Thus, the LLM provides inspectable evidence rather than freely generating the final ranking. Experiments on MovieLens-1M and BookCrossing show that AgentTailor improves long-tail recommendation while maintaining competitive overall performance under a controlled second-stage re-ranking protocol. Additional analyses examine fixed-pool tail placement, routing sensitivity, output reliability, and inference cost. The code and data are available at https://github.com/Alex-bupt/AgentTailor.
BibTeX
@inproceedings{chen2026agenttailor,
  author = {Jinpeng Chen and Zhenye Yang and Huan Li and Kaimin Wei and Senzhang Wang and Hongbo Gao},
  title = {{AgentTailor: Dual-Gate LLM-Assisted Re-ranking for Personalized Long-Tail Recommendation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=DyNI87FtpG},
}

Loading related content...

Figure