Abstract
Real-time bidding (RTB) plays a crucial role in display advertising, where ad exchanges (ADXs) set reserve prices to initiate auctions among demand-side platforms (DSPs). The optimization of reserve prices is critical for publishers, as it directly impacts revenue generation and market efficiency. However, existing research predominantly assumes fixed DSP bidding strategies, which fails to account for the dynamic nature of real-world scenarios where DSP behaviors evolve due to budget constraints, market fluctuations, and competitive dynamics. This discrepancy between theoretical models and practical challenges underscores the need for more effective reserve price optimization methods. In this paper, we address this gap by proposing a novel framework that integrates large language models (LLMs) into the reward shaping process of reinforcement learning (RL). All user data utilized in this study underwent rigorous anonymization and complied with GDPR-aligned privacy protocols during collection and processing. Our approach leverages the advanced comprehension and reasoning capabilities of LLMs to design and fine-tune reward structures, enabling RL algorithms to respond effectively to diverse and dynamic DSP bidding strategies. We validate our method using real-world transaction data from CAINIAO's operational environment. Security-preserving mechanisms were implemented throughout the experimental pipeline to ensure transactional data integrity and prevent unauthorized access. Experimental results demonstrate that our framework achieves a 21.51% improvement in average income compared to state-of-the-art methods.
Introduction
In the ecosystem of online display advertising, Real-Time Bidding (RTB) serves as the primary mechanism for inventory allocation. Ad Exchanges (ADXs) facilitate lightning-fast auctions where Demand-Side Platforms (DSPs) bid on behalf of advertisers. For publishers, the reserve price—the minimum threshold for a successful sale—is the most critical lever for revenue management.
Setting this price involves a delicate balance: a price too low results in missed revenue, while a price too high leaves inventory unsold. While Reinforcement Learning (RL) has shown promise in optimizing these prices, traditional models often assume static DSP bidding strategies. In practice, DSP behavior is highly volatile, influenced by shifting budgets and market competition. Traditional RL struggles to adapt its reward signals to these dynamic shifts, often leading to sub-optimal pricing strategies.
The LLM-R Framework
To address these challenges, we introduce LLM-R (LLM-based Reserve price), a framework that synergizes the reasoning capabilities of Large Language Models (LLMs) with the optimization power of RL. The architecture consists of three primary components:
- Reinforcement Learning Module: Utilizing the Proximal Policy Optimization (PPO) algorithm, this module acts as the execution engine, determining reserve prices based on historical transaction features.
- LLM Reasoning Module: Acting as the strategic "brain," this module (powered by Alibaba’s Qwen-max) interprets performance metrics. To bridge the gap between numerical data and LLM reasoning, metrics like income and unsold rates are translated into First-Order Logic (FOL) predicates. This allows the LLM to decide whether to switch RL models or adjust reward function parameters based on logical consistency rather than raw arithmetic alone.
- Feedback and Supervision Module: To ensure reliability and prevent "hallucinations," a self-supervision mechanism employs a voting system among multiple LLM instances and a supervisory model to validate logical decisions before deployment.
A key innovation of LLM-R is Dynamic Reward Shaping. The LLM acts as a high-level strategist, redefining the RL agent's goals—such as prioritizing immediate revenue versus market stability—based on real-time auction environment shifts.
Experimental Evaluation
The framework was evaluated using two datasets: the public iPinYou benchmark and a massive CAINIAO Dataset containing over 10.8 million records from a live operational ADX platform (Dec 2023 – Jan 2024). The latter provides a complex environment reflecting real-world strategy shifts and market volatility.
Key Results
LLM-R demonstrated significant performance gains over state-of-the-art RL-only and heuristic baselines:
- Revenue Impact: On the CAINIAO dataset, LLM-R achieved a 21.51% improvement in average income over the RL-only baseline.
- Market Efficiency: The Average Settle Price (ASP), a proxy for ad quality and platform health, increased by 38.60%.
- Decision Reliability: The feedback module ensured a 94% effective decision-making rate, demonstrating that LLMs can reliably control financial systems when properly constrained.
Conclusion and Future Work
LLM-R proves that integrating LLM reasoning into RL reward shaping can significantly enhance reserve price optimization in dynamic markets. While the system currently introduces a latency of 15-20ms, future research will focus on lightweight LLM architectures to meet the sub-10ms requirements of high-frequency RTB environments and further integrating direct competitor bid signals into the reasoning process.
Summary updated