Manuscript Offprint

arXiv:2609.09567

Positional task conditioning for scalable defect detection across product families in large product catalogs

Soham Satyadharma, Gabriel Roccabruna, Suleiman A. Khan

Abstract

Product families in large product catalogs suffer from inconsistencies such as duplicates and unit mismatches that degrade customer experience. Detecting these requires reasoning over multiple error types across lengthy product listings, where LLM classification quality degrades due to long-context limitations. We address this by decomposing detection into focused sub-tasks that reduce context and isolate error types, improving F1 from 52% to 87%. For scalable deployment, we introduce Positional Task Conditioning (PTC), which distills this capability into a single smaller model by reinforcing task identity at structural prompt boundaries. PTC outperforms rationale-based distillation across five models and two architecture families, achieving within 1.79% F1 of the frontier at upto 98% lower cost. Our system is deployed across multiple countries processing 10+ million product families.

1 Introduction

Large product catalogs organize products into logical groupings that differ by attributes like size, color, or style. They suffer inconsistencies from heterogeneous seller inputs and automated ingestion manifesting as duplicate variations, unit conflicts, attribute overstuffing, and theme defects (Schmidts et al., 2020). These inconsistencies directly degrade customer experience: duplicates (e.g., XL vs. Extra Large) increase cognitive load, unit conflicts (e.g., Medium vs. 30 inches) force manual conversions, and overstuffed attributes conflate orthogonal concepts. Poor product information has endemically increased return rates and support costs while reducing conversions (Xu et al., 2015), making automated detection critical for large scale operational efficiency.

Prior work addresses single-product attribute correctness (Wang et al., 2020), entity matching (Li et al., 2020), or attribute generation (Nikolakopoulos et al., 2023), leaving intra-family inconsistency

Figure

Figure 1: The figure depicts our divide and conquer approach. We take a product family as input and decompose each of its variating attributes (§3.1) into multiple classification tasks. Each task has its own prompts; the results are aggregated for the family.

detection underexplored. Classical rule-based approaches lack generalization (Ilyas and Chu, 2019), and manual auditing is intractable at scale, necessitating automated solutions.

A natural approach is providing complete family data and guidelines to a Large Language Model (LLM) to identify all errors simultaneously. However, families with numerous products create lengthy contexts where LLMs struggle to utilize the correct information (Liu et al., 2024). Multilabel classification requiring simultaneous reasoning over orthogonal error types challenges state-of-the-art models (Kou et al., 2025; Ortego et al., 2025; Tabatabaei et al., 2025). Inspired by work showing task decomposition improves LLM reasoning (Khot et al., 2022; Zhou et al., 2022), we adopt a divide-and-conquer strategy: we structure detection as nested attribute-level and task level classification with dedicated prompts, enabling focused reasoning and reduced context, to generate final predictions of egregious, non-egregious, or no error.

While our decomposition achieves production-grade accuracy, frontier LLMs at catalog scale incur prohibitive costs. Knowledge distillation enables transferring capabilities to efficient student models (Hinton et al., 2015; Gou et al., 2021), but distilling separate models for each task introduces deployment complexity. Rationale-based distillation (RBD) (Hsieh et al., 2023) has demonstrated multi-task capabilities by training on teacher reasoning chains, but a gap between student and teacher performance persists. We propose Positional Task Conditioning (PTC), a task conditioning strategy for distillation, that bridges this gap by conditioning on task identifiers at structural prompt boundaries, leveraging context enrichment to improve generalization (Caruana, 1997).

Our contributions are: (1) a categorization of variation family inconsistencies spanning four tasks with different severity levels; (2) a divide-and-conquer framework decomposing multi-label detection into three-class sub-tasks, improving precision by 54% and recall by 13% over monolithic prompting; (3) Positional Task Conditioning (PTC), a multi-task distillation methodology enabling a single model to handle all sub-tasks, outperforming rationale-based distillation while approaching frontier performance at upto 98% reduced cost; and (4) empirical validation on both human-annotated and synthetic data demonstrating PTC generalizes across models, yielding consistent improvements across five LLMs from two architecture families.

References (30)