Chain of Density: Definition and Examples
An iterative summarization technique where each successive version is more information-dense while keeping the same length, developed by researchers from Columbia and Salesforce.
Full definition
Chain of Density (CoD) is a prompt engineering method designed to produce high-quality summaries through successive iterations. The principle is simple: ask the model to generate an initial summary, then rewrite it several times by integrating more key entities and information, without ever exceeding the initial length.
At each iteration, the model identifies missing entities from the source text, then merges them into the existing summary by compressing, reformulating, or removing the least important details. The result is a text that progressively becomes denser in useful information while remaining fluid and readable.
This technique is based on a 2023 research paper by researchers from Columbia University and Salesforce. Their work showed that summaries produced after 3 to 5 densification iterations achieve a quality level comparable to human-written summaries and are often preferred by readers.
Chain of Density illustrates a fundamental principle of prompt engineering: rather than asking for a perfect result in a single pass, guide the model through a structured process of progressive improvement. This iterative approach better leverages the reasoning and reformulation capabilities of large language models.
Etymology
The term "Chain of Density" refers to the sequence (chain) of summaries whose information density increases at each step. It was introduced in the article "From Sparse to Dense: GPT-4 Summarization with Chain of Density Prompting" published in 2023.
Concrete examples
Summarizing a long scientific article into a dense paragraph
Here is an article. Generate 5 successive summaries of identical length (~80 words). The first should be a general summary. At each iteration, identify 1-3 informative missing entities and rewrite the summary to include them, compressing less essential information. Article: [TEXT]
Creating a concise product sheet from technical documentation
Apply the Chain of Density method to summarize this product documentation into 100 words. Iteration 1: general summary. Iterations 2 to 4: add missing key specifications, benefits, and use cases while maintaining 100 words. Show each iteration.
Condensing a meeting report for an executive summary
Using the Chain of Density technique, produce 4 successive versions of a summary of this meeting minutes. Each version should be 60 words and be richer in key decisions and actions than the previous one.
Practical usage
To apply Chain of Density, ask the model to produce a first general summary, then rewrite it 3 to 5 times by adding missing key entities without changing the length. You can adapt the number of iterations and the target length according to your needs. This technique is particularly effective for executive summaries, briefing sheets, and any context where information density is critical.
Related concepts
FAQ
How many iterations are needed for a good result with Chain of Density?
What is the difference between Chain of Density and Chain of Thought?
Does Chain of Density work with all language models?
See also
How to use this prompt
- Copy the prompt with the button above.
- Paste it into ChatGPT, Claude or your favorite AI assistant.
- Replace the bracketed variables with your details, then refine the result.
About Prompt Guide
Prompt Guide is a free library of 2500+ ready-to-use prompts for ChatGPT, Claude and other AIs, with guides to learn prompting and tools to build and optimize your own prompts.
More definitions
Chain-of-Thought (CoT): Definition and Examples
Chain-of-Thought pushes AI to reason step by step. Discover how this technique improves complex responses.
Chain Of Thought Reasoning: Definition and Examples
Chain of Thought Reasoning is a prompting technique that involves asking an AI model to break down its reasoning into intermediate steps.
Chain Of Verification: Definition and Examples
Prompting technique where the model is asked to generate an initial response, then produce verification questions about that response, answer them
Chatbot: Definition and Examples
A chatbot is a computer program capable of simulating a conversation with a human user, typically through a text-based interface. It can be
Chinchilla Optimal: Definition and Examples
Training principle for large language models stating that model size and training data quantity should scale proportionally
ChromaDB: Definition and Examples
ChromaDB is an open source vector database designed to store, index, and search embeddings, making it easy to build AI applications
Get new prompts every week
Join our newsletter.