Table of Contents
Fetching ...

Beyond the Prompt: Assessing Domain Knowledge Strategies for High-Dimensional LLM Optimization in Software Engineering

Srinath Srinivasan, Tim Menzies

TL;DR

This work tackles the challenge of high-dimensional software engineering optimization, where LLMs struggle to match Bayesian methods. It proposes four domain-knowledge integration architectures—H-DKP, AMP, DAPR, and HKMA—to generate better warm starts for LLM-based optimization. Through MOOT-based experiments and rigorous statistical analysis (Chebyshev distance, Scott-Knott, Cliff's Delta), it characterizes when and why these approaches improve optimization guidance, including across dimensional tiers. The work advances scalable, knowledge-grounded LLM guidance for complex SE tasks and informs practical trade-offs between performance and compute.

Abstract

Background/Context: Large Language Models (LLMs) demonstrate strong performance on low-dimensional software engineering optimization tasks ($\le$11 features) but consistently underperform on high-dimensional problems where Bayesian methods dominate. A fundamental gap exists in understanding how systematic integration of domain knowledge (whether from humans or automated reasoning) can bridge this divide. Objective/Aim: We compare human versus artificial intelligence strategies for generating domain knowledge. We systematically evaluate four distinct architectures to determine if structured knowledge integration enables LLMs to generate effective warm starts for high-dimensional optimization. Method: We evaluate four approaches on MOOT datasets stratified by dimensionality: (1) Human-in-the-Loop Domain Knowledge Prompting (H-DKP), utilizing asynchronous expert feedback loops; (2) Adaptive Multi-Stage Prompting (AMP), implementing sequential constraint identification and validation; (3) Dimension-Aware Progressive Refinement (DAPR), conducting optimization in progressively expanding feature subspaces; and (4) Hybrid Knowledge-Model Approach (HKMA), synthesizing statistical scouting (TPE) with RAG-enhanced prompting. Performance is quantified via Chebyshev distance to optimal solutions and ranked using Scott-Knott clustering against an established baseline for LLM generated warm starts. Note that all human studies conducted as part of this study will comply with the policies of our local Institutional Review Board.

Beyond the Prompt: Assessing Domain Knowledge Strategies for High-Dimensional LLM Optimization in Software Engineering

TL;DR

This work tackles the challenge of high-dimensional software engineering optimization, where LLMs struggle to match Bayesian methods. It proposes four domain-knowledge integration architectures—H-DKP, AMP, DAPR, and HKMA—to generate better warm starts for LLM-based optimization. Through MOOT-based experiments and rigorous statistical analysis (Chebyshev distance, Scott-Knott, Cliff's Delta), it characterizes when and why these approaches improve optimization guidance, including across dimensional tiers. The work advances scalable, knowledge-grounded LLM guidance for complex SE tasks and informs practical trade-offs between performance and compute.

Abstract

Background/Context: Large Language Models (LLMs) demonstrate strong performance on low-dimensional software engineering optimization tasks (11 features) but consistently underperform on high-dimensional problems where Bayesian methods dominate. A fundamental gap exists in understanding how systematic integration of domain knowledge (whether from humans or automated reasoning) can bridge this divide. Objective/Aim: We compare human versus artificial intelligence strategies for generating domain knowledge. We systematically evaluate four distinct architectures to determine if structured knowledge integration enables LLMs to generate effective warm starts for high-dimensional optimization. Method: We evaluate four approaches on MOOT datasets stratified by dimensionality: (1) Human-in-the-Loop Domain Knowledge Prompting (H-DKP), utilizing asynchronous expert feedback loops; (2) Adaptive Multi-Stage Prompting (AMP), implementing sequential constraint identification and validation; (3) Dimension-Aware Progressive Refinement (DAPR), conducting optimization in progressively expanding feature subspaces; and (4) Hybrid Knowledge-Model Approach (HKMA), synthesizing statistical scouting (TPE) with RAG-enhanced prompting. Performance is quantified via Chebyshev distance to optimal solutions and ranked using Scott-Knott clustering against an established baseline for LLM generated warm starts. Note that all human studies conducted as part of this study will comply with the policies of our local Institutional Review Board.
Paper Structure (39 sections, 2 equations, 1 table, 2 algorithms)