The Commonplace
Home Papers Evidence Explore Trends Syntheses Digests References Docs 🎲 Workforce Futures
← Papers
Direction, evidence grade, and study type are AI-generated labels (gpt-5-mini), not human-verified. Syntheses are LLM-written. "Tensions" are machine-detected candidates, not confirmed contradictions. A research-acceleration tool, not peer review. How this is built →

An LLM-augmented bandit harness automates recommender engineering, producing stable offline gains across benchmarks and delivering a small but measurable business uplift in a 7-day online A/B test (+2.084% ADVV, +0.534% Revenue, +0.559% Exposure).

RecHarness: A Bandit-Routed Agentic Harness for Self-Evolving Recommender Systems
Haoran Ling, Yuecheng Li, Zeyu Song, Jing Yao, Shuwen Kang, Chi Lu, Wenjin Wu, Peng Jiang · July 31, 2026
arxiv descriptive medium evidence 7/10 relevance Full text usable extracted full text Source PDF

Structured author observations

Linked only from stored provider relations; the raw author line above is never matched by name.

Arxiv

Latest observation:

  1. Haoran Ling unresolved corpus identity
  2. Yuecheng Li unresolved corpus identity
  3. Zeyu Song unresolved corpus identity
  4. Jing Yao unresolved corpus identity
  5. Shuwen Kang unresolved corpus identity
  6. Chi Lu unresolved corpus identity
  7. Wenjin Wu unresolved corpus identity
  8. Peng Jiang unresolved corpus identity

Semantic Scholar

Latest observation:

  1. Haoran Ling provider ID
  2. Yuecheng Li provider ID
  3. Zeyu Song provider ID
  4. Jing Yao provider ID
  5. Shuwen Kang provider ID
  6. Chi Lu provider ID
  7. Wenjin Wu provider ID
  8. Peng Jiang provider ID
RecHarness combines a Thompson-sampling bandit router with an LLM-based hypothesis-and-code generator to allocate limited trials and reliably improve recommender models offline and produce modest positive lifts in a 7-day online A/B test.

Citation observations

Cumulative provider counts captured on specific dates; providers are never combined.

Optimizing modern recommender models still depends heavily on engineers manually iterating over architectural, objective, and training-strategy changes. While LLM-based agents can automate this trial-and-error process, allowing the LLM to both select modification directions and generate concrete hypotheses often leads to unstable search under limited experiment budgets. Inspired by the above challenge, we propose RecHarness, a Bandit-Routed Agentic Harness for automated recommender model optimization. RecHarness separates the optimization process into two steps: a bandit router selects the next modification direction according to historical validation feedback, while the LLM generates a concrete optimization hypothesis and executable code edit within the selected direction. To sustain long-horizon exploration, RecHarness uses a jump-basin mechanism to activate a structural-jump arm when local edits stagnate. Across multiple recommendation tasks, datasets, and model backbones, RecHarness achieves more stable performance improvements and uses limited trial budgets more effectively than LLM-reasoning search. During a 7-day online A/B test on a large-scale short-video advertising platform, the selected candidate improves ADVV by 2.084%, Revenue by 0.534%, and Exposure by 0.559%. Code is available at https://github.com/6lyc/RecHarness.

Summary

Main Finding

RecHarness is a two-part automated optimization harness for recommender systems that combines a bandit-based router (Thompson sampling over interpretable "edit arms") with an LLM-driven code-generation module (conditioned on a compact Experiment Skill). By separating arm selection (scalar, posterior-driven) from hypothesis/code generation (textual reasoning), and by including a basin-aware jump/retuning mechanism, RecHarness delivers more stable, trial-efficient improvements than LLM-reasoning-only search. In offline benchmarks across sequential-recommendation and watch-time tasks and in a 7-day online A/B test on a large short-video ad platform, it produced measurable gains (online: ADVV +2.084%, Revenue +0.534%, Exposure +0.559%).

Key Points

  • Two-level separation:
    • Bandit router: decides which semantic edit directions (arms) to try using scalar validation feedback and Thompson sampling over Beta posteriors.
    • LLM generator: given a selected arm, incumbent, execution logs, and Experiment Skill, generates concrete hypotheses and executable code edits.
  • Arms are semantic edit dimensions (e.g., LR schedule, dropout, embedding size, loss function, pooling strategy). Arms are partitioned into Alocal (incremental) and Ajump (structural).
  • Reward / posterior update:
    • Each trial yields a binary success rt(a) ∈ {0,1}, defined by validity, whether the candidate outperforms the group average, and whether it beats the incumbent.
    • Posteriors αa, βa updated accordingly; Thompson sampling samples ˜θa to select next arms.
  • Experiment Skill:
    • A compact textual memory summarizing incumbents, recent successful edits, failure modes and logs; conditions the LLM to reuse lessons and avoid known bad edits.
    • Crucially, Experiment Skill informs the LLM but does not alter bandit posteriors (keeps scalar and textual evidence separate).
  • Basin-aware jump + retuning:
    • Measure recent improvement rate; when stagnation detected, allow Ajump arms.
    • Structural jump candidates undergo local retuning (up to R rounds) and are accepted only if retuned branch outperforms incumbent by δjump, allowing structural changes time to adapt.
  • Grouped parallel trials: can evaluate multiple arms concurrently under the same incumbent and normalize improvements within a group to compare fairly.
  • Practical outcomes: more stable improvements under limited trial budgets compared to unconstrained LLM search; validated with both offline datasets and a production A/B test. Code released: https://github.com/6lyc/RecHarness.

Data & Methods

  • Tasks / Datasets:
    • Sequential recommendation: four Amazon review subsets — Movies, Scientific, Electronics, CDs (each user/item ≥5 interactions; leave-last-out evaluation).
    • Watch-time / ranking: KuaiRec (dense user-video interactions).
  • Metrics:
    • Sequential rec: HR@10, HR@20, NDCG@10/20; reports AvgHR@10 across Amazon datasets.
    • KuaiRec: WT-XAUC / WT-MAE (watch-time), WR-XAUC / WR-MAE (watch-ratio).
  • Search protocol & budget:
    • Incumbent-based sequential trials: start from a cold-start template, one baseline trial, then iteratively generate candidate edits under selected arms until budget exhausted.
    • Each candidate is trained and validated in an isolated workspace; only executable candidates that improve the incumbent are promoted.
  • Bandit formulation:
    • Arm set A = {a1,...,aK}; arms split into Alocal and Ajump.
    • For each arm a, maintain Beta(αa, βa). At round t sample ˜θa ∼ Beta(αa, βa); select top-G arms for parallel trials.
    • Normalize per-group improvements bAt(a) and compute binary success rt(a) based on candidate validity, relative group improvement, and beating incumbent.
    • Update αa ← αa + rt(a), βa ← βa + 1 − rt(a).
  • Jump mechanism:
    • Track recent improvement rate over window W; if below threshold τ, activate jump arms.
    • Evaluate jump candidates with up to R retuning rounds; accept if max retuned validation − incumbent > δjump.
  • Experimental evaluation:
    • Offline comparisons across tasks, datasets, and model backbones vs. LLM-reasoning search baselines.
    • Online A/B test: 7-day deployment on large-scale short-video advertising platform showing business metric gains reported above.

Implications for AI Economics

  • R&D productivity and cost-efficiency:
    • RecHarness formalizes trial allocation under budget constraints, increasing the return on expensive training-validation trials. This can reduce engineering hours and compute wasted on low-yield hypotheses, lowering marginal costs of model improvement.
  • Labor and skill composition:
    • By automating iterative engineering decisions (direction selection + hypothesis generation), RecHarness can shift human engineers toward higher-level strategy, arm-definition, and safety/governance roles, potentially changing demand for routine model-tuning labor.
  • Competitive dynamics & time-to-market:
    • Faster, more reliable iteration reduces time-to-deploy improvements. Platforms that adopt such harnesses can achieve incremental business gains more frequently, reinforcing winner-take-most dynamics in attention-driven markets.
  • CapEx vs OpEx trade-offs:
    • The system concentrates experiments into higher-value arms and avoids fruitless explorations; firms can reallocate budget from brute-force search (CapEx-intensive compute) to targeted engineering/validation (OpEx), improving ROI on modeling pipelines.
  • Market entry & barriers:
    • Lower experimentation cost may reduce barriers for smaller firms to iterate model improvements, potentially increasing competition. Conversely, the need for production-scale isolated trials could keep initial barriers.
  • Risk management and governance:
    • Automated model edits in production raise governance concerns: detecting distributional drift, ensuring fairness and safety of automated changes, and auditing LLM-generated code. Economic value from automation must be balanced with operational risk and oversight costs.
  • Product metric externalities:
    • Small percentage gains in core metrics (ADVV, Revenue, Exposure) can compound platform revenues. The marginal economic value of automated optimization depends on scale—minor improvements can translate to substantial monetary impact at large user bases.
  • Future markets & services:
    • This architecture suggests new services: automated experiment orchestration as a SaaS, marketplaces for curated arm sets or distilled Experiment Skills, and tooling for auditing/insurance of automated model evolution.

Overall, RecHarness demonstrates a pragmatic design pattern for budget-constrained, automated ML engineering in recommender economics: combine principled exploration (bandits) for where to search with LLM-enabled exploitation for how to implement edits, plus structural mechanisms (retuning) to escape local optima—yielding measurable business value while reshaping the costs and organization of model development.

Assessment

Paper Typedescriptive Evidence Strengthmedium — The paper presents controlled offline experiments across multiple benchmark datasets and model backbones plus a real-world 7-day online A/B test showing positive business metric uplifts; however, the A/B test is reported briefly without detailed randomization, sample sizes, variance, or statistical significance reporting, and offline gains depend on human-defined arms and specific experimental budgets, limiting confidence in broad causal claims. Methods Rigormedium — The methodological design is well-motivated and formalized (incumbent-based search, Thompson sampling, Experiment Skill, jump-retune mechanism) and evaluated on multiple offline datasets plus an online deployment; but some choices (binary success signal, within-group normalization, arm definition by humans) introduce heuristic elements, and the paper provides limited reporting on statistical uncertainty, experiment randomization details, ablation/sample-size robustness for the online A/B, and computational cost, reducing rigor. SampleOffline: Sequential recommendation on four Amazon Review subsets (Movies: 11,947 users, 17,490 items, 144,071 interactions; Scientific, Electronics, CDs with similar preprocessing) and watch-time/ranking prediction on KuaiRec (train/test splits reported; train interactions ~12.5M across ~7,176 users and ~10,728 items in provided table). Experiments start from cold-start templates and run incumbent-based search under a limited trial budget; validation metrics include HR@10/20 and NDCG for Amazon data and WT/WR XAUC and MAE for KuaiRec. Online: a 7-day A/B test on a large-scale short-video advertising platform evaluating ADVV, Revenue, and Exposure for the chosen candidate vs control (no sample sizes or randomization strata reported). Themesproductivity human_ai_collab IdentificationOffline: incumbent-based validation comparisons across candidate mutations (not causal). Online: a 7-day randomized A/B test on a large short-video advertising platform comparing the selected candidate against control (implied randomized assignment; details not reported). GeneralizabilityResults are conditional on the human-specified set of edit arms; performance may vary with different arm choices., Offline benchmarks (Amazon subsets, KuaiRec) may not capture dynamics of other domains or production traffic distributions., Online A/B test is short (7 days) and reported without statistical detail, limiting confidence in durability and significance of business uplifts., Method depends on availability of a frozen LLM and substantial compute to run multiple training trials; smaller teams may not replicate results., Platform- and implementation-specific engineering choices (e.g., incumbent template, retuning windows) may limit transfer to other recommender stacks.

Claims (8)

ClaimDirectionOutcomeConfidence & EvidenceDetails
RecHarness separates recommender optimization into bandit-based selection of the next modification direction and LLM generation of a concrete optimization hypothesis and executable code edit within that direction. Task Allocation positive Allocation of optimization trials across candidate modification directions
Reading fidelity high
Study strength high
not reported
0.3
RecHarness uses a jump-basin mechanism that activates structural-jump arms when local edits stagnate, enabling longer-horizon exploration beyond the current local basin. Task Allocation positive Exploration of non-local structural model changes
Reading fidelity high
Study strength high
not reported
0.3
Across multiple recommendation tasks, datasets, and model backbones, RecHarness produces more stable performance improvements and uses limited trial budgets more effectively than LLM-reasoning search. Output Quality positive Recommendation-model validation and test performance under a limited trial budget
Reading fidelity high
Study strength medium
n=4
0.18
In a 7-day online A/B test on a large-scale short-video advertising platform, the selected RecHarness candidate improved ADVV by 2.084%. Other positive ADVV
Reading fidelity high
Study strength medium
2.084% improvement
0.18
In the same 7-day online A/B test, the selected RecHarness candidate improved platform revenue by 0.534%. Firm Revenue positive Platform revenue
Reading fidelity high
Study strength medium
0.534% improvement
0.18
In the same 7-day online A/B test, the selected RecHarness candidate increased exposure by 0.559%. Other positive Platform exposure
Reading fidelity high
Study strength medium
0.559% improvement
0.18
RecHarness promotes a candidate to become the incumbent only when it is executable and improves the incumbent's validation score. Output Quality positive Validation-score-based candidate promotion
Reading fidelity high
Study strength high
not reported
0.3
RecHarness uses scalar validation feedback to update bandit posteriors for deciding which edit directions to search next, while textual Experiment Skill feedback conditions the LLM's subsequent hypotheses within the selected directions. Task Allocation positive Separation of trial-routing and hypothesis-generation feedback
Reading fidelity high
Study strength high
not reported
0.3

Notes