mlsanityData to 7 Oct 2026

Improving Structural Diversity of Blackbox LLMs via Chain-of-Specification Prompting

arXiv 2408.06186 ↗First posted 12 Aug 2024cs.CL cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

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 n-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 of structural features, and then prompting the LLM to generate text that satisfies these features; notably, our strategy works with blackbox LLMs. In our experiments, we show that for structural diversity in the poetry and code domains, CoS significantly improves diversity compared to several baselines.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 6 of its 12 references that are in the map. First posted on arXiv 12 Aug 2024.

Builds on

6 of 12 references.

References · 6

  1. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  2. 2019The Curious Case of Neural Text Degenerationcited by 2,881
  3. 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 199
  4. 2020Evaluating the Evaluation of Diversity in Natural Language Generationcited by 127
  5. 2019Comparison of Diverse Decoding Methods from Conditional Language Modelscited by 78
  6. 2024Improving Diversity of Commonsense Generation by Large Language Models via In-Context Learningcited by 19

Built on by

Not cited yet.