0 cumulative citations
View corpus contextAdaptive prompt selection slashes LLM grading costs by roughly three-quarters without losing accuracy: a bandit-driven grader matched grid-search agreement with human IELTS scores while dramatically cutting calls and tokens.
Citation observations
Cumulative provider counts captured on specific dates; providers are never combined.
Large Language Models (LLMs) demonstrate strong capabilities in automated essay scoring (AES), but contemporary approaches typically employ fixed prompt selection, failing to address operational cost concerns and evolving optimal configurations. We propose a novel cost-aware approach that treats each prompt type as an arm in a multi-armed bandit (MAB) controller, enabling adaptive selection of optimal prompting strategies during inference. Our experiments on IELTS Writing Task 2 essays show that the MAB framework achieves comparable scoring accuracy to exhaustive grid search while reducing LLM calls by 78.4\% to find the best grading approach. We implemented four distinct grading recipes (multi-step vs. single-step assessment, with vs. without calibration examples) and found that the multi-step approach with examples achieves the highest accuracy. By tracking token usage and latency alongside agreement metrics, we produce the first cost-reliability learning curves for essay scoring, providing actionable insights for educational technology platforms that must balance operational costs against assessment validity. This work represents the first application of online control mechanisms to adaptively select prompting strategies in AES, transforming prompt selection from an offline hyperparameter optimization problem into an efficient online learning task.
Summary
Main Finding
Treating prompt–model combinations as arms in a multi-armed bandit (MAB) controller lets an AES system discover and concentrate on cost-effective prompting strategies online. On IELTS Task 2 essays the bandit approach matched exhaustive grid-search accuracy while cutting LLM calls by ~78% and token use by ~73%, with the best-performing recipe being a multi-step, example-calibrated prompt.
Key Points
- Problem: prior LLM-based AES work uses static prompt selection (grid search) that ignores operational costs and changing optima.
- Proposal: cast each prompt–model recipe as an arm in an epsilon-greedy MAB; reward is shaped by scoring accuracy (negative absolute error) and can include token-cost penalties.
- Recipes tested (4): multi-step with examples, multi-step without examples, single-step with examples, single-step without examples. Multi-step decomposes IELTS criteria (Task Response; Coherence & Cohesion; Lexical Resource; Grammatical Range & Accuracy) then computes an overall score.
- Best recipe: multi-step with calibration examples. MAB allocated ≈70% of pulls to it after exploration stabilized (~step 100).
- Surprising ablation: simplified prompts (no long rubric descriptions) improved performance and reduced tokens versus detailed rubric prompts — e.g., Multi-Step+Examples (simplified) MAE 0.862, QWK 0.566 vs detailed-rubric MAE 0.965, QWK 0.485.
- Accuracy summary (approximate from experiments):
- Multi-step + examples: MAE ≈ 0.85–0.86, QWK ≈ 0.55–0.57
- Single-step + examples: MAE ≈ 1.0
- Single-step no examples: MAE ≈ 1.45
- Multi-step no examples: MAE ≈ 1.55 (worst)
- Cost/resource savings (Table 1):
- LLM calls: Grid search = 7,870; MAB = 1,697 → 78.4% fewer calls
- Tokens: Grid search ≈ 10.9M; MAB ≈ 3.0M → 72.8% fewer tokens
- Estimated experiment cost: Grid ≈ $1.4 vs MAB ≈ $0.4 (~70% cost reduction)
- Other metrics tracked: latency, per-call token usage, and learning curves (first cost–reliability curves in AES context).
- Implementation: Google Gemini Flash 2.5 used in experiments; code and policy logs planned for release.
Data & Methods
- Dataset: IELTS Writing Scored Essays (Kaggle), Academic Task 2 subset — 787 essays with band scores 1–9.
- Prompting:
- Dynamic prompt assembly module (prompt library + runtime injection of essay and examples).
- Four recipes combining single-step vs multi-step and with vs without calibration examples.
- Bandit controller:
- Epsilon-greedy MAB (ϵ = 0.2 fixed) balancing exploration/exploitation.
- Reward = negative absolute error (± optional token cost penalty).
- 500-step experiment reported; arms pulled according to learned policy.
- Baseline: exhaustive grid search over recipes (apply all recipes to all essays).
- Model: Google Gemini 2.5 (chosen for performance/latency/cost).
- Evaluation metrics: Mean Absolute Error (MAE) against human scores, Quadratic Weighted Kappa (QWK), token consumption, latency, and estimated API cost.
- Ablation: compared prompts with detailed rubric descriptions vs simplified prompts (no rubric text).
Implications for AI Economics
- Operational cost reduction: Adaptive selection can sharply lower token and API-call budgets for large-scale AES deployments, directly reducing operating expenses for edtech and testing organizations.
- Dynamic pricing & model updates: Framing prompt choice as an online learning task lets systems adapt to model upgrades, price changes, or shifts in essay populations — reducing the need for repeated offline re-tuning.
- Cost–reliability tradeoffs: Platforms can formally trade accuracy for savings by incorporating token/call penalties into reward signals or by dynamically switching to cheaper recipes for low-stakes use cases.
- Product design recommendations:
- Instrument per-call tokens, latency, and reliability metrics (MAE/QWK) and use them jointly in selection policies.
- Implement bandit or contextual-bandit routing (contextual variants can exploit essay features to further improve efficiency).
- Use human review or conservative routing for borderline/high-stakes items; bandits are good for average-case efficiency but need oversight for fairness/robustness.
- Market & supply effects: reducing average per-essay compute demand can lower marginal costs and enable scaling (more customers, lower prices) — but widespread adoption could shift LLM provider revenue patterns and unit pricing strategies.
- Risks and externalities:
- Bandits can entrench subtle biases if reward signals reflect biased human labels or if cheaper prompts exhibit systematic errors across subgroups — must monitor fairness metrics and ensure psychometric validity.
- Adaptive controllers require auditability and logging (policy logs, pulls per arm) for regulatory compliance in high-stakes assessment.
- Research & investment priorities from an economics perspective:
- Evaluate contextual bandits and hybrid strategies (cheap routing + expensive fallback) for marginal gains.
- Study long-run effects of adaptive routing on pricing negotiations with LLM vendors and on total compute demand.
- Quantify welfare gains from decreased testing costs (expanded access, new market segments) versus risks from potential degradation of measurement quality for minority groups.
Short actionable takeaways for practitioners: - Start by instrumenting token and accuracy metrics; run a small-scale epsilon-greedy bandit to identify promising recipes. - Include token/cost penalties in the reward if cost savings are a priority. - Use multi-step, example-calibrated prompts as a strong default but test simplified prompts too — more rubric text is not always better. - Add human-in-the-loop checks and fairness monitoring before deploying in high-stakes contexts. - Explore contextual bandits next (essay features, candidate metadata) to capture per-item heterogeneity and improve efficiency further.
Assessment
Claims (8)
| Claim | Direction | Outcome | Confidence & Evidence | Details |
|---|---|---|---|---|
| The multi-armed bandit (MAB) framework reduced the number of LLM calls by 78.4% compared with exhaustive grid search. Organizational Efficiency | positive | Number of LLM calls required for prompt-strategy evaluation |
Reading fidelity
high
Study strength
medium
|
n=500
78.4% reduction
|
| The MAB framework reduced token consumption by 72.8% relative to grid search. Organizational Efficiency | positive | Total tokens consumed during grading-strategy evaluation |
Reading fidelity
high
Study strength
medium
|
n=500
72.8% reduction
|
| Multi-step grading with calibration examples achieved the best reported scoring accuracy among the four prompting recipes. Output Quality | positive | Agreement and error of automated essay scores relative to human scores |
Reading fidelity
high
Study strength
low
|
n=500
MAE approximately 0.85; QWK approximately 0.55
|
| The MAB controller allocated most grading attempts to the multi-step-with-examples recipe, selecting it for approximately 350 of 500 pulls. Task Allocation | positive | Frequency of adaptive prompt-recipe selection |
Reading fidelity
high
Study strength
low
|
n=500
approximately 350 pulls; over 70% of pulls
|
| Removing detailed rubric descriptions improved grading accuracy for the multi-step-with-examples recipe in the ablation study. Output Quality | positive | Mean Absolute Error and Quadratic Weighted Kappa against human essay scores |
Reading fidelity
high
Study strength
low
|
MAE 0.862 versus 0.965; QWK 0.566 versus 0.485
|
| The multi-step-with-examples recipe was more accurate but more expensive per essay than the single-step recipes. Organizational Efficiency | mixed | Essay-scoring error and estimated API cost per essay |
Reading fidelity
high
Study strength
low
|
MAE 0.85 at approximately $0.0011 per essay versus MAE 1.0 at $0.0003 for single-step with examples
|
| In the reported experiment, MAB reduced total estimated API costs by approximately 70% compared with grid search while maintaining comparable grading accuracy. Organizational Efficiency | positive | Total estimated API cost and grading accuracy |
Reading fidelity
high
Study strength
low
|
n=500
approximately 70% cost reduction; $0.4 versus $1.4
|
| The study evaluated 787 IELTS Academic Task 2 essays with official human-assigned band scores ranging from 1 to 9. Other | null_result | Dataset composition and human reference scores |
Reading fidelity
high
Study strength
medium
|
n=787
|