What Should an LLM Know? Knowledge-Guided Warm Starts for Software Optimization
Srinath Srinivasan, Tim Menzies
Abstract
Large language models (LLMs) process gigabytes in minutes; human experts work far more slowly. Prior studies that explored combinations of human/AI optimizers ignore this gap. Those studies asked systems or humans to label too many examples (e.g., SynthCore needs over four dozen per trial). Here, we test human and AI knowledge under a budget where evaluation is practical (a few dozen labels or fewer). We compare five baselines (random search, RRP, EZR, few-shot prompting, and a budget-matched SynthCore variant) against three ways to give an LLM domain knowledge before it proposes its first configurations: (1) AMP lists the domain's rules, then checks each candidate against them; (2) HKMA adds scouted data or documentation to the prompt; and (3) H-DKP has human experts correct the LLM's rules. We find that domain knowledge improves the "start-up" phase of LLM optimization, but only when that knowledge is checked, by the LLM itself or by a human expert. Across 49 datasets, unchecked knowledge did no better than few-shot prompting or EZR. On the other hand, AMP's self-checking variant (AMP-4) reached the best statistical rank in 44 of 49 datasets (budget-matched SynthCore: 23 of 49), and H-DKP did so in 7 of 8 expert studies. These checks cost little: half a cent of LLM calls per trial, or 6 to 10 expert contacts. Hence we say LLMs may not need more data, but rather their knowledge needs checking (and checking is cheap).
Create a lesson
Related papers
SWE-growth: Teacher-Guided Adaptive Self-Play for Software Engineering Agents
Shared title terminology · Songshi Liang, Zixuan Huang, Mingxuan Song et al.
Repository-Context-Guided Image Understanding for Agentic Software Development
Shared title terminology · Fumiki Yohena, Toshiaki Sota, Shota Suzuki et al.
From 6G Capabilities to Software-Business Value: A Multivocal Review of Characteristics, Opportunities, Challenges
Shared title terminology · Muhammad Zohaib, Azeem Akbar, Sami Hyrynsalmi et al.
Simulation-Based Testing of RCM-Constrained Robotic Software via Task Manifolds
Shared title terminology · Zhenyu Jiang, Yanlin Li, Rongjie Yan et al.
SWE-Recreation: Benchmarking Coding Agents for Software Recreation
Shared title terminology · Zhiyao Xu, Zhanjie Ding, Hongyao Yu et al.
Ontology of Software Maintenance
Shared title terminology · Luis Olsina, Pablo Becker, Maria Fernanda Papa