doi
stringlengths 10
10
| chunk-id
stringlengths 1
4
| chunk
stringlengths 1
1.66k
| id
stringlengths 10
10
| title
stringlengths 19
148
| summary
stringlengths 345
1.92k
| source
stringlengths 31
31
| authors
sequence | categories
sequence | comment
stringlengths 4
284
⌀ | journal_ref
stringclasses 14
values | primary_category
stringclasses 16
values | published
stringlengths 8
8
| updated
stringlengths 8
8
| references
list |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2209.07686 | 263 | Preceding sections empirically underscore the prominence of text and patterns and their intertwined pathways to generate correct answers. We articulate our findings in the following.
Patterns are the hidden force that help generate meaningful text. Without patterns the model is not purposefully prompted to generate intermediate meaningful text. In addition, the presence of patterns reinforces
how the model should form factual connections between different clauses in the intermediate text. This intermediate text, which generally embody relevant information to the underlying task, drives the model to
elicit knowledge and attain correct conclusions.
Text imbues patterns with knowledge and meaning. Theoretically, patterns seem to be sufficient in directing the model to solve a task. However, patterns need explicit text to be effective in imparting the requisite
information to the model about how to accomplish a task. The role of text primarily is to elaborate the
patterns and imbues them with knowledge and meaning. The presence of text enables the model to elicit
requisite information from thoughts and reach to a factual conclusion. We empirically observe the crucial
role of the text in assisting the model to solve a task, such as GSM-8 K(e.g., four-legged vs. two-legged
animals), S PORTS (e.g., sports that is being talked about), and D ATE(e.g., Christmas Eve is on 24th). | 2209.07686 | Text and Patterns: For Effective Chain of Thought, It Takes Two to Tango | The past decade has witnessed dramatic gains in natural language processing
and an unprecedented scaling of large language models. These developments have
been accelerated by the advent of few-shot techniques such as chain of thought
(CoT) prompting. Specifically, CoT pushes the performance of large language
models in a few-shot setup by augmenting the prompts with intermediate steps.
Despite impressive results across various tasks, the reasons behind their
success have not been explored. This work uses counterfactual prompting to
develop a deeper understanding of CoT-based few-shot prompting mechanisms in
large language models. We first systematically identify and define the key
components of a prompt: symbols, patterns, and text. Then, we devise and
conduct an exhaustive set of experiments across four different tasks, by
querying the model with counterfactual prompts where only one of these
components is altered. Our experiments across three models (PaLM, GPT-3, and
CODEX) reveal several surprising findings and brings into question the
conventional wisdom around few-shot prompting. First, the presence of factual
patterns in a prompt is practically immaterial to the success of CoT. Second,
our results conclude that the primary role of intermediate steps may not be to
facilitate learning how to solve a task. The intermediate steps are rather a
beacon for the model to realize what symbols to replicate in the output to form
a factual answer. Further, text imbues patterns with commonsense knowledge and
meaning. Our empirical and qualitative analysis reveals that a symbiotic
relationship between text and patterns explains the success of few-shot
prompting: text helps extract commonsense from the question to help patterns,
and patterns enforce task understanding and direct text generation. | http://arxiv.org/pdf/2209.07686 | [
"Aman Madaan",
"Amir Yazdanbakhsh"
] | [
"cs.CL",
"cs.AI",
"cs.LG"
] | Shortened version with additional results from CODEX and GPT-3. The
authors contributed equally. Work done when Aman Madaan was a student
researcher at Google Research, Brain Team | null | cs.CL | 20220916 | 20221013 | [
{
"id": "2202.07206"
},
{
"id": "2109.03910"
},
{
"id": "2201.08239"
},
{
"id": "2204.02311"
},
{
"id": "2204.01691"
},
{
"id": "2107.13586"
},
{
"id": "2109.01652"
},
{
"id": "2103.07191"
},
{
"id": "2109.07830"
},
{
"id": "2203.02155"
},
{
"id": "2203.11171"
},
{
"id": "2206.14576"
},
{
"id": "2206.14858"
},
{
"id": "2107.03374"
},
{
"id": "2207.00747"
},
{
"id": "2109.00725"
},
{
"id": "2203.07814"
},
{
"id": "2102.01672"
},
{
"id": "2205.12685"
},
{
"id": "2110.14168"
},
{
"id": "2101.06804"
},
{
"id": "2112.00114"
},
{
"id": "2206.04615"
},
{
"id": "1705.04146"
},
{
"id": "2205.12615"
},
{
"id": "2112.08633"
},
{
"id": "2209.07686"
},
{
"id": "2201.11903"
},
{
"id": "2010.10596"
},
{
"id": "2202.12837"
},
{
"id": "2205.10625"
},
{
"id": "2205.11916"
}
] |
2209.07686 | 264 | animals), S PORTS (e.g., sports that is being talked about), and D ATE(e.g., Christmas Eve is on 24th).
J. A DDITIONAL RESULTS CCOT: C ONCISE CHAIN OFTHOUGHT
J.1. CC OT P ROMPTS
J.2. R EDUCTION IN LENGTH BY CCOT
In this work, we empirically show how the symbiosis between text and patterns unlocks the functional
potential of C OT. Relying on our preceding findings, this section explores the idea of engineering effective
prompts tailored to remove ineffectual tokens. The benefit of such tailored design is multi-fold:
1.Reducing noise. Reducing noise from prompts could potentially reduce the confusion for the model
and consequently lead to higher task solve rate. Investigating the impact of noise (futile or misleading
information) in prompts on the model performance is an interesting future work.
2.Potential energy savings. Last but not the least, reduced number of tokens in the prompts instruct the
model to generate less number of tokens per question. Less number of generated tokens directly translate
to reduced runtime and carbon footprint per inference. This is especially crucial because of the inherently
large compute cost associated with the large language models. | 2209.07686 | Text and Patterns: For Effective Chain of Thought, It Takes Two to Tango | The past decade has witnessed dramatic gains in natural language processing
and an unprecedented scaling of large language models. These developments have
been accelerated by the advent of few-shot techniques such as chain of thought
(CoT) prompting. Specifically, CoT pushes the performance of large language
models in a few-shot setup by augmenting the prompts with intermediate steps.
Despite impressive results across various tasks, the reasons behind their
success have not been explored. This work uses counterfactual prompting to
develop a deeper understanding of CoT-based few-shot prompting mechanisms in
large language models. We first systematically identify and define the key
components of a prompt: symbols, patterns, and text. Then, we devise and
conduct an exhaustive set of experiments across four different tasks, by
querying the model with counterfactual prompts where only one of these
components is altered. Our experiments across three models (PaLM, GPT-3, and
CODEX) reveal several surprising findings and brings into question the
conventional wisdom around few-shot prompting. First, the presence of factual
patterns in a prompt is practically immaterial to the success of CoT. Second,
our results conclude that the primary role of intermediate steps may not be to
facilitate learning how to solve a task. The intermediate steps are rather a
beacon for the model to realize what symbols to replicate in the output to form
a factual answer. Further, text imbues patterns with commonsense knowledge and
meaning. Our empirical and qualitative analysis reveals that a symbiotic
relationship between text and patterns explains the success of few-shot
prompting: text helps extract commonsense from the question to help patterns,
and patterns enforce task understanding and direct text generation. | http://arxiv.org/pdf/2209.07686 | [
"Aman Madaan",
"Amir Yazdanbakhsh"
] | [
"cs.CL",
"cs.AI",
"cs.LG"
] | Shortened version with additional results from CODEX and GPT-3. The
authors contributed equally. Work done when Aman Madaan was a student
researcher at Google Research, Brain Team | null | cs.CL | 20220916 | 20221013 | [
{
"id": "2202.07206"
},
{
"id": "2109.03910"
},
{
"id": "2201.08239"
},
{
"id": "2204.02311"
},
{
"id": "2204.01691"
},
{
"id": "2107.13586"
},
{
"id": "2109.01652"
},
{
"id": "2103.07191"
},
{
"id": "2109.07830"
},
{
"id": "2203.02155"
},
{
"id": "2203.11171"
},
{
"id": "2206.14576"
},
{
"id": "2206.14858"
},
{
"id": "2107.03374"
},
{
"id": "2207.00747"
},
{
"id": "2109.00725"
},
{
"id": "2203.07814"
},
{
"id": "2102.01672"
},
{
"id": "2205.12685"
},
{
"id": "2110.14168"
},
{
"id": "2101.06804"
},
{
"id": "2112.00114"
},
{
"id": "2206.04615"
},
{
"id": "1705.04146"
},
{
"id": "2205.12615"
},
{
"id": "2112.08633"
},
{
"id": "2209.07686"
},
{
"id": "2201.11903"
},
{
"id": "2010.10596"
},
{
"id": "2202.12837"
},
{
"id": "2205.10625"
},
{
"id": "2205.11916"
}
] |
2209.07686 | 265 | to reduced runtime and carbon footprint per inference. This is especially crucial because of the inherently
large compute cost associated with the large language models.
Our proposed prompts, dubbed as CC OT9, distill the essence of our hypothesis by supplying minimal requisite information to drive the model to factual conclusions. Table 8 compares C OT and CC OT across different
tasks across the four models (PaLM-62 Band PaLM-540 B). In all tasks, except GSM-8 K, we use identical
examples in the prompt and only rephrased the thoughts to use less number of tokens. For GSM-8 K, we
could not find a systematic mechanism to shorten the thoughts. Instead, we randomly harvest questions from
training set whose thoughts are shorter compared to C OT. Overall, CC OT outperform C OT while in general
employing prompts with less number of tokens. The task solve rate of CC OT remains relatively high as we
scale the model to PaLM-540 B, highlighting the efficiency of CC OT.
9Concise C hain O f Thought
63
Table 33: CC OT prompt for GSM-8 K.
qPrompt 1
åQÞÑWhat isfifteen more than aquarterof48? | 2209.07686 | Text and Patterns: For Effective Chain of Thought, It Takes Two to Tango | The past decade has witnessed dramatic gains in natural language processing
and an unprecedented scaling of large language models. These developments have
been accelerated by the advent of few-shot techniques such as chain of thought
(CoT) prompting. Specifically, CoT pushes the performance of large language
models in a few-shot setup by augmenting the prompts with intermediate steps.
Despite impressive results across various tasks, the reasons behind their
success have not been explored. This work uses counterfactual prompting to
develop a deeper understanding of CoT-based few-shot prompting mechanisms in
large language models. We first systematically identify and define the key
components of a prompt: symbols, patterns, and text. Then, we devise and
conduct an exhaustive set of experiments across four different tasks, by
querying the model with counterfactual prompts where only one of these
components is altered. Our experiments across three models (PaLM, GPT-3, and
CODEX) reveal several surprising findings and brings into question the
conventional wisdom around few-shot prompting. First, the presence of factual
patterns in a prompt is practically immaterial to the success of CoT. Second,
our results conclude that the primary role of intermediate steps may not be to
facilitate learning how to solve a task. The intermediate steps are rather a
beacon for the model to realize what symbols to replicate in the output to form
a factual answer. Further, text imbues patterns with commonsense knowledge and
meaning. Our empirical and qualitative analysis reveals that a symbiotic
relationship between text and patterns explains the success of few-shot
prompting: text helps extract commonsense from the question to help patterns,
and patterns enforce task understanding and direct text generation. | http://arxiv.org/pdf/2209.07686 | [
"Aman Madaan",
"Amir Yazdanbakhsh"
] | [
"cs.CL",
"cs.AI",
"cs.LG"
] | Shortened version with additional results from CODEX and GPT-3. The
authors contributed equally. Work done when Aman Madaan was a student
researcher at Google Research, Brain Team | null | cs.CL | 20220916 | 20221013 | [
{
"id": "2202.07206"
},
{
"id": "2109.03910"
},
{
"id": "2201.08239"
},
{
"id": "2204.02311"
},
{
"id": "2204.01691"
},
{
"id": "2107.13586"
},
{
"id": "2109.01652"
},
{
"id": "2103.07191"
},
{
"id": "2109.07830"
},
{
"id": "2203.02155"
},
{
"id": "2203.11171"
},
{
"id": "2206.14576"
},
{
"id": "2206.14858"
},
{
"id": "2107.03374"
},
{
"id": "2207.00747"
},
{
"id": "2109.00725"
},
{
"id": "2203.07814"
},
{
"id": "2102.01672"
},
{
"id": "2205.12685"
},
{
"id": "2110.14168"
},
{
"id": "2101.06804"
},
{
"id": "2112.00114"
},
{
"id": "2206.04615"
},
{
"id": "1705.04146"
},
{
"id": "2205.12615"
},
{
"id": "2112.08633"
},
{
"id": "2209.07686"
},
{
"id": "2201.11903"
},
{
"id": "2010.10596"
},
{
"id": "2202.12837"
},
{
"id": "2205.10625"
},
{
"id": "2205.11916"
}
] |
2209.07686 | 266 | Table 33: CC OT prompt for GSM-8 K.
qPrompt 1
åQÞÑWhat isfifteen more than aquarterof48?
TÞÑAquarterof48is48/4=12.15more than 12is12+15=27.
VAÞÑ27
qPrompt 2
åQÞÑTwice Angie’s age, plus 4,is20.How oldisAngie?
TÞÑAngie’s ageminus4is20-4=16.16istwice Angie’s age. Thus, Angie’s ageis16/2=8.
VAÞÑ8
qPrompt 3
åQÞÑSteve is5’6”. Hegrows 6inches. How tallisheininches?
TÞÑOne feethas12inches. Initially, Steve is5*12+6=66inches tall.Aftergrow ing6inches, Steve is66+6
=72inches tall.
VAÞÑ72
qPrompt 4
åQÞÑ198passengers fitinto9buses. How many passengers fitin5buses? | 2209.07686 | Text and Patterns: For Effective Chain of Thought, It Takes Two to Tango | The past decade has witnessed dramatic gains in natural language processing
and an unprecedented scaling of large language models. These developments have
been accelerated by the advent of few-shot techniques such as chain of thought
(CoT) prompting. Specifically, CoT pushes the performance of large language
models in a few-shot setup by augmenting the prompts with intermediate steps.
Despite impressive results across various tasks, the reasons behind their
success have not been explored. This work uses counterfactual prompting to
develop a deeper understanding of CoT-based few-shot prompting mechanisms in
large language models. We first systematically identify and define the key
components of a prompt: symbols, patterns, and text. Then, we devise and
conduct an exhaustive set of experiments across four different tasks, by
querying the model with counterfactual prompts where only one of these
components is altered. Our experiments across three models (PaLM, GPT-3, and
CODEX) reveal several surprising findings and brings into question the
conventional wisdom around few-shot prompting. First, the presence of factual
patterns in a prompt is practically immaterial to the success of CoT. Second,
our results conclude that the primary role of intermediate steps may not be to
facilitate learning how to solve a task. The intermediate steps are rather a
beacon for the model to realize what symbols to replicate in the output to form
a factual answer. Further, text imbues patterns with commonsense knowledge and
meaning. Our empirical and qualitative analysis reveals that a symbiotic
relationship between text and patterns explains the success of few-shot
prompting: text helps extract commonsense from the question to help patterns,
and patterns enforce task understanding and direct text generation. | http://arxiv.org/pdf/2209.07686 | [
"Aman Madaan",
"Amir Yazdanbakhsh"
] | [
"cs.CL",
"cs.AI",
"cs.LG"
] | Shortened version with additional results from CODEX and GPT-3. The
authors contributed equally. Work done when Aman Madaan was a student
researcher at Google Research, Brain Team | null | cs.CL | 20220916 | 20221013 | [
{
"id": "2202.07206"
},
{
"id": "2109.03910"
},
{
"id": "2201.08239"
},
{
"id": "2204.02311"
},
{
"id": "2204.01691"
},
{
"id": "2107.13586"
},
{
"id": "2109.01652"
},
{
"id": "2103.07191"
},
{
"id": "2109.07830"
},
{
"id": "2203.02155"
},
{
"id": "2203.11171"
},
{
"id": "2206.14576"
},
{
"id": "2206.14858"
},
{
"id": "2107.03374"
},
{
"id": "2207.00747"
},
{
"id": "2109.00725"
},
{
"id": "2203.07814"
},
{
"id": "2102.01672"
},
{
"id": "2205.12685"
},
{
"id": "2110.14168"
},
{
"id": "2101.06804"
},
{
"id": "2112.00114"
},
{
"id": "2206.04615"
},
{
"id": "1705.04146"
},
{
"id": "2205.12615"
},
{
"id": "2112.08633"
},
{
"id": "2209.07686"
},
{
"id": "2201.11903"
},
{
"id": "2010.10596"
},
{
"id": "2202.12837"
},
{
"id": "2205.10625"
},
{
"id": "2205.11916"
}
] |
2209.07686 | 267 | qPrompt 4
åQÞÑ198passengers fitinto9buses. How many passengers fitin5buses?
TÞÑCapacityofonebusis198passengers /9buses =22passengers inonebus. Thus, 5buses canfit22*5=
110passengers.
VAÞÑ110
qPrompt 5
åQÞÑFifteen more than aquarterofanumberis27.What isthenumber?
TÞÑFifteen lessthan 27is27-15=12.Thequarterofthenumberisthus 12,andthenumberis12*4=48.
VAÞÑ48
qPrompt 6
åQÞÑIf12bags oforanges weigh 24pounds, how much do8bags weigh?
TÞÑ12bags weight 24pounds, soonebagweights 24pounds /12=2pounds. So8bags oforanges would weigh
8*2pounds =16pounds.
VAÞÑ16
qPrompt 7
åQÞÑSandraeats3beignets everymorn ing.How many beignets willsheeatin16weeks? | 2209.07686 | Text and Patterns: For Effective Chain of Thought, It Takes Two to Tango | The past decade has witnessed dramatic gains in natural language processing
and an unprecedented scaling of large language models. These developments have
been accelerated by the advent of few-shot techniques such as chain of thought
(CoT) prompting. Specifically, CoT pushes the performance of large language
models in a few-shot setup by augmenting the prompts with intermediate steps.
Despite impressive results across various tasks, the reasons behind their
success have not been explored. This work uses counterfactual prompting to
develop a deeper understanding of CoT-based few-shot prompting mechanisms in
large language models. We first systematically identify and define the key
components of a prompt: symbols, patterns, and text. Then, we devise and
conduct an exhaustive set of experiments across four different tasks, by
querying the model with counterfactual prompts where only one of these
components is altered. Our experiments across three models (PaLM, GPT-3, and
CODEX) reveal several surprising findings and brings into question the
conventional wisdom around few-shot prompting. First, the presence of factual
patterns in a prompt is practically immaterial to the success of CoT. Second,
our results conclude that the primary role of intermediate steps may not be to
facilitate learning how to solve a task. The intermediate steps are rather a
beacon for the model to realize what symbols to replicate in the output to form
a factual answer. Further, text imbues patterns with commonsense knowledge and
meaning. Our empirical and qualitative analysis reveals that a symbiotic
relationship between text and patterns explains the success of few-shot
prompting: text helps extract commonsense from the question to help patterns,
and patterns enforce task understanding and direct text generation. | http://arxiv.org/pdf/2209.07686 | [
"Aman Madaan",
"Amir Yazdanbakhsh"
] | [
"cs.CL",
"cs.AI",
"cs.LG"
] | Shortened version with additional results from CODEX and GPT-3. The
authors contributed equally. Work done when Aman Madaan was a student
researcher at Google Research, Brain Team | null | cs.CL | 20220916 | 20221013 | [
{
"id": "2202.07206"
},
{
"id": "2109.03910"
},
{
"id": "2201.08239"
},
{
"id": "2204.02311"
},
{
"id": "2204.01691"
},
{
"id": "2107.13586"
},
{
"id": "2109.01652"
},
{
"id": "2103.07191"
},
{
"id": "2109.07830"
},
{
"id": "2203.02155"
},
{
"id": "2203.11171"
},
{
"id": "2206.14576"
},
{
"id": "2206.14858"
},
{
"id": "2107.03374"
},
{
"id": "2207.00747"
},
{
"id": "2109.00725"
},
{
"id": "2203.07814"
},
{
"id": "2102.01672"
},
{
"id": "2205.12685"
},
{
"id": "2110.14168"
},
{
"id": "2101.06804"
},
{
"id": "2112.00114"
},
{
"id": "2206.04615"
},
{
"id": "1705.04146"
},
{
"id": "2205.12615"
},
{
"id": "2112.08633"
},
{
"id": "2209.07686"
},
{
"id": "2201.11903"
},
{
"id": "2010.10596"
},
{
"id": "2202.12837"
},
{
"id": "2205.10625"
},
{
"id": "2205.11916"
}
] |
2209.07686 | 268 | qPrompt 7
åQÞÑSandraeats3beignets everymorn ing.How many beignets willsheeatin16weeks?
TÞÑSandraeats3beignets everymorn ingandthere are7days inaweek sosheeats3*7=21beignets ina
week. Sandraeats21beignets inaweek, soin16weeks shewilleat21*16=336beignets.
VAÞÑ336
qPrompt 8
åQÞÑJohn takes apillevery6hours. How many pills does hetake aweek?
TÞÑThere are24hours inaday. SoJohn takes 24/6=4pills aday. Inaweek, John there fore takes 4*7=28
pills.
VAÞÑ28
64
Table 34: CC OT prompt for D ATE.
qPrompt 1
åQÞÑItis4/19/1969 today. What isthedate 24hours later inMM/D D/YYYY?
TÞÑTodayis04/19/1969. 24hours (one day) later is04/20/1969.
VAÞÑ04/20/1969
qPrompt 2 | 2209.07686 | Text and Patterns: For Effective Chain of Thought, It Takes Two to Tango | The past decade has witnessed dramatic gains in natural language processing
and an unprecedented scaling of large language models. These developments have
been accelerated by the advent of few-shot techniques such as chain of thought
(CoT) prompting. Specifically, CoT pushes the performance of large language
models in a few-shot setup by augmenting the prompts with intermediate steps.
Despite impressive results across various tasks, the reasons behind their
success have not been explored. This work uses counterfactual prompting to
develop a deeper understanding of CoT-based few-shot prompting mechanisms in
large language models. We first systematically identify and define the key
components of a prompt: symbols, patterns, and text. Then, we devise and
conduct an exhaustive set of experiments across four different tasks, by
querying the model with counterfactual prompts where only one of these
components is altered. Our experiments across three models (PaLM, GPT-3, and
CODEX) reveal several surprising findings and brings into question the
conventional wisdom around few-shot prompting. First, the presence of factual
patterns in a prompt is practically immaterial to the success of CoT. Second,
our results conclude that the primary role of intermediate steps may not be to
facilitate learning how to solve a task. The intermediate steps are rather a
beacon for the model to realize what symbols to replicate in the output to form
a factual answer. Further, text imbues patterns with commonsense knowledge and
meaning. Our empirical and qualitative analysis reveals that a symbiotic
relationship between text and patterns explains the success of few-shot
prompting: text helps extract commonsense from the question to help patterns,
and patterns enforce task understanding and direct text generation. | http://arxiv.org/pdf/2209.07686 | [
"Aman Madaan",
"Amir Yazdanbakhsh"
] | [
"cs.CL",
"cs.AI",
"cs.LG"
] | Shortened version with additional results from CODEX and GPT-3. The
authors contributed equally. Work done when Aman Madaan was a student
researcher at Google Research, Brain Team | null | cs.CL | 20220916 | 20221013 | [
{
"id": "2202.07206"
},
{
"id": "2109.03910"
},
{
"id": "2201.08239"
},
{
"id": "2204.02311"
},
{
"id": "2204.01691"
},
{
"id": "2107.13586"
},
{
"id": "2109.01652"
},
{
"id": "2103.07191"
},
{
"id": "2109.07830"
},
{
"id": "2203.02155"
},
{
"id": "2203.11171"
},
{
"id": "2206.14576"
},
{
"id": "2206.14858"
},
{
"id": "2107.03374"
},
{
"id": "2207.00747"
},
{
"id": "2109.00725"
},
{
"id": "2203.07814"
},
{
"id": "2102.01672"
},
{
"id": "2205.12685"
},
{
"id": "2110.14168"
},
{
"id": "2101.06804"
},
{
"id": "2112.00114"
},
{
"id": "2206.04615"
},
{
"id": "1705.04146"
},
{
"id": "2205.12615"
},
{
"id": "2112.08633"
},
{
"id": "2209.07686"
},
{
"id": "2201.11903"
},
{
"id": "2010.10596"
},
{
"id": "2202.12837"
},
{
"id": "2205.10625"
},
{
"id": "2205.11916"
}
] |
2209.07686 | 269 | VAÞÑ04/20/1969
qPrompt 2
åQÞÑTheconcertwassched uled tobeon06/01/1943, butwasdelayed byonedaytotoday. What isthedate 10
days agoinMM/D D/YYYY?
TÞÑTodayis06/02/1943 (one dayafter06/01/1943). 10days beforetodayis05/23/1943.
VAÞÑ05/23/1943
qPrompt 3
åQÞÑThefirstdayof2019 isaTues day, andtodayisthefirstMon dayof2019. What isthedate todayinMM/D D/YYYY?
TÞÑ01/01/2019 wasaTues day(first dayof2019). TodayisthefirstMon day, 01/07/2019. (sixdays later).
VAÞÑ01/07/2019
qPrompt 4
åQÞÑJane was born onthelastdayofFebru aryin2001. Todayisher16-year-oldbirth day. What isthedate
yesterdayinMM/D D/YYYY? | 2209.07686 | Text and Patterns: For Effective Chain of Thought, It Takes Two to Tango | The past decade has witnessed dramatic gains in natural language processing
and an unprecedented scaling of large language models. These developments have
been accelerated by the advent of few-shot techniques such as chain of thought
(CoT) prompting. Specifically, CoT pushes the performance of large language
models in a few-shot setup by augmenting the prompts with intermediate steps.
Despite impressive results across various tasks, the reasons behind their
success have not been explored. This work uses counterfactual prompting to
develop a deeper understanding of CoT-based few-shot prompting mechanisms in
large language models. We first systematically identify and define the key
components of a prompt: symbols, patterns, and text. Then, we devise and
conduct an exhaustive set of experiments across four different tasks, by
querying the model with counterfactual prompts where only one of these
components is altered. Our experiments across three models (PaLM, GPT-3, and
CODEX) reveal several surprising findings and brings into question the
conventional wisdom around few-shot prompting. First, the presence of factual
patterns in a prompt is practically immaterial to the success of CoT. Second,
our results conclude that the primary role of intermediate steps may not be to
facilitate learning how to solve a task. The intermediate steps are rather a
beacon for the model to realize what symbols to replicate in the output to form
a factual answer. Further, text imbues patterns with commonsense knowledge and
meaning. Our empirical and qualitative analysis reveals that a symbiotic
relationship between text and patterns explains the success of few-shot
prompting: text helps extract commonsense from the question to help patterns,
and patterns enforce task understanding and direct text generation. | http://arxiv.org/pdf/2209.07686 | [
"Aman Madaan",
"Amir Yazdanbakhsh"
] | [
"cs.CL",
"cs.AI",
"cs.LG"
] | Shortened version with additional results from CODEX and GPT-3. The
authors contributed equally. Work done when Aman Madaan was a student
researcher at Google Research, Brain Team | null | cs.CL | 20220916 | 20221013 | [
{
"id": "2202.07206"
},
{
"id": "2109.03910"
},
{
"id": "2201.08239"
},
{
"id": "2204.02311"
},
{
"id": "2204.01691"
},
{
"id": "2107.13586"
},
{
"id": "2109.01652"
},
{
"id": "2103.07191"
},
{
"id": "2109.07830"
},
{
"id": "2203.02155"
},
{
"id": "2203.11171"
},
{
"id": "2206.14576"
},
{
"id": "2206.14858"
},
{
"id": "2107.03374"
},
{
"id": "2207.00747"
},
{
"id": "2109.00725"
},
{
"id": "2203.07814"
},
{
"id": "2102.01672"
},
{
"id": "2205.12685"
},
{
"id": "2110.14168"
},
{
"id": "2101.06804"
},
{
"id": "2112.00114"
},
{
"id": "2206.04615"
},
{
"id": "1705.04146"
},
{
"id": "2205.12615"
},
{
"id": "2112.08633"
},
{
"id": "2209.07686"
},
{
"id": "2201.11903"
},
{
"id": "2010.10596"
},
{
"id": "2202.12837"
},
{
"id": "2205.10625"
},
{
"id": "2205.11916"
}
] |
2209.07686 | 270 | yesterdayinMM/D D/YYYY?
TÞÑJane wasborn on02/28/2001. Sotodayis02/28/2017 andyesterdaywas02/27/2017.
VAÞÑ02/27/2017
qPrompt 5
åQÞÑ2015 iscomingin36hours. What isthedate oneweek from todayinMM/D D/YYYY?
TÞÑ2015 iscomingin2days (36hours). Sotodayis12/30/2021, andoneweek from todaywillbe01/05/2015.
VAÞÑ01/05/2015
qPrompt 6
åQÞÑJane thought todayis3/11/2002, buttodayisinfactMar 12,which is1daylater. What isthedate 24hours
later inMM/D D/YYYY?
TÞÑTodayis03/12/2002. Sothedate 24hours later willbe03/13/2002.
VAÞÑ03/13/2002
65
Table 35: CC OT prompt for S PORTS .
qPrompt 1
åQÞÑIsthefollowingsentence plausible? “Jamel Murraywasperfectfrom theline.” | 2209.07686 | Text and Patterns: For Effective Chain of Thought, It Takes Two to Tango | The past decade has witnessed dramatic gains in natural language processing
and an unprecedented scaling of large language models. These developments have
been accelerated by the advent of few-shot techniques such as chain of thought
(CoT) prompting. Specifically, CoT pushes the performance of large language
models in a few-shot setup by augmenting the prompts with intermediate steps.
Despite impressive results across various tasks, the reasons behind their
success have not been explored. This work uses counterfactual prompting to
develop a deeper understanding of CoT-based few-shot prompting mechanisms in
large language models. We first systematically identify and define the key
components of a prompt: symbols, patterns, and text. Then, we devise and
conduct an exhaustive set of experiments across four different tasks, by
querying the model with counterfactual prompts where only one of these
components is altered. Our experiments across three models (PaLM, GPT-3, and
CODEX) reveal several surprising findings and brings into question the
conventional wisdom around few-shot prompting. First, the presence of factual
patterns in a prompt is practically immaterial to the success of CoT. Second,
our results conclude that the primary role of intermediate steps may not be to
facilitate learning how to solve a task. The intermediate steps are rather a
beacon for the model to realize what symbols to replicate in the output to form
a factual answer. Further, text imbues patterns with commonsense knowledge and
meaning. Our empirical and qualitative analysis reveals that a symbiotic
relationship between text and patterns explains the success of few-shot
prompting: text helps extract commonsense from the question to help patterns,
and patterns enforce task understanding and direct text generation. | http://arxiv.org/pdf/2209.07686 | [
"Aman Madaan",
"Amir Yazdanbakhsh"
] | [
"cs.CL",
"cs.AI",
"cs.LG"
] | Shortened version with additional results from CODEX and GPT-3. The
authors contributed equally. Work done when Aman Madaan was a student
researcher at Google Research, Brain Team | null | cs.CL | 20220916 | 20221013 | [
{
"id": "2202.07206"
},
{
"id": "2109.03910"
},
{
"id": "2201.08239"
},
{
"id": "2204.02311"
},
{
"id": "2204.01691"
},
{
"id": "2107.13586"
},
{
"id": "2109.01652"
},
{
"id": "2103.07191"
},
{
"id": "2109.07830"
},
{
"id": "2203.02155"
},
{
"id": "2203.11171"
},
{
"id": "2206.14576"
},
{
"id": "2206.14858"
},
{
"id": "2107.03374"
},
{
"id": "2207.00747"
},
{
"id": "2109.00725"
},
{
"id": "2203.07814"
},
{
"id": "2102.01672"
},
{
"id": "2205.12685"
},
{
"id": "2110.14168"
},
{
"id": "2101.06804"
},
{
"id": "2112.00114"
},
{
"id": "2206.04615"
},
{
"id": "1705.04146"
},
{
"id": "2205.12615"
},
{
"id": "2112.08633"
},
{
"id": "2209.07686"
},
{
"id": "2201.11903"
},
{
"id": "2010.10596"
},
{
"id": "2202.12837"
},
{
"id": "2205.10625"
},
{
"id": "2205.11916"
}
] |
2209.07686 | 271 | qPrompt 1
åQÞÑIsthefollowingsentence plausible? “Jamel Murraywasperfectfrom theline.”
TÞÑJamalMurray->basketball. perfectfrom theline->basketball.
VAÞÑyes
qPrompt 2
åQÞÑIsthefollowingsentence plausible? “Joao Moutinho caught thescreen pass intheNFC cham pionship.”
TÞÑJoao Moutinho ->soccer.NFC cham pionship ->Amer icanfootball.
VAÞÑno
qPrompt 3
åQÞÑIsthefollowingsentence plausible? “Jonas Valan ciunasbeat thebuzzer.”
TÞÑJonas Valan ciunas->basketball. beatingthebuzzer ->basketball.
VAÞÑyes
qPrompt 4
åQÞÑIsthefollowingsentence plausible? “Sam Darnold passed thepuck.”
TÞÑSam Darnold ->Amer icanfootball. passingthepuck ->hockey.
VAÞÑno
qPrompt 5 | 2209.07686 | Text and Patterns: For Effective Chain of Thought, It Takes Two to Tango | The past decade has witnessed dramatic gains in natural language processing
and an unprecedented scaling of large language models. These developments have
been accelerated by the advent of few-shot techniques such as chain of thought
(CoT) prompting. Specifically, CoT pushes the performance of large language
models in a few-shot setup by augmenting the prompts with intermediate steps.
Despite impressive results across various tasks, the reasons behind their
success have not been explored. This work uses counterfactual prompting to
develop a deeper understanding of CoT-based few-shot prompting mechanisms in
large language models. We first systematically identify and define the key
components of a prompt: symbols, patterns, and text. Then, we devise and
conduct an exhaustive set of experiments across four different tasks, by
querying the model with counterfactual prompts where only one of these
components is altered. Our experiments across three models (PaLM, GPT-3, and
CODEX) reveal several surprising findings and brings into question the
conventional wisdom around few-shot prompting. First, the presence of factual
patterns in a prompt is practically immaterial to the success of CoT. Second,
our results conclude that the primary role of intermediate steps may not be to
facilitate learning how to solve a task. The intermediate steps are rather a
beacon for the model to realize what symbols to replicate in the output to form
a factual answer. Further, text imbues patterns with commonsense knowledge and
meaning. Our empirical and qualitative analysis reveals that a symbiotic
relationship between text and patterns explains the success of few-shot
prompting: text helps extract commonsense from the question to help patterns,
and patterns enforce task understanding and direct text generation. | http://arxiv.org/pdf/2209.07686 | [
"Aman Madaan",
"Amir Yazdanbakhsh"
] | [
"cs.CL",
"cs.AI",
"cs.LG"
] | Shortened version with additional results from CODEX and GPT-3. The
authors contributed equally. Work done when Aman Madaan was a student
researcher at Google Research, Brain Team | null | cs.CL | 20220916 | 20221013 | [
{
"id": "2202.07206"
},
{
"id": "2109.03910"
},
{
"id": "2201.08239"
},
{
"id": "2204.02311"
},
{
"id": "2204.01691"
},
{
"id": "2107.13586"
},
{
"id": "2109.01652"
},
{
"id": "2103.07191"
},
{
"id": "2109.07830"
},
{
"id": "2203.02155"
},
{
"id": "2203.11171"
},
{
"id": "2206.14576"
},
{
"id": "2206.14858"
},
{
"id": "2107.03374"
},
{
"id": "2207.00747"
},
{
"id": "2109.00725"
},
{
"id": "2203.07814"
},
{
"id": "2102.01672"
},
{
"id": "2205.12685"
},
{
"id": "2110.14168"
},
{
"id": "2101.06804"
},
{
"id": "2112.00114"
},
{
"id": "2206.04615"
},
{
"id": "1705.04146"
},
{
"id": "2205.12615"
},
{
"id": "2112.08633"
},
{
"id": "2209.07686"
},
{
"id": "2201.11903"
},
{
"id": "2010.10596"
},
{
"id": "2202.12837"
},
{
"id": "2205.10625"
},
{
"id": "2205.11916"
}
] |
2209.07686 | 272 | TÞÑSam Darnold ->Amer icanfootball. passingthepuck ->hockey.
VAÞÑno
qPrompt 5
åQÞÑIsthefollowingsentence plausible? “Kyle Palmieri wascalled forslash ing.”
TÞÑKyle Palmieri ->hockey. called forslash ing->hockey.
VAÞÑyes
qPrompt 6
åQÞÑIsthefollowingsentence plausible? “Car sonWentz setthepick androll.”
TÞÑCarsonWentz is->Amer icanfootball. pick androll->basketball.
VAÞÑno
qPrompt 7
åQÞÑIsthefollowingsentence plausible? “Mal colm Brog donbanked theshot in.”
TÞÑMalcolm Brog don->basketball. bank ingtheshot in->basketball.
VAÞÑyes
qPrompt 8
åQÞÑIsthefollowingsentence plausible? “Dray mond Green threw atouch down.”
TÞÑDray mond Green ->basketball. throw ingatouch down ->football.
VAÞÑno | 2209.07686 | Text and Patterns: For Effective Chain of Thought, It Takes Two to Tango | The past decade has witnessed dramatic gains in natural language processing
and an unprecedented scaling of large language models. These developments have
been accelerated by the advent of few-shot techniques such as chain of thought
(CoT) prompting. Specifically, CoT pushes the performance of large language
models in a few-shot setup by augmenting the prompts with intermediate steps.
Despite impressive results across various tasks, the reasons behind their
success have not been explored. This work uses counterfactual prompting to
develop a deeper understanding of CoT-based few-shot prompting mechanisms in
large language models. We first systematically identify and define the key
components of a prompt: symbols, patterns, and text. Then, we devise and
conduct an exhaustive set of experiments across four different tasks, by
querying the model with counterfactual prompts where only one of these
components is altered. Our experiments across three models (PaLM, GPT-3, and
CODEX) reveal several surprising findings and brings into question the
conventional wisdom around few-shot prompting. First, the presence of factual
patterns in a prompt is practically immaterial to the success of CoT. Second,
our results conclude that the primary role of intermediate steps may not be to
facilitate learning how to solve a task. The intermediate steps are rather a
beacon for the model to realize what symbols to replicate in the output to form
a factual answer. Further, text imbues patterns with commonsense knowledge and
meaning. Our empirical and qualitative analysis reveals that a symbiotic
relationship between text and patterns explains the success of few-shot
prompting: text helps extract commonsense from the question to help patterns,
and patterns enforce task understanding and direct text generation. | http://arxiv.org/pdf/2209.07686 | [
"Aman Madaan",
"Amir Yazdanbakhsh"
] | [
"cs.CL",
"cs.AI",
"cs.LG"
] | Shortened version with additional results from CODEX and GPT-3. The
authors contributed equally. Work done when Aman Madaan was a student
researcher at Google Research, Brain Team | null | cs.CL | 20220916 | 20221013 | [
{
"id": "2202.07206"
},
{
"id": "2109.03910"
},
{
"id": "2201.08239"
},
{
"id": "2204.02311"
},
{
"id": "2204.01691"
},
{
"id": "2107.13586"
},
{
"id": "2109.01652"
},
{
"id": "2103.07191"
},
{
"id": "2109.07830"
},
{
"id": "2203.02155"
},
{
"id": "2203.11171"
},
{
"id": "2206.14576"
},
{
"id": "2206.14858"
},
{
"id": "2107.03374"
},
{
"id": "2207.00747"
},
{
"id": "2109.00725"
},
{
"id": "2203.07814"
},
{
"id": "2102.01672"
},
{
"id": "2205.12685"
},
{
"id": "2110.14168"
},
{
"id": "2101.06804"
},
{
"id": "2112.00114"
},
{
"id": "2206.04615"
},
{
"id": "1705.04146"
},
{
"id": "2205.12615"
},
{
"id": "2112.08633"
},
{
"id": "2209.07686"
},
{
"id": "2201.11903"
},
{
"id": "2010.10596"
},
{
"id": "2202.12837"
},
{
"id": "2205.10625"
},
{
"id": "2205.11916"
}
] |
2209.07686 | 273 | TÞÑDray mond Green ->basketball. throw ingatouch down ->football.
VAÞÑno
66
Table 36: Comparison of the average number of input and output tokens for PaLM-62 B. The corresponding tables for each task refers to C OT and CC OT prompts, respectively.
TaskAvg. # of Input Tokens Avg. # of Output Tokens
COT CC OT Reduction C OT CC OT Reduction
GSM-8 K(COTÞÑTable 38, CC OTÞÑTable 33) 503.25 434.25 1.16 55.51 62.02 0.90
DATE(COTÞÑTable 39, CC OTÞÑTable 34) 321.39 276.39 1.16 21.47 15.55 1.38
SPORTS (COTÞÑTable 40, CC OTÞÑTable 35) 283.97 240.97 1.18 20.04 15.27 1.31
SORTING (COTÞÑTable 86, CC OTÞÑTable 41) 553.01 266.01 2.08 99.34 36.16 2.75
Average Reduction — — 1.39 — — 1.58 | 2209.07686 | Text and Patterns: For Effective Chain of Thought, It Takes Two to Tango | The past decade has witnessed dramatic gains in natural language processing
and an unprecedented scaling of large language models. These developments have
been accelerated by the advent of few-shot techniques such as chain of thought
(CoT) prompting. Specifically, CoT pushes the performance of large language
models in a few-shot setup by augmenting the prompts with intermediate steps.
Despite impressive results across various tasks, the reasons behind their
success have not been explored. This work uses counterfactual prompting to
develop a deeper understanding of CoT-based few-shot prompting mechanisms in
large language models. We first systematically identify and define the key
components of a prompt: symbols, patterns, and text. Then, we devise and
conduct an exhaustive set of experiments across four different tasks, by
querying the model with counterfactual prompts where only one of these
components is altered. Our experiments across three models (PaLM, GPT-3, and
CODEX) reveal several surprising findings and brings into question the
conventional wisdom around few-shot prompting. First, the presence of factual
patterns in a prompt is practically immaterial to the success of CoT. Second,
our results conclude that the primary role of intermediate steps may not be to
facilitate learning how to solve a task. The intermediate steps are rather a
beacon for the model to realize what symbols to replicate in the output to form
a factual answer. Further, text imbues patterns with commonsense knowledge and
meaning. Our empirical and qualitative analysis reveals that a symbiotic
relationship between text and patterns explains the success of few-shot
prompting: text helps extract commonsense from the question to help patterns,
and patterns enforce task understanding and direct text generation. | http://arxiv.org/pdf/2209.07686 | [
"Aman Madaan",
"Amir Yazdanbakhsh"
] | [
"cs.CL",
"cs.AI",
"cs.LG"
] | Shortened version with additional results from CODEX and GPT-3. The
authors contributed equally. Work done when Aman Madaan was a student
researcher at Google Research, Brain Team | null | cs.CL | 20220916 | 20221013 | [
{
"id": "2202.07206"
},
{
"id": "2109.03910"
},
{
"id": "2201.08239"
},
{
"id": "2204.02311"
},
{
"id": "2204.01691"
},
{
"id": "2107.13586"
},
{
"id": "2109.01652"
},
{
"id": "2103.07191"
},
{
"id": "2109.07830"
},
{
"id": "2203.02155"
},
{
"id": "2203.11171"
},
{
"id": "2206.14576"
},
{
"id": "2206.14858"
},
{
"id": "2107.03374"
},
{
"id": "2207.00747"
},
{
"id": "2109.00725"
},
{
"id": "2203.07814"
},
{
"id": "2102.01672"
},
{
"id": "2205.12685"
},
{
"id": "2110.14168"
},
{
"id": "2101.06804"
},
{
"id": "2112.00114"
},
{
"id": "2206.04615"
},
{
"id": "1705.04146"
},
{
"id": "2205.12615"
},
{
"id": "2112.08633"
},
{
"id": "2209.07686"
},
{
"id": "2201.11903"
},
{
"id": "2010.10596"
},
{
"id": "2202.12837"
},
{
"id": "2205.10625"
},
{
"id": "2205.11916"
}
] |
2209.07686 | 274 | Average Reduction — — 1.39 — — 1.58
The next logical question is to determine to what extend CC OT reduces the number of tokens. Table 36
compares the average number of input/output tokens between C OT and CC OT. On average, CC OT (our
approach) reduces the number of input and output tokens by 1.39 and 1.58, respectively. This reduction
in the number of tokens could potentially render as energy saving in the model inference, which we defer
for future work. To conclude, we highlight the importance of conducting theoretical and empirical studies to
better understand the sensitivity of LLM performance to the number of tokens under few-shot setting. We
now present additional results and examples that were moved from the main text for brevity and clarity.
Table 37: Some representative examples from small number of cases where just pattern is better
åQ1ÞÑIs the following sentence plausible? "Gardner Minshew was safe at home."
A(p): Gardner Minshew is a football player. Being safe at home is part of life. So the answer is yes.
A(Cpat_noneppq): Both are a part of different sports. So the answer is no | 2209.07686 | Text and Patterns: For Effective Chain of Thought, It Takes Two to Tango | The past decade has witnessed dramatic gains in natural language processing
and an unprecedented scaling of large language models. These developments have
been accelerated by the advent of few-shot techniques such as chain of thought
(CoT) prompting. Specifically, CoT pushes the performance of large language
models in a few-shot setup by augmenting the prompts with intermediate steps.
Despite impressive results across various tasks, the reasons behind their
success have not been explored. This work uses counterfactual prompting to
develop a deeper understanding of CoT-based few-shot prompting mechanisms in
large language models. We first systematically identify and define the key
components of a prompt: symbols, patterns, and text. Then, we devise and
conduct an exhaustive set of experiments across four different tasks, by
querying the model with counterfactual prompts where only one of these
components is altered. Our experiments across three models (PaLM, GPT-3, and
CODEX) reveal several surprising findings and brings into question the
conventional wisdom around few-shot prompting. First, the presence of factual
patterns in a prompt is practically immaterial to the success of CoT. Second,
our results conclude that the primary role of intermediate steps may not be to
facilitate learning how to solve a task. The intermediate steps are rather a
beacon for the model to realize what symbols to replicate in the output to form
a factual answer. Further, text imbues patterns with commonsense knowledge and
meaning. Our empirical and qualitative analysis reveals that a symbiotic
relationship between text and patterns explains the success of few-shot
prompting: text helps extract commonsense from the question to help patterns,
and patterns enforce task understanding and direct text generation. | http://arxiv.org/pdf/2209.07686 | [
"Aman Madaan",
"Amir Yazdanbakhsh"
] | [
"cs.CL",
"cs.AI",
"cs.LG"
] | Shortened version with additional results from CODEX and GPT-3. The
authors contributed equally. Work done when Aman Madaan was a student
researcher at Google Research, Brain Team | null | cs.CL | 20220916 | 20221013 | [
{
"id": "2202.07206"
},
{
"id": "2109.03910"
},
{
"id": "2201.08239"
},
{
"id": "2204.02311"
},
{
"id": "2204.01691"
},
{
"id": "2107.13586"
},
{
"id": "2109.01652"
},
{
"id": "2103.07191"
},
{
"id": "2109.07830"
},
{
"id": "2203.02155"
},
{
"id": "2203.11171"
},
{
"id": "2206.14576"
},
{
"id": "2206.14858"
},
{
"id": "2107.03374"
},
{
"id": "2207.00747"
},
{
"id": "2109.00725"
},
{
"id": "2203.07814"
},
{
"id": "2102.01672"
},
{
"id": "2205.12685"
},
{
"id": "2110.14168"
},
{
"id": "2101.06804"
},
{
"id": "2112.00114"
},
{
"id": "2206.04615"
},
{
"id": "1705.04146"
},
{
"id": "2205.12615"
},
{
"id": "2112.08633"
},
{
"id": "2209.07686"
},
{
"id": "2201.11903"
},
{
"id": "2010.10596"
},
{
"id": "2202.12837"
},
{
"id": "2205.10625"
},
{
"id": "2205.11916"
}
] |
2209.07686 | 275 | A(Cpat_noneppq): Both are a part of different sports. So the answer is no
åQ2ÞÑBrandon’s iPhone is four times as old as Ben’s iPhone. Ben’s iPhone is two times older than Suzy’s iPhone.
If Suzy’s iPhone is 1 year old, how old is Brandon’s iPhone?
A(p): Brandon’s iPhone is 4 times as old as Ben’s iPhone. So Brandon’s iPhone is 4 years old. Ben’s iPhone is 2
times older than Suzy s iPhone. So Ben s iPhone is 2 years older than Suzy s iPhone. So Suzy’s iPhone is 1 year old.
The answer is 4.
A(Cpat_noneppq): 4 * 2 * 1 = 8. The answer is 8.
åQ3ÞÑJerry has two pools, both with leaks emptying them out at 4 gallons/minute. 4 minutes ago, the big pool had
twice as much water as the small pool. Now the big pool has four times as much water as the small pool. How much
water does the small pool have now?
A(p): The big pool had twice as much water as the small pool. So the big pool had 2 * 4 = 8 gallons. The small pool | 2209.07686 | Text and Patterns: For Effective Chain of Thought, It Takes Two to Tango | The past decade has witnessed dramatic gains in natural language processing
and an unprecedented scaling of large language models. These developments have
been accelerated by the advent of few-shot techniques such as chain of thought
(CoT) prompting. Specifically, CoT pushes the performance of large language
models in a few-shot setup by augmenting the prompts with intermediate steps.
Despite impressive results across various tasks, the reasons behind their
success have not been explored. This work uses counterfactual prompting to
develop a deeper understanding of CoT-based few-shot prompting mechanisms in
large language models. We first systematically identify and define the key
components of a prompt: symbols, patterns, and text. Then, we devise and
conduct an exhaustive set of experiments across four different tasks, by
querying the model with counterfactual prompts where only one of these
components is altered. Our experiments across three models (PaLM, GPT-3, and
CODEX) reveal several surprising findings and brings into question the
conventional wisdom around few-shot prompting. First, the presence of factual
patterns in a prompt is practically immaterial to the success of CoT. Second,
our results conclude that the primary role of intermediate steps may not be to
facilitate learning how to solve a task. The intermediate steps are rather a
beacon for the model to realize what symbols to replicate in the output to form
a factual answer. Further, text imbues patterns with commonsense knowledge and
meaning. Our empirical and qualitative analysis reveals that a symbiotic
relationship between text and patterns explains the success of few-shot
prompting: text helps extract commonsense from the question to help patterns,
and patterns enforce task understanding and direct text generation. | http://arxiv.org/pdf/2209.07686 | [
"Aman Madaan",
"Amir Yazdanbakhsh"
] | [
"cs.CL",
"cs.AI",
"cs.LG"
] | Shortened version with additional results from CODEX and GPT-3. The
authors contributed equally. Work done when Aman Madaan was a student
researcher at Google Research, Brain Team | null | cs.CL | 20220916 | 20221013 | [
{
"id": "2202.07206"
},
{
"id": "2109.03910"
},
{
"id": "2201.08239"
},
{
"id": "2204.02311"
},
{
"id": "2204.01691"
},
{
"id": "2107.13586"
},
{
"id": "2109.01652"
},
{
"id": "2103.07191"
},
{
"id": "2109.07830"
},
{
"id": "2203.02155"
},
{
"id": "2203.11171"
},
{
"id": "2206.14576"
},
{
"id": "2206.14858"
},
{
"id": "2107.03374"
},
{
"id": "2207.00747"
},
{
"id": "2109.00725"
},
{
"id": "2203.07814"
},
{
"id": "2102.01672"
},
{
"id": "2205.12685"
},
{
"id": "2110.14168"
},
{
"id": "2101.06804"
},
{
"id": "2112.00114"
},
{
"id": "2206.04615"
},
{
"id": "1705.04146"
},
{
"id": "2205.12615"
},
{
"id": "2112.08633"
},
{
"id": "2209.07686"
},
{
"id": "2201.11903"
},
{
"id": "2010.10596"
},
{
"id": "2202.12837"
},
{
"id": "2205.10625"
},
{
"id": "2205.11916"
}
] |
2209.07686 | 276 | A(p): The big pool had twice as much water as the small pool. So the big pool had 2 * 4 = 8 gallons. The small pool
had 4 gallons. 4 minutes ago, the big pool had 8 gallons and the small pool had 4 gallons. Now the big pool has 4
times as much water as the small pool. So the big pool has 4 * 4 = 16 gallons. The small pool has 4 - 16 = -12 gallons.
The answer is -12.
A(Cpat_noneppq): 2 * 4 = 8. The answer is 8.
67
Text and Patterns: For Effective Chain of Thought, It Takes Two to Tango
Source Code 1: Python code to reproduce Sort dataset.
1 from itertools import combinations
2 from itertools import permutations
3 import numpy asnp
4
5 def GenerateCombinations (A, r):
6 """
7 Returns subsequences of elements with length r from array A.
8 """
9 return list (combinations(A, r))
10
11 def main (_):
12 base_array =np.arange( 10)
13 with open ( sort_dataset.tsv , wt )assort_ds:
14 tsv_writer =csv.writer(sort_ds, delimiter = \t ) | 2209.07686 | Text and Patterns: For Effective Chain of Thought, It Takes Two to Tango | The past decade has witnessed dramatic gains in natural language processing
and an unprecedented scaling of large language models. These developments have
been accelerated by the advent of few-shot techniques such as chain of thought
(CoT) prompting. Specifically, CoT pushes the performance of large language
models in a few-shot setup by augmenting the prompts with intermediate steps.
Despite impressive results across various tasks, the reasons behind their
success have not been explored. This work uses counterfactual prompting to
develop a deeper understanding of CoT-based few-shot prompting mechanisms in
large language models. We first systematically identify and define the key
components of a prompt: symbols, patterns, and text. Then, we devise and
conduct an exhaustive set of experiments across four different tasks, by
querying the model with counterfactual prompts where only one of these
components is altered. Our experiments across three models (PaLM, GPT-3, and
CODEX) reveal several surprising findings and brings into question the
conventional wisdom around few-shot prompting. First, the presence of factual
patterns in a prompt is practically immaterial to the success of CoT. Second,
our results conclude that the primary role of intermediate steps may not be to
facilitate learning how to solve a task. The intermediate steps are rather a
beacon for the model to realize what symbols to replicate in the output to form
a factual answer. Further, text imbues patterns with commonsense knowledge and
meaning. Our empirical and qualitative analysis reveals that a symbiotic
relationship between text and patterns explains the success of few-shot
prompting: text helps extract commonsense from the question to help patterns,
and patterns enforce task understanding and direct text generation. | http://arxiv.org/pdf/2209.07686 | [
"Aman Madaan",
"Amir Yazdanbakhsh"
] | [
"cs.CL",
"cs.AI",
"cs.LG"
] | Shortened version with additional results from CODEX and GPT-3. The
authors contributed equally. Work done when Aman Madaan was a student
researcher at Google Research, Brain Team | null | cs.CL | 20220916 | 20221013 | [
{
"id": "2202.07206"
},
{
"id": "2109.03910"
},
{
"id": "2201.08239"
},
{
"id": "2204.02311"
},
{
"id": "2204.01691"
},
{
"id": "2107.13586"
},
{
"id": "2109.01652"
},
{
"id": "2103.07191"
},
{
"id": "2109.07830"
},
{
"id": "2203.02155"
},
{
"id": "2203.11171"
},
{
"id": "2206.14576"
},
{
"id": "2206.14858"
},
{
"id": "2107.03374"
},
{
"id": "2207.00747"
},
{
"id": "2109.00725"
},
{
"id": "2203.07814"
},
{
"id": "2102.01672"
},
{
"id": "2205.12685"
},
{
"id": "2110.14168"
},
{
"id": "2101.06804"
},
{
"id": "2112.00114"
},
{
"id": "2206.04615"
},
{
"id": "1705.04146"
},
{
"id": "2205.12615"
},
{
"id": "2112.08633"
},
{
"id": "2209.07686"
},
{
"id": "2201.11903"
},
{
"id": "2010.10596"
},
{
"id": "2202.12837"
},
{
"id": "2205.10625"
},
{
"id": "2205.11916"
}
] |
2209.07686 | 277 | 14 tsv_writer =csv.writer(sort_ds, delimiter = \t )
15 tsv_writer .writerow([ Question , Answer , Thought ])
16 for jinrange (2,10):
17 current_array =GenerateCombinations(base_array, j)
18 for iincurrent_array:
19 current_permutations =list (permutations(i))
20 for sincurrent_permutations:
21 question = , .join([ str(x) for xins])
22 answer = , .join([ str(x) for xinnp.sort( list (s))])
23 thought = < |