Search papers, labs, and topics across Lattice.
This paper investigates the nature of prompts as linguistic objects by analyzing a dataset of 57.5K unique transactional prompts collected from GitHub. By introducing a structured ontology to categorize and transform these prompts into structured linguistic objects, the authors reveal significant diversity in usage patterns across various languages, domains, tasks, and modalities. The findings highlight a Zipf-like distribution of prompt usage, underscoring the importance of understanding prompt design to enhance the performance of generative LLMs.
Analyzing 57.5K transactional prompts reveals a surprising Zipf-like distribution in usage patterns, challenging assumptions about prompt effectiveness across different contexts.
The behavior of contemporary generative Large Language Models (LLMs) is directly shaped by prompts, unstructured texts that describe the desired output and model behavior. In this paper we argue that prompts are linguistic objects that merit investigation in their own right. To this end, we collect 57.5K unique samples of prompts from GitHub. Specifically, we focus on transactional prompts: reproducible natural language instructions that are integrated into software. To enable the empirical, quantitative study of prompts, we introduce a structured ontology, capturing the properties of prompts as well as their formal and semantic components. Based on this ontology, we transform prompts from unstructured raw texts into richly structured linguistic objects. Analysis of these structured data reveals significant diversity of usage patterns across languages, domains, tasks, and modalities, in a typical Zipf-like distribution where some clearly prevail and others, more diverse, appear in the long tail. To validate the reliability of the ontology-based annotation of the prompts, we perform a comprehensive error analysis across all fields, providing a detailed assessment of annotation quality. We release the dataset together with a browsing and exploration interface (https://github.com/OnlpLab/transactionalPromptsCollection ).