RPTune: Learned Context Curation for LLM Catalog Search

πŸ“… 2026-09-30
πŸ“ˆ Citations: 0
✨ Influential: 0
πŸ“„ PDF
πŸ€– AI Summary
This study addresses the challenge that large language models (LLMs) struggle to effectively leverage long contexts for product catalog search among small and medium-sized merchants. To this end, we propose an end-to-end optimization framework. Methodologically, we introduce a novel encoder-reorganizer-guided catalog pruning and ranking mechanism to optimize context presentation. Furthermore, we adapt the LLM through post-training that combines automatically generated supervised data with context-relative reward reinforcement learning. Experiments on real-world merchant datasets demonstrate that catalog organization improves accuracy by 31.4 percentage points, while subsequent post-training yields an additional gain of 10.3 percentage points, thereby validating the effectiveness of the proposed framework.
πŸ“ Abstract
For small merchant businesses (SMBs) whose catalogs fit within a long-context LLM, full-catalog prompting offers a compelling alternative to multi-stage retrieval designed primarily for large marketplaces with millions of items. However, fitting the full catalog into the context window does not ensure that the model can use it effectively, since LLMs do not exploit long contexts uniformly. We therefore study in-context catalog search through two complementary questions: (1) how to curate and present catalogs to the LLM, and (2) how to adapt the LLM for product selection on curated contexts. We propose RPTune, an end-to-end framework that couples learned catalog curation with LLM post-training using automatically generated, catalog-grounded supervision. An encoder-reorganizer curator orders and prunes products guided by downstream LLM feedback, while the resulting curated catalogs in turn improve the effectiveness of LLM post-training with a context-relative reward. We evaluate RPTune on 7 real merchants spanning distinct retail verticals, using 100 complex conversational queries per merchant. RPTune consistently improves search accuracy across both proprietary and open-weight LLMs, with context curation yielding gains of up to 31.4 percentage points and post-training adding a further 10.3 points on average.
Problem

Research questions and friction points this paper is trying to address.

catalog search
long-context LLM
context curation
product selection
small merchant businesses
Innovation

Methods, ideas, or system contributions that make the work stand out.

Context Curation
LLM Post-training
Catalog Search
Encoder-Reorganizer
Context-relative Reward
πŸ”Ž Similar Papers
No similar papers found.