Abstract
Automated Mechanism Design (AMD) has traditionally faced a trade-off between the high performance of black-box neural networks and the interpretability of manual economic proofs. This paper introduces AMD-LLM, a framework that leverages Large Language Models (LLMs) to evolve human-readable Python code for economic mechanisms. By integrating an evolutionary search with a deterministic "fixing" process, the framework ensures mathematical properties like strategy-proofness while discovering high-performing mechanisms. Results demonstrate that AMD-LLM can rediscover optimal economic theories and outperform traditional baselines in complex auction settings.
Introduction
Mechanism design is the field of economics focused on creating the "rules of a game" (such as an auction) to achieve desired outcomes like maximizing revenue or social welfare, even when participants act in their own self-interest. Historically, these mechanisms were designed manually using complex mathematical proofs, which struggle to scale to real-world complexities like multiple items or correlated bidder valuations. While recent deep learning approaches (e.g., RegretNet) have found profitable mechanisms, they are often "black boxes" that lack the transparency and formal guarantees required for deployment. This research proposes an LLM-based approach to bridge this gap by generating interpretable, code-based mechanisms that maintain rigorous mathematical constraints.
Methodology: The AMD-LLM Framework
The core of the proposed system is the AMD-LLM framework, which treats mechanism design as an iterative code generation and optimization task.
Evolutionary Code Generation
The system utilizes an LLM (e.g., GPT-4) within an evolutionary loop. The LLM generates and mutates Python functions representing mechanism heuristics, such as deciding winners based on bids. High-performing code snippets are preserved and used as templates for subsequent iterations, allowing the system to explore the space of possible mechanisms creatively and efficiently.
The Fixing Process
A critical challenge in using LLMs for economic design is their inability to strictly adhere to hard mathematical constraints like strategy-proofness (where bidders have no incentive to lie) or feasibility. To solve this, the authors implement a deterministic "wrapper." This wrapper takes the LLM's raw heuristic and applies mathematical transformations—such as forcing the allocation curve to be monotonic—to guarantee the required properties. The LLM is then evaluated on the performance of the fixed code, which implicitly guides it toward generating more robust heuristics.
Neural Network Assistance (NNA-AMD-LLM)
To further enhance performance, the authors introduce a distillation step. A black-box neural network is first trained to solve the specific mechanism problem. The LLM then attempts to generate Python code that mimics the neural network's behavior through Programming-by-Example. This process effectively translates the neural network's complex logic into human-readable code.
Experimental Setup and Results
The framework was evaluated across several auction scenarios using simulated bidder valuations drawn from Beta(2, 5) and Uniform U[0,1] distributions, as well as correlated 5x5 grid distributions.
Key Findings
- Rediscovery of Economic Theory: In single-item auctions, the framework successfully evolved from simple heuristics to the exact mathematical form of Myerson’s optimal virtual valuation formula, demonstrating its ability to "learn" fundamental economic principles from scratch.
- Superior Welfare Maximization: In multi-item VCG redistribution settings, the LLM-generated code achieved a score of 0.5838, significantly outperforming manual baselines (0.4935). With neural network assistance, performance improved to 0.5917, nearing the black-box neural network's performance of 0.6254 while remaining interpretable.
- Handling Correlated Valuations: In complex settings with correlated bidders, the framework matched the performance of sophisticated analytical methods and discovered novel dynamic reserve-price mechanisms.
Discussion and Conclusion
The AMD-LLM framework demonstrates that Large Language Models can serve as powerful engines for economic discovery. By separating the creative search (LLM) from the enforcement of formal constraints (the fixing process), the system produces mechanisms that are both high-performing and fully interpretable. Future work includes addressing "AI bias" in generated code—where LLMs favor machine learning functions over traditional economic ones—and incorporating human-in-the-loop feedback to further refine the practical utility of the discovered mechanisms.
Summary updated