PromptPack Scales LLM Annotation for Online Recommendations.

Sebastian Koralewski, Merwan Barlier, Yulia Stolin, Bla\v{z} \v{S}krlj· July 24, 2026 View original

Summary

PromptPack is a scalable LLM annotation agent that drastically cuts costs and boosts throughput for extracting structured features from ad creatives in online recommendation platforms. It achieves this through in-context batching, combining a shared system prompt, XML structure, and an output correction layer.

This paper introduces PromptPack, a novel and scalable LLM annotation agent designed to address the high costs associated with using Large Language Models (LLMs) for extracting structured features from ad creatives in online recommendation systems. While single-call LLM annotation agents have shown significant improvements in Click-Through Rate (CTR) in production, the per-creative prompting cost is prohibitive for large-scale deployment, with redundant system instructions accounting for 94% of billed input tokens. PromptPack overcomes this cost bottleneck through an innovative in-context batching approach. It combines a shared system prompt, a strict XML structural envelope for output, and an output correction layer to ensure deterministic and pipeline-ready feature extraction across multiple creatives simultaneously. Offline retrieval benchmarks, using a downstream logistic-regression ranker, evaluated PromptPack. The results demonstrate that at a batch size of 20, PromptPack reduces LLM costs by 89% and accelerates throughput by 2.5x, all while fully preserving the Area Under the Curve (AUC) performance of the generated features. The research also introduces Volume-Weighted Absolute Lift (VWAL) as a new metric to capture the signal quality of the generated features.

Why it matters

For marketing and engineering teams, PromptPack offers a practical solution to significantly reduce the operational costs and increase the efficiency of using LLMs for ad creative analysis and recommendation, directly impacting ROI and scalability.

How to implement this in your domain

  1. 1Evaluate PromptPack or similar in-context batching techniques for your LLM-based annotation tasks to reduce API costs.
  2. 2Implement structured prompting, like XML envelopes, to ensure consistent and parseable LLM outputs for downstream systems.
  3. 3Develop an output correction layer to enhance the reliability and determinism of batched LLM annotations.
  4. 4Consider new metrics like Volume-Weighted Absolute Lift (VWAL) to better assess the signal quality of features generated by LLMs in recommendation systems.

Who benefits

AdTechE-commerceMarketingRetailSocial Media

Key takeaways

  • PromptPack significantly reduces LLM annotation costs and increases throughput via in-context batching.
  • It uses a shared system prompt, XML structure, and output correction for reliable feature extraction.
  • The agent maintains performance while cutting costs by 89% and boosting throughput by 2.5x.
  • This approach is crucial for scaling LLM applications in online recommendation systems.

Original post by Sebastian Koralewski, Merwan Barlier, Yulia Stolin, Bla\v{z} \v{S}krlj

"arXiv:2607.20528v1 Announce Type: new Abstract: Online recommendation platforms increasingly use Large Language Models (LLMs) to extract structured features from ad creatives. While deploying a single-call LLM annotation agent yields significant Click-Through Rate (CTR) improveme…"

View on X

Originally posted by Sebastian Koralewski, Merwan Barlier, Yulia Stolin, Bla\v{z} \v{S}krlj on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses