Skip to main content
QUICK REVIEW

[Paper Review] A Survey on Prompting Techniques in LLMs

Prabin Bhandari|arXiv (Cornell University)|Nov 28, 2023
Topic ModelingComputer Science2 citations
TL;DR

This paper provides a comprehensive survey of prompting techniques for autoregressive large language models (LLMs), categorizing existing methods into a structured taxonomy and identifying key challenges such as structured data handling, answer engineering, and prompt injection. It highlights that prompting enables effective zero-shot or few-shot inference without fine-tuning, but significant open problems remain in robustness, generalization, and safety.

ABSTRACT

Autoregressive Large Language Models have transformed the landscape of Natural Language Processing. Pre-train and prompt paradigm has replaced the conventional approach of pre-training and fine-tuning for many downstream NLP tasks. This shift has been possible largely due to LLMs and innovative prompting techniques. LLMs have shown great promise for a variety of downstream tasks owing to their vast parameters and huge datasets that they are pre-trained on. However, in order to fully realize their potential, their outputs must be guided towards the desired outcomes. Prompting, in which a specific input or instruction is provided to guide the LLMs toward the intended output, has become a tool for achieving this goal. In this paper, we discuss the various prompting techniques that have been applied to fully harness the power of LLMs. We present a taxonomy of existing literature on prompting techniques and provide a concise survey based on this taxonomy. Further, we identify some open problems in the realm of prompting in autoregressive LLMs which could serve as a direction for future research.

Motivation & Objective

  • To provide a systematic taxonomy of prompting techniques for autoregressive LLMs.
  • To survey existing literature on prompting methods in a structured, organized manner.
  • To identify open problems in prompting, including handling structured inputs, improving answer extraction, and mitigating prompt injection attacks.
  • To guide future research by outlining key challenges and potential directions in prompting for LLMs.

Proposed method

  • The paper develops a taxonomy of prompting techniques based on input format, instruction style, and task type.
  • It surveys existing prompting methods across categories, including zero-shot, few-shot, chain-of-thought, and prefix-tuning approaches.
  • The analysis focuses on how prompts guide autoregressive LLMs toward desired outputs without fine-tuning.
  • It evaluates prompting techniques through their effectiveness in downstream NLP tasks such as classification, generation, and reasoning.
  • The paper examines recent advances in handling structured data (e.g., tables, graphs) via prompting, including methods like GraphPrompt and table-to-text prompting.
  • It discusses the use of auxiliary models to detect prompt injection attacks, proposing a defense strategy using LLM-based detectors.

Experimental results

Research questions

  • RQ1How can prompting techniques be systematically categorized to reflect their functional and structural differences in autoregressive LLMs?
  • RQ2What are the key limitations of current prompting methods in handling structured inputs like tables, graphs, or trees?
  • RQ3How can the reliability and accuracy of generated answers be improved when LLMs produce verbose or ambiguous outputs?
  • RQ4To what extent can prompt injection attacks bypass safety mechanisms in deployed LLMs?
  • RQ5What are the most promising directions for future research in prompting to improve robustness, generalization, and safety?

Key findings

  • Prompting has replaced fine-tuning as the dominant paradigm for deploying LLMs on downstream tasks, enabling zero-shot or few-shot inference with minimal or no retraining.
  • Emergent abilities in LLMs—such as in-context learning—arise from scale and are effectively unlocked through structured prompting, even without model updates.
  • Current prompting methods struggle with structured data: while some approaches like GraphPrompt exist, they often require pre-training, limiting practicality.
  • Answer engineering remains a major challenge, as LLMs frequently generate non-exact or ambiguous outputs, requiring task-specific post-processing like regex or synonym matching.
  • Prompt injection attacks can bypass safety mechanisms through subtle prompt engineering, demonstrating that current defenses are fragile and require stronger, adaptive solutions.
  • The paper identifies a critical need for generalizable, robust prompting frameworks that can handle diverse input formats, improve answer reliability, and resist adversarial manipulation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.