A/B Agent: A Self-Evolving Agent for Strategy Iteration in Industrial A/B Testing

Zhuohang Jiang, Yuxin Chen, Yongsen Pan, Zheng Hu, Wenqi Fan, Qing Li, Hongyang Wang, Jun Wang, Wenwu OuarXiv 2026

TL;DR

The A/B Agent is a closed-loop, LLM-powered framework that automates the design, execution, and iterative tuning of industrial recommendation strategies. By organizing fragmented historical experiments into a hierarchical experience tree and continuously evolving via online A/B testing feedback, it achieved a 4.829% increase in Gross Merchandise Volume (GMV) in a real-world e-commerce deployment.

What Problem Does This Paper Address?

In large-scale industrial recommender systems (like those powering short-video e-commerce), optimizing recommendation algorithms is a never-ending game of trial and error. Engineers must constantly tweak ranking formulas, parameters, and business logic to maximize core metrics (like GMV) without tanking "guardrail" metrics (like user engagement or watch time).

Traditionally, this process is heavily manual and plagued by two major bottlenecks:

  1. Fragmented Experience: Valuable insights from thousands of past A/B tests are buried in messy logs, code repositories, and text documents, making them incredibly hard to reuse systematically.
  2. The Limits of "Flat" RAG: Standard Retrieval-Augmented Generation (RAG) systems look at past data through a flat lens of semantic similarity. They fail to capture the nuanced, hierarchical relationships between business domains, specific recommendation stages (e.g., retrieval vs. ranking), and conflicting optimization goals. This leads to poor strategy recommendations that ignore critical context.
Figure 1: Motivation of A/B Agent. Traditional A/B tuning re- quires repeated manual experimentation, while Other RAG Agent often misses scenario- and stage-specific context. In contrast, A/B Agent leverages hierarchical historical knowl- edge, autonomous strategy generation, and self-evolution to optimize strategies effectively.

Methods

The authors introduce A/B Agent, a system designed to close the loop between historical knowledge and live experimentation through three core components:

  1. Historical Strategy Knowledge Organization: Instead of indexing raw documents, the agent breaks historical A/B test records into atomic, self-contained "strategy chunks" (containing motivations, parameters, and risks). It then organizes these chunks into a Hierarchical Experience Tree structured by domain, scenario, recommendation stage, and objective.
  2. Autonomous Target-Aware Strategy Generation: When given a new optimization goal, the agent uses a multi-path retrieval mechanism (Tree-RAG). It combines sparse and dense retrieval with a tree-path relevance boosting algorithm to favor past strategies that match the current structural context. A reranking step ensures the generated strategy respects engineering constraints and guardrail risks.
  3. Experiment-Guided Strategy Self-Evolution: Once a strategy is deployed online, the agent doesn't just stop. It tracks live metrics and constructs an A/B Experiment Tree to compare successive iterations. Using a custom utility function that rewards core metric gains and heavily penalizes guardrail violations, the agent autonomously performs local parameter searches or swaps out failing mechanisms for alternatives.

Datasets

To validate the framework, the authors constructed an industrial strategy generation benchmark consisting of 310 historical recommendation strategies across three distinct e-commerce scenarios from Kuaishou. The dataset spans multiple pipeline stages, including retrieval, ranking, and blending.

Key Insights and Ideas

  • Hierarchy Trumps Flat Similarity: The core reason standard RAG agents fail at strategy generation is that an optimization trick that works beautifully at the Retrieval stage might completely break the MixRank stage. Explicitly modeling these boundaries in a tree structure drastically reduces noisy and harmful retrievals.
  • Autonomous Pareto Navigation: Optimization in the real world is rarely single-objective. The A/B Agent's self-evolution loop acts as an automated navigator along the Pareto frontier, gradually adjusting parameter weights across successive test rounds to find the sweet spot where core targets rise and guardrails remain safe.

Key Results

The authors evaluated the A/B Agent through both extensive offline LLM-as-a-judge evaluations and a live, production-scale online A/B test.

Offline Evaluation

Evaluated against top-tier LLMs (like GPT-5.5 and Claude-Sonnet-4.6) and state-of-the-art RAG methods (like GraphRAG and HyDE), A/B Agent achieved the highest overall score across all three e-commerce scenarios. It outperformed the strongest RAG baselines by 23.5% to 31.7% in overall strategy quality, demonstrating superior technical correctness and novelty.

Online Production Results

In a live deployment within Kuaishou's short-video e-commerce recommendation system, the A/B Agent iteratively evolved its strategy over 5 distinct rounds.

  • Core Gains: It achieved a +4.829% lift in Cart GMV and a +4.677% increase in GPM (Gain Per Mille).
  • Guardrail Safety: Crucially, it turned initially negative ecosystem impacts into positive gains, ensuring that watch time, live GMV, and platform orders all remained net-positive.

Limitations and Future Work

Despite its success, the authors note that solution mismatch remains the largest source of failure (accounting for 43.1% of errors), where the generated strategy is logical but slightly misaligned with fine-grained scenario constraints. Another 29.2% of errors stem from data and metric attribution issues (e.g., making wrong assumptions about feature availability).

Future work will focus on implementing tighter requirement alignment, more robust automated engineering-feasibility checks before deployment, and more precise data dependency verification.

Summary updated

BibTeX
@misc{jiang2026b,
  author = {Zhuohang Jiang and Yuxin Chen and Yongsen Pan and Zheng Hu and Wenqi Fan and Qing Li and Hongyang Wang and Jun Wang and Wenwu Ou},
  title = {{A/B Agent: A Self-Evolving Agent for Strategy Iteration in Industrial A/B Testing}},
  year = {2026},
  eprint = {2608.04625},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.04625},
}
Figure