Optimization of Adaptive Prompt Engineering for Large Language Models via Bayesian Inference in Low-Resource Settings

The rapid proliferation of Large Language Models (LLMs) has necessitated the development of effective prompt engineering strategies to harness their full potential. However, the stochastic nature of LLM outputs and the vast, discrete combinatorial space of natural language make manual prompt design a laborious and often suboptimal process. While automated prompt optimization techniques exist, they typically require significant computational resources, massive datasets, or access to model gradients, rendering them inaccessible for low-resource environments and edge computing applications. This paper proposes a novel framework for optimizing adaptive prompt engineering using Bayesian Inference. We introduce a sample-efficient methodology that treats prompt selection as a black-box optimization problem, utilizing Gaussian Processes to model the latent manifold of prompt effectiveness. By strategically balancing exploration and exploitation through acquisition functions, our approach converges on high-performing prompts with significantly fewer model queries than traditional grid search or reinforcement learning paradigms. We demonstrate that this method achieves state-of-the-art performance on reasoning benchmarks while reducing token consumption by an order of magnitude, making advanced prompt engineering feasible for academic laboratories and limited-budget applications.

Paper

The full text of this publication is not hosted on 44B due to licensing.

Read it at OpenAlex

Similar papers

© 2026 NYSGPT2525 LLC