Abstract
Current keyword decision-making in sponsored search advertising relies on large, static datasets, limiting the ability to automatically set up keywords and adapt to real-time KPI metrics and product updates that are essential for effective advertising. In this paper, we propose On-the-fly Keyword Generation (OKG), an LLM agent-based method that dynamically monitors KPI changes and adapts keyword generation in real time, aligning with strategies recommended by advertising platforms. Additionally, we introduce the first publicly accessible dataset containing real keyword data along with its KPIs across diverse domains, providing a valuable resource for future research. Experimental results show that OKG significantly improves keyword adaptability and responsiveness compared to traditional methods. The code for OKG and the dataset are available at https://github.com/sony/okg.
1. Introduction
In the ecosystem of Sponsored Search Advertising (SSA), the selection of keywords is the primary lever for connecting advertisers with potential customers. Historically, this process has been "static," relying on models trained on massive, proprietary offline datasets. This paradigm presents three significant challenges. First, staticity prevents adaptation to real-time trends or sudden product updates. Second, the requirement for vast historical data creates "data moats" that disadvantage smaller advertisers. Third, traditional models lack a feedback loop, failing to learn from the actual performance of generated keywords in live campaigns.
To overcome these limitations, we present On-the-fly Keyword Generation (OKG), an LLM agent-based framework that automates keyword selection by monitoring live performance metrics (KPIs) and utilizing web-search tools to stay current.
2. The OKG Framework
The OKG architecture is designed as a continuous optimization loop rather than a one-off generation task. It comprises several specialized modules:
- Search Tool: Utilizing SerpAPI, this module gathers real-time data on product attributes, pricing, and market trends, ensuring the agent has up-to-date context.
- Retrieve and Memory Module: This component connects to the Google Ads API to pull live performance data, including clicks, conversions, and cost-per-click (CPC). This data is stored in a vector-based long-term memory, enabling Retrieval-Augmented Generation (RAG) based on the agent's own historical performance.
- Adaptive Keyword Generation: Acting as the system's "brain," this module pursues two strategic directions: the Wider Direction ($W_t$), which explores new keyword categories to capture untapped segments, and the Deeper Direction ($D_t$), which intensifies focus on high-performing existing categories.
- Calculation Tool: A programmatic module that calculates the optimal ratio of "Wider" versus "Deeper" expansion by analyzing the KPI performance from the previous iteration.
3. Dataset Contribution
A significant contribution of this work is the release of the first publicly accessible real-world keyword dataset with associated KPIs. Sourced from six months of real advertisement deliveries for 10 Sony products, the dataset covers diverse domains such as electronics, financial services (mortgages, insurance), and AI platforms. It includes critical metrics like search volume, clicks, competitor scores, and CPC, providing a benchmark for future research in the field.
4. Experimental Results
We benchmarked OKG against prominent LLMs (GPT-4, Gemini 1.5 Pro), keyword extraction methods (Choi, RAKE), and industry tools like the Google Keyword Planner.
OKG demonstrated superior performance across key metrics. It achieved a normalized Click score of 100.0, significantly higher than GPT-4 (76.2) and Gemini 1.5 (69.1). Furthermore, OKG maintained the lowest Cost Per Click (CPC) at 0.38, significantly lower than the LLM baselines. In terms of semantic relevance (BERTScore) and coverage (Bleu2, Rouge1), OKG consistently outperformed the baselines, indicating that its keywords are not only effective but also highly relevant to user intent.
5. Discussion and Insights
The most critical finding is the power of the feedback loop. Ablation studies revealed that removing the "Reflection" component—the agent's ability to process performance data—significantly degraded results. This suggests that an agent's ability to "listen" to data is often more impactful than the raw intelligence of the underlying model. Additionally, OKG effectively manages the exploration-exploitation trade-off. By mathematically determining the allocation of keywords to new versus proven categories, it prevents budget waste on untested terms while avoiding the stagnation common in static models.
6. Conclusion
OKG represents a significant advancement in automating search advertising. By integrating real-time KPI monitoring with adaptive generation, it provides a scalable solution for advertisers of all sizes. While future work is needed to reduce the latency of the generation loop and incorporate more complex metrics like Return on Ad Spend (ROAS), OKG sets a new standard for dynamic, data-driven keyword selection.
Summary updated