mlsanityData to 14 Oct 2026

Examples as the Prompt: A Scalable Approach for Efficient LLM Adaptation in E-Commerce

arXiv 2503.13518 ↗First posted 14 Mar 2025cs.CL cs.AIcited by 1

Not on the map. Why?

Abstract (arXiv)

Prompting LLMs offers an efficient way to guide output generation without explicit model training. In the e-commerce domain, prompting-based applications are widely used for tasks such as query understanding, recommender systems, and customer support. However, adapting LLMs to different tasks often requires extensive prompt engineering by domain experts, along with frequent updates to align with evolving business needs. Additionally, crafting fully unbiased natural language prompts remains a challenge for humans. To address these challenges, we propose a novel framework, Examples as the Prompt (EaP) which leverages labeled data to enhance prompts. Specifically, EaP automatically selects the most representative examples to maximize the few-shot capability of LLMs. It is efficient due to its unsupervised example selection and adaptive to potential data distribution shifts. We validate EaP on four real-world production use cases, demonstrating that it achieves comparable or even superior performance comparing to hand-crafted prompts designed by domain experts. Additionally, we introduce EaP_lite, which entirely replaces the natural language components of prompts with labeled examples. EaP_lite improves LLM inference speed by up to 70% without compromising performance. Latest online A/B test shows that using EaP and EaP_lite for data labeling can bring significant composite revenue gain by 0.06%.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 15 of its 22 references that are in the map. First posted on arXiv 14 Mar 2025.

Builds on

15 of 22 references.

References · 15

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
  3. 2023Mistral 7Bcited by 3,164
  4. 2022Emergent Abilities of Large Language Modelscited by 2,512
  5. 2023Larger language models do in-context learning differentlycited by 394
  6. 2024Long-context LLMs Struggle with Long In-context Learningcited by 286
  7. 2023Learning to Retrieve In-Context Examples for Large Language Modelscited by 60
  8. 2024PRewrite: Prompt Rewriting with Reinforcement Learningcited by 45
  9. 2023The Mystery of In-Context Learning: A Comprehensive Survey on Interpretation and Analysiscited by 34
  10. 2024Take Care of Your Prompt Bias! Investigating and Mitigating Prompt Bias in Factual Knowledge Extractioncited by 13
  11. 2024Implicit In-context Learningcited by 11
  12. 2025Effects of Prompt Length on Domain-specific Tasks for Large Language Modelscited by 11
3 more
  1. 2023This Prompt is Measuring <MASK>: Evaluating Bias Evaluation in Language Modelscited by 9
  2. 2023Query Understanding in the Age of Large Language Modelscited by 7
  3. 2024Sequential LLM Framework for Fashion Recommendationcited by 6

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.