Structured Prompting: Scaling In-Context Learning to 1,000 Examples

AI-generated keywords: Structured Prompting Large Language Models In-Context Learning Zero-Shot Performance Scaling

AI-generated Key Points

The license of the paper does not allow us to build upon its content and the key points are generated using the paper metadata rather than the full article.

  • Authors explore potential of large language models for zero- and few-shot performance without parameter updates
  • Conventional in-context learning methods limited by length constraints for effective absorption of supervision from many examples
  • Introduction of structured prompting as a novel approach to address length limitations and extend capabilities beyond few shots
  • Structured prompting breaks length limit, enables scaling in-context learning to thousands of examples by encoding demonstration examples separately with position embeddings
  • Adoption of structured prompting method allows scaling number of exemplars with linear complexity instead of quadratic complexity concerning length
  • Experimental results demonstrate effectiveness in enhancing end-task performance and reducing evaluation variance compared to traditional in-context learning methods as number of demonstration examples increases
Also access our AI generated: Comprehensive summary, Lay summary, Blog-like article; or ask questions about this paper to our AI assistant.

Authors: Yaru Hao, Yutao Sun, Li Dong, Zhixiong Han, Yuxian Gu, Furu Wei

14 pages

Abstract: Large language models have exhibited intriguing in-context learning capability, achieving promising zero- and few-shot performance without updating the parameters. However, conventional in-context learning is usually restricted by length constraints, rendering it ineffective to absorb supervision from a large number of examples. In order to go beyond few shots, we introduce structured prompting that breaks the length limit and scales in-context learning to thousands of examples. Specifically, demonstration examples are separately encoded with well-designed position embeddings, and then they are jointly attended by the test example using a rescaled attention mechanism. So we can scale the number of exemplars with linear complexity instead of quadratic complexity with respect to length. Experimental results on a diverse set of tasks show that our approach improves end-task performance and reduces evaluation variance over conventional in-context learning as the number of demonstration examples increases. Code has been released at https://aka.ms/structured-prompting.

Submitted to arXiv on 13 Dec. 2022

Ask questions about this paper to our AI assistant

You can also chat with multiple papers at once here.

The license of the paper does not allow us to build upon its content and the AI assistant only knows about the paper metadata rather than the full article.

AI assistant instructions?

Results of the summarizing process for the arXiv paper: 2212.06713v1

This paper's license doesn't allow us to build upon its content and the summarizing process is here made with the paper's metadata rather than the article.

In their paper titled "Structured Prompting: Scaling In-Context Learning to 1,000 Examples," authors Yaru Hao, Yutao Sun, Li Dong, Zhixiong Han, Yuxian Gu, and Furu Wei explore the potential of large language models in achieving impressive zero- and few-shot performance without the need for parameter updates. They highlight a common limitation in conventional in-context learning methods - the restriction imposed by length constraints that hinder effective absorption of supervision from a large number of examples. To address this challenge and extend the capabilities beyond few shots, the authors introduce structured prompting as a novel approach. This technique breaks the length limit and enables scaling in-context learning to thousands of examples. The key innovation lies in encoding demonstration examples separately with carefully designed position embeddings. These examples are then jointly attended by the test example through a rescaled attention mechanism. By adopting this structured prompting method, the authors demonstrate that it is possible to scale the number of exemplars with linear complexity instead of quadratic complexity concerning length. Experimental results across various tasks showcase the effectiveness of their approach in enhancing end-task performance and reducing evaluation variance compared to traditional in-context learning methods as the number of demonstration examples increases. The research findings provide valuable insights into advancing in-context learning capabilities for large language models. Interested readers can access the code for structured prompting at https://aka.ms/structured-prompting. Overall, this study sheds light on how structured prompting can significantly improve in-context learning by overcoming length constraints and scaling up to leverage supervision from a larger pool of examples effectively.
Created on 06 Apr. 2024

Assess the quality of the AI-generated content by voting

Score: 0

Why do we need votes?

Votes are used to determine whether we need to re-run our summarizing tools. If the count reaches -10, our tools can be restarted.

The previous summary was created more than a year ago and can be re-run (if necessary) by clicking on the Run button below.

The license of this specific paper does not allow us to build upon its content and the summarizing tools will be run using the paper metadata rather than the full article. However, it still does a good job, and you can also try our tools on papers with more open licenses.

Look for similar papers (in beta version)

By clicking on the button above, our algorithm will scan all papers in our database to find the closest based on the contents of the full papers and not just on metadata. Please note that it only works for papers that we have generated summaries for and you can rerun it from time to time to get a more accurate result while our database grows.

Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.