Manuscript Offprint
arXiv:2609.07749Guiding Worker Self-Selection in Crowdsourcing Contests: An LLM-Augmented Algorithmic Approach
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Crowdsourcing platforms coordinate large pools of online workers who compete in contests to produce solutions for clients, from logo design to machine-learning challenges. A defining feature of these platforms is that workers self-select: Each chooses which contests to enter and how much effort to invest, and these choices are strategic rather than aligned with what the platform needs. As a result, the platform may end up with too few participants, or too little effort, on the contests where high-quality solutions matter most—while individual workers may end up dissatisfied, regretting choices that left them worse off than an alternative they could have taken. To reconcile these competing interests, platforms increasingly offer workers recommendations on where to compete. We study how to generate such recommendations as the game of self-selection in Tullock contests (SSTC), a two-stage model in which workers first choose contests and then compete within them. We introduce GRAF, a greedy algorithmic framework that produces self-selection outcomes in polynomial time by ordering workers according to a score vector, with provable guarantees—zero worker regret and platform optimality—for special cases of SSTC. Because a good ordering is difficult to design by hand once workers are heterogeneous, we propose LLMScore, an LLM-driven evolutionary framework that automatically designs the scoring algorithm GRAF uses. LLMScore addresses two obstacles to applying existing LLM-based methods here: jointly optimizing solution quality and worker satisfaction, and the intractability of evaluating worker regret. It is trained only on small instances of a single setting yet transfers to larger and structurally different settings, and—because its output is human-readable code—a platform operator can inspect and adjust the recommendation logic it learns. Across 1,000 synthetic instances spanning four settings, GRAF augmented by LLMScore consistently yields high-quality or even near-optimal outcomes with low worker regret, benefiting platform and workers alike.
CCS Concepts
• Information systems → Crowdsourcing; • Theory of computation → Algorithmic game theory and mechanism design; •
Part of our work originally appeared in an extended abstract from AAMAS 2020 [9].
1 Introduction
Crowdsourcing platforms such as Topcoder and Freelancer have become a central mechanism for completing work and solving problems at scale [13, 28, 29], letting clients obtain cost-effective solutions without hiring additional staff. Such platforms organize a client's problem as an online contest, where online workers, or contestants, sign up to compete by submitting solutions. After the contest, a reward goes to the winner and the submitted solutions are returned to the client. Contest problems range from simple logo and website designs to programming-intensive algorithmic and machine learning challenges.
What makes coordinating such a platform hard is that the workers are not assigned to tasks—they self-select. Each worker decides, on their own, which contest to enter and how much effort to invest, and may do so strategically to maximize their own payoff [15]. The platform, by contrast, wants every contest to attract enough participants and effort to yield high-quality solutions. These two interests pull apart: The distribution of effort that emerges from workers acting in their own interest can differ sharply from the distribution the platform would prefer, so the quality of solutions a client receives depends crucially on workers' strategic behavior. Worse, that behavior may not even settle into a stable arrangement [5]—an equilibrium in which no worker wishes they had chosen differently.
Two quantities capture this tension in human terms. From the platform's side, the overall effort across contests is a natural proxy for the quantity and quality of solutions produced, since even non-winning submissions have value (e.g., multiple classifiers can be combined into a stronger ensemble) [29]. From the worker's side, regret measures dissatisfaction: how much utility a worker loses by

This work is licensed under a Creative Commons Attribution 4.0 International License. HCOMP 2026, Alexandria, VA, USA
© 2026 Copyright held by the owner/author(s).
ACM ISBN 979-8-4007-2894-5/2026/09
https://doi.org/10.1145/3834580.3838745
Thach et al.
entering the contest they did, relative to the best contest they could have entered given everyone else's choices. A worker with high regret is one who, after the fact, wishes the platform had steered them elsewhere—and such workers are precisely those a platform risks losing. Because workers are not under contract, the platform's only lever is advice: recommendations on which contest(s) to join [14, 28]. The goal is recommendations that are simultaneously near-optimal for the platform and low-regret for workers, so that both parties benefit.
We formalize this as self-selection in Tullock contests (SSTC): a two-stage game in which workers first choose which contests to enter, then compete within each contest, with the probability of winning increasing in one's own effort relative to others'. The Tullock model is the standard formalism for such effort-based competition. This leads to the question we address.
Can we design algorithms for general SSTC that generate near-optimal self-selection outcomes with low dissatisfaction from workers?
Existing Efforts and Their Limits. Prior work [5, 10] studies special cases of SSTC and offers partial equilibrium characterizations of self-selection outcomes. However, these results rest on restrictive assumptions—workers share identical valuations, identical production capabilities and effort costs, and may select only a single contest—that strip out the heterogeneity of real worker populations and offer no practical, deployable recommendation procedure.
Our Approach. We first propose GRAF, a greedy algorithmic framework that orders workers according to a score vector and then iteratively assigns each to a contest and determines their effort, conditioned on the choices already made. The difficulty is the ordering: When workers differ in their valuations, production efficiency, and effort costs, choosing a good score vector by hand is far from obvious, which motivates a data-driven approach to designing automatically.
Large language models (LLMs) have shown strong capability in algorithmic design [31] and programming [25]. In particular, embedding an LLM in an evolutionary search—maintaining a population of candidate heuristics and repeatedly prompting the model to improve on the best ones—has produced state-of-the-art results on combinatorial problems such as traveling salesman and knapsack problems [30, 35, 51]. Because these methods excel precisely at designing priority scores for greedy procedures (e.g., selecting the next node to add in TSP tour construction), they are a promising way to design the ordering that GRAF needs.
Two obstacles stand in the way of applying them directly. (Challenge I) Existing methods target objectives with a single, well-behaved notion of solution quality (e.g., tour length and total weight), which makes their “fitness function” easy to define. Our setting has two objectives—overall effort and worker regret—whose scales vary enormously across instances¹, so a fitness function must capture both at once. (Challenge II) Existing methods assume cheap-to-evaluate objectives, but computing worker regret is intractable [2], especially when no closed-form equilibrium effort is available for the second stage, making naive evaluation prohibitively expensive.
Contributions. Our contributions are as follows.
(1) We propose GRAF, a general algorithmic framework for SSTC that, under a suitable , provably returns a zero-dissatisfaction, or zero-regret/equilibrium, outcome (Theorem 2) and even a platform-optimal one (Theorem 3) in polynomial time for special cases of SSTC.
(2) We propose LLMScore, an LLM-driven evolutionary framework that automatically designs the scoring algorithm that GRAF uses in general SSTC games. Addressing Challenge I, we devise a simple-yet-effective fitness-penalizing scheme that nudges algorithms toward platform optimality while filtering out those that leave workers with high regret. Addressing Challenge II, we train LLMScore only on small instances of a single SSTC setting and reuse the learned algorithms on unseen, larger, structurally different settings, eliminating expensive per-setting training.
(3) We conduct rigorous experiments on 1,000 synthetic SSTC instances across four problem settings of increasing complexity to demonstrate the following advantages of LLMScore:
-
Performance: GRAF augmented by LLMScore consistently yields high-quality or even near-optimal self-selection outcomes with low worker regret across all considered settings, including those it was never trained for.
-
Interpretability: LLMScore produces transparent, human-readable code that a platform operator can inspect, audit, and adjust (see Figures S6 and S7 for some examples).
-
Scalability: By virtue of its generalizability (from tackling Challenge II), the per-instance runtime of GRAF augmented by LLMScore is comparable to GRAF with hand-crafted (which runs in polynomial time), since training is amortized offline.
Outline. The remainder of our paper is organized as follows. Section 2 formalizes the Tullock contest model and the SSTC game. Section 3 presents GRAF and establishes its theoretical guarantees. Section 4 introduces LLMScore. Section 5 presents experimental results. We discuss related work in Section 6 and conclude our work in Section 7. The appendices contain figures for our prompts (Figures S3–S5), code template (Listing S1), designed algorithms (Figures S6 and S7), and additional results (Figures S8–S11). Complete proofs and full implementation details are provided in our supplementary material attached at the end of the document.
2 Preliminaries
In this section, we first revisit the model of a single Tullock contest in Section 2.1, then formalize the general SSTC model involving multiple Tullock contests in Section 2.2 and state the platform's objective in Section 2.3.
2.1 Tullock Contest
We consider the most general model of Tullock contests [43]. Let denote the set of contestants in a contest. Each contestant has a value for the reward associated with the contest (e.g., monetary prize, skill points, or reputation) and wins the contest with probability that depends on their exerted effort and the exerted efforts of other contestants. In particular, each is characterized by a production function . At effort , contestant's
¹In general, regret is unbounded.
i's production is , where describes i's production efficiency, and captures the elasticity of effort [43]. Let \mathbf{e} = (e_1, \ldots, e_n) \in \mathbb{R}_0^+^n be the joint-effort profile of the contestants where is the effort of contestant . The probability of winning the contest is then . If all 's are zero, then for all where . Given a joint-effort profile , the expected utility of is , where is the effort cost function of .
In the special case where and , for every , we have Theorem 1.
THEOREM 1 ([20, 37]). Given a Tullock contest with values , where , there is a unique pure-strategy Nash equilibrium (PSNE) \mathbf{e}^* \in \mathbb{R}_0^+^n where (1) the equilibrium effort level is ordered based on the values: ; (2) the number of active players (with nonzero efforts) is the smallest , in the ordering, such that (with ); and (3) the equilibrium effort is characterized by the closed form: for the first contestants and for .
In such a Tullock contest, from the above PSNE characterization, there are always at least two active contestants for .
2.2 Self-Selection in Tullock contests
The game of self-selection in Tullock contests (SSTC) is played in two stages. First, each contestant selects which contests to participate in, and, subsequently, the contestants compete in each contest, knowing the contestants they compete against [5, 10, 15].
Formally, let be the set of distinct Tullock contests, and be the set of contestants. A (pure) self-selection strategy of a contestant is with a binary selection vector of size and an effort vector of size , where denotes the selection of contest , and denotes 's effort in contest . The (pure) self-selection strategy set of a contestant is S_i \in A \times \mathbb{R}_0^+^m, with , where is the number of contests in which seeks to participate. We let and be the value of for winning contest .
Given a pure-strategy profile or self-selection outcome , the utility of contestant is
where is the effort cost function of contestant in contest and
is 's probability of winning contest given . We define and , where . Note that within contest , when for every , and when and for each . When there is a single contestant, the contestant wins the prize
with probability 1 with zero effort (i.e., and if and ).
Due to the sequential nature of the game, the effort for each contestant and contest is conditioned on . Therefore, we focus on finding and 's, which are (approximate) equilibrium effort of in given . Given the dependence of 's on , we simply refer to as a self-selection outcome (omitting 's), with this abuse of notation adopted henceforth throughout the paper. Given a self-selection outcome , the utility of (Equation 1) can hence be redefined as
where for any self-selection outcome .
The dissatisfaction for a given contestant is captured by the standard notion of regret [36, 44]. Formally, contestant 's (ex post) regret for playing given is defined as
Intuitively, it is the maximum utility loses by playing .
DEFINITION 1. A self-selection outcome is a pure-strategy Nash equilibrium (PSNE) if and only if for all , for every , .
When all contestants have zero regret, PSNE is attained.
2.3 Platform Objective
In the context of crowdsourcing, the contestants' efforts may translate into solutions of different qualities. While the top solution may be announced as the winner, the other submitted solutions may not be discarded (i.e., different machine learning classifiers can be combined to build a more powerful classifier via some ensemble approaches; see also [29]). As a result, the platform seeks many high-quality solutions, which can be captured by the overall effort applied to a contest. Since contestants are not under contract, the platform provides recommendations on which contest(s) they should join based on their demand [14]. Given a self-selection outcome , the overall effort (OE) objective is
The platform wants to find
where the utility constraints reflect the fact that contestants are rational agents who seek to participate in contests strategically [12, 26].
Instead of achieving the highest performance, the platform's objective is to drive a general increase in activity in the field with many high-quality solutions as discussed earlier (e.g., diverse logo and website designs). Another example is when the platform wants
In practice, represents 's demand based on their e.g., past participation and profile data. The platform then provides recommendations respecting this demand [14].
In the absence of closed-form PSNE characterizations, the computation of must be done via numerical methods.
Thach et al.
to maximize the expected learning effort of a certain programming topic or skill made by contestants . We refer readers to [34], who also consider the sum of effort as the objective function for their single-contest model, for more examples and motivations.
3 GRAF: A Greedy Algorithmic Framework for SSTC
In this section, we present the GReedy Algorithmic Framework (GRAF) for generating self-selection outcomes in SSTC games, followed by establishing its properties in special settings: Zero-regret contestants (Section 3.1) and platform optimality (Section 3.2).
Let be the best-response set of given the partial self-selection outcome , where is the single-contest selection set of concerning contests that has yet to join. (We elaborate on how to compute in the supplementary material.) As shown in Algorithm 1, given an SSTC game where the contestants are ordered based on some score vector , i.e., , GRAF computes the best-response set of given the selections of contestants up to and commits to a contest in 's best-response set. The algorithm terminates when all contestants meet their participation demand .
Algorithm 1: GRAF
Input: An SSTC game with contestants sorted based on a score vector , i.e.,
Return: A self-selection outcome a
1: Let a = 0 2: while for any do 3: for do 4: if then 5: Let 6: Select , set 7: Decrement by 1
3.1 Zero-Regret Contestants
Consider games where (1) the contests have a homogeneous type (e.g., either all logo contests, all webpage contests, machine learning contests) with a similar reward structure, hence each contestant has the same value for every contest; (2) each contestant selects a single contest, i.e., and (3) both the production and the effort cost of any contestant in any contest is linear in effort, i.e., . In such case, the effort can be determined deterministically via the equilibrium characterization of Theorem 1. That is—let for a contestant is the equilibrium effort (via Theorem 1) restricting to the contestants in . If , then . We refer to this model as simply special SSTC when the context is clear.
We begin by adapting Algorithm 1 to special SSTC games (see Algorithm 2) and show that it generates a PSNE (i.e., a no-regret self-selection outcome). Notably, we order the contestants based on given their homogeneous values . Moreover, since each contestant selects exactly one contest, which implies , their best-response set can be simplified to .
Algorithm 2: GRAF in Special SSTC
Input: A special SSTC game with contestants sorted based on , i.e.,
Return: A PSNE self-selection outcome
1: Let # Set a to be a zero matrix 2: for do 3: Let 4: Select , set
THEOREM 2. For any game of special SSTC, there is a PSNE. Moreover, Algorithm 2 outputs one in polynomial time.
PROOF SKETCH. The key to showing that Algorithm 2 returns a PSNE is to argue that (1) the partial self-selection outcome is a PSNE for the game played between the contestants up until i and (2) the self-selection outcome is still a PSNE after setting a best-response of i to be one. We show this by induction. The base step is straightforward, and the inductive step requires the following two claims.
CLAIM 1. No contestants in contest j would deviate to a different contest after i joining the contest j.
CLAIM 2. No contestants outside of contest j would deviate to contest j after i joining the contest j.
Along with the above two claims, we have shown that Algorithm 2 finds a PSNE in polynomial time.
3.2 Platform Optimality
Although GRAF itself does not guarantee optimality in OE, we show that the PSNE self-selection outcome (determined via Algorithm 2) is also optimal for a variant of special SSTC. In particular, in uniform SSTC games where the values of contestants are identical, i.e., , when the number of contestants is at least twice the number of contests .
THEOREM 3. In a uniform SSTC game with contestants, every PSNE achieves optimal OE.
4 LLMScore: An LLM-Based Framework to Augment GRAF
In general, each contestant may have different values as well as various parameters (i.e., ) for the contests, rendering the choice of (which determines the order of contestants to consider in GRAF) nontrivial. To this end, we propose LLMScore, an LLM-based framework that automates the design of to augment GRAF.
On Topcoder, they form special learning communities around certain groups for the general public [40, 42].
Most contestants are part-time competitors (i.e., the contestants have a full-time job) where they compete once or twice a month [41]. Thus, selecting only a single contest within a fixed period (e.g., biweekly) is a feasible assumption.
In real-world crowdsourcing platforms, the contestant pool is typically much larger than the number of simultaneously active contests [6, 15, 28, 29].
Overview. We start with an overview of our proposed LLMScore framework (illustrated in Figure 1), which is inspired by the popular EoH method [30] in automated algorithmic design. LLMScore maintains a population of heuristic scoring algorithms, denoted as , where takes an SSTC instance as input and outputs a score vector . It adopts an evolutionary search procedure, iteratively searching for algorithms that yield better trade-offs between OE and regret. Each algorithm is evaluated on a set of problem instances and assigned a fitness value that indicates its probability of being selected as reference for generating new algorithms.

Figure 1: Illustration of the LLMScore framework. (See Figure S3 for our employed “SSTC Description” prompt.)
Algorithm Representation. We first describe the components to represent a scoring algorithm .
(1) The algorithm description comprises a few sentences in natural language. It is created by LLMs and encapsulates a high-level thought. An example is provided in Figure S6 (second text box).
(2) The code block is an implementation of the algorithm (Figure S6, bottom). It should follow a pre-defined format (see Listing S1) so that it can be identified and seamlessly integrated into the evolutionary framework. In the experiments, we choose to implement it as a Python function, though any programming language should work.
(3) Each algorithm is assigned a fitness value to represent its priority in the population, which is used for selection and population management. We elaborate our definition of fitness based on OE and regret shortly.
Evolutionary Search. To begin the evolution process, we inform the LLM of the SSTC problem of interest and instruct it to design a scoring algorithm by first presenting the description of the generated algorithm followed by the corresponding code block (see Figure S4, top). We repeat times to generate initial algorithms. From these initial algorithms, offspring algorithms are generated by prompting the LLM with specific instructions, called prompt strategies, that either explore or modify existing algorithms. Exploration strategies focus more on exploring uncharted area in
the space of heuristics by conducting crossover-like operators on parent heuristics (Figure S4, left). Modification strategies refine a parent heuristic by modifying, adjusting parameters, and removing redundant parts (Figure S4, right). For selecting parent algorithm(s) from a population (consisting of algorithms) when generating an offspring algorithm, we first rank them according to their fitness, then randomly select one or multiple algorithms with probability , where is its rank in . Once offspring algorithms are generated, we select the best algorithms from the current population (comprising parent and offspring algorithms) to form a population for the next iteration. The evolution process terminates when the evaluation resource (e.g., number of populations) is depleted.
Prompt Refinement. Since prompt strategies dictate the diversity in the population and play a vital role in producing high-quality heuristics [31], thoughtful prompt engineering is necessary, which often requires certain degree of domain knowledge (especially for modification ones). To alleviate this, we incorporate a prompt refinement module wherein prompt strategies are iteratively refined as well. In particular, when the fitness values of the top- algorithms in the population remain unchanged for consecutive units of evaluation resource, which indicates stagnation during the search, we refine the modification prompt strategies as follows: Given the current set of modification strategies, we ask the LLM to design a new one that is different from them as much as possible (Figure S5). By this means, a new prompt strategy is added after calling this module. To maintain the size of the set of prompt strategies, during the evolution process, we assign each prompt strategy a score defined as the average fitness value of the top- individuals produced by it, and keep those with highest scores for generating offspring algorithms. An example of the LLM-generated prompt strategy is given in Figure S6 (first text box), which helps produce the algorithm yielding highest OE in one of our runs of LLMScore.
Fitness Evaluation. The evaluation of each newly generated algorithm involves running it on a set of problem instances from which its fitness value is computed. Since we aim to optimize both OE and regret, the associated fitness function should include both terms. We achieve this by penalizing the fitness function whenever yields subpar regret. Formally, given a heuristic scoring algorithm , its fitness value is defined as the median overall effort from the self-selection outcome a returned by GRAF (Algorithm 1):
where denotes Algorithm 1 parameterized by and med is defined over all training instances. We use the median instead of the mean due to the frequent occurrence of extreme outliers across instances. Let us define the max regret across all contestants as . If the max regret associated with is higher than the max regret associated with returned by for some baseline in or more of the training instances, where , we penalize 's fitness as follows:
Thach et al.
By this means, algorithms yielding sufficiently low max regret are considered more “fit” than those otherwise in the population. If multiple algorithms share the same fitness value, we sort them by median max regret.
5 Experiments
5.1 Experimental Setups
Throughout the experiments, we chose GPT-4o mini as our pretrained LLM. Our complete implementation in Python 3.10—including the SSTC instance generator, GRAF, and the LLMScore search—is available at https://github.com/Anonymous3005/LLMScore.git.
Datasets. We generate synthetic SSTC instances where the contestants' values are sampled uniformly from [5, 20] and the parameters , , , are sampled from the Gaussian-like distribution . We consider and . There are 1,000 instances for each combination of . For each instance, we generate with , for and , , for .
Implementation Details. We consider general SSTC games with or without the equilibrium effort characterization (from Theorem 1). For the former case, we simply set . In either case, contestants may select exactly one contest ( , ) or multiple contests ( ). For clarity, we label each problem setting (ordered by increasing complexity) as follows.
• SSTC 1: Single-selection SSTC with characterization.
• SSTC 2: Multi-selection SSTC with characterization.
• SSTC 3: Single-selection SSTC without characterization.
• SSTC 4: Multi-selection SSTC without characterization.
Notably, we train LLMScore only for SSTC 3 using a sizable training set of 50 small instances (with n = 10 contestants and m = 3 contests), then use the learned algorithms for to test on instances from all other settings. We choose SSTC 3 for its generality (with respect to SSTC 1 and SSTC 2) without being too complex (as in SSTC 4) for standard LLMs. Once training is done, we compute the median OE and the median max regret (across 1,000 aforementioned instances) from (i) the algorithm with highest median OE and (ii) the one with lowest median max regret across the training instances. We then repeat for three runs of LLMScore and report the average performance. (Further implementation details in the supplementary material.)
Baselines. Naturally, we consider GRAF with multiple handcrafted as baselines:
, i.e., by contestants' IDs, which is also employed as during Fitness Evaluation.
For SSTC 3 and SSTC 4, which feature heterogeneous values for , , , , we consider more choices for :
, where .
In addition to GRAF, we also include iterated best response (IBR) [17, 21], detailed in the supplementary material. As shown shortly in our experimental results, IBR is a surprisingly strong baseline that yields high OE while maintaining zero max regret in all instances of SSTC 1 and nearly all instances of SSTC 2.
5.2 Results
SSTC With Characterization. Table 1 shows results for SSTC 1 (top) and SSTC 2 (bottom). Across nearly all settings, GRAF[ ] outperforms all GRAF variants with handcrafted in both OE and max regret, and even surpasses IBR in OE in several larger settings (e.g., n30m3 and n60m3 in Table 1b). While IBR undoubtedly yields the best results in SSTC 1, we notice the gaps in its performance with respect to GRAF-based methods are substantially reduced in SSTC 2, which could be attributed to the more complex game structures in the presence of multiple-contest selections. For GRAF, interestingly, the more intuitive scores , and the simplistic score yield almost identical results, underscoring the nontriviality of designing in general SSTC games. Incidentally, while the LLM-generated scoring algorithms were trained exclusively on small instances of SSTC 3 (n10m3), they transfer effectively to instances of SSTC 1 and SSTC 2 that differ in both problem structure and scale, which highlights the generalizability of LLMScore.
SSTC Without Characterization. Table 2 shows results for SSTC 3 (top) and SSTC 4 (bottom). In these more challenging settings, GRAF[ ] outperforms all baselines, including IBR, in both OE and max regret across all settings and instance sizes. Given the heterogeneity of various contestant-specific parameters, all handcrafted scores beside and yield identical results, and the improvement between , over in either OE or max regret is only observed in small instances (n10m3 and n15m3). This demonstrates that intuitive designs of are insufficient in the most general settings of SSTC.
Figures S8–S9 further confirm our findings: The LLM-augmented algorithms dominate both IBR and GRAF with handcrafted across all settings of SSTC 3, with the top 10 (by fitness at the end of LLM-Score training) consistently forming the approximate Pareto front in the OE-regret trade-off space. (Analogous results for SSTC 4 in Figures S10 and S11.) Crucially, these impressive performances are achieved through scoring algorithms trained only on small instances of SSTC 3 (n10m3) and applied directly—without any retraining—to larger instances and structurally more complex settings (SSTC 4), once again underscoring the generalizability of LLMScore.
Analysis of LLM-Generated Scores. Given the interpretability of LLMScore via code, we analyze the scores behind its good results. Figure S6 illustrates a learned scoring algorithm from “GRAF[ ] (best OE)” in Tables 1 and 2. From the code block, the score for contestant can be formally expressed as , where “adjusted valuation” and “rank bonus” . The effort for defining and is for any . (Please refer to the caption of Figure S7 for
Table 1: SSTC with characterization. The values in each cell respectively record median OE and median max regret. The best and second-best results are bolded and underlined, respectively.
(a) SSTC 1. The median OE of the optimal outcomes in n10m3 (via brute-forcing the space of a) is 32.934.
| Method | n10m3 | n15m3 | n30m3 | n60m3 | n30m5 | n60m5 | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| IBR | 32.636 | 0.000 | 38.377 | 0.000 | 45.254 | 0.000 | 49.893 | 0.000 | 72.156 | 0.000 | 81.741 | 0.000 |
| GRAF[σID] | 30.943 | 0.997 | 37.328 | 0.723 | 44.674 | 0.374 | 49.672 | 0.178 | 70.181 | 0.893 | 80.826 | 0.410 |
| GRAF[σV_max] | 30.943 | 0.997 | 37.328 | 0.723 | 44.674 | 0.374 | 49.672 | 0.178 | 70.181 | 0.893 | 80.826 | 0.410 |
| GRAF[σV_sum] | 30.943 | 0.997 | 37.328 | 0.723 | 44.674 | 0.374 | 49.672 | 0.178 | 70.181 | 0.893 | 80.826 | 0.410 |
| GRAF[σLLM] (best OE) | 31.113 | 0.889 | 37.528 | 0.399 | 45.095 | 0.071 | 49.874 | 0.009 | 70.339 | 0.695 | 81.268 | 0.196 |
| GRAF[σLLM] (best regret) | 31.084 | 0.858 | 37.528 | 0.399 | 45.095 | 0.071 | 49.872 | 0.009 | 70.307 | 0.694 | 81.268 | 0.196 |
(b) SSTC 2. The median OE of the optimal outcomes in n10m3 (via brute-forcing the space of a) is 34.689.
| Method | n10m3 | n15m3 | n30m3 | n60m3 | n30m5 | n60m5 | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| IBR | 34.638 | 0.017 | 39.345 | 0.010 | 45.709 | 0.004 | 50.042 | 0.000 | 74.522 | 0.003 | 82.767 | 0.000 |
| GRAF[σID] | 33.758 | 0.549 | 38.954 | 0.443 | 45.304 | 0.230 | 49.841 | 0.114 | 73.512 | 0.626 | 82.331 | 0.285 |
| GRAF[σV_max] | 33.528 | 0.648 | 38.855 | 0.474 | 45.403 | 0.251 | 49.975 | 0.114 | 73.954 | 0.577 | 82.458 | 0.292 |
| GRAF[σV_sum] | 33.528 | 0.648 | 38.855 | 0.474 | 45.403 | 0.251 | 49.975 | 0.114 | 73.954 | 0.577 | 82.458 | 0.292 |
| GRAF[σLLM] (best OE) | 34.095 | 0.549 | 39.124 | 0.182 | 45.713 | 0.006 | 50.071 | 0.063 | 73.818 | 0.414 | 82.620 | 0.122 |
| GRAF[σLLM] (best regret) | 34.000 | 0.409 | 39.124 | 0.182 | 45.713 | 0.006 | 50.027 | 0.004 | 73.818 | 0.414 | 82.620 | 0.122 |
Table 2: SSTC without characterization. The values in each cell respectively record median OE and median max regret. The best and second-best results are bolded and underlined, respectively. Methods with identical results are condensed.
(a) SSTC 3.
| Method | n10m3 | n15m3 | n30m3 | n60m3 | n30m5 | n60m5 | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| IBR | 28.533 | 1.652 | 36.859 | 2.138 | 51.102 | 1.721 | 67.417 | 1.400 | 83.857 | 2.358 | 108.289 | 1.947 |
| GRAF[σID]/σV_max/σV_sum/σe_max/σe_sum] | 24.966 | 1.876 | 34.470 | 1.960 | 54.522 | 1.770 | 72.497 | 1.783 | 78.442 | 2.932 | 111.633 | 2.326 |
| GRAF[σf_max] | 26.881 | 2.792 | 35.436 | 2.731 | 46.569 | 2.734 | 60.500 | 2.273 | 73.821 | 4.012 | 93.985 | 3.707 |
| GRAF[σf_sum] | 26.871 | 2.575 | 37.457 | 2.984 | 48.481 | 2.643 | 63.211 | 2.016 | 73.985 | 4.392 | 97.885 | 3.648 |
| GRAF[σLLM] (best OE) | 33.708 | 2.226 | 42.064 | 1.584 | 55.967 | 0.642 | 73.445 | 1.011 | 84.813 | 2.494 | 113.877 | 1.205 |
| GRAF[σLLM] (best regret) | 32.929 | 1.576 | 41.167 | 1.097 | 51.970 | 0.484 | 72.324 | 0.716 | 82.511 | 1.565 | 113.877 | 1.205 |
(b) SSTC 4. n60m5 was omitted after IBR failed to complete all test instances within a week.
| Method | n10m3 | n15m3 | n30m3 | n60m3 | n30m5 | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| IBR | 31.265 | 1.404 | 42.193 | 1.706 | 53.652 | 0.769 | 64.925 | 0.982 | 87.592 | 1.594 |
| GRAF[σID/σV_max/σV_sum/σe_max/σe_sum] | 27.560 | 1.450 | 41.152 | 1.408 | 57.699 | 1.646 | 73.916 | 1.651 | 86.627 | 2.054 |
| GRAF[σf_max] | 30.491 | 1.643 | 41.213 | 1.455 | 50.529 | 1.711 | 62.872 | 1.812 | 83.083 | 2.741 |
| GRAF[σf_sum] | 29.125 | 0.887 | 42.022 | 1.834 | 50.529 | 1.373 | 63.264 | 1.539 | 82.404 | 3.172 |
| GRAF[σLLM] (best OE) | 35.749 | 1.166 | 48.622 | 0.813 | 59.506 | 0.624 | 73.975 | 1.085 | 90.387 | 1.339 |
| GRAF[σLLM] (best regret) | 35.517 | 0.816 | 45.128 | 0.762 | 57.713 | 0.514 | 71.150 | 0.771 | 89.700 | 1.249 |
“GRAF[σLLM] (best regret)”. We see that the scores in both examples are substantially more sophisticated than the handcrafted ones from Baselines.
Runtime Analysis. Figure 2 compares the median runtime of IBR against GRAF (with σID and σLLM) across instances of SSTC 4 (the most complex setting among the four) on a logarithmic scale. We see that GRAF with either score is noticeably faster than IBR: A single run of IBR (i.e., one randomly-generated initialization of a) takes at least 10× the time of GRAF[σID] or GRAF[σLLM] across all test instance sizes, and the gap widens with n. Note that since the training of LLMScore is conducted offline and amortized over all future test instances, the per-instance cost of GRAF[σLLM] at test time is almost identical to that of GRAF[σID]. Combined with its generalizability, LLMScore offers a scalable method in SSTC.
6 Related Work
Crowdsourcing and Worker Self-Selection. Crowdsourcing contests are a well-studied mechanism for eliciting effort from online workers [13, 15, 28, 29], and a recurring theme is that workers self-select which tasks to undertake rather than being assigned, which makes coordinating the crowd a central challenge. A large body of human-computation work therefore studies how to guide that self-selection through task recommendation and assignment [14] and incentive design [6]. LLMs, too, are increasingly used in crowdsourcing for laborious tasks such as data annotation [18], misinformation assessment [48], and content creation [33]. Our contribution is complementary: Rather than designing the contests or rewards, or performing the tasks, we take the contests as given and study
Thach et al.

Figure 2: Median runtime (seconds in logarithmic scale) across instances of SSTC 4.
how a platform should recommend where heterogeneous workers compete, optimizing platform value and worker satisfaction jointly.
Self-Selection in Tullock Contests. A Tullock contest models a rent-seeking situation in which contestants exert effort to win an indivisible reward, with the winner determined probabilistically [4, 43]. The PSNE characterization of a single contest (Theorem 1) is due to Hillman and Riley [20], Stein [37]. He et al. [19] show that the effort-elasticity parameter governs hardness: With more than contestants and , deciding PSNE existence is NP-complete, so no characterization exists—a regime our SSTC 3 and SSTC 4 instances () deliberately capture. Table 3 compares our setting with the two existing SSTC works [5, 10], both of which assume like-minded contestants () and give partial PSNE characterizations only under restrictive assumptions (linear or identity production and cost functions, single-contest selection). To our knowledge, general SSTC with multiple-contest selection by heterogeneous contestants with arbitrary nonlinear production and costs remains uncharted.
Table 3: SSTC model comparison. Parameters: , —effort cost parameters, —production efficiency, —effort elasticity, —personal value, —participation demand. ()—Weak convexity assumption for , hence ; ()—Weak concavity assumption for , hence . Bernergard and Warneryd [5], Cohen et al. [10] do not conduct empirical studies. In our experiments, .
| [5] | [10] | Ours (special) | Ours (general) | |
|---|---|---|---|---|
| c, d | ||||
| q | ||||
| r | ||||
| v | ||||
| k |
Learning Nash Equilibria. A growing body of work computes Nash equilibria via reinforcement learning, e.g., Nash-DQN [8], CCGnet [47], and RENES [46]. These target mixed-strategy equilibria in small games (at most five players) and, like most deep methods, lack interpretability.
Game Theory and LLMs. Work bridging game theory and LLMs largely applies game-theoretic concepts to evaluate LLMs' strategic behavior [3], interpret them [22], align them with human preferences [11, 39], and characterize their societal impact [16, 49] (see [38] for a survey). Others use LLMs to simulate human agents in behavioral economics [23, 27]. Applying LLMs to solve challenging games algorithmically, however, remains largely unexplored.
LLMs for Algorithmic Design. LLMs have been applied to mathematical reasoning [1], code generation [25], scientific discovery [45], and algorithm design [31]: FunSearch [35] evolves mathematical functions, EoH [30] evolves heuristics, and ADAS [24] designs agentic systems, with iterative LLM-in-the-loop search shown valuable for evaluation-heavy design tasks [50]. Applying such methods to SSTC requires resolving the two challenges from our introduction: We address Challenge I with a fitness-penalizing scheme combining OE and regret into one objective, and Challenge II by training only on small instances of a single SSTC setting and reusing the learned algorithms elsewhere—whose demonstrated generalizability validates our approach.
7 Conclusion
We study how a crowdsourcing platform can guide worker self-selection through recommendations. We introduce GRAF, a greedy framework that, for special cases of SSTC, provably yields outcomes with zero worker regret and platform optimality, and—when augmented by our LLMScore framework—generates high-quality or even near-optimal self-selection outcomes with low worker dissatisfaction in general settings. Because LLMScore outputs human-readable code, the recommendation logic it learns is transparent enough for a platform operator to inspect, audit, and adjust rather than treat as a black box. Together, these let a platform offer advice that benefits the platform and its workers alike.
Limitations and Future Work. Our evaluation is synthetic: Workers are modeled as utility-maximizing agents with parameters drawn from chosen distributions rather than estimated from a live platform, so the modeled regret and overall effort are proxies for—not measurements of—real worker dissatisfaction and solution quality. We nonetheless regard regret as behaviorally meaningful: A worker who repeatedly enters contests they would not have chosen with better advice is at risk of disengaging, so driving regret toward zero aligns with worker retention. We thus position this work as the algorithmic foundation on which human-grounded studies can build—e.g., calibrating instances against real platform data (such as Topcoder participation, skill, and prize distributions [6, 29]) and validating recommendations with crowdworkers in the loop. On the technical side, our effort solver (Brent's algorithm [7]) may return local optima, and PSNE existence in fully general SSTC remains open. Finally, the LLM-generated scoring algorithms may process the contestant index such that a relabeling of an otherwise identical instance can yield a different greedy order and hence different recommendations. Future work could consider canonicalizing the raw index [32] to ensure permutation equivariance.
Acknowledgments
Hau Chan is supported by the National Science Foundation under grants IIS:RI #2302999 and IIS:RI #2414554. Nguyen Thach is supported by the National Science Foundation under grant IIS:RI #2414554. Part of this work was conducted while Hau Chan was a Postdoctoral Fellow at the Laboratory for Innovation Science at Harvard. The content is solely the responsibility of the authors and does not necessarily represent the official views of the funding agencies.
Disclosure of LLM Use
The LLMScore framework (Section 4) queries LLMs to generate and refine GRAF's scoring functions, a central contribution of this work. Beyond that, we use LLMs to assist with copyediting and polishing the writing of this manuscript. All technical content, results, and analyses are the authors' own creation; LLMs were not used elsewhere in the research.
Ethical Considerations
This study is entirely computational: All experiments are run on synthetic SSTC instances, and no human subjects, personal data, or live platform interactions are involved. The work is motivated by improving outcomes for both crowdsourcing platforms and the workers on them, and we view low-regret recommendations as a way to reduce worker dissatisfaction rather than to extract more effort against workers' interests. We note that any deployment should respect worker autonomy—recommendations are advisory and constrained by each worker's own demand —and should be validated against real worker behavior before being relied upon, a point we return to in our Limitations and Future Work.
References
[1] Janice Ahn, Rishu Verma, Renze Lou, Di Liu, Rui Zhang, and Wenpeng Yin. 2024. Large language models for mathematical reasoning: Progresses and challenges. arXiv preprint arXiv:2402.00157 (2024).
[2] Hassene Aissi, Cristina Bazgan, and Daniel Vanderpooten. 2009. Min-max and min-max regret versions of combinatorial optimization problems: A survey. European journal of operational research 197, 2 (2009), 427–438.
[3] Elif Akata, Lion Schulz, Julian Coda-Forno, Seong Joon Oh, Matthias Bethge, and Eric Schulz. 2025. Playing repeated games with large language models. Nature Human Behaviour 9, 7 (2025), 1380–1390.
[4] Krueger Anne et al. 1974. The political economy of the rent-seeking society. American economic review 64, 3 (1974), 291–303.
[5] Axel Bernergard and Karl Warneryd. 2017. Self-allocation in contests. (2017).
[6] Kevin J Boudreau, Nicola Lacetera, and Karim R Lakhani. 2011. Incentives and problem uncertainty in innovation contests: An empirical analysis. Management science 57, 5 (2011), 843–863.
[7] Richard P Brent. 2013. Algorithms for minimization without derivatives. Courier Corporation.
[8] Philippe Casgrain, Brian Ning, and Sebastian Jaimungal. 2022. Deep Q-learning for Nash equilibria: Nash-DQN. Applied Mathematical Finance 29, 1 (2022), 62–78.
[9] Hau Chan, David C Parkes, and Karim R Lakhani. 2020. The price of anarchy of self-selection in tullock contests. In Proceedings of the 19th International Conference on Autonomous Agents and MultiAgent Systems. 1795–1797.
[10] Chen Cohen, Ishay Rabi, et al. 2026. An Algorithmic Analysis of Parallel Contests. https://doi.org/10.21203/rs.3.rs-8627610/v1
[11] Vincent Conitzer, Rachel Freedman, Jobst Heitzig, Wesley H. Holliday, Bob M. Jacobs, Nathan Lambert, Milan Mossé, Eric Pacuit, Stuart Russell, Hailey Schoelkopf, Emanuel Tewolde, and William S. Zwicker. 2024. Position: social choice should guide AI alignment in dealing with diverse human feedback. In Proceedings of the 41st International Conference on Machine Learning (Vienna, Austria) (ICML'24). JMLR.org, Article 371, 15 pages.
[12] John Conlisk. 1996. Why bounded rationality? Journal of economic literature 34, 2 (1996), 669–700.
[13] Livio Cricelli, Michele Grimaldi, and Silvia Vermicelli. 2022. Crowdsourcing and open innovation: a systematic literature review, an integrated framework and a research agenda. Review of Managerial Science 16, 5 (2022), 1269–1310.
[14] Djellel Eddine Difallah, Gianluca Demartini, and Philippe Cudré-Mauroux. 2013. Pick-a-crowd: tell me what you like, and i'll tell you what to do. In Proceedings of the 22nd international conference on World Wide Web. 367–374.
[15] Dominic DiPalantino and Milan Vojnovic. 2009. Crowdsourcing and all-pay auctions. In Proceedings of the 10th ACM conference on Electronic commerce. 119–128.
[16] Sara Fish, Paul Gölz, David C Parkes, Ariel D Procaccia, Gili Rusak, Itai Shapira, and Manuel Wüthrich. 2024. Generative Social Choice. In Proceedings of the 25th ACM Conference on Economics and Computation. 985–985.
[17] Drew Fudenberg and David K Levine. 1998. The theory of learning in games. Vol. 2. MIT press.
[18] Xingwei He, Zhenghao Lin, Yeyun Gong, A-Long Jin, Hang Zhang, Chen Lin, Jian Jiao, Siu Ming Yu, Nan Duan, and Weizhu Chen. 2024. Annollm: Making large language models to be better crowdsourced annotators. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 6: Industry Track). 165–190.
[19] Yu He, Fan Yao, Yang Yu, Xiaoyun Qiu, Minming Lu, and Haifeng Xu. 2024. The complexity of tullock contests. arXiv preprint arXiv:2412.06444 (2024).
[20] Arye L Hillman and John G Riley. 1989. Politically contestable rents and transfers. Economics & Politics 1, 1 (1989), 17–39.
[21] Teck-Hua Ho, Colin Camerer, and Keith Weigelt. 1998. Iterated dominance and iterated best response in experimental "p-beauty contests". The American Economic Review 88, 4 (1998), 947–969.
[22] Miriam Horovicz and Roni Goldshmidt. 2024. Tokenshop: Interpreting large language models with monte carlo shapley value estimation. In Proceedings of the 1st Workshop on NLP for Science (NLPScience). 1–8.
[23] John J Horton. 2023. Large language models as simulated economic agents: What can we learn from homo silicus? Technical Report. National Bureau of Economic Research.
[24] Shengran Hu, Cong Lu, and Jeff Clune. 2024. Automated design of agentic systems. arXiv preprint arXiv:2408.08435 (2024).
[25] Juyong Jiang, Fan Wang, Jiasi Shen, Sungju Kim, and Sunghun Kim. 2024. A Survey on Large Language Models for Code Generation. arXiv preprint arXiv:2406.00515 (2024).
[26] Bryan D Jones. 1999. Bounded rationality. Annual review of political science 2, 1 (1999), 297–321.
[27] Seth Karten, Wenzhe Li, Zihan Ding, Samuel Kleiner, Yu Bai, and Chi Jin. 2025. Llm economist: Large population models and mechanism design in multi-agent generative simulacra. arXiv preprint arXiv:2507.15815 (2025).
[28] Andrew King and Karim R Lakhani. 2013. Using open innovation to identify the best ideas. MIT Sloan management review 55, 1 (2013), 41.
[29] Karim R Lakhani, Kevin J Boudreau, Po-Ru Loh, Lars Backstrom, Carliss Baldwin, Eric Lonstein, Mike Lydon, Alan MacCormack, Ramy A Arnaout, and Eva C Guinan. 2013. Prize-based contests can provide solutions to computational biology problems. Nature biotechnology 31, 2 (2013), 108–111.
[30] Fei Liu, Tong Xiangliang, Mingxuan Yuan, Xi Lin, Fu Luo, Zhenkun Wang, Zhichao Lu, and Qingfu Zhang. 2024. Evolution of Heuristics: Towards Efficient Automatic Algorithm Design Using Large Language Model. In Forty-first International Conference on Machine Learning.
[31] Fei Liu, Yiming Yao, Ping Guo, Zhiyuan Yang, Xi Lin, Xiangliang Tong, Mingxuan Yuan, Zhichao Lu, Zhenkun Wang, and Qingfu Zhang. 2024. A systematic survey on large language models for algorithm design. arXiv preprint arXiv:2410.14716 (2024).
[32] Clifford Lynch. 1999. Canonicalization: A fundamental tool to facilitate preservation and management of digital information. Corporation for National Research Initiatives.
[33] Kevin Ma, Daniele Grandi, Christopher McComb, and Kosa Goucher-Lambert. 2025. Do large language models produce diverse design concepts? A comparative study with human-crowdsourced solutions. Journal of Computing and Information Science in Engineering 25, 2 (2025), 024501.
[34] Benny Moldovanu and Aner Sela. 2001. The optimal allocation of prizes in contests. American Economic Review 91, 3 (2001), 542–558.
[35] Bernardino Romera-Paredes, Mohammadamin Barekatain, Alexander Novikov, Matej Balog, M Pawan Kumar, Emilien Dupont, Francisco JR Ruiz, Jordan S Ellenberg, Pengming Wang, Omar Fawzi, et al. 2024. Mathematical discoveries from program search with large language models. Nature 625, 7995 (2024), 468–475.
[36] Yoav Shoham and Kevin Leyton-Brown. 2008. Multiagent systems: Algorithmic, game-theoretic, and logical foundations. Cambridge University Press.
[37] William E Stein. 2002. Asymmetric rent-seeking with more than two contestants. Public Choice 113, 3 (2002), 325–336.
[38] Haoran Sun, Yusen Wu, Yukun Cheng, and Xu Chu. 2025. Game Theory Meets Large Language Models: A Systematic Survey. In Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence, IJCAI-25, James Kwok (Ed.). International Joint Conferences on Artificial Intelligence Organization,
Thach et al.
10669–10677. Survey Track. doi:10.24963/ijcai.2025/1184
[39] Gokul Swamy, Christoph Dann, Rahul Kidambi, Zhiwei Steven Wu, and Alekh Agarwal. 2024. A minimaximalist approach to reinforcement learning from human feedback. In Proceedings of the 41st International Conference on Machine Learning (Vienna, Austria) (ICML'24). JMLR.org, Article 1929, 33 pages.
[40] Topcoder. 2018. 5 Weeks to Learn Topcoder is Here. https://www.topcoder.com/blog/5-weeks-learn-topcoder. Accessed: 2026-02-16.
[41] Topcoder. 2018. Competing at Topcoder as a Full-Time Job. https://www.topcoder.com/blog/competing-topcoder-full-time-job. Accessed: 2026-02-16.
[42] Topcoder. 2018. Expanding Education Tools For Community Members. https://www.topcoder.com/blog/expanding-education-tools-for-community-members/. Accessed: 2026-02-16.
[43] Gordon Tullock et al. 1980. Efficient rent seeking. Toward a theory of the rent-seeking society 97 (1980), 112.
[44] Emmanouil-Vasileios Vlatakis-Gkaragkounis, Lampros Flokas, Thanasis Lianeas, Panayotis Mertikopoulos, and Georgios Piliouras. 2020. No-regret learning and mixed nash equilibria: They do not mix. Advances in Neural Information Processing Systems 33 (2020), 1380–1391.
[45] Hanchen Wang, Tianfan Fu, Yuanqi Du, Wenhao Gao, Kexin Huang, Ziming Liu, Payal Chandak, Shengchao Liu, Peter Van Katwyk, Andreea Deac, et al. 2023. Scientific discovery in the age of artificial intelligence. Nature 620, 7972 (2023), 47–60.
[46] Xinrun Wang, Chang Yang, Shuxin Li, Pengdeng Li, Xiao Huang, Hau Chan, and Bo An. 2024. Reinforcement Nash Equilibrium Solver. In Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence, IJCAI-24, Kate Larson (Ed.). International Joint Conferences on Artificial Intelligence Organization, 265–273. Main Track. doi:10.24963/ijcai.2024/30
[47] Dawen Wu and Abdel Lisser. 2023. CCGnet: A deep learning approach to predict Nash equilibrium of chance-constrained games. Information Sciences 627 (2023), 20–33.
[48] Jiechen Xu, Lei Han, Shazia Sadiq, and Gianluca Demartini. 2024. On the role of large language models in crowdsourcing misinformation assessment. In Proceedings of the International AAAI Conference on Web and Social Media, Vol. 18. 1674–1686.
[49] Fan Yao, Chuanhao Li, Denis Nekipelov, Hongning Wang, and Haifeng Xu. 2024. Human vs. generative AI in content creation competition: symbiosis or conflict?. In Proceedings of the 41st International Conference on Machine Learning (Vienna, Austria) (ICML'24). JMLR.org, Article 2347, 29 pages.
[50] Rui Zhang, Fei Liu, Xi Lin, Zhenkun Wang, Zhichao Lu, and Qingfu Zhang. 2024. Understanding the Importance of Evolutionary Search in Automated Heuristic Design with Large Language Models. In International Conference on Parallel Problem Solving from Nature. Springer, 185–202.
[51] Zhi Zheng, Zhuoliang Xie, Zhenkun Wang, and Bryan Hooi. 2025. Monte Carlo Tree Search for Comprehensive Exploration in LLM-Based Automatic Heuristic Design. In Forty-Second International Conference on Machine Learning.
| Task Description |
|---|
| Given N players and M contests (N > M), the task is to find an ex ante priority score for each player in order to greedily add them to one of the contests.**Problem Context:**- Each player has a valuation for winning a specific contest and a set of parameters affecting winning probability and cost- Each player seeks to participate in one contest- All contests are empty initially, and players iteratively enter one of them based on their priority scores- Once entered, players in a contest exert costly effort depending on existing players- The utility of player i participating in contest j is (valuation for j × winning probability) - cost- Both winning probability and cost are proportional to the effort put in (see below)- Goal: Maximize social welfare, defined as the sum of efforts from all players |
Figure S3: Task description used in LLM prompts. “Players” here refer to contestants.
| Prompt for Initialization |
|---|
| [Task Description]First, describe your new algorithm and main steps in one sentence. The description must be inside a brace. Next, implement it in Python using the following template:[Code Template]Do not give additional explanations and do not use additional other packages. |
| Prompt for Exploration (E) |
|---|
| [Task Description]I have 2 existing algorithms with their codes as follows:No. 1 algorithm and the corresponding code are:[Algorithm 1 Description][Code 1]No. 2 algorithm and the corresponding code are:[Algorithm 2 Description][Code 2]Please help me create a new algorithm that has a totally different form from the given ones.First, describe your new algorithm and main steps in one sentence. The description must be inside a brace. Next, implement it in Python using the following template:[Code Template]Do not give additional explanations and do not use additional other packages. |
| Initial Prompt for Modification (M1) |
|---|
| [Task Description]I have one algorithm with its code as follows:Algorithm description: [Algorithm Description]Code: [Code]Welfare: [Fitness Value]If welfare is positive, please identify the main algorithm parameters and assist me in creating a new algorithm that has a different parameter settings of the score function provided. Otherwise, if welfare is negative, please help me revise the algorithm to improve its efficiency, which means that anytime a player i is added to a contest, no other players i-1 would gain in utility by deviating to another contest.First, describe your new algorithm and main steps in one sentence. The description must be inside a brace. Next, implement it in Python using the following template:[Code Template]Do not give additional explanations and do not use additional other packages. |
Figure S4: Prompts used for initialization, exploration, and modification. The prompt strategies are marked in purple. See Figure S3 for “Task Description” and Listing S1 for the designed “Code Template”. Note that by “improving efficiency”, we mean reducing regret.
Thach et al.
| Prompt for Evolving Modification Prompt Strategies |
|---|
| [Task Description] |
| I want to leverage the capabilities of LLMs to generate heuristic algorithms that can efficiently tackle this problem. I have already developed a set of initial prompts and observed the corresponding outputs. However, to improve the effectiveness of these algorithms, we need your assistance in carefully analyzing the existing prompts and their results. Based on this analysis, we ask you to generate new prompts that will help us achieve better results in solving the problem. |
| I have X existing prompts with average score (the higher the better) as follows:No. 1 prompt:Content: [Prompt Strategy]Score: [Prompt Fitness Value]...No. X prompt:Content: [Prompt Strategy]Score: [Prompt Fitness Value] |
| Note that these prompts ask LLMs to refine an input strategy by modifying, adjusting parameters, and removing redundant parts. |
| Please help me create a new prompt that has a totally different form from the given ones but can be motivated from them. Describe your new prompt and main steps in one sentence. The description must be inside a brace. Do not give additional explanations. |
Figure S5: Prompt used for evolving prompt strategies, where X is the size of the current set of prompt strategies.
| Listing S1: Code template |
|---|
| import numpy as np |
| def priority(valuations, win_prob_params, cost_params): ... Args: valuations (np.ndarray): N-by-M matrix where entry at (i, j) denotes valuation of player i for winning contest j win_prob_params (tuple): tuple of two N-by-M matrices (Q, R) storing winning probability parameters - For player i participating in contest j with effort e, the production is f_ij = Q[i, j]*e*R[i, j] - Player i wins with probability f_ij / (f_ij + F_j), where F_j is the sum of production from other players who currently participate in contest j cost_params (tuple): tuple of two N-by-M matrices (C, D) storing cost parameters - For player i participating in contest j with effort e, the cost is C[i, j]*e^D[i, j] Returns: np.ndarray ... # Placeholder (replace with your actual implementation)scores = ... return scores |
| LLM-Generated Prompt Strategy ‘MN1’ |
|---|
| Propose an algorithm that balances player incentives by adjusting the utility function of each player based on their rank within the contest, ensuring it promotes fairness and maximizes social welfare while maintaining efficiency. |
| Algorithm Description (generated using the above ‘MN1’ prompt strategy) |
| The new algorithm adjusts the utility function of each player based on their rank within the contest to improve fairness and maximize social welfare, balancing higher valuations with the players' relative positions. |
import numpy as np
def priority(valuations, win_prob_params, cost_params): ...
Args: valuations (np.ndarray): N-by-M matrix where entry at (i, j) denotes valuation of player i for winning contest j win_prob_params (tuple): tuple of two N-by-M matrices (Q, R) storing winning probability parameters - For player i participating in contest j with effort e, the production is f_ij = Q[i, j]eR[i, j] - Player i wins with probability f_ij / (f_ij + F_j), where F_j is the sum of production from other players who currently participate in contest j cost_params (tuple): tuple of two N-by-M matrices (C, D) storing cost parameters - For player i participating in contest j with effort e, the cost is C[i, j]eD[i, j]
Returns: np.ndarray Array of priority scores for the players. ...
N, M = valuations.shape Q, R = win_prob_params C, D = cost_params scores = np.zeros(N)
for j in range(M): for i in range(N): effort = (N - i) / (N + 1) ** 2 f_ij = Q[i, j] * (effort ** R[i, j]) F_j = sum(Q[k, j] * ((N - k) / (N + 1) ** 2) ** R[k, j] for k in range(N) if k != i)
winning_prob = f_ij / (f_ij + F_j + 1e-6) cost = C[i, j] * (effort ** D[i, j]) adjusted_valuation = valuations[i, j] * (N - i + 1) / N # Adjust valuation based on player rank
rank_bonus = (N - i) / N # Introduce a rank bonus to promote fairness priority_score = ((adjusted_valuation * np.log(winning_prob + 1e-6)) - (np.log(cost + 1e-6))) * rank_bonus
scores[i] += priority_score
return scores
Figure S6: High-level description of an LLM-generated scoring algorithm with overall highest OE during testing and its associated code. The score for contestant i ∈ N can be formally expressed as σ_i = φ_i ∑{j=1}^m [ŷ{ij} ln(p_{ij}(e_{ij})) - ln(c_{ij}(e_{ij}))], where “adjusted valuation” ŷ_{ij} = v_{ij} · (n-i+1)/n and “rank bonus” φ_i = (n-i)/n. The effort e_{ij} for defining p_{ij}(e_{ij}) = (f_{ij}(e_{ij})) / ∑{l∈N} f{lj}(e_{lj}) and c_{ij}(e_{ij}) is e_{ij} = (n-i)/(n+1)^2 for any j ∈ M.
Thach et al.
Algorithm Description (generated using the initial M1 prompt strategy)
The new algorithm simplifies the priority score calculation by considering only the maximum production among current participants in a contest and applying a logarithmic scaling to both winning probability and cost to reduce fluctuations in scores due to the number of participants.
import numpy as np
def priority(valuations, win_prob_params, cost_params): ...
Args: valuations (np.ndarray): N-by-M matrix where entry at (i, j) denotes valuation of player i for winning contest j win_prob_params (tuple): tuple of two N-by-M matrices (Q, R) storing winning probability parameters - For player i participating in contest j with effort e, the production is f_ij = Q[i, j]eR[i, j] - Player i wins with probability f_ij / (f_ij + F_j), where F_j is the sum of production from other players who currently participate in contest j cost_params (tuple): tuple of two N-by-M matrices (C, D) storing cost parameters - For player i participating in contest j with effort e, the cost is C[i, j]eD[i, j]
Returns: np.ndarray
Array of priority scores for the players.
N, M = valuations.shape Q, R = win_prob_params C, D = cost_params scores = np.zeros(N)
for i in range(N): for j in range(M): effort = (i + 1) / (N + 1) ** 2 f_ij = Q[i, j] * (effort ** R[i, j]) F_j_max = 0
for k in range(N): if i != k: f_kj = Q[k, j] * ((k + 1) / (N + 1) ** 2) ** R[k, j] F_j_max = max(F_j_max, f_kj) # Use max for production effect
winning_prob = f_ij / (f_ij + F_j_max + 1e-6) cost = C[i, j] * (effort ** D[i, j]) log_competition_effect = np.log(F_j_max + 1) # Logarithmic scaling to competition effect
priority_score = (valuations[i, j] * np.log(winning_prob + 1e-6)) - (np.log(cost + 1e-6)) - log_competition_effect
scores[i] += priority_score
return scores
Figure S7: High-level description of an LLM-generated scoring algorithm with overall lowest max regret during testing and its associated code. The score for contestant can be formally expressed as , where “log competition effort” and . The effort for defining , , and is for any .

Figure S8: Improvement in OE (solid) and max regret (striped) in SSTC 3. (Similar results for SSTC 4 in Figure S10.)
Thach et al.

Figure S9: Median OE vs. (minus) median max regret in SSTC 3. The Pareto front is highlighted red. Legends: ■—IBR; ▲—GRAF[handcrafted]; ●—GRAF[LLMScore] (top 10). (Similar results for SSTC 4 in Figure S11.)

Figure S10: Improvement in OE (solid) and max regret (striped) in SSTC 4.
Thach et al.

Figure S11: Median OE vs. (minus) median max regret in SSTC 4. The Pareto front is highlighted red. Legends: ■—IBR; ▲—GRAF[handcrafted]; ●—GRAF[LLMScore] (top 10).
A Supplementary Material
A.1 Missing Proofs
Proof for Theorem 2. For any game of special SSTC, there is a PSNE. Moreover, Algorithm 2 outputs one in polynomial time.
PROOF. The key to showing that Algorithm 2 returns a PSNE is to argue that (1) the partial self-selection outcome is a PSNE for the game played between the contestants up until and (2) the self-selection outcome is still a PSNE after setting a best-response of to be one. We show this by induction.
In the base step , can select any contest with zero participants and obtain a utility of , which is the highest can obtain, by exerting zero effort. Thus, is a PSNE. This holds for .
In the inductive step, we assume that is a PSNE for the game played between the contestants up until . We want to show that is also a PSNE where is constructed as in Algorithm 1. Let be the contest such that (Step 5). If , then exerts zero effort at the PSNE in any contest, and we are done by the inductive assumption. In the following, we consider the case where and all contestants are active. In this case, we need to show that (a) each contestant in would not deviate to a different contest (with the addition of ) and (b) the contestants that are not in would not deviate to contest .
CLAIM 3. No contestants in contest would deviate to a different contest after joining the contest .
PROOF. We let be the set of contestants that selected . We let and to be the equilibrium parameters in Theorem 1 restricting to for any contestant . Since ,
for any such that and is active in . From the above equilibrium condition, we have
Consider any , we have and and
where the second inequality holds through conditions (i) if all contestants in are still active after joining the contests, then we can simply replace by and the second inequality holds or (ii) if there is some contestant that is not active after joining the contest , then the last term (minus the inactive contestants) is no less than and is no less than the second term since is active after joining the contest. Thus, for any , we have
where for any where is active. Thus, no would want to deviate to any active contest of . For contest where is not active,
where the last inequality holds (i) if and all the contestants are active in or (ii) if there are some contestants that are inactive after joining . If is not active in , then the first and second inequality follows. Thus, no would deviate to 's inactive contests.
CLAIM 4. No contestants outside of contest would deviate to contest after joining the contest .
PROOF. First note that, for any contestant that is not in , can potentially deviate if there is at least two contestants (including ) in 's contest, otherwise, would achieve the highest utility and exert zero effort if is the only contestant. In addition, must be active since it was a best-response, otherwise is not active. Thus, below, we consider any contestant (not in ) such that there are at least two contestants in 's contest. Moreover, we assume, without loss of generality, that contestant is still active in contest after joining ,
Thach et al.
otherwise, by the inductive assumption, would not deviate. Also, without loss of generality, we consider to be the one with the highest value in (i.e., if does not deviate then, other lower value contestants in would not deviate). We denote 's contest by . As such, we need to show that
(S9)
We present the following two inequalities to help us in our proof. Since we assume that i is still active after l joining j, by the equilibrium conditions, this implies that
of the first contestants excluding i. Next, let be the last contestant that joined contest , we have that
which is 's best response condition is to be in contest instead of j when i has not joined contest j.
Given the above two inequalities, we are ready to show that Inequality S9 holds. For the sake of contradiction, we assume that Inequality S9 does not hold. We have that
Applying Inequality S11, we have
\frac{\sum_{w\in C(j^{\prime})\setminus\{l\}}\frac{1}{v_{w}}+\frac{1}{v_{l}}}{p_{j^{\prime}}-1}\geq\frac{\sum_{w\in C(j)\setminus\{\varepsilon,i\}}\frac{1}{v_{w}}+\frac{1}{v_{\varepsilon}}}{p_{j\cup\{\varepsilon\}}\setminus\{i\}}-1}.Multiplying the above by , we get
where the second inequality is due to the fact that , where the third inequality is by first replacing by , applying Inequality S10, and noting that . This is a contradiction, and Inequality S9 must hold. Hence, no contestant l would want to deviate to j.
Along with the above two claims, we have shown that Algorithm 2 finds a PSNE in polynomial time.
Proof for Theorem 3. In a uniform SSTC game with contestants, every PSNE achieves optimal OE. (We also provide additional results for the case of .)
PROOF. We first characterize the overall effort in the PSNE of uniform SSTC.
LEMMA 1. In any PSNE , when , and when .
PROOF. When , it is optimal for each contestant to select a different contest and obtains a value , which is the highest utility value. The total effort is zero as each contest has at most one contestant.
In the case of , we first claim that in every PSNE, the difference of the numbers of contestants between any two contests is no more than one. For the sake of contradiction, suppose there is a PSNE such that there exist contests . Consider a contestant who selects contest (i.e., ). The utility of is , which is larger if deviates to with . Thus, in any PSNE, the difference of the numbers of contestants between two contests is no more than one. As a result, it is not hard to see that there are contests that have contestants while the remaining contests have contestants.
Next, we compute the overall effort in optimal solutions.
\begin{array}{r l}&{\mathrm{L E M M A~2.~I n~a n y~a^{o p t}\in A^{n},~O E(a^{o p t})=v[\frac{(n-3(n\operatorname{m o d}2))}{2}\frac{1}{2}+(n\operatorname{m o d}2)\frac{2}{3}]}~w h e n~2\leq n\leq2m~a n d~O E(a^{o p t})=v[\left(m-(n\operatorname{m o d}m)\right)\left(\left\lfloor\frac{\frac{n}{m}\right\rfloor-1}{\lfloor\frac{n}{m}\rfloor}\right)+}\\ &{(n\operatorname{m o d}m)\left(\left\lfloor\frac{\frac{n}{m}}{\lfloor\frac{n}{m}\rfloor+1}\right\rfloor\right)~w h e n~n>2m.}\end{array}PROOF. We consider two cases where the number of contestants is less than twice of the contests () and the number of contestants is more than twice of the contests ().
The first thing to note is that the overall effort generated from each contest has a diminishing return property or concave (i.e., ) when they are more than one contestant. As a result, it is optimal for the platform to place contestants into the contests with the least numbers of contestants.
In the case of , it is never optimal for the platform to put only one contestant in a contest because a contest with only one contestant would yield zero effort. Thus, each contest should have at least two contestants. In an optimal solution, it is clear that when there is an odd number of contestants, one contest should have three contestants while contests have two contestants due to the diminishing return property. Thus, the overall effort is .
In the case of , each contest has at least two contestants. Moreover, it is optimal to place contestants into the contests with the least numbers of contestants. Similar to the above lemma, there are contests that have contestants while the remaining contests have contestants.
Combining the above lemmas, we derive the ratio
\begin{cases}\frac{\left\lfloor\frac{(n-3(n\operatorname{m o d}2))}{2}\frac{1}{2}+(n\operatorname{m o d}2)\frac{2}{3}\right\rfloor}{(m-(n\operatorname{m o d}m))\left(\left\lfloor\frac{\frac{n}{m}}{\lfloor\frac{n}{m}\rfloor}\right\rfloor\right)+(n\operatorname{m o d}m)\left(\left\lfloor\frac{\frac{n}{m}}{\lfloor\frac{n}{m}\rfloor}+1\right\rfloor)}&m<n\leq2m\\1&n>2m\end{cases},where the top expression simplifies to 1 when .
Upper Bound of Individual Effort in a Tullock Contest. Consider a Tullock contest with contestants as formalized in Section 2.1 and let with . Notice that 's utility, , is maximized at when is the sole active contestant. Furthermore, since the utility is nonnegative (otherwise would choose which yields a utility of 0), it follows that
Thus, 's maximum effort is .
A.2 Complete Implementation Details
All experiments were conducted under Ubuntu 20.04 on a Linux virtual machine equipped with NVIDIA GeForce RTX 3050 Ti GPU and 12th Gen Intel(R) Core(TM) i7-12700H CPU @2.3GHz. We chose GPT-4o mini as our pretrained LLM. The full Python 3.10 implementation accompanies this submission as supplementary material (see Section 5 for our release commitment).
We provide the remaining LLMScore hyperparameters here; the problem settings SSTC 1–4 and our training-on-SSTC 3 protocol are described in Section 5. We conduct three runs of LLMScore and report the average performance in median OE and median max regret across 1,000 instances. The LLM temperature is fixed at 1. The evaluation resource is defined in terms of the maximum number of populations, for which we set to 20. The population size is 20, and the maximum running time for each instance is 180 seconds. We set the threshold for penalizing to 0.3. For the proposed prompt-refinement module (Section 4), we set the size of top individuals in the population, , to 3; the number of maximum consecutive populations without improvement (for detecting stagnation), , to 3; the size of the top individuals produced by a prompt strategy (for computing its score), , to 3; and the maximum size of the set of prompt strategies to 5. For quality control of the LLM-generated prompt strategies, we only accept one if at least one of its produced algorithms is valid, i.e., not experiencing timeout or coding errors.
All the above choices were made mainly to ensure reasonable runtime (typically a few hours) without hampering the generation of high-quality algorithms.
Thach et al.
Effort Computation. For SSTC 3 and SSTC 4, we compute for contestants in each contest by running best-response dynamics [17] detailed in Algorithm 5, where we set to 100, to , to 1, and initialize to a vector of all . We use Brent's algorithm [7] for efficient nonconvex optimization to approximate in Step 5.
Algorithm 5: Best Response Dynamics in Tullock Contests Without Equilibrium Characterization
Input: A Tullock contest with contestants; ; ; damping coefficient
Return: Approximate equilibrium effort vector
1: Initialize
2: for do
3: Let
4: for do
5: Compute via nonconvex optimization # previously defined in Section 2.1
6: Update
7: if then
8: Stop program and return
Iterated Best Response. Algorithm 6 details IBR. Due to its dependence on the initial (randomly generated) self-selection outcome , for each instance, we run 10 trials of IBR with different starting and report the average performance (OE and max regret) across runs. If cycle occurs, i.e., at iteration exactly matches at any prior iteration , we stop the program early and average the performance of the actions from .
Algorithm 6: Iterated Best Response
Input: An SSTC game with contestants;
Return: A self-selection outcome (or a list thereof when cycle occurs)
1: Initialize randomly satisfying for every
2: for do
3: for do
4: Let
5: Let # Recall that
6: for , where #
7: Update
8: if cycle detected for a then
9: Stop program
Given the generation of SSTC instances described in Section 5, our initialization conforms to the derived (see “A.1 Missing Proofs”).