Improving Structural Diversity of Blackbox LLMs via Chain-of-Specification Prompting
Halley Young, Yimeng Zeng, Jacob Gardner, Osbert Bastani

TL;DR
This paper introduces a new way to measure and improve the diversity of large language models' outputs by allowing user-specified features and using a chain-of-specification prompting strategy, effective even with blackbox models.
Contribution
The paper proposes a novel structural diversity metric and a chain-of-specification prompting method to enhance diversity control in blackbox LLMs.
Findings
CoS improves structural diversity in poetry and code generation.
The new diversity metric aligns with user-defined features.
CoS outperforms baseline methods in diversity metrics.
Abstract
The capability to generate diverse text is a key challenge facing large language models (LLMs). Thus far, diversity has been studied via metrics such as -gram diversity or diversity of BERT embeddings. However, for these kinds of diversity, the user has little control over the dimensions along which diversity is considered. For example, in the poetry domain, one might desire diversity in terms of rhyme and meter, whereas in the code domain, one might desire diversity in terms of the kinds of expressions used to solve a problem. We propose a diversity metric called structural diversity, where the user provides a mapping from generated text to features capturing the kinds of diversity that they care about. In addition, we propose a novel strategy called chain-of-specification (CoS) prompting for improving diversity by first having the LLM generate a specification encoding one instance…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsDigital Rights Management and Security · Software Testing and Debugging Techniques · VLSI and Analog Circuit Testing
MethodsRefunds@Expedia|||How do I get a full refund from Expedia? · Softmax · Dense Connections · Dropout · Linear Layer · Attention Dropout · Residual Connection · Linear Warmup With Linear Decay · WordPiece · Layer Normalization
