home/productivity/autoprompt

Autoprompt

GPTClaudeDeepSeek··207 copies·updated 2026-07-14
autoprompt.prompt
# AutoPrompt: The pioneering breakthrough

**Date**: October 29, 2020  
**Institution**: University of California, Irvine and Berkeley  
**Original Paper**: [AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated Prompts](https://arxiv.org/abs/2010.15980) [[PDF](../papers/2010.15980.pdf)]

## Algorithm

AutoPrompt established automated prompt optimization as a viable research direction, solving the fundamental problem of manual prompt engineering inefficiency for probing knowledge in masked language models. The method introduced gradient-guided search over discrete token space using hot-flip technique with first-order Taylor expansion, automatically generating optimal "trigger tokens" that could elicit specific behaviors from pre-trained models.

Core innovation: First gradient-based discrete prompt optimization method that demonstrated MLMs possess inherent capabilities for sentiment analysis, natural language inference, and fact retrieval without fine-tuning. The approach achieved performance on par with state-of-the-art supervised models while being parameter-free, significantly outperforming manually created prompts on the LAMA benchmark.

## Limitations

- Training instability due to discrete optimization
- Restricted to masked language models
- Required careful gradient approximation techniques

## Comparison with Other Work

AutoPrompt was the first method to demonstrate that prompt optimization could be automated using gradient-based techniques. Unlike later methods like APE and OPRO that use LLMs as optimizers, AutoPrompt directly optimizes tokens using gradient approximations. It differs from continuous methods like Prefix-Tuning and Prompt Tuning which optimize continuous embeddings rather than discrete tokens. While effective, it's less stable than reinforcement learning approaches like RLPrompt and evolutionary methods like EvoPrompt.

when to use it

Community prompt sourced from the open-source GitHub repo sarkar-dipankar/llm-prompt-optimisation (no explicit license). A "Autoprompt" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

productivitycommunitydeveloper

source

sarkar-dipankar/llm-prompt-optimisation · no explicit license