paper-with-me

홈 › Papers

In-Context Principle Learning from Mistakes

2024-02-08 · Tianjun Zhang, Aman Madaan, Luyu Gao, Steven Zheng, Swaroop Mishra, Yiming Yang, Niket Tandon, Uri Alon

In-context learning (ICL, also known as few-shot prompting) has been the standard method of adapting LLMs to downstream tasks, by learning from a few input-output examples. Nonetheless, all ICL-based approaches only learn from correct input-output pairs. In this paper, we revisit this paradigm, by learning more from the few given input-output examples. We introduce Learning Principles (LEAP): First, we intentionally induce the model to make mistakes on these few examples; then we reflect on these mistakes, and learn explicit task-specific "principles" from them, which help solve similar problems and avoid common mistakes; finally, we prompt the model to answer unseen test questions using the original few-shot examples and these learned general principles. We evaluate LEAP on a wide range of benchmarks, including multi-hop question answering (Hotpot QA), textual QA (DROP), Big-Bench Hard reasoning, and math problems (GSM8K and MATH); in all these benchmarks, LEAP improves the strongest available LLMs such as GPT-3.5-turbo, GPT-4, GPT-4 turbo and Claude-2.1. For example, LEAP improves over the standard few-shot prompting using GPT-4 by 7.5% in DROP, and by 3.3% in HotpotQA. Importantly, LEAP does not require any more input or examples than the standard few-shot prompting settings.

📄 PDF Abstract BibTeX arXiv:2402.05403

Code (1)

codelion/optillm/blob/main/optillm/leap.py pytorch

Tasks

GSM8KIn-Context LearningMathMulti-hop Question AnsweringQuestion Answering

Methods 이 논문이 사용한 방법론

Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…
{Dispute@FaQ-s}How to file a dispute with Expedia? How to file a dispute with Expedia? To file a complaint against Expedia, first try contacting their customer service directly. You can reach them by phone at…
15 Ways to Contact How can i speak to someone at Delta Airlines 설명 없음
Attention 설명 없음
Position-Wise Feed-Forward Layer 설명 없음
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Cosine Annealing Cosine Annealing is a type of learning rate schedule that has the effect of starting with a large learning rate that is relatively rapidly decreased to a minimum value before…
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…

Similar Papers 제목 키워드 기반

Retrieved In-Context Principles from Previous Mistakes

2024-07-08 · Hao Sun, Yong Jiang, Bo wang, Yingyan Hou 외

In-context learning (ICL) has been instrumental in adapting Large Language Models (LLMs) to downstream tasks using correct input-output examples. Recent advances have attempted to improve model performance through princi…

In-Context Learning

A Deep Dive Into Large Language Model Code Generation Mistakes: What and Why?

2024-11-03 · Qihong Chen, Jiachen Yu, Jiawei Li, Jiecheng Deng 외

Recent advancements in Large Language Models (LLMs) have led to their widespread application in automated code generation. However, these models can still generate defective code that deviates from the specification. Pre…

Code GenerationLanguage ModelingLanguage ModellingLarge Language Model

Pointing out Human Answer Mistakes in a Goal-Oriented Visual Dialogue

2023-09-19 · Ryosuke Oshima, Seitaro Shinagawa, Hideki Tsunashima, Qi Feng 외

Effective communication between humans and intelligent agents has promising applications for solving complex problems. One such approach is visual dialogue, which leverages multimodal context to assist humans. However, r…

Language ModelingLanguage Modelling

Finding Common Mistakes In Modelling With Mathematical Formalisms Using LLMs

2026-09-15 · Lilian Killich, Marko Schmellenkamp, Fabian Vehlken, Thomas Zeume arxiv

Modelling with mathematical formalisms like logical formulas, mathematical equations, or regular expressions is an important yet challenging task for students of computer science and other STEM disciplines. Identifying c…

LLMs can Find Mathematical Reasoning Mistakes by Pedagogical Chain-of-Thought

2024-05-09 · Zhuoxuan Jiang, Haoyuan Peng, Shanshan Feng, Fan Li 외

Self-correction is emerging as a promising approach to mitigate the issue of hallucination in Large Language Models (LLMs). To facilitate effective self-correction, recent research has proposed mistake detection as its i…

HallucinationMathMathematical ReasoningMistake Detection