arXiv:2610.24913cs.AIOct 2026

Manuscript Offprint

arXiv:2610.24913

A Cross-Domain Evaluation of Prompting Techniques for Large Language Models

Kevin Krazius, Tim Schlippe, Paul Libbrecht

Kevin Krazius, Tim Schlippe, Paul Libbrecht

IU International University of Applied Sciences

Germany

tim.schlippe@iu.org

Abstract—Prompt engineering has become a central mechanism for guiding the behavior of Large Language Models (LLMs) across a wide range of reasoning and language understanding tasks [1], [2]. However, existing studies frequently evaluate prompting techniques using different LLMs, datasets, or task settings, making direct comparisons across methods and domains difficult [3]. Consequently, in this paper we present a controlled cross-domain evaluation of Zero-Shot prompting, Few-Shot prompting, Retrieval-Augmented Generation (RAG), and automatic prompt optimization based on a PE2-inspired optimization pipeline [4]–[6]. All experiments were conducted with the same LLM and evaluated on six benchmark datasets covering arithmetic reasoning, logical reasoning, commonsense reasoning, and factual verification. The results show that no prompting strategy consistently outperforms the others across all domains, and pairwise statistical comparisons of the highest-performing configurations revealed no significant differences. RAG achieves the highest overall average accuracy of 78.33% when 300 examples are available for retrieval, while Few-Shot Prompting achieves comparatively high accuracies across several structured reasoning tasks. Zero-Shot Prompting remains competitive on tasks with self-contained inputs, whereas the PE2-inspired optimization approach produces stable but not systematically superior results compared to the other evaluated prompting techniques. Furthermore, increasing the number of task-specific examples does not consistently improve performance across prompting techniques, indicating strong domain and task dependency. These findings suggest that prompting techniques should be selected adaptively based on task characteristics rather than treated as universally applicable optimization strategies.

Index Terms—Prompt Engineering, Large Language Models, RAG, Few-Shot Learning

I. INTRODUCTION

Large Language Models (LLMs) have fundamentally transformed Natural Language Processing (NLP) by enabling strong performance across a broad range of language understanding and reasoning tasks without task-specific parameter updates or supervised fine-tuning [4], [7]. Instead of modifying model parameters for individual downstream tasks, many modern approaches rely on prompting techniques that guide LLM behavior through natural language instructions and contextual examples [1], [2].

Among the most widely used prompting techniques are Zero-Shot Prompting, Few-Shot Prompting, Retrieval-Augmented Generation (RAG), and automatic prompt optimization approaches [6], [8], [9]. Zero-Shot Prompting relies exclusively on task instructions without providing demonstration examples, whereas Few-Shot Prompting incorporates example-based demonstrations directly into the prompt context [4]. RAG extends the prompting process by retrieving external knowledge or task-relevant context before response generation, thereby improving access to information beyond the LLM's parametric knowledge [5], [10], [11]. More recently, automatic prompt optimization approaches have attempted to improve prompt quality algorithmically instead of relying solely on manual prompt engineering [6].

Although numerous studies report significant performance improvements through advanced prompting strategies, the comparability of existing results remains limited: Many evaluations use different LLMs, benchmark datasets, evaluation metrics, and experimental configurations, making it difficult to isolate the actual impact of individual prompting techniques [3]. Furthermore, several studies focus primarily on a single reasoning domain, such as mathematical reasoning or factual question answering, rather than evaluating prompting techniques consistently across multiple reasoning tasks.

Consequently, our paper addresses these limitations through a controlled cross-domain evaluation of prompting techniques using a unified experimental setup. GPT-4o-mini was used as a representative LLM across all experiments to isolate differences between prompting techniques from differences between LLMs. Identical evaluation procedures were applied across six benchmark datasets covering arithmetic reasoning, logical reasoning, commonsense reasoning, and factual verification tasks. The evaluated prompting techniques include Zero-Shot Prompting, Few-Shot Prompting, Retrieval-Augmented Generation, and a PE2-inspired automatic prompt optimization pipeline. These techniques were selected as they represent four fundamentally different prompting paradigms: instruction-only prompting, example-based prompting, retrieval-augmented prompting, and automatic prompt optimization.

The primary objective of our paper is to analyze how different prompting techniques influence LLM performance across reasoning domains and whether more complex prompting approaches consistently outperform simpler prompting strategies. In addition, our paper investigates the extent to which automatically optimized prompts generalize across benchmark datasets compared to manually designed prompts.

Our main contributions are summarized as follows:

  • A controlled comparative evaluation of multiple prompting techniques using the same LLM and a unified experimental setup.

• A cross-domain benchmark analysis covering arithmetic reasoning, logical reasoning, commonsense reasoning, and factual verification tasks.

• An empirical evaluation of a PE2-inspired [6] automatic prompt optimization pipeline.

• An analysis of the relationship between prompt complexity, example-based context integration, and reasoning performance.

To support reproducibility and facilitate future research, all experimental results generated in this study have been made publicly available 1^{1}.

The remainder of this paper is structured as follows: Section II reviews related work on LLMs, prompting techniques, and prompt optimization. Section III describes the experimental setup, benchmark datasets, and evaluation methodology. Section IV presents the experimental results and cross-domain analysis. Finally, Section VI summarizes the findings, discusses limitations, and outlines directions for future research.

References (25)