NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DARA: Few-shot Budget Allocation in Online Advertising via In-Context Decision Making with RL-Finetuned LLMs

Mingxuan Song, Yusen Huo, Bohan Zhou, Shenglin Yin, Zhen Xiao, Jieyi Long, Zhilin Zhang, Chuan Yu

TL;DR

DARA (Dual-phase Adaptive Reasoning and Allocation) is a new framework that solves the "few-shot" budget allocation problem in online advertising by combining the reasoning power of Large Language Models (LLMs) with the precision of Reinforcement Learning (RL). By splitting the task into a high-level reasoning phase and a fine-grained optimization phase, and using a novel GRPO-Adaptive fine-tuning strategy, DARA significantly outperforms traditional RL and vanilla LLM approaches in data-scarce environments.

What Problem Does This Paper Address?

In the world of online advertising, budget allocation is a high-stakes game of "Real-Time Bidding" (RTB). Advertisers need to distribute a fixed budget across different time periods to maximize their total return on investment (ROI). Mathematically, the goal is to reach a state where the marginal ROI is equal across all time periods—essentially, you shouldn't be able to get a better return by moving a dollar from 10:00 AM to 2:00 PM.

This is difficult for two reasons:

  1. Data Scarcity (Few-shot): New advertisers or changing market conditions mean there is often very little historical data to learn from. Traditional RL methods, which are data-hungry, struggle here.
  2. Numerical Precision: While LLMs are great at following instructions and generalizing from a few examples (in-context learning), they are notoriously bad at the fine-grained numerical tweaks required for budget optimization. They tend to be "numerically illiterate" when asked to balance complex equations.

Methods

The authors propose a two-pronged solution: a specialized architecture and a smarter way to train it.

1. The DARA Framework

Instead of asking one LLM to do everything, DARA decomposes the task into two specialized agents:

  • Few-shot Reasoner: This agent looks at a small set of historical episodes and sets the "global strategy." It generates an initial budget plan.
  • Fine-grained Optimizer: This agent takes the initial plan and refines it based on immediate feedback (marginal ROI) from the environment. It uses a sliding window of recent results to make precise, incremental adjustments.
Figure 2: The training workflow of DARA.

2. GRPO-Adaptive (GRPO-A)

To train these agents, the authors improved upon Group Relative Policy Optimization (GRPO). Standard GRPO uses a fixed "reference model" to ensure the training doesn't drift too far into nonsense (KL divergence). However, a static reference can become a bottleneck. GRPO-Adaptive periodically updates this reference model during training. This allows the model to continue improving its reasoning and numerical precision without being anchored to an outdated, less-capable version of itself.

Datasets

The researchers evaluated DARA in two distinct environments:

  • Real-World Data Environment: Constructed from enterprise-scale advertising data from a leading global e-commerce platform. This provides high-fidelity market behaviors.
  • Synthetic Data Environment: A simulation based on polynomial and exponential functions designed to mimic diminishing marginal returns. This allowed the team to test the model's robustness across thousands of diverse, generated scenarios.
Figure 1: Data Environment.

Key Insights and Ideas

  • Decomposition is Essential: The biggest performance gains came from splitting the task. A single LLM trying to handle both high-level strategy and low-level math hits a "performance ceiling."
  • The "Moving Baseline" Advantage: Updating the reference model in RL fine-tuning (GRPO-A) prevents the model's reasoning abilities from stagnating. It strikes a better balance between exploring new strategies and staying stable.
  • Sim-to-Real Works: By training on a diverse synthetic environment (dynamics randomization), the model learned general principles of budget allocation that translated directly to superior performance on real-world data.

Key Results

DARA consistently outperformed all baselines, including specialized RL models like ABPlanner and powerful LLMs like GPT-4o.

  • Variance Reduction: DARA achieved the lowest marginal ROI variance across all steps. In this context, lower variance means the budget is allocated more optimally.
  • Consistency: As shown in the comparison below, DARA (blue line) starts strong and continues to refine the budget more effectively than competitors as the "steps" (episodes) progress.
  • Sensitivity: The model showed a 10.6% to 12.2% improvement over the strongest baseline across different temporal granularities (e.g., dividing the day into 2, 6, or 10 periods).
Figure 3: Performance of different algorithms in reducing marginal ROI variance.

Limitations and Future Work

While DARA makes significant strides, the authors note some areas for growth:

  • Numerical Sensitivity: Even with RL fine-tuning, LLMs can still make small calculation errors. The framework relies on a regex-based "action interface" to extract vectors, which assumes the LLM follows the output format perfectly.
  • Static vs. Competitive Environments: The current study focuses on optimizing for a single advertiser. Future work could explore multi-agent scenarios where advertisers are actively competing against each other's bidding strategies in real-time.
  • Computational Cost: Fine-tuning LLMs with RL is computationally expensive, requiring significant GPU resources (the study used 8 NVIDIA H20s). Simplifying the training process remains a goal.

Summary updated

BibTeX
@inproceedings{song2026dara,
  author = {Mingxuan Song and Yusen Huo and Bohan Zhou and Shenglin Yin and Zhen Xiao and Jieyi Long and Zhilin Zhang and Chuan Yu},
  title = {{DARA: Few-shot Budget Allocation in Online Advertising via In-Context Decision Making with RL-Finetuned LLMs}},
  booktitle = {The Web Conference},
  year = {2026},
  doi = {10.1145/3774904.3792129},
}
Figure