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 | 163 | Table 17: All results for S PORTS : p-values calculated using McNemar’s test for various counterfactual
prompts used in S PORTS experiments. The p-value corresponds to the null hypothesis: The marginal
probability of a sample being correct with the counterfactual prompt and COTis same . Larger pvalues indicates that likelihood that the null hypothesis is correct is large. Cohen’s measures the
degree of agreement between the decisions of C OT and the counterfactual prompt. An agreement of
over 0.4 is moderate, and over 0.6 is substantial.
Solve Rate
Prompt S0 S1 S2 Avg. SD Mcnemar’s p-value Cohen’s
DIRECT 72.18% 68.25% 72.80% 71.08% 2.015 0.00001 0.0721
COT(p) (Table 40) 93.59 % 94.00% 93.17% 93.59% 0.338 — —
Csymb_abs_perppq(Table 45) 86.25 % 85.32% 86.14% 85.90% 0.417 0.00001 0.4420 | 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 | 164 | Csymb_abs_actppq(Table 46) 90.69 % 92.45% 93.17% 92.11% 1.042 0.349727 0.5878
Csymb_oodppq(Table 50) 79.01 % 79.73% 79.11% 79.28% 0.320 0.00001 0.2630
Cpat_onlyppq(Table 59) 73.11 % 75.39% 76.01% 74.84% 1.245 0.00001 0.2008
Cpat_wrongppq(Table 64) 43.54 % 49.12% 52.84% 48.50% 3.825 0.00001 -0.0099
Cpat_noneppq(Table 63) 70.01 % 82.01% 85.52% 79.18% 6.641 0.00001 0.1759
Ctext_diff_entities ppq(Table 69) 69.49 % 64.63% 66.49% 66.87% 2.002 0.00001 0.0689
Ctext_randppq(Table 77) 52.84 % 63.39% 63.08% 59.77% 4.901 0.00001 0.0931 | 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 | 165 | Ctext_randppq(Table 77) 52.84 % 63.39% 63.08% 59.77% 4.901 0.00001 0.0931
Ctext_yodathoughtsppq(Table 71) 63.19 % 73.73% 60.39% 65.77% 5.745 0.00001 0.1021
Ctext_yodappq(Table 74) 67.43 % 69.29% 55.12% 63.94% 6.286 0.00001 0.1114
Ctext_yodaquestions ppq(Table 74) 91.73 % 89.56% 90.49% 90.59% 0.890 0.000194 0.6772
Ctext_intra_shufppq(Table 80) 66.70 % 61.53% 55.43% 61.22% 4.607 0.00001 0.1333
Ctext_inter_shufppq(Table 83) 58.84 % 63.19% 63.19% 61.74% 2.047 0.00001 0.0595
36
Table 18: Results for S ORTING : p-values calculated using McNemar‘s test for various counterfactual | 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 | 166 | 36
Table 18: Results for S ORTING : p-values calculated using McNemar‘s test for various counterfactual
prompts used in S ORTING experiments. The p-value corresponds to the null hypothesis: The marginal
probability of a sample being correct with the counterfactual prompt and COTis same . Larger pvalues indicates that likelihood that the null hypothesis is correct is large. Cohen’s measures the
degree of agreement between the decisions of C OT and the counterfactual prompt. An agreement of
over 0.4 is moderate, and over 0.6 is substantial.
Solve Rate
Prompt S0 S1 S2 Avg. SD Mcnemar’s p-value Cohen’s
DIRECT 46.0% 50.0% 44.6% 46.87% 2.288 0.00001 0.6981
COT(p) (Table 41) 60.6 % 66.2% 58.8% 61.87% 3.151 — —
Csymb_absppq(Table 44) 52.8 % 57.6% 61.2% 57.20% 3.441 0.140201 0.2333 | 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 | 167 | Csymb_absppq(Table 44) 52.8 % 57.6% 61.2% 57.20% 3.441 0.140201 0.2333
Csymb_oodppq(Table 51) 91.2 % 66.4% 86.8% 81.47% 10.804 0.333333 0.4274
Cpat_wrongppq(Table 65) 59.8 % 67.0% 57.6% 61.47% 4.014 0.305524 0.9390
Cpat_noneppq(Table 61) 66.4 % 85.0% 86.4% 79.27% 9.116 0.019411 0.1836
37
Table 19: The actual symbols are not important for the task, but their presence is: experimenting with
various counterfactual prompts that modify the symbols does not affect performance across tasks. A
sample modified thought for each category (e.g., abstract and out of distribution) is depicted below
(Refer to Appendix K for the complete list of counterfactual prompts). We accordingly update the
questions associated with each thought.
Question / Thought Prompt Type Solve Rate
MATHEMATICAL
Question: Shawn has five toys. For Christmas, he got two toys each from his mom and | 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 | 168 | Question / Thought Prompt Type Solve Rate
MATHEMATICAL
Question: Shawn has five toys. For Christmas, he got two toys each from his mom and
dad. How many toys does he have now?DIRECT 10.11 %
Thought: Shawn started with 5toys. If he got 2toys each from his mom and dad, then
that is 4more toys. 5+4=9.COT (Table 38) 27.37 %
Thought: Shawn started with toys. If he got toys each from his mom and dad,
then that ismore toys.+=.Csymb_absppq(Table 43) 25.70 %
Thought: Shawn started with 5.5toys. If he got 2.5toys each from his mom and dad,
then that is 5more toys. 5.5+5=10.5.Csymb_oodppq(Table 48) 28.20 %
COMMONSENSE (SPORTS )
Question: Is the following sentence plausible? “Jamal Murray was perfect from the
line.”DIRECT 71.08 %
Thought: Jamal Murray is a basketball player. Being perfect from the line is part of
basketball.COT (Table 40) 93.67 % | 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 | 169 | Thought: Jamal Murray is a basketball player. Being perfect from the line is part of
basketball.COT (Table 40) 93.67 %
Thought: PERSON is a basketball player. Being perfect from the line is part of basketball.Csymb_absppq(Table 45) 86.12 %
Thought: Jamal Murray is a basketball player. Being ACTIVITY is part of basketball. Csymb_absppq(Table 46) 92.11 %
Thought: Adair Foster is a basketball player. Juggling the paper cups is part of
basketball.Csymb_oodppq(Table 50) 79.72 %
COMMONSENSE (DATE)
Question: It is 4/19/1969 today. What is the date 24 hours later in MM/DD/YYYY? D IRECT 31.61 %
Thought: Today is 04/19/1969 . 24 hours later is one day after today, which would be
04/20/1969 .COT (Table 39) 45.18 %
Thought: Today is DATE . 24 hours later is one day after today, which would be DATE .Csymb_absppq(Table 42) 37.41 %
Thought: Today is 04/30/3069 . 24 hours later is one day after today, which would be | 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 | 170 | Thought: Today is 04/30/3069 . 24 hours later is one day after today, which would be
04/31/3069 .Csymb_oodppq(Table 49) 44.50 %
SYMBOLIC (SORTING )
Question: 7 , 8 , 4 , 1 , 2 , 9 , 3 , 6 , 5 D IRECT 46.0%
Thought: 1 2 3 4 5 6 7 8 9 COT (Table 41) 60.6 %
Thought: c<<
<<<<<< Csymb_absppq(Table 44) 61.8 %
Thought: 11 23 34 48 56 63 72 85 95 Csymb_oodppq(Table 51) 80.0 %
ADDITIONAL EXPERIMENTS
F. A DDITIONAL EXPERIMENTS ON ROLE OF SYMBOLS
This section provides additional experiments and ablations omitted from the main text due to space constraints. Table 19 shows the detailed results. Appendix F.2 analyzes the generated outputs. The attention
plots are provided in this section at a higher resolution, and we also investigate how artifacts of datasets can
affect performance.
38 | 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 | 171 | plots are provided in this section at a higher resolution, and we also investigate how artifacts of datasets can
affect performance.
38
F.1. C OUNTERFACTUAL PROMPTS FOR SYMBOLS
«H0» The exact value and type of symbols are mostly immaterial to the model performance. Replacing
symbols with abstract placeholders can do just as well at eliciting effective thoughts.
Abstract symbols vCsymb_absppqw.We first experiment with the role of symbols by creating Csymb_absppq, a
modified variant of prompt pin which some or all the symbols are replaced with an abstract placeholder,
while preserving all other components of p. An example of the corresponding modified thought for each
task is shown in Table 19. In line with our hypothesis, the results in Table 19 illustrate that the performance has little to no impact when the symbols are replaced with abstract placeholders. Note that for the
SPORTS dataset, we also experiment with changing sportsperson and sport activity, which mutates the baseline thoughts to vague and ungrammatical. Our experiment shows that in this scenario, the task solve rates
decreases to merely 52.96 %. We summarize the outcome of additional experiments with Csymb_absppqon the
SPORTS dataset in Table 20. | 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 | 172 | decreases to merely 52.96 %. We summarize the outcome of additional experiments with Csymb_absppqon the
SPORTS dataset in Table 20.
The logical next question that emerges is the potential contributions of symbols, if any, and the relevance of
their types to the model performance. The results hint at a hypothesis that the presence of symbols and their
locations in the text presumably inform the model on how, and from where to replicate them in the output.
Specifically, we attempt to answer the following research questions: “ Dosymbols bear anoperational utility?Arethesymbols potentininform ingthemodel onhow toperform atask? Areeither type orvalue
ofsymbols pivotaltogeneratecogent answers? ” We conduct an additional experiment with counterfactual
prompting to test these hypotheses.
Out of distribution symbols vCsymb_oodppqw.To test the operational utility of symbols, we design counterfactual prompts Csymb_oodppq, in which the symbols are sampled from a distribution different from the
distribution of symbols in question. We experiment with out-of-distribution counterfactual prompts across
the studied datasets as follows: | 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 | 173 | distribution of symbols in question. We experiment with out-of-distribution counterfactual prompts across
the studied datasets as follows:
1.GSM-8 K: The symbols in the question are small integer ( ¤100), with40% between 1-5 and 80%
single digit integers (See Figure 14). ÞÑWe replace numbers in the prompt with decimal numbers, large
numbers, negative numbers, and fractions.
2.SPORTS : The symbols for each prompt represent a sportsperson and a sports activity. ÞÑDefining out-ofdistribution prompts for this dataset is not straightforward and well-defined. To craft out-of-distribution
counterfactual prompts for this dataset, we replace the sportsperson with a randomly generated name
and change the activity to a non-sport one (e.g., “passing the soda”). The intuition here is that this
modification should still be sufficiently instructive for the model to elicit structures from thoughts.
3.DATE: The symbols generally present dates from the past, present, or near future. ÞÑWe replace the
symbols with dates from the distant future. For example, 02/07/2022 is replaced with 02/07/3022 . The
answers are accordingly adjusted. | 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 | 174 | symbols with dates from the distant future. For example, 02/07/2022 is replaced with 02/07/3022 . The
answers are accordingly adjusted.
4.SORTING : The numbers in the questions are positive single-digit integers and zero. ÞÑTo create
Csymb_oodppqfor this dataset, we simply include examples with more significant integer numbers ( ¥10).
This setting appears to be similar to Csymb_absppq. However, note that under this setting, the symbols are
closer to the initial symbols in vanilla C OT. For example, in the GSM-8 Kand S ORTING datasets, the
symbols used for vanilla C OT andCsymb_oodppqboth belong to the set of real numbers. For these cases, the
questions are intuitively more similar to the prompt, in contrast to Csymb_absppqin which Greek symbols are
employed in the prompt.
The results summarized in Table 19—indicated with Csymb_oodppq—fail to reject our hypothesis and reinforce
our initial finding that the type of symbols is mostly immaterial to the model performance. A notable
exception is S PORTS , where including artificial names and activities closes the gap between D IRECT and | 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 | 175 | exception is S PORTS , where including artificial names and activities closes the gap between D IRECT and
COT. However, surprisingly, even with completely artificial names and activities in the S PORTS dataset, the
39
model performance is marginally better than direct. Another interesting exception occurs in the S ORTING
dataset. Compared to vanilla C OT, using larger integers ( ¥10) considerably improves the task solve rate
(60.6 %Ñ80.0%). We postulate that in this scenario, the modified thoughts more effectively inform the
model about the underlying task of sorting numbers.
These results indicate that placeholders and abstract values can do merely as well at eliciting effective
thoughts. However, the follow-up questions are whether the symbols are useful to any extent in solving
a task and whether we can simply strike them out from thoughts without observing any repercussions for the
model performance. Evidently, in tasks like S PORTS and S ORTING , removing symbols (e.g., sport/activity
type and person in S PORTS and numbers in S ORTING ) from thought is akin to D IRECT prompting. That
is, the remaining tokens in prompts after removing symbols are non-explanatory. For example, removing | 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 | 176 | is, the remaining tokens in prompts after removing symbols are non-explanatory. For example, removing
numbers in the S ORTING dataset molds the thoughts into mere commas. In other datasets like GSM-8 Kand
DATE, deleting all the symbols (e.g., numbers and dates) nullifies the gains carried over by C OT. In this
scenario, the solve rates drop to 11.97 (D IRECT = 9.6) and 29.95 (D IRECT = 31.6) in GSM-8 Kand D ATE,
respectively. In summary, while the exact symbol types and values are presumably not critical to the model
performance, without symbols, the model effectively neglects the semantic value of prompts.
F.2. R OLE OF SYMBOLS : OUTPUT ANALYSIS
Nature of generated answers. We observe that the task solve rates are relatively unaffected for both
Csymb_absppqandCsymb_oodppq. In hindsight, it is not apparent whether systematic differences exist in the
generated answers. To quantify this, we compute the Cohen’s agreement score (Cohen, 1960) between the
predictions generated by pand various counterfactual prompts. Similarly, we compute this score between | 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 | 177 | predictions generated by pand various counterfactual prompts. Similarly, we compute this score between
DIRECT and the same counterfactual prompts. The results (Appendix E.2) show that there is a moderate (>0.4) to substantial (>0.61) agreement between C OT and symbolic counterfactual prompts across all
datasets. In contrast, the agreement between D IRECT and the counterfactual prompts is meager (<0.2) in
all cases. These results reinforce our finding that the model may behave similarly regardless of the actual
type/value of the symbols.
Analysis of employing in-distribution symbols in thoughts. We also delve into the details of generated
answers for GSM-8 KusingpandCsymb_oodppq. As Table 19 delineates, Csymb_oodppqprompts for GSM-8 K
contain questions/thoughts with simple decimals. We investigate whether such prompts help to improve the
solve rate for questions with decimals preferentially. Surprisingly, we observe that such prompts did notrevive the ability of the model to generate correct answers for questions with decimals. Out of 1319 questions,
we identify 124 questions with at least one decimal. The performance breakdown of pvs.Csymb_oodppqwith | 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 | 178 | we identify 124 questions with at least one decimal. The performance breakdown of pvs.Csymb_oodppqwith
decimals on the two class questions is as follows. Either of the prompts solves 50 questions, out of which
both prompts solved 26. Out of 24 questions solved exclusively by either, psolved 18, whereas Csymb_oodppq
merely solved six. Heeding the results, it is plausible to conjecture that the model was notable to leverage
the presence of in-distribution symbols (decimal numbers) in the prompts to attain correct answers. As a
whole, these results reinforce our findings portrayed for the Csymb_absppqsetup that the model performance
is moderately insensitive to the exact value and type of symbols in the thoughts.
F.3. A TTENTION ANALYSIS
The analysis heretofore empirically hints at the limited potential of the values/types of the symbols in steering the model to generate correct answers. While counterfactual prompting naturally treats the target model
as a black box, we are also keen to understand the inference mechanism of LLM for such prompts. We use
the attention mechanism as a proxy indicator to compare the inference process of such models across different inputs. If our initial hypothesis about the limited role of symbols in generating effective patterns holds, | 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 | 179 | the attention mechanism as a proxy indicator to compare the inference process of such models across different inputs. If our initial hypothesis about the limited role of symbols in generating effective patterns holds,
we expect to observe similar attention patterns across different prompts. Figure 13 illustrates the average attention per token for a randomly sampled question across the studied datasets. The top and bottom heatmap
bars for each dataset show the average attention scores for vanilla C OT andCsymb_absppq, respectively. The
40
0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9(a) GSM-8 K:pvs.Csymb_absppq
0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9
(b) D ATE:pvs.Csymb_absppq
0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
(c) S PORTS :pvs.Csymb_absppq
0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9
(d) S ORTING :pvs.Csymb_absppq | 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 | 180 | (d) S ORTING :pvs.Csymb_absppq
Figure 12: The average attention per token for a randomly sampled question using vanilla C OT prompt
p(above) and different counterfactual prompts for three different reasoning datasets. The attention
scores are averaged over heads and layers. Near identical attention scores indicates that few-shot
models are relatively indifferent to the exact symbols, but are sensitive to patterns. In addition, this
study suggests that the model has a tendency to more profoundly attend to tokens at the vicinity of
final question (brighter bars at the right side of each bar). We explore the sensitivity of the model
performance to patterns in Section 5. Please see Section D for details on attention score calculation,
and per-layer heatmaps.
near identical attention patterns between these variants of prompting indicate that the model presumably
employs a similar inference mechanism in both cases. To glean further insights into the attention patterns,
we glance at the mapped average attention scores to the model input in Figure 13. Intriguingly, the model
attends to similar tokens with relatively similar attention scores. We expound on the attention calculation
mechanism and provide additional results on attention scores in Appendix D.
No symbols ablations. While symbols can be abstracted, and the patterns composing them are misleading, | 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 | 181 | mechanism and provide additional results on attention scores in Appendix D.
No symbols ablations. While symbols can be abstracted, and the patterns composing them are misleading,
they cannot simply be deleted. Removing all the symbols erases gains provided by C OT. We find that the
accuracy for D ATEdrops to 29.94%, while for GSM-8 K, it drops to 11.98%.
F.4. R OLE OF DATASET FOR EFFECTIVE CHAIN OF THOUGHT
As shown in experiments of Wei et al. (2022) and Zhou et al. (2022), the gains obtained by C OT are inconsistent and heavily depend on the dataset. In this section, we highlight a few peculiarities of popular datasets
that either allow C OT to be successful (GSM-8 K) or ineffective ( CSQA ).
Role of small numbers for maths. We find that, by and large, the capabilities of language models at doing
math are limited to simple operations between small numbers, as previously observed by Cobbe et al. (2021).
A simple ablation experiment reinforces this: We take a set of 25 randomly sampled questions on which
COT achieves perfect (100%) accuracy using a PaLM-62 B. Then, we change each question to increase the | 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 | 182 | COT achieves perfect (100%) accuracy using a PaLM-62 B. Then, we change each question to increase the
magnitude of numbers in the question to large numbers like those in hundreds. All the other factors, like text
in the question, order of prompt, and the model are kept intact. For example, a question Janet’s ducks lay 16
eggs per day. She eats three for breakfast every morning and bakes muffins for her friends every day with
four. She sells the remainder at the farmers’ market daily for $2 per fresh duck egg. How much in dollars
41
Q
:
There
are
5
trees
the
grove
.
Grove
workers
will
plant
trees
in
grove
today
.
After
they
are
done
,
there
will
be
2
1
trees
.
How
many
trees
did
the
grove
workers
plant
today
? | 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 | 183 | many
trees
did
the
grove
workers
plant
today
?
A
:
There
are
5
trees
originally
.
Then
there
were
2
1
trees
after
more
were
planted
.
So
there
must
have
been
2
5
=
.
The
answer
is
6
.
Q
:
If
there
are
3
cars
in
the
parking
lot
and
2
more
cars
arrive
,
how
many
cars
are
in
the
parking
lot
?
A
:
There
are
originally | 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 | 184 | in
the
parking
lot
?
A
:
There
are
originally
3
cars
.
2
more
cars
arrive
.
3
+
2
=
5
.
The
answer
is
5
.
Q
:
Leah
had
3
2
chocolates
and
her
sister
had
4
2
.
If
they
at
e
3
,
how
many
pieces
do
they
have
left
total
?
A
:
Originally
,
Leah
had
3
2
chocolates
.
Her
sister
had
4
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 | 185 | 3
2
chocolates
.
Her
sister
had
4
2
.
So
total
they
had
3
2
+
4
2
=
7
4
.
After
eating
3
5
they
had
4
3
5
=
3
9
.
The
answer
is
3
9
.
Q
:
Jason
had
2
0
lollipops
.
He
gave
Denny
some
lollipops
.
Now
Jason
has
1
2
lollipops
.
How
many
lollipops
did
Jason
give
to
Denny | 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 | 186 | .
How
many
lollipops
did
Jason
give
to
Denny
?
A
:
Jason
started
with
2
lollipops
.
Then
he
had
2
after
giving
some
to
Denny
.
So
he
gave
Denny
2
0
1
2
=
8
.
The
answer
is
8
.
Q
:
Shawn
has
five
toys
.
For
Christmas
,
he
got
two
toys
each
from
his
mom
and
dad
.
How
many
toys
does
he
have
now | 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 | 187 | and
dad
.
How
many
toys
does
he
have
now
?
A
:
Shawn
started
with
5
toys
.
If
he
got
2
toys
each
from
his
mom
and
dad
,
then
that
is
4
more
toys
.
5
+
4
=
9
.
The
answer
is
9
.
Q
:
There
were
nine
computers
in
the
server
room
.
Five
more
computers
were
installed
each
day
,
from
monday
to
thursday
.
How | 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 | 188 | each
day
,
from
monday
to
thursday
.
How
many
computers
are
now
in
the
server
room
?
A
:
There
were
originally
9
computers
.
For
each
of
4
days
,
5
more
computers
were
added
.
So
5
*
4
=
2
0
computers
were
added
.
9
+
2
0
is
2
9
.
The
answer
is
2
9
.
Q
:
Michael
had
5
8
golf
balls
.
On
tuesday | 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 | 189 | :
Michael
had
5
8
golf
balls
.
On
tuesday
,
he
lost
2
3
golf
balls
.
On
wednesday
,
he
lost
2
more
.
How
many
golf
balls
did
he
have
at
the
end
of
wednesday
?
A
:
Michael
started
with
5
8
golf
balls
.
After
losing
2
3
on
tuesday
,
he
had
5
8
2
3
=
3
5
.
After
losing
2
more
,
he
had
3 | 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 | 190 | 3
5
.
After
losing
2
more
,
he
had
3
5
2
=
3
3
golf
balls
.
The
answer
is
3
3
.
Q
:
Olivia
has
$
2
3
.
She
bought
five
bagels
for
$
3
each
.
How
much
money
does
she
have
left
?
A
:
Olivia
had
2
3
dollars
.
5
bagels
for
3
dollars
each
will
be
5
x
3
=
1
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 | 191 | each
will
be
5
x
3
=
1
5
dollars
.
So
she
has
2
3
1
5
dollars
left
.
2
3
1
5
is
8
.
The
answer
is
8
.(a) Vanilla C OT Promptp.
Q
:
There
are
α
trees
in
the
grove
.
Grove
workers
will
plant
trees
in
the
grove
today
.
After
they
are
done
,
there
will
be
β
one
trees
.
How
many
trees
did
the | 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 | 192 | be
β
one
trees
.
How
many
trees
did
the
grove
workers
plant
today
?
A
:
There
are
α
trees
originally
.
Then
there
were
β
one
trees
after
some
more
were
planted
.
So
there
must
have
been
β
one
α
=
λ
.
The
answer
is
λ
.
Q
:
If
there
are
α
cars
in
the
parking
lot
and
β
more
cars
arrive
,
how
many
cars
are
the
parking | 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 | 193 | more
cars
arrive
,
how
many
cars
are
the
parking
lot
?
A
:
There
are
originally
α
cars
.
β
more
cars
arrive
.
α
+
β
=
λ
.
The
answer
is
λ
.
Q
:
Leah
had
α
chocolates
and
her
sister
had
β
.
If
they
at
e
λ
,
how
many
pieces
do
they
have
left
in
total
?
A
:
Originally
,
Leah
had
α
chocolates
.
Her | 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 | 194 | A
:
Originally
,
Leah
had
α
chocolates
.
Her
sister
had
β
.
So
in
total
they
had
α
+
β
=
π
.
After
eating
λ
,
they
had
π
λ
=
μ
.
The
answer
is
μ
.
Q
:
Jason
had
α
lollipops
.
He
gave
Denny
some
.
Now
Jason
has
β
lollipops
.
How
many
lollipops
did
Jason
give
to
Denny
?
A
:
Jason
started | 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 | 195 | did
Jason
give
to
Denny
?
A
:
Jason
started
with
α
lollipops
.
Then
he
had
β
after
giving
some
to
Denny
.
So
he
gave
Denny
α
β
=
λ
.
The
answer
is
λ
.
Q
:
Shawn
has
α
toys
.
For
Christmas
,
he
got
β
toys
each
from
his
mom
and
dad
.
How
many
toys
does
he
have
now
?
A
:
Shawn
started
with | 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 | 196 | does
he
have
now
?
A
:
Shawn
started
with
α
toys
If
he
got
β
toys
each
from
his
mom
and
dad
,
then
that
is
λ
more
toys
.
α
+
λ
=
π
.
The
answer
is
π
.
Q
:
There
were
α
computers
in
the
server
room
.
β
more
computers
were
installed
each
day
,
from
monday
to
thursday
.
How
many
computers
are
now
in
the
server | 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 | 197 | .
How
many
computers
are
now
in
the
server
room
?
A
:
There
were
originally
α
computers
.
For
each
of
four
days
,
β
more
computers
were
added
.
So
β
*
four
=
λ
computers
were
added
.
α
+
λ
is
π
.
The
answer
is
π
.
Q
:
Michael
had
α
golf
balls
.
On
tuesday
,
he
lost
β
golf
balls
.
On
wednesday
,
he
lost | 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 | 198 | lost
β
golf
balls
.
On
wednesday
,
he
lost
λ
more
.
How
many
golf
balls
did
he
have
at
the
end
of
wednesday
?
A
:
Michael
started
with
α
golf
balls
.
After
losing
β
on
tuesday
,
he
had
α
β
=
π
.
After
losing
λ
more
,
he
had
π
λ
=
μ
golf
balls
.
The
answer
is
μ
.
Q
:
Olivia
has
$
α | 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 | 199 | answer
is
μ
.
Q
:
Olivia
has
$
α
.
She
bought
five
bagels
for
$
β
each
.
How
much
money
does
she
have
left
?
A
:
Olivia
had
α
dollars
.
5
bagels
for
β
dollars
each
will
be
5
x
β
=
λ
dollars
.
So
she
has
α
λ
dollars
left
.
α
λ
is
π
.
The
answer
is
π
. | 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 | 200 | α
λ
is
π
.
The
answer
is
π
.
(b) Counterfactual Prompts with Abstract Symbols Csymb _absppq.
Figure 13: Average attention per token for the same question using (a) vanilla C OT promptpand (b)
the counterfactual prompt with abstract symbols Csymb _absppq. The attention scores are for 0 thlayer,
averaged over attention heads. The question for both prompts is “Acandlemelts by2centimeters
everyhour that itburns. How many centimeters shorter willacandlebeafterburn ingfrom 1:00 PM
to5:00 PM?” . BothpandCsymb _absppqgenerate the right answer, and surprisingly attend relatively to
the same tokens. The phenomenon holds for higher layers, and the attention plots are included in
Appendix D. The plots concur with our findings and indicate that for PaLM, the role of pis primarily
to supply a way of generating effective patterns.
does she make every day at the farmers’ market? is replaced with Janet’s ducks lay 863 eggs per day. She | 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 | 201 | to supply a way of generating effective patterns.
does she make every day at the farmers’ market? is replaced with Janet’s ducks lay 863 eggs per day. She
eats 97 for breakfast every morning and bakes muffins for her friends every day with four seventy three. She
sells the remainder at the farmers’ market daily for $611 per fresh duck egg. How much in dollars does she
make every day at the farmers’ market?
We find that as magnitude increases, the accuracy drops from 100% to 12%, a 10x loss in accuracy. Even
with PaLM-540 B, the largest available language model, the accuracy went down to 16%, showing that
scale is not particularly helpful. We then use a calculator to evaluate the final outputs, and find that the
42
01234567810121520253040506080100
Number Patterns0.00%1.00%2.00%3.00%4.00%5.00%6.00%7.00%8.00%Frequency of Occurance(a) Frequency of Numbers in GSM-8 K
01234567810121520253040506080100 | 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 | 202 | 01234567810121520253040506080100
Number Patterns0.00%10.00%20.00%30.00%40.00%50.00%60.00%70.00%80.00%Cummulative Frequency of Occurance
(b) Cumulative Frequency of Numbers GSM-8 K
Figure 14: The frequency of numbers and the cumulative frequency of numbers in the GSM-8 K
dataset. Small single-digit numbers account for 50% of the digits in the dataset.
Table 20: Additional experiments for S PORTS . The first column shows variation of thoughts for the
question: Is the following sentence plausible? "Jamal Murray was perfect from the line." with the
answer yes. COT performs substantial gains over the no thought or direct baseline (top). The next
set of thoughts performs relation extraction, and outperforms C OT prompts. The next block shows
that linguistic patterns are important. Finally, abstracting out either PERSON orACTIVITY from the
prompt leads to no loss in the information. However, there is a substantial decrease in performance
when sports are extracted out, as it is not present in the question. In other words, extracting sports
is non-trivial. Finally, abstracting out activity and person maintain performance. Abstracting out all
information is the worst.
Thought Thought type Accuracy | 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 | 203 | is non-trivial. Finally, abstracting out activity and person maintain performance. Abstracting out all
information is the worst.
Thought Thought type Accuracy
- DIRECT 71.08 %
Jamal Murray is a basketball player. Being perfect from the line is part of basketball. C OT(p) (Table 40) 93.59 %
Being perfect from the line is part of basketball. Jamal Murray is a basketball player. Cswitched_orderppq(Table 90) 83.47 %
Jamal Murray is a SPORT player. Being perfect from the line is part of SPORT .Csymb_abs_sportppq(47) 64.59 %
PERSON is a basketball player. Being perfect from the line is part of basketball. Csymb_abs_perppq(Table 45) 85.9 %
Jamal Murray is a basketball player. Being ACTIVITY is part of basketball. Csymb_abs_actppq(Table 46) 92.11 %
PERSON is a SPORT player. Being perfect from the line is part of SPORT . Csymb_abs_per_spoppq(Table 89) 56.47 %
PERSON is a SPORT player. Being ACTIVITY is part of SPORT . Csymb_abs_allppq(Table 88) 52.96 % | 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 | 204 | PERSON is a SPORT player. Being ACTIVITY is part of SPORT . Csymb_abs_allppq(Table 88) 52.96 %
accuracy still dwindles at 30%, a 3x reduction in performance. What then explains the success of models
like PaLM in solving math word problems? We find that part of the answer lies in the values of digits that
are commonly found in these datasets, as shown in Figure 14.
Since language models are not really doing math, do the numbers in the prompt even matter? As results in
Section 4 show: the answer is no. Changing the distribution of numbers completely has no bearing.
F.5. A DDITIONAL EXPERIMENTS FOR SPORTS
Abstracting out the hidden symbol. Table 19 shows that replacing PERSON and ACTIVITY has negligible
impact on the accuracy. However, abstracting out the sports abstract drops the performance below D IRECT
levels (Table 20). What explains such a discrepancy? Note that both PERSON and ACTIVITY are already
43
present in the question, and are copied in the thought. Thus, replacing them even with abstract tokens does
not harm the performance, as the extraction pattern is retained. On the other hand, the SPORT is not present
in the question, and has to be extracted. Consider a question: Is the following sentence plausible? “Norman | 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 | 205 | in the question, and has to be extracted. Consider a question: Is the following sentence plausible? “Norman
Powell committed a blocking foul. ” For abstracted sports prompts, the model generates Norman Powell is
a SPORT1 player. Committing a blocking foul is part of SPORT2. So the answer is no. Whereas for the
abstract person or the activity prompt, the model correctly infers the pattern (i.e. copy the person or the
activity, and generate the corresponding sport) and generates: Norman Powell is a basketball player. Being
a blocking foul is part of basketball. So the answer is yes. This example also clearly drives the notion of
symbiosis: only generating the right pattern or only having the right text. Both are required for effective
COT.
Cases where patterns help. As empirical results show, combining patterns with language reveals their
true potential. However, our analysis uncovers interesting reasons for the superiority of patterns only, for
the small number of cases. Interestingly, we found a few cases where forcing the model to generate some
textleads to errors. Primarily, they were caused by the model trying to make faulty connections. Detailed
examples are located in Table 37.
44
G. A DDITIONAL EXPERIMENTS ON ROLE OF PATTERNS INCOT | 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 | 206 | examples are located in Table 37.
44
G. A DDITIONAL EXPERIMENTS ON ROLE OF PATTERNS INCOT
«H0» The presence of patterns is necessary but not sufficient for the success of the model. The model is
relatively robust to the usage of wrong patterns. Nonetheless, employing wrong patterns is a double edge
sword and its consequences depend on the nature of the target task.
This section provides a detailed description on identifying patterns, includes detailed results (Table 21), and
presents qualitative analysis that was omitted from the main text for brevity.
Identifying patterns Intuitively, the formation and structure of patterns seem to be effective in deducing
correct answers. Patterns either composition of symbols (e.g., 20 - 12 = 8 ) or structure in prompt that reinforces task understanding (Section 2 (Table 1)). To achieve this, we systematically construct counterfactual
prompts for patterns. However, identifying patterns is not always explicit, unlike symbols, and generally depends on the target task. For example, in the D ATEdataset, it is not straightforward to tease apart the exact
structure of patterns. Nonetheless, for certain tasks like S PORTS , the structure of the patterns are apparent:
all the examples involve inferring whether a sportsperson (e.g., Michael Jordan) and a sport activity (e.g., | 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 | 207 | all the examples involve inferring whether a sportsperson (e.g., Michael Jordan) and a sport activity (e.g.,
basketball) belong to the same sport, and further adhere to a common sentence structure. In this particular
scenario, we can isolate patterns as follows: “ person is asport 1player. activity is part of sport 2”. Here,
sport 1andsport 2represent sports like basketball or baseball. For a sentence to be plausible, sport 1and
sport 2must reserve an identical value. We postulate that the structured nature of the patterns enables C OT
to achieve considerable gains. To test the hypothesis in reference to patterns, we craft and study various
counterfactual prompts as described below.
Wrong pattern vCpat_wrongppqw.The results in Section 4 show that the value and type of symbols are mostly
immaterial to the model performance. Since patterns are a superset of symbols, it is tempting to infer that
replacing patterns with abstract patterns should be equally effective as abstracting symbols. However, what
if the patterns are concrete but incorrect or factually wrong? Instances of incorrect patterns are 5+3=
7and2<1for the GSM-8 Kand S ORTING datasets, respectively. Factually wrong instances are Jamal | 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 | 208 | 7and2<1for the GSM-8 Kand S ORTING datasets, respectively. Factually wrong instances are Jamal
MurrayisaBase ballplayer in S PORTS and2days after2/2/2022 is2/6/2022 in D ATE. Table 21 shows that
in such cases, the efficacy of task solve rates is contingent on the intrinsic purpose of patterns. In tasks like
GSM-8 K, DATE, and S ORTING , the task solve rate is robust to specific mistakes. For these tasks, the model
performance with counterfactual prompts is on par with the vanilla C OT. On the contrary, in the S PORTS
dataset with Cpat_wrongppq, the model simply fails to form factual connections between the first and second
clauses, leading to substantially lower task solve rate (93.67 %ÞÑ46.02 %).
No patterns vCpat_noneppqw.We next gauge the sensitivity of the model performance to the existence of
patterns. As mentioned before, the isolation of patterns in thoughts is dataset-dependent. For GSM-8 K,
the dichotomy between text and patterns is a clear cut—the equations in thoughts represent patterns, and | 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 | 209 | the dichotomy between text and patterns is a clear cut—the equations in thoughts represent patterns, and
everything else serves as text. Therefore, experimenting with Cpat_noneppqis trivial. We can simply construct
Cpat_noneppqfor GSM-8 Kby removing everything except equations. In the S PORTS dataset, the pattern is a
specific channel in which the thought is structured. More specifically, the patterns are the linguistic structure
of the thoughts, which bear the following form: “ person is asport 1player. activity is part of sport 2”. The
answer is yes, if and only if sport 1andsport 2are the same. In such cases, merely partially removing
patterns is not sufficient. For example, just using “ person is asport 1player. as a thought is not equivalent
to a counterfactual example with no patterns. This example rather resembles an experiment with a reduced
pattern. To circumvent this, we simulate Cpat_noneppqfor S PORTS by crafting a prompt in which several
variations of thoughts are intertwined. The key insight is that if several different patterns are included
in a single prompt, the induced “noise” from different examples creates a virtually equivalent variant of | 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 | 210 | in a single prompt, the induced “noise” from different examples creates a virtually equivalent variant of
Cpat_noneppqsetup. That is, we imitate Cpat_noneppqby creating a hodgepodge of thought variants (See
45
Table 21: The accuracy of patterns is not important, but their absence could be catastrophic. In
SORTING the pattern-only counterfactual prompts morph into the D IRECT method. This is because
both numbers and less than sign are part of pattern category (See Table 1).
Question / Thought Prompt Type Solve Rate
MATHEMATICAL (DIRECT = 10.11 %, COT = 27.37 %)
Question: Shawn has five toys. For Christmas, he got two toys each from his mom and
dad. How many toys does he have now?DIRECT 10.11 %
Thought: Shawn started with 5 toys. If he got 2 toys each from his mom and dad, then
that is 4 more toys. 5 +4=9.COT (Table 38) 27.37 %
Thought: Shawn started with 5 toys. If he got 2 toys each from his mom and dad, then
that is 4 more toys. 5 +4=7.Cpat_wrongppq(Table 55) 24.39 % | 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 | 211 | that is 4 more toys. 5 +4=7.Cpat_wrongppq(Table 55) 24.39 %
Thought: Shawn started with 5 toys. If he got 2 toys each from his mom and dad, then
that is 4 more toys.Cpat_noneppq(Table 57) 21.46 %
Thought: 5+(2*2)=9. Cpat_onlyppq(Table 58) 10.01 %
COMMONSENSE (SPORTS ) (D IRECT = 71.08 %, COT = 93.67 %)
Thought: Jamal Murray isasoccer player. Being perfect from the line ispart of
soccer .Cpat_wrongppq(Table 64) 46.02 %
Thought: Jamal Murray and being perfect from the line are both part of basketball. Cpat_noneppq(Table 63) 79.01 %
Thought: Both are part of the same sport . Cpat_onlyppq(Table 59) 74.13 %
COMMONSENSE (DATE) (D IRECT = 31.61 %, COT = 45.18 %)
Thought:xcalculationyToday is 04/19/1969. 24 hours later is one day after today, | 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 | 212 | Thought:xcalculationyToday is 04/19/1969. 24 hours later is one day after today,
whichxoutputywould be 03/20/1969.Cpat_wrongppq(Table 54) 44.84 %
Thought: Today is 04/19/1969. Cpat_noneppq(Table 62) 34.19 %
Thought:xcalculationyToday = 04/19/1969. 24 hours = 1 day. xoutputy04/19/1969
+ 1 = 04/20/1969.Cpat_onlyppq(Table 60) 33.52 %
SYMBOLIC (SORTING ) (D IRECT = 46.0 %, COT = 60.6 %)
Thought: 1<2<3<4<7<6<5<8<9 Cpat_wrongppq(Table 65) 64.8 %
Thought 9¡8¡7¡6¡5¡4¡3¡2¡1 Cpat_noneppq(Table 61) 45.0 %
Thought: — (similar to D IRECT ) Cpat_onlyppq 46.0%
Table 63) without explicitly submitting to a particular pattern. Identically, we conform to this terminology
for D ATEand S ORTING . | 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 | 213 | Table 63) without explicitly submitting to a particular pattern. Identically, we conform to this terminology
for D ATEand S ORTING .
The results in Table 21 reveal that Cpat_noneppqconsistently underperforms C OT, relatively yielding similar
performance as D IRECT . This indicates that the existence of patterns in thoughts are crucial to the success
of C OT. Note that in all datasets Cpat_noneppqstill outperforms D IRECT hinting at the relevance of blending
semantically correct statements in thoughts to improved model performance, which we study in Section 6.
To glean additional insights about patterns, we investigate the nature of results in S PORTS . Table 24 reveals
that while the generated thoughts are structurally correct, the model can not establish an explicit connection between PERSON and SPORT , hence, attaining rather spurious outcomes. This analysis underscores
the importance of blending explicit patterns in thoughts, a finding that corroborates with the least-to-most
prompting (Zhou et al., 2022). Similarly in D ATE, thoughts generally consists of two parts, an intermediate
calculation followed by extracting the final answer. A prompt for which this consistent and explicit pattern
is broken—for example by incorporating mixed examples in S PORTS (Table 63)—severely underperforms | 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 | 214 | is broken—for example by incorporating mixed examples in S PORTS (Table 63)—severely underperforms
vanilla C OT. This analysis reinforces the importance of invigorating thoughts with explicit patterns.
Pattern-only prompts vCpat_onlyppqw.Finally, we investigate counterfactual prompts in which we exclusively use patterns while wiping out the rest of thoughts. The results in Table 21 reveal that pattern-only
prompts are futile and annul the gains of C OT. In all datasets, the solve rate for pattern-only prompts is akin
to the D IRECT performance. Note that in S ORTING pattern-only counterfactual examples is analogous with
46
the D IRECT method. This is because in our definition (Table 1) both numbers and less than signs are part of
pattern category. This behavior hints at the importance of text in prompts that we explore in Section 6.
Table 22: Breakdown of task solve rate ( %) for examples in which the correct answer begins with “1
(second column)” or “2 (third column)”. We evaluate on three variants, the sequence of numbers in
thoughts exclusively starts with (a) “1”, (b) “2”, and (c) mixture of both “1” and “2”. Note that we | 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 | 215 | selected a small test dataset in which there are 50 questions that start with “1” and 50 questions that
start with “2”. In the original test dataset, there are only 50 questions that start with “2”.
Task Solve Rate ( %)
COT Variants Answer Starts w/ “1” Answer Starts w/ “2” Overall
(a) C OT with thoughts exclusively start w/ “1” 80.0 % 0.0% 40.0%
(b) C OT with thoughts exclusively start w/ “2” 0 % 68.89 % 34.4%
(c) C OT with mixture of (a) and (b)91.1% 84.4% 87.78 %
Total number of thoughts are identical across all scenarios.
G.1. O UTPUT ANALYSIS
Confusing model with incorrect thoughts Counterfactual prompts with wrong patterns strike an interesting
perspective in S PORTS and S ORTING . In the S PORTS dataset, replacing the sport activity with a factually
wrong one (e.g., “basketball” ÞÑ“soccer”) presumably disorients the model about the target task. Therefore,
the model can not elicit factual connections between the player and activity, hence, fails to attain a correct | 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 | 216 | the model can not elicit factual connections between the player and activity, hence, fails to attain a correct
answer. Surprisingly, the accuracy of the model is slightly below 50 %, compared to 72.1 %with the D IRECT
method, hinting at the possibility that the model “ actively ” generates incorrect answers. Nonetheless, the
results so far indicate that C OT employs information in the prompt as a prop to guide the generation of
thoughts. Thus, as Cpat_wrongppqexperiments on S PORTS show, it seems plausible to construct misleading
prompts to entrap the model in generating deceptive outputs.
Table 23 presents a comparison between C OT andCpat_wrongppqwhen their generated answers are discordant. Visually inspecting the generated thoughts, it is apparent that the model generates structurally correct
thoughts—“ personisaxsports playery,activityis/not ispart ofxsporty”—, though they could be factually
amiss (first three rows). In six samples, the model fails to associate either the player or the activity with the
right sport, but not both. We also observe one sample, in which the model fails to attain proper associations
for both clauses. However, even in this case the model arrives at the correct answer because the first and | 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 | 217 | for both clauses. However, even in this case the model arrives at the correct answer because the first and
second clauses conflict (akin to a double negative). Only in two samples, the model properly associates the
player, sport, and activity. Our findings, on balance, illustrate the model’s overall ineptitude for generating
factual thoughts as well as its sporadic ability to arrive at the right answer. On the contrary, in the S ORTINGdataset, such a noise with Cpat_wrongppqsignificantly benefits the model, outperforming D IRECT method
(46.0 %vs. 64.8 %). With vanilla C OT, the model often generates a simple sequence of integers, 1, 2, :::,
9. We attribute the occurrence of this behavior to the disorientation of the model in deducing the target task.
Therefore, instead of conducting a sorting operation, the model simply generates the simple sequence of
integers, which is prevalent on the web. Adding planned noise in prompts revive the ability of the model in
grasping the nature of the target task (sorting). Gaining more insights about the underlying workings of the
model in these scenarios require additional in-depth analysis, which we defer to future work. | 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 | 218 | model in these scenarios require additional in-depth analysis, which we defer to future work.
Strength in differences. We dig into how blending a jumble of factual thought variants into prompts assists
the model to fathom the underlying task. We use the S ORTING dataset as the case study, mainly because
variants of thoughts are better defined. We conceive three scenarios, thoughts with the sequence of numbers
exclusively starting with either (a) “1” (Table 41), or (b) “2” (Table 66), or (c) a mixture of “1” and “2”
(Table 67). Table 22 illustrates that restricting the diversity of thoughts, as shown in scenarios (a) and (b),
47
hinders the model’s ability to comprehend the underlying task and simply fails to generalize, leading to a
meager overall task solve rate ( ¤40%). On the contrary, constructing a mixture of thoughts, as shown in
scenario (c), boosts the model performance (87.78 %). This improvement may be attributed to the more
diverse and meaningful thoughts that better signal the underlying task to the model. This concurs with the
findings of Reynolds & McDonell (2021), who found that the one of the key roles played by the prompt is | 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 | 219 | findings of Reynolds & McDonell (2021), who found that the one of the key roles played by the prompt is
toremind the model of the underlying task. In addition, these results suggest that LLMs may be merely
pattern replicator, which resonates with the way our brain works Heilbron et al. (2022).
This section also contains additional examples depicting role of patterns in C OT (Table 23, Table 24).
Table 23 presents a comparison between C OT andCpat_wrongppqwhen their generated answers are discordant. Visually inspecting the generated thoughts, it is apparent that the model generates structurally correct
thoughts—“ personisaxsports playery,activityis/not ispart ofxsporty”—, though they could be factually
amiss (first three rows). In six samples, the model fails to associate either the player or the activity with the
right sport, but not both. We also observe one sample, in which the model fails to attain proper associations
for both clauses. However, even in this case the model arrives at the correct answer because the first and
second clauses conflict (akin to a double negative). Only in two samples, the model properly associates the | 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 | 220 | second clauses conflict (akin to a double negative). Only in two samples, the model properly associates the
player, sport, and activity. Our findings, on balance, illustrate the model’s overall ineptitude for generating
factual thoughts as well as its sporadic ability to arrive at the right answer. On the contrary, in the S ORTINGdataset, such a noise with Cpat_wrongppqsignificantly benefits the model, outperforming D IRECT method
(46.0 %vs. 64.8 %). With vanilla C OT, the model often generates a simple sequence of integers, 1, 2, :::,
9. We attribute the occurrence of this behavior to the disorientation of the model in deducing the target task.
Therefore, instead of conducting a sorting operation, the model simply generates the simple sequence of
integers, which is prevalent on the web. Adding planned noise in prompts revive the ability of the model in
grasping the nature of the target task (sorting). Gaining more insights about the underlying workings of the
model in these scenarios require additional in-depth analysis, which we defer to future work.
48 | 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 | 221 | model in these scenarios require additional in-depth analysis, which we defer to future work.
48
Table 23: S PORTS : sample outputs where a wrong fact is presented in the prompt ( Cpat_wrongppq(Table 64)). The generated thoughts for both C OT andCpat_wrongppqare always structurally valid. The last
two columns indicate the correctness of the first and second clauses with Cpat_wrongppq, respectively.
The prefix to each question is “Yes or no: Is the following sentence plausible?”
Question C OT Cpat_wrongppq 1st2nd
“Domantas Sabonis ran out
of bounds.”Domantas Sabonis is a basketball
player. Running out of bounds is
part of basketball. So the answer is
yes.8Domantas Sabonis is a basketball player. Running out
of bounds is part of American
football, not basketball. So the
answer is no. 33 3
“Mathew Barzal called for
the screen.”Mathew Barzal is a hockey player.
Calling for the screen is part of
hockey. So the answer is yes. 8Mathew Barzal is a basketball
player. Calling for the screen
is part of American football, not
basketball. So the answer is no.
38 3 | 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 | 222 | player. Calling for the screen
is part of American football, not
basketball. So the answer is no.
38 3
“Karl-Anthony Towns did a
double stepover.”Karl-Anthony Towns is a basketball
player. Doing a double stepover is
part of basketball. So the answer is
yes.8Karl-Anthony Towns is a soccer
player. Doing a double stepover
is part of American football, not
soccer. So the answer is no. 38 8
“Deandre Ayton hit the
back shoulder fade in the
Superbowl.”Deandre Ayton is a basketball
player. Hitting the back shoulder
fade is part of basketball. So the answer is yes. 8Deandre Ayton is a basketball
player. Hitting the back shoulder fade is part of American
football, not basketball. So the
answer is no. 33 3
“Patrick Kane caught the
screen pass.”Patrick Kane is a hockey player.
Catching the screen pass is part of
hockey. So the answer is yes. 8Patrick Kane is a basketball
player. Catching the screen
pass is part of American football, not basketball. So the answer is no. 38 3
“Kyle Tucker launched a
triple.”Kyle Tucker is a baseball player. | 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 | 223 | pass is part of American football, not basketball. So the answer is no. 38 3
“Kyle Tucker launched a
triple.”Kyle Tucker is a baseball player.
Launching a triple is part of baseball. So the answer is yes. 8Kyle Tucker is a basketball
player. Launching a triple is
part of American football, not
basketball. So the answer is no.
38 8
“Chris Paul ran out of
bounds.”Chris Paul is a basketball player.
Running out of bounds is part of
basketball. So the answer is yes. 8Chris Paul is a soccer player.
Running out of bounds is part
of American football, not soccer. So the answer is no. 38 3
“Malcolm Brogdon ran out
of bounds.”Malcolm Brogdon is a basketball
player. Running out of bounds is
part of basketball. So the answer is
yes.8Malcolm Brogdon is a hockey
player. Running out of bounds
is part of American football, not
hockey. So the answer is no. 38 3
“Pedro struck out the side.” Pedro is a baseball player. Striking
out the side is part of baseball. So
the answer is yes. 8Pedro is a basketball player.
Striking out the side is part of
baseball, not basketball. So the | 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 | 224 | the answer is yes. 8Pedro is a basketball player.
Striking out the side is part of
baseball, not basketball. So the
answer is no. 38 3
“Oscar scored in the third
period.”Oscar is a soccer player. Scoring in
the third period is part of soccer. So
the answer is yes. 8Oscar is a soccer player. Scoring in the third period is part of
American football, not soccer.
So the answer is no. 33 8
49
Table 24: S PORTS : sample outputs where no pattern is provided in the prompt ( Cpat_noneppq(Table 63)).
Failure of a consistent pattern in the prompt prevents the model from establishing meaningful connection between person and sport. The prefix to each question is “Yes or no: Is the following sentence
plausible?”
Question C OT Cpat_noneppq
“Anders Lee went in studs up in
the Champions League Final.”Anders Lee is a hockey player. Going
in studs up is part of soccer, not hockey.
So the answer is no. 3Anders Lee is a football player.
The Champions League Final is
a football tournament. So the
answer is yes. 8
“Nick Foles lost control of the
puck.”Nick Foles is a American football | 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 | 225 | a football tournament. So the
answer is yes. 8
“Nick Foles lost control of the
puck.”Nick Foles is a American football
player. Losing control of the puck is
part of hockey, not American football.
So the answer is no. 3Nick Foles is a football player.
Losing control of the puck is a
part of ice hockey. So the answer is yes. 8
“Sterling Shepard hit the back
of the rim.”Sterling Shepard is a American football
player. Hitting the back of the rim is
part of basketball, not American football. So the answer is no. 3They seem to be related. So the
answer is yes. 8
“Nick Castellanos hit nothing
but net.”Nick Castellanos is a baseball player.
Hitting nothing but net is part of basketball, not baseball. So the answer is
no.3Nick Castellanos is a baseball
player. Hitting nothing but net
is a part of basketball. So the
answer is yes. 8
“Bryce Harper hit the back
shoulder fade.”Bryce Harper is a baseball player. Hitting the back shoulder fade is part of
basketball, not baseball. So the answer
is no.3They seem to be related. So the
answer is yes. 8 | 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 | 226 | basketball, not baseball. So the answer
is no.3They seem to be related. So the
answer is yes. 8
“Oscar took the snap.” Oscar is a soccer player. Taking the
snap is part of American football, not
soccer. So the answer is no. 3Oscar is a football player. Taking the snap is part of football.
So the answer is yes. 8
50
H. A DDITIONAL EXPERIMENTS ON ROLE OF TEXT
Table 25 presents detailed results, including ablations on various parts of the prompt. These were omitted
from the main text due to space constraints.
«H0» The presence of text is necessary for the model to arrive at the right conclusions. While the model
is sufficiently capable of forming abstractions, employing concordant entities in questions and thoughts is
crucial for the success of C OT. The performance of the model is proportionally sensitive to the degree of
variations in the text. | 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 | 227 | crucial for the success of C OT. The performance of the model is proportionally sensitive to the degree of
variations in the text.
We test this hypothesis to determine the role of text in the performance of C OT. Following the same methodology as symbols and patterns, we employ various tailored counterfactual prompts to retain the entire symbols and patterns, while altering the text or grammar. Note that the practicality of the counterfactual experiments for text is contingent on the nature of the target task. In addition, because there is no text in S ORTING ,
we did not conduct counterfactual experiments in this dataset. Table 25 summarizes the results and shows
sample thought for each counterfactual prompt.
Text with discrepant entities vCtext_diff_entities ppqw.We first investigate the role of employing identical
entities (e.g., names and objects) between a question and its associated thought. To achieve this, we simply
modify the entities in the thoughts to be discrepant with the ones in the questions. Ctext_diff_entities ppqis
exclusively relevant for the GSM-8 Kand S PORTS datasets for which concrete entities exist: objects and
people for GSM-8 Kand players and activities for S PORTS . In the S PORTS dataset, we change the player | 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 | 228 | people for GSM-8 Kand players and activities for S PORTS . In the S PORTS dataset, we change the player
name and the activity in the thought, while retaining the sport in the question. Samples of generated outputs
in Table 26 illustrate that in this scenario, the model appears to disregard the prompt, generating arbitrary
thoughts and attaining a similar performance as D IRECT .
The task solve rate for GSM-8 KwithCtext_diff_entities ppqis noticeably better than D IRECT , while still
fails to match the performance of C OT. We delineate samples of generated outputs in Table 27 to glean more
insights. We postulate that the gains over D IRECT occur because of the following two reasons:
•Semantically meaningful thoughts. Since the substituted entities are semantically similar (e.g., toys
cookies), the crafted prompts are still meaningful. Thus, the prompts are conducive to assisting the model
in generating meaningful thoughts.
•The ability of the model to form abstractions. The model manages to disregard the exact value of an
entity (possible using abstract embeddings) and maintain an analogically similar thought. For example,
the generated thought for Question : “AfterAndrea saved some money, shethen spent therestofhermoney | 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 | 229 | the generated thought for Question : “AfterAndrea saved some money, shethen spent therestofhermoney
onan$11sweater andgave herbrother $4.Ifshehad$36inthebeginning, how much didAndrea save? ”
is Thought : “There were 36apples inthebasket.Aftersavingsome, shehad36-11=25.Then shespent
25-4=21.Theanswer is21.”. Note that the factual mathematical reasoning and patterns in the generated
thought. In this example, the model correctly establishes connection between “ sweaters ” and “ apples ”.
This study hints at the ability of the model to form higher abstractions for entities and establish proper
connections between similar entities. Establishing such connections is more challenging for S PORTS , as
replacing the entities demolishes the factual correctness of the thoughts and possibly confuses the model.
For this counterfactual experiment, we substitute each thought with a random thought, yet factual and semantically correct. As Table 25 illustrate, employing random information in the thoughts, even though
meaningful, has catastrophic outcomes in the GSM-8 Kand S PORTS datasets. For GSM-8 K, we attribute | 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 | 230 | meaningful, has catastrophic outcomes in the GSM-8 Kand S PORTS datasets. For GSM-8 K, we attribute
this deteriorated state to the model failing to generate meaningful thoughts, and instead arriving at irrelevant statements (Table 28). Similarly, the S PORTS dataset with random thoughts underperforms the D IRECT
method (58.01 %vs. 72.1 %). The output analysis (Table 29) depicts the model’s inability to generate consistent thoughts and form credible connections, which can be attributed to the lack of compatible patterns
51
Table 25: Text is an important glue for symbols and patterns: modifications to text hampers the performance. Across tasks, the drop in performance is relatively proportional to the extent of change. Due
to the nonexistent text in S ORTING , we did not conduct counterfactual experiments for this dataset.
Question / Thought Prompt Type Solve Rate
MATHEMATICAL
Question: Shawn has five toys. For Christmas, he got two toys each from his mom and
dad. How many toys does he have now?DIRECT 10.11 %
Thought: Shawn started with 5 toys. If he got 2 toys each from his mom and dad, then
that is 4 more toys. 5 + 4 = 9.COT (Table 38) 27.37 % | 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 | 231 | that is 4 more toys. 5 + 4 = 9.COT (Table 38) 27.37 %
Thought: Teddy started with 5 cookies. If he got 2 cookies each from his Jenna and
Rehan, then that is 4 more cookies. 5 + 4 = 9.Ctext_diff_entities ppq(Table 68) 16.60 %
Thought: Capacity of one bus is 198 passengers / 9 buses = 22 passengers in one bus.
Thus, 5 buses can fit 22 * 5 = 110 passengers.Ctext_randppq(Table 76) 2.98 %
- Ctext_yoda_question ppq(Table 73) 27.09 %
Thought: With 5 toys, Shawn started. 2 toys each from his mom and dad, if he got,
then that is 4 more toys. 5 + 4 = 9.Ctext_yoda_thought ppq(Table 70) 23.22 %
Thought: With 5 toys, Shawn started. 2 toys each from his mom and dad, if he got,
then that is 4 more toys. 5 + 4 = 9.Ctext_yoda_bothppq(Table 73) 22.19 %
Thought: dad, he got 5 toys. then started mom 2 each is more that from If his and toys. | 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 | 232 | Thought: dad, he got 5 toys. then started mom 2 each is more that from If his and toys.
toys 4 with Shawn 5 + 4 = 9.Ctext_inter_shufppq(Table 82) 10.84 %
Thought: with Shawn toys 5 started. dad, from more 2 his toys then is toys he mom
got that each 4 and If. 5 + 4 = 9.Ctext_intra_shufppq(Table 79) 17.01 %
COMMONSENSE (SPORTS )
Question: Is the following sentence plausible? “Jamal Murray was perfect from the
line.”DIRECT 72.1%
Thought: Jamal Murray is a basketball player. Being perfect from the line is part of
basketball.COT (Table 40) 93.67 %
Thought: Adair Foster is a basketball player. Juggling the paper cups is part of basketball.Ctext_diff_entities ppq(Table 69) 69.18 %
Thought: Sam Darnold is a American football player. Passing the puck is part of
hockey, not American football.Ctext_randppq(Table 77) 58.01 %
Thought: A basketball player Jamal Murray is. Perfect from the line is part of basketball being.Ctext_yoda_question ppq(Table 74) 91.73 % | 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 | 233 | Thought: A basketball player Jamal Murray is. Perfect from the line is part of basketball being.Ctext_yoda_question ppq(Table 74) 91.73 %
Thought: A basketball player Jamal Murray is. Perfect from the line is part of basketball being.Ctext_yoda_thought ppq(Table 71) 68.26 %
Thought: A basketball player Jamal Murray is. Perfect from the line is part of basketball being.Ctext_yoda_bothppq(Table 74) 68.26 %
Thought: perfect player. basketball. a Murray part basketball is of Being Jamal is the
from lineCtext_inter_shufppq(Table 83) 60.81 %
Thought: is a player Jamal basketball Murray. from line Being perfect part is the
basketball of.Ctext_intra_shufppq(Table 80) 61.53 %
COMMONSENSE (DATE)
Question: It is 4/19/1969 today. What is the date 24 hours later in MM/DD/YYYY? D IRECT 31.60 %
Thought: Today is 04/19/1969. 24 hours later is one day after today, which would be
04/20/1969.COT (Table 39) 45.18 % | 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 | 234 | Thought: Today is 04/19/1969. 24 hours later is one day after today, which would be
04/20/1969.COT (Table 39) 45.18 %
- Ctext_diff_entities ppq Thought: The last day of February is the 28th, so Jane was born on 02/28/2001. Today
is her 16-year old birthday, so today is 02/28/2017. So yesterday was 02/27/2017.Ctext_randppq(Table 78) 22.73 %
- Ctext_yoda_question ppq(Table 75) 44.79 %
Thought: 04/19/1969, today is. Later is one day after today, 24 hours, 04/20/1969,
which would be.Ctext_yoda_thought ppq(Table 72) 30.75 %
Thought: 04/19/1969, today is. Later is one day after today, 24 hours, 04/20/1969,
which would be.Ctext_yoda_bothppq(Table 75) 33.14 %
Thought: later is 04/19/1969. 24 day after which would be today, hours Today
04/20/1969. one isCtext_inter_shufppq(Table 84) 24.16 % | 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 | 235 | 04/20/1969. one isCtext_inter_shufppq(Table 84) 24.16 %
Thought: Today 04/19/1969 is. 24 after one which later be would hours 04/20/1969
day today, is.Ctext_intra_shufppq(Table 81) 25.50 %
52
between questions and their associated thoughts.
Shuffled text Finally, we experiment to understand how disorienting the location of words in thoughts
affects the model performance. We create two different scenarios, when the words are shuffled within a
thought (Ctext_inter_shufppq) or across thoughts ( Ctext_intra_shufppq). The results illustrate that the task solve
rates are severely sunk in both scenarios, especially for text-dependent tasks such as S PORTS and D ATE.
Overall,Ctext_intra_shufppqoutperforms Ctext_inter_shufppqacross all the tasks, especially in the GSM-8 K
dataset (17.01 %vs. 10.84 %). We posit that this behavior in GSM-8 Kis possibly attributed to the requisite
of “relative ordering” between text and mathematical equations to form factually correct thoughts. | 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 | 236 | of “relative ordering” between text and mathematical equations to form factually correct thoughts.
H.1. T EXT WITH ALTERED GRAMMATICAL STYLE
We experiment with three variants of prompting by reconstructing (a) Ctext_yodathoughts ppq: thoughts, (b)
Ctext_yodaquestions ppq: questions, and (c) Ctext_yodappq: both questions and thoughts.
Table 25 illustrates an interesting divergence in the model performance across these scenarios. The results
show that changing just the questions ( Ctext_yodaquestions ppq) has little to no impact on the model performance. On the contrary, this variant even slightly boosts the model performance in D ATE. This observation
is explanatory when placed in context with the results on Ctext_yodathoughts ppq, which has moderate (GSM8K) to drastically negative repercussions (S PORTS and D ATE) on the model performance. We attribute this
variation in the model performance to the relation between text and patterns. That is, in some tasks, texts
and patterns are intertwined (S PORTS and D ATE), and the answer is derived from the text, whereas in other
tasks (GSM-8 K), patterns are more explicit. | 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 | 237 | and patterns are intertwined (S PORTS and D ATE), and the answer is derived from the text, whereas in other
tasks (GSM-8 K), patterns are more explicit.
We notice that for GSM-8 K(Table 30), the sentence structure is relatively simpler, enabling the model to
generate Yodish sentences effectively. For example, the model correctly generates “ 5cook ies,thepizza had”
instead of “ Thepizza had5cook ies”. In the S PORTS dataset, the “XSV” Yodish style entails the model to
place the sport activity first. For instance, the model is compelled to generate “ Bryce Harper isabaseballplayer ” instead of generating “ Abaseballplayer Bryce Harper is”. We provide samples of generated
thoughts in Table 31. For D ATE, the sentence structure of the thoughts is intrinsically complicated, because
the thought requires explicitly spelling out the complex relationship between time and date. Changing
the sentence structure to “XSV”, the model further struggle to generate factual and meaningful thoughts
(Table 32).
53
Table 26: Comparison of the generated outputs by PaLM-62 Bbetween C OT(p) (Table 40) and | 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 | 238 | (Table 32).
53
Table 26: Comparison of the generated outputs by PaLM-62 Bbetween C OT(p) (Table 40) and
Ctext_diff_entities ppq(Table 69). The prefix to each question is “ Yes or no: Is the following sentence
plausible?”
Question C OT Ctext_diff_entities ppq
“Mathew Barzal banked the
shot in the NBA Championship.”Mathew Barzal is a hockey player. The
NBA Championship is part of basketball,
not hockey. So the answer is no. 3The NBA Championship is
part of basketball. So the
answer is yes. 8
“Keenan Allen hit the screen
pass.”Keenan Allen is a football player. Hitting
the screen pass is part of football. So the
answer is yes. 3The answer is no. 8
“Juan Soto scored in the third
period.”Juan Soto is a baseball player. Scoring
in the third period is part of hockey, not
baseball. So the answer is no. 3The answer is no. Juan Soto
is a baseball player. Scoring
in the third period is part of
hockey, not baseball. 3
“Malik Beasley drove into the | 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 | 239 | is a baseball player. Scoring
in the third period is part of
hockey, not baseball. 3
“Malik Beasley drove into the
restricted area.”Malik Beasley is a basketball player.
Driving into the restricted area is part of
basketball. So the answer is yes. 3The answer is no. 8
“Anders Lee went in studs up in
the Champions League Final.”Anders Lee is a hockey player. Going in
studs up is part of soccer, not hockey. So
the answer is no. 3The Champions League Final is part of soccer. Going
in studs up is part of soccer.
So the answer is yes. 8
“Javi Martinez scored in the
shootout.”Javi Martinez is a soccer player. Scoring
in the shootout is part of soccer. So the
answer is yes. 8The answer is no. 3
“James Harden shot from outside the eighteen.”James Harden is a basketball player.
Shooting from outside the eighteen is part
of basketball. So the answer is yes. 8The answer is no. 3
“Tua Tagovailoa was safe at
home."Tua Tagovailoa is a football player. Being
safe at home is part of life. So the answer
is yes.8The answer is no. 3 | 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 | 240 | home."Tua Tagovailoa is a football player. Being
safe at home is part of life. So the answer
is yes.8The answer is no. 3
“Mike Williams scored a bicycle kick in the FA Cup.”Mike Williams is a soccer player. Bicycle
kick is part of soccer. So the answer is
yes.Cpat_wrongppqThe answer is no. 3
“A.J. Green converted the double play.”A.J. Green is a baseball player. Converting the double play is part of baseball. So
the answer is yes. 8The answer is no. 3
54
Table 27: Comparison of the generated outputs for the GSM-8 Kdataset by PaLM-62 Bbetween
COT(p) (Table 38) and Ctext_diff_entities ppq(Table 68).
Question C OT Ctext_diff_entities ppq
Finley went to the grocery store
and bought rice, beans, and
pork for use in their home.
It took her 20 more minutes
to cook pork than rice, while
beans took half the combined
cooking time of pork and rice.
If it took her 30 minutes to cook
rice, how long in minutes did it
take to cook all the food?Rice took 30 minutes to cook.
Pork took 20 more minutes than | 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 | 241 | rice, how long in minutes did it
take to cook all the food?Rice took 30 minutes to cook.
Pork took 20 more minutes than
rice. So pork took 30 + 20 =
50 minutes to cook. Beans took
half the combined cooking time
of pork and rice. So beans took
50 / 2 = 25 minutes to cook.
The answer is 50 + 25 = 75. 8There are 3 types of food. Rice
takes 30 minutes. Beans take
half of 30 minutes. Pork takes
20 minutes more than rice. So
30 + 15 + 40 = 85 minutes. The
answer is 85. 8
Brinley is in Mr. Bert’s math
class. Mr. Bert gives six tests
each semester. He allows the
students to remove the lowest
score from the average each
semester. If Brinley has scores
of 89, 71, 92, 100 and 86 on the
first five tests, what score does
she need on the sixth test to get
an average of 93?Brinley has scores of 89, 71,
92, 100 and 86. The average of
these scores is 89 + 71 + 92 +
100 + 86 = 438. The average of
these scores is 438 / 5 = 87.6. | 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 | 242 | these scores is 89 + 71 + 92 +
100 + 86 = 438. The average of
these scores is 438 / 5 = 87.6.
The answer is 87.6. 8There are 6 tests. The lowest
score is removed. So the average is 6 - 1 = 5. The answer is
5.8
Emma can make and upload 72
vlogs per month. But she was
only able to make 18 vlogs for
the first week, 21 vlogs for the
second week, and 15 vlogs for
the third week. How many
vlogs should she do to complete
the 72 vlogs per month?Emma can make 72 vlogs per
month. She made 18 vlogs for
the first week, 21 vlogs for the
second week, and 15 vlogs for
the third week. So she made 18
+ 21 + 15 = 54 vlogs. 72 - 54 =
18. The answer is 18. 3There are 72 videos. 18 + 21 +
15 = 54. So she needs to make
72 - 54 = 18 more videos. The
answer is 18. 3
Harry slept 9 hours last night.
His friend James slept only 2/3
of what Harry slept. How many
more hours did Harry sleep than | 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 | 243 | answer is 18. 3
Harry slept 9 hours last night.
His friend James slept only 2/3
of what Harry slept. How many
more hours did Harry sleep than
James?Harry slept 9 hours. James slept
2/3 of 9 hours. 2/3 of 9 is 6. So
James slept 6 hours. Harry slept
9 - 6 = 3 hours more than James.
The answer is 3. 3There were 9 cars in the parking lot. 2/3 of 9 is 6. So James
slept 6 hours. Harry slept 9 - 6
= 3 hours more than James. The
answer is 3. 3
55
Table 28: Comparison of the generated outputs between C OT(p) (Table 38) and Ctext_randppq(Table 76)
on the GSM-8 Kdataset.
Question COT(p) Ctext_randppq
A bakery produces 60
loaves of bread each day.
Two-thirds of the loaves
are sold in the morning and
half of what is left is sold
equally in the afternoon
and evening. How many
loaves of bread are sold in
the afternoon?The bakery produces 60
loaves of bread each day.
2/3 of the loaves are sold in
the morning. So 2/3 of 60
= 2/3 x 60 = 40 loaves are | 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 | 244 | loaves of bread each day.
2/3 of the loaves are sold in
the morning. So 2/3 of 60
= 2/3 x 60 = 40 loaves are
sold in the morning. Half
of what is left is sold in the
afternoon. So half of 60 40 = 20 loaves are sold in
the afternoon. The answer
is 20.8The answer is 10. 3
Jack had $100. Sophia
gave him 1/5 of her $100.
How many dollars does
Jack have now?Jack had 100 dollars.
Sophia gave him 1/5 of her
100 dollars. So she gave
him 1/5 x 100 = 20 dollars.
So Jack has 100 + 20 = 120
dollars. The answer is 120.
3The answer is 10. 8
The red car is 40% cheaper
than the blue car. The price
of the blue car is $100.
How much do both cars
cost?The red car is 40% cheaper
than the blue car. So the red
car costs 60% of the blue
car. 60% of 100 is 60. The
answer is 60. 8The red car is 40% cheaper
than the blue car. Thus,
the red car costs 60% of the
blue car. The blue car costs
$100, so the red car costs | 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 | 245 | than the blue car. Thus,
the red car costs 60% of the
blue car. The blue car costs
$100, so the red car costs
60% * $100 = $60. The answer is 160. 3
Mary has 6 jars of sprinkles in her pantry. Each
jar of sprinkles can decorate
8 cupcakes. Mary wants
to bake enough cupcakes
to use up all of her sprinkles. If each pan holds 12
cupcakes, how many pans
worth of cupcakes should
she bake?Mary has 6 jars of sprinkles. Each jar can decorate
8 cupcakes. So 6 jars can
decorate 6 x 8 = 48 cupcakes. If each pan holds 12
cupcakes, then 48 / 12 = 4
pans. The answer is 4. 3The answer is 12. 8
56
Table 29: Comparison of the generated outputs between C OT(p) (Table 40) and Ctext_randppq(Table 77)
on the S PORTS dataset (PaLM-62 B). The prefix to each question is “Yes or no: Is the following
sentence plausible?”.
Question C OT Ctext_randppq
“Bastian Schweinsteiger did a
double stepover.”Bastian Schweinsteiger is a soccer player ( 3). Doing a double | 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 | 246 | “Bastian Schweinsteiger did a
double stepover.”Bastian Schweinsteiger is a soccer player ( 3). Doing a double
stepover is part of soccer ( 3). So
the answer is yes. 3Kyle Palmieri is a hockey player
(3). Being called for slashing is
part of hockey ( 3). So the answer
is no.8
“Ryan O’Reilly hit the wheel
route.”Ryan O’Reilly is a hockey player
(3). Hitting the wheel route is
part of football, not hockey ( 3).
So the answer is no. 3Draymond Green is a basketball
player ( 3). Throwing a touchdown is part of football ( 3), not
basketball. So the answer is no.
3
“Justin Herbert committed a
three second violation.”Justin Herbert is a football player
(3). Three second violation is
part of basketball, not football
(3). So the answer is no. 3The NFC championship is part
of American football, not soccer
(3). So the answer is yes. 8
“Vladimir Guerrero Jr. took
a side-step three in the NBA
Championship.”Vladimir Guerrero Jr. is a baseball player ( 3). Taking a sidestep three is part of basketball,
not baseball ( 3). So the answer | 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 | 247 | Championship.”Vladimir Guerrero Jr. is a baseball player ( 3). Taking a sidestep three is part of basketball,
not baseball ( 3). So the answer
is no.3Yes.8
“Taylor Hall scored in the
shootout.”Taylor Hall is a hockey player
(3). Scoring in the shootout is
part of hockey ( 3). So the answer
is yes.3Yes.3
57
Table 30: Output for GSM-8 Kon C OT(p) (Table 38) and Ctext_yodathoughtsppq(Table 70) (PaLM-62 B).
Question COT(p) Ctext_yodathoughtsppq
Samwell owns an appliances store. For this week,
one-fourth of their sales are
smart TVs, one-eighth are
analog TVs, and the rest are
OLED TVs. If they were
able to sell a total of 40
TVs, how many OLED TVs
were they able to sell?One-fourth of the sales are
smart TVs. One-eighth are
analog TVs. So the rest are
OLED TVs. 1/4 + 1/8 =
5/8. So 5/8 of the sales are
OLED TVs. 40 TVs were
sold. 5/8 of 40 is 20. The | 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 | 248 | 5/8. So 5/8 of the sales are
OLED TVs. 40 TVs were
sold. 5/8 of 40 is 20. The
answer is 20. 840 TVs, they were able to
sell. 1/4 of 40 is 10, so 10
smart TVs were sold. 1/8
of 40 is 5, so 5 analog TVs
were sold. 40 - 10 - 5 =
25, so 25 OLED TVs were
sold. The answer is 25. 3
A shoe store was having a
weekend sale on a brand of
popular tennis shoes. On
Friday the store sold 14
pairs of tennis shoes. The
next day they sold double
that number of shoes. On
the last day of the sale they
sold one-half the amount
that they did the day before,
but six people returned their
pairs because they didn’t
fit. How many tennis shoes
were sold by the end of the
sale?On Friday, the store sold 14
pairs of tennis shoes. The
next day they sold double
that number of shoes. So on
Saturday they sold 28 pairs.
On Sunday, they sold onehalf the amount that they
did the day before. So on
Sunday they sold 14 / 2
= 7 pairs. Six people returned their pairs because
they didn’t fit. So 7 - 6 = | 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 | 249 | Sunday they sold 14 / 2
= 7 pairs. Six people returned their pairs because
they didn’t fit. So 7 - 6 =
1 pair. The answer is 1. 8On Friday, 14 pairs of tennis shoes were sold. The
next day, double that number, so 28 pairs were sold.
On the last day, one-half the
amount, so 14 pairs were
sold. 14 + 28 + 14 = 56. 6
people returned their pairs,
so 56 - 6 = 50. The answer
is 50.3
Beatrice bought ten packets of crayons for her Art
class. Six of the packets had eight pieces of colors each, and the other four
packets had sixteen pieces
of colors each. How many
colors of crayons did Beatrice buy in all?Beatrice bought 10 packets
of crayons. 6 packets had
8 pieces of colors each. 6
* 8 = 48. 4 packets had 16
pieces of colors each. 4 *
16 = 64. So she bought 48 +
64 = 112 colors of crayons.
The answer is 112. 310 packets of crayons,
Beatrice bought. 6 packets
had 8 pieces of colors each,
and the other 4 packets had
16 pieces of colors each. 6
* 8 + 4 * 16 = 100. The
answer is 100. 8 | 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 | 250 | had 8 pieces of colors each,
and the other 4 packets had
16 pieces of colors each. 6
* 8 + 4 * 16 = 100. The
answer is 100. 8
After transferring to a new
school, Amy made 20 more
friends than Lily. If Lily
made 50 friends, how many
friends do Lily and Amy
have together?Amy made 20 more friends
than Lily. So Amy made
50 + 20 = 70 friends. Lily
made 50 friends. So Amy
and Lily have 70 + 50 = 120
friends together. The answer is 120. 350 friends, Lily made. 20
more friends, Amy made.
50 + 20 = 70 friends, they
have together. The answer
is 70.8
58
Table 31: Output for S PORTS onpandCtext_yodathoughtsppq(Table 71) (PaLM-62 B). The prefix for each
question is “Yes or no: Is the following sentence plausible?”
Question C OT Ctext_yodathoughts ppq
“Chris Paul ran out of
bounds.”Chris Paul is a basketball
player. Running out of
bounds is part of basketball. So the answer is
yes.8A basketball player
Chris Paul is. Out
of bounds is part of
basketball running,
not basketball. So the | 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 | 251 | bounds is part of basketball. So the answer is
yes.8A basketball player
Chris Paul is. Out
of bounds is part of
basketball running,
not basketball. So the
answer is no. 8
“Kyle Connor scored a
freekick.”Kyle Connor is a hockey
player. Scoring a freekick is part of soccer, not
hockey. So the answer is
no.3A hockey player Kyle
Connor is. A freekick
is part of soccer scoring,
not hockey. So the answer is no. 3
“Kyle Tucker launched a
triple.”Kyle Tucker is a baseball player. Launching a
triple is part of baseball.
So the answer is yes. 8A baseball player Kyle
Tucker is. Part of basketball launching a triple is,
not baseball. So the answer is no. 3
“Bryce Harper hit the
back shoulder fade.”Bryce Harper is a baseball player. Hitting the
back shoulder fade is
part of basketball, not
baseball. So the answer
is no.3A baseball player Bryce
Harper is. Part of basketball hitting the back
shoulder fade is, not
baseball. So the answer
is no.3
“Chris Godwin crossed
the blue line in the Stanley Cup.”Chris Godwin is a football player. Crossing | 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 | 252 | baseball. So the answer
is no.3
“Chris Godwin crossed
the blue line in the Stanley Cup.”Chris Godwin is a football player. Crossing
the blue line is part of
hockey, not football. So
the answer is no. 3A football player Chris
Godwin is. Part of
hockey crossing the blue
line is, not football. So
the answer is no. 3
59
Table 32: Output for D ATEonpandCtext_yodathoughtsppq(Table 72) (PaLM-62 B). PaLM-62 Bcan generate
thoughts in YodaSpeak for these challening cases.
Question C OT Ctext_yodathoughtsppq
Today is the last day of
the first quarter of 2008.
What is the date yesterday
in MM/DD/YYYY?Today is 03/31/2008. Yesterday was 03/30/2008. So
the answer is 03/30/2008.
3The last day of the first
quarter of 2008, today is,
03/31/2008, so today is.
03/30/2008, so yesterday
was. So the answer is
03/30/2008. 3
Jane was born on the last
day of Feburary in 2000. | 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 | 253 | 03/30/2008, so yesterday
was. So the answer is
03/30/2008. 3
Jane was born on the last
day of Feburary in 2000.
Today is her 16-year-old
birthday. What is the date
24 hours later in MM/DD/YYYY?The last day of February
is the 28th, so Jane was
born on 02/28/2000. Today is her 16-year old birthday, so today is 02/28/2016.
So 24 hours later will be
02/29/2016. So the answer
is 02/29/2016. 8The 29th, the last day
of february is, Born on
02/29/2000, so jane was.
Her 16-year old birthday,
today is,02/29/2016, so today is. 03/01/2016, so 24
hours later will be. So the
answer is 03/01/2016. 3
Today is the second day of
the third month of 1966.
What is the date tomorrow
in MM/DD/YYYY?Today is 03/02/1966. Tomorrow is 03/03/1966. So
the answer is 03/03/1966.
303/02/1966, today is.
03/03/1966, so tomorrow is. So the answer is
03/03/1966. 3 | 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 | 254 | 303/02/1966, today is.
03/03/1966, so tomorrow is. So the answer is
03/03/1966. 3
Jane visits the bookstore
on the 16th of each month
starting from the October of
2009. It is her 5th visit to
the bookstore today. What
is the date a month ago in
MM/DD/YYYY?Jane visits the bookstore
on the 16th of each month
starting from the October
of 2009. So the first visit
was on 10/16/2009. Today
is her 5th visit, so today is
11/16/2009. So a month
ago was 10/16/2009. So the
answer is 10/16/2009. 810/16/2009, the first
visit was. 11/16/2009,
the second visit was.
12/16/2009, the third visit
was. 01/16/2010, the fourth
visit was. 02/16/2010, the
fifth visit was. 01/16/2010,
a month before 02/16/2010
is. So the answer is
01/16/2010. 3
Jane was born on the last
day of Feburary in 2000.
Today is her 16-year-old
birthday. What is the date | 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 | 255 | 01/16/2010. 3
Jane was born on the last
day of Feburary in 2000.
Today is her 16-year-old
birthday. What is the date
one week ago from today in
MM/DD/YYYY?The last day of February is
the 28th, so Jane was born
on 02/28/2000. Today is
her 16-year old birthday, so
today is 02/28/2016. So one
week ago from today was
02/21/2016. So the answer
is 02/21/2016. 8The 29th, the last day
of february is, Born on
02/29/2000, so jane was.
Her 16-year old birthday,
today is, 02/29/2016, so today is. 02/22/2016, so
one week ago from today
was. So the answer is
02/22/2016. 3
60
DirectCoTConcise CoT
Abstract Symbols
Pattern Only
Pattern Wrong
Text OnlyText Changed StyleDirect(a) GSM-8 K
DirectCoTConcise CoT
Abstract Symbols
Pattern Only
Pattern Wrong
Text OnlyText Changed StyleDirect (b) S PORTS
DirectCoTConcise CoT
Abstract Symbols
Pattern Only
Pattern Wrong
Text OnlyText Changed StyleDirect (c) D ATE | 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 | 256 | DirectCoTConcise CoT
Abstract Symbols
Pattern Only
Pattern Wrong
Text OnlyText Changed StyleDirect (c) D ATE
Figure 15: Text and patterns are inseparable components for effective C OT. Modifications to either
of these components generally hampers the model performance. Nevertheless, the degrees to which
these components contribute relates to the nuances of the target task. As the result of nonexistent
text in the S ORTING dataset, we omit the radar plot for this dataset.
I. S YMBIOSIS BETWEEN TEXT AND PATTERNS : ADDITIONAL EXAMPLES AND
QUALITATIVE ANALYSIS
In this section, we expand on additional details and qualitative analysis.
The analysis in the preceding sections suggests that patterns8and text form a symbiotic relationship. This
harmonious relationship enables C OT to thrive, as summarized in Figure 15. Text without patterns is insufficient to instruct the model to the right answer (Section 4 and 5). Conversely, patterns without text cannot
successfully recoup the model performance (Section 6). thoughts purposefully glue patterns with text, forming a symbiotic association. Beyond the empirical results in the previous sections, this section attempts to
deliver a qualitative analysis and tangible examples to elucidate this association.
I.1. C ONSTRUCTING EFFECTIVE INTERMEDIATE THOUGHTS | 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 | 257 | deliver a qualitative analysis and tangible examples to elucidate this association.
I.1. C ONSTRUCTING EFFECTIVE INTERMEDIATE THOUGHTS
Heeding our preceding findings, this section underscores few concrete venues in which the symbiosis of
patterns and text contribute to the construction of effective thoughts, consequently leading to the success
of C OT. To enable a systematic analysis, we first identify samples in which C OT(p) yields correct answer,
whereas bothCpat_noneppqandCpat_onlyppqare wrong. Analyzing these samples assist us in identifying
probable systematic differences across these methods.
COT is more effective in solving questions with more patterns. In general, questions with more patterns
require more intermediate steps to arrive at correct answers. Thus, C OT is expected to help more for such
cases. We test this hypothesis by glancing into the GSM-8 Kdataset. The number of GSM-8 Kquestions that
the model exclusively solve using C OT(p) is 140. Note that these are the questions that neither Cpat_noneppq
norCpat_onlyppqcan solve. We observe that this is roughly twice and four-times the number of questions that | 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 | 258 | norCpat_onlyppqcan solve. We observe that this is roughly twice and four-times the number of questions that
are exclusively solved by Cpat_noneppq(71) andCpat_onlyppq(33), respectively. Further, the average number
of numerical entities in these questions is 3.98 as compared to the overall average of 3.62, a statistically
significant difference (difference of means t-test p= 0.04). We attribute this significant gain to the ability of
8We use patterns in this section as a superset of symbols.
61
COT(p) in forming longer and more detailed intermediate steps. These additional steps presumably steer the
model to elicit meaningful structures/patterns from thoughts, arriving at a factual answer ( åQ1- TvCOT
win Table 5). As we mentioned, text glues patterns and language structures together. Similarly, the presence
of patterns not only leads to meaningful thoughts, but also assists the model not to neglect the symbols.
Without patterns, the model has intrinsic tendency to prematurely arrive at a conclusion ( åQ2,åQ6TvCpat_noneppqwin Table 5), which is more probable to be inaccurate.
The importance of intermediate steps in reviving C OT.One of the crucial intentions of thoughts is to | 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 | 259 | The importance of intermediate steps in reviving C OT.One of the crucial intentions of thoughts is to
resemble a practical intermediate solution process. In addition, thoughts reiterate patterns and text that
presumably act as a beacon for the model to direct its attention (of various intensity) to particular tokens. To
better understand the intricacy of repeated patterns and text in thought, we analyze the generated thoughts in
the D ATEdataset. We observe several scenarios in which the Cpat_onlyppqprevents the model from generating
requisite information (e.g., “ 10days ago”åQ4in Table 5) and complex patterns (e.g., “ daybeforeyesterday”åQ5in Table 5) out of questions.
Cpat_noneppqexhibit a similar trend, without interspersed patterns in prompts, the model often arrives at a
wrong outcome via semantically correct steps. For example, åQ1- TvCpat_noneppqwin Table 6 shows
correct intermediate steps up until the very last calculation. The last calculation— “44times theweight of
thePapillon, so216pounds” —however, is incorrect. On the contrary, the model arrive at a factual and
mathematically correct result when explicit patterns are employed (“ sotheMastiffweighed 445=220 | 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 | 260 | mathematically correct result when explicit patterns are employed (“ sotheMastiffweighed 445=220
pounds ”). Interestingly, we observe an identical phenomenon occurs in the D ATE dataset. Recall that for
DATE (Table 1), the patterns in the thoughts are (a) xcalculationyÞÑ a description of computation of the
current state and (b) xoutputyÞÑ a statement that repeats the requisite intermediate information from (a) to
attain a correct answer. Breaking such explicit pattern disorients the model from generating intermediate
information, as in åQ5- TvCpat_noneppqwin Table 6.
I.2. C OMMONSENSE EXTRACTION
This section compiles a set of findings related to commonsense extraction mechanism of C OT through
analysis of the generated thoughts.
Text is a decisive component in eliciting semantic commonsense knowledge. We conjecture that C OT
unlocks a golden opportunity to bring forth supplementary commonsense knowledge from the question and
generate correct intermediate steps. Consequently, the generated commonsense knowledge assists the model
to attain a factual answer. For example, we observe that in åQ3of Table 5 the model with C OT infuses | 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 | 261 | to attain a factual answer. For example, we observe that in åQ3of Table 5 the model with C OT infuses
commonsense knowledge about animals (e.g., “ 5dogs have 4legs each:::2cats have 4legs each:::
10birds have 2legseach”). In addition, reviewing the generated thoughts in D ATEunderscores the ability
of the model to recast commonsense knowledge about dates into a coherent format in thoughts ( åQ6TvCOTwin Table 5). In this example, the model articulates the exact date for “ Christ mas Eve” in the
generated thought. Evidently, the model conditions on “ Christ mas Eve” and “ Todayis” to form the exact
date “ 12/24/1937 ”. This is undeniably an arduous task for the D IRECT setup, as it warrants the creation of
these two fragments of information in one step.
Establishing factually meaningful connections. While generating correct clauses in thoughts is
pivotal to answer a question, establishing factually meaningful connections between these clauses
is the final step to attain a correct answer. Recall that the pattern structure for S PORTS is | 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 | 262 | is the final step to attain a correct answer. Recall that the pattern structure for S PORTS is
“person is asport 1player. activity is part of sport 2” (Section 5). If sport 1andsport 2are concordant (discordant), the answer is yes (no). Breaking this pattern, as in Cpat_noneppqof Table 21, leads to a peculiar
failure case. While the model successfully generate correct clauses—the sport that is associated with the
player and the corresponding activity—it fails to connect these clauses in a meaningful way to attain a correct yes/no answer. For example: “ Robert Woods isafootballplayer (3).Killing thepowerplay isapart
62
ofhockey (3).Sotheanswer isyes.8” This finding underscores another pivotal role that patterns play in
prompts. The patterns reinforce the mechanism of extracting relevant information followed by establishing
factually meaningful connections between the generated clauses.
I.3. T EXT AND PATTERNS : ITTAKES TWO TO TANGO
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. | 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"
}
] |