# KP-Agent: Keyword Pruning in Sponsored Search Advertising via LLM-Powered Contextual Bandits

arXiv: https://arxiv.org/abs/2601.05257 · HTML: https://mlsanity.com/paper/2601.05257/

## Key facts

- No citing papers in the map yet (data through 14 Oct 2026).
- Placed in Web, search, and research agents, one of 16 directions in LLM agents and tool use.
- Builds on 6 of its 26 references that are in the map.
- First posted on arXiv 20 Oct 2025.

## Placed in

- LLM agents and tool use / [Web, search, and research agents](https://mlsanity.com/agents/web-search-and-research-agents/)

## Builds on (most cited first, 6 of 6)

- [EHRAgent: Code Empowers Large Language Models for Few-shot Complex Tabular Reasoning on Electronic Health Records](https://mlsanity.com/paper/2401.07128/) (2024)
- [Real-time Bidding for Online Advertising: Measurement and Analysis](https://mlsanity.com/paper/1306.6542/) (2013)
- [RTBAgent: A LLM-based Agent System for Real-Time Bidding](https://mlsanity.com/paper/2502.00792/) (2025)
- [Domain-Constrained Advertising Keyword Generation](https://mlsanity.com/paper/1902.10374/) (2019)
- [Keyword Optimization in Sponsored Search Advertising: A Multi-Level Computational Framework](https://mlsanity.com/paper/2202.13506/) (2022)
- [Keyword Decisions in Sponsored Search Advertising: A Literature Review and Research Agenda](https://mlsanity.com/paper/2302.12372/) (2023)

## Abstract (arXiv)

Sponsored search advertising (SSA) requires advertisers to constantly adjust keyword strategies. While bid adjustment and keyword generation are well-studied, keyword pruning-refining keyword sets to enhance campaign performance-remains under-explored. This paper addresses critical inefficiencies in current practices as evidenced by a dataset containing 0.5 million SSA records from a pharmaceutical advertiser on search engine Meituan, China's largest delivery platform. We propose KP-Agent, an LLM agentic system with domain tool set and a memory module. By modeling keyword pruning within a contextual bandit framework, KP-Agent generates code snippets to refine keyword sets through reinforcement learning. Experiments show KP-Agent improves cumulative profit by up to 49.28% over baselines.
