KARMA: Training-Free Knowledge-Atomic Harness Evolution for Industrial Advertising Agents
Organizations: Alibaba International Digital Commerce Group, Hangzhou, China
Abstract
Industrial advertising agents must continually adapt their decision knowledge to changing product offerings, traffic patterns, and operating policies. We present KARMA (Knowledge-Atomic, Regression-Gated Modular Adaptation), a training-free framework that evolves six typed knowledge modules while keeping model weights and executable harness code frozen. During our evolution, a deterministic Trace Verifier maps observed errors to candidate modules, and a Critic compares successful and failed trajectories to guide a tool-constrained Evolver. The Evolver applies atomic knowledge edits, which a fixed validation gate retains only when their measured gain reaches a threshold; otherwise, the previous knowledge state is restored. We evaluate KARMA with three LLM families on cases sampled from a corpus of approximately half a million real-world operation logs across six e-commerce domains. Across 18 domain--model settings, KARMA raises the average hold-out score from 30.19 to 39.15 (+8.96 points, +29.7%). Ablations show that removing either successful or failed trajectories more than halves the average hold-out gain. Evolved knowledge also transfers across domains without further adaptation, yielding an average hold-out gain of 8.54 points across all source--target pairs. By linking retained patches to their diagnostic evidence and validation outcomes, KARMA supports inspectable, reversible knowledge adaptation for agents in Web marketplaces.
Figures & tables
| Module | Responsibility |
|---|---|
| role | Agent identity, objective, and communication stance |
| domain | Advertising products and operating semantics |
| experience | Reusable decision heuristics with stable rule IDs |
| constraints | Evidence, comparison, and safety requirements |
| output_protocol | Analysis termination and structured submission rules |
| action_descriptions | Field-level schema and local-tool descriptions |
| Domain | Symbol | Share (%) |
|---|---|---|
| Home & Living | 24.8 | |
| Automotive | 15.3 | |
| Electronics & Office | 14.7 | |
| Fashion & Apparel | 19.1 | |
| Beauty & Health | 8.2 | |
| Long-tail/Others | 17.9 |
| LLMs | Domains | Validation set | Hold-out set | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Base | KARMA | Gain | Rel. (%) | Base | KARMA | Gain | Rel. (%) | ||
| Qwen3.8-Max | 33.13 | 50.63 | +17.50 | +52.8 | 32.81 | 48.75 | +15.94 | +48.6 | |
| 39.06 | 41.25 | +2.19 | +5.6 | 35.63 | 36.25 | +0.63 | +1.8 | ||
| 34.38 | 48.75 | +14.38 | +41.8 | 33.13 | 43.44 | +10.31 | +31.1 | ||
| 34.69 | 43.75 | +9.06 | +26.1 | 26.88 | 38.44 | +11.56 | +43.0 | ||
| 35.31 | 50.00 | +14.69 | +41.6 | 29.06 | 47.19 | +18.13 | +62.4 | ||
| Domains | Variants | Validation set | Hold-out set | ||||
|---|---|---|---|---|---|---|---|
| Score | Gain | Rel. (%) | Score | Gain | Rel. (%) | ||
| Base | 33.13 | – | – | 32.81 | – | – | |
| w/o success | 39.69 | +6.56 | +19.8 | 43.75 | +10.94 | +33.3 | |
| w/o failure | 38.44 | +5.31 | +16.0 | 35.63 | +2.81 | +8.6 | |
| KARMA | 50.63 | +17.50 | +52.8 | 48.75 | +15.94 | +48.6 | |
| Base | 35.31 | – | – | 29.06 | – | – | |
| Method | Validation set | Hold-out set | Cost | |||
|---|---|---|---|---|---|---|
| Tokens | Hours | |||||
| GEPA | +11.25 | +1.56 | +9.06 | 1.88 | 42.15M | 4.58 |
| AHE | +11.56 | +5.94 | +8.75 | +6.56 | 40.74M | 3.40 |
| Self-Harness | +3.75 | +3.13 | 2.50 | +2.50 | 40.72M | 3.60 |
| KARMA | +17.50 | +14.69 | +15.94 | +18.13 | 41.48M | 4.53 |
| Source | Target domain | |||||
|---|---|---|---|---|---|---|
| – | 0.63 | +7.81 | +17.50 | +12.19 | +19.38 | |
| 5.00 | – | 4.06 | 5.94 | 1.88 | 5.94 | |
| +10.63 | +9.38 | – | +13.44 | +15.31 | +10.00 | |
| +5.94 | 3.44 | +8.75 | – | +10.00 | +13.44 | |
| +10.63 | +7.19 | +6.88 | +11.88 | – | +15.94 | |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Observed error | Candidate modules |
|---|---|
| Missing decision | Output protocol, role |
| Wrong action type | Domain, experience |
| Wrong direction | Experience, constraints |
| Seed | Validation set | Hold-out set | ||||
|---|---|---|---|---|---|---|
| Base | KARMA | Gain | Base | KARMA | Gain | |
| 42 † | 34.38 | 48.75 | +14.38 | 33.13 | 43.44 | +10.31 |
| 43 | 35.31 | 44.38 | +9.06 | 32.19 | 43.44 | +11.25 |
| 44 | 30.63 | 35.31 | +4.69 | 31.56 | 32.50 | +0.94 |
| 45 | 30.00 | 38.44 | +8.44 | 29.38 | 32.81 | +3.44 |
| 46 | 30.63 | 40.94 | +10.31 | 35.00 | 39.38 | +4.38 |
| Domain | Validation set | Hold-out set | ||||
|---|---|---|---|---|---|---|
| 0.005 | 0.01 | 0.02 | 0.005 | 0.01 | 0.02 | |
| +17.50 | +17.50 | +17.50 | +15.94 | +15.94 | +15.94 | |
| +14.69 | +14.69 | +14.69 | +18.13 | +18.13 | +18.13 | |
| +13.13 | +13.13 | +10.00 | +15.94 | +15.94 | +12.50 | |
LLM Agents
Large language model agents use language models to plan, use tools, and act across multi-step tasks and environments.
See all 711 papers