                           What Makes In-context Learning Effective for Mathematical Reasoning

Ding, Y., Fan, W., Ning, L., Wang, S., Li, H., Yin, D.,              Kojima, T., Gu, S. S., Reid, M., Matsuo, Y., and Iwasawa,
  Chua, T.-S., and Li, Q. A survey on rag meets llms: To-             Y. Large language models are zero-shot reasoners. Ad-
  wards retrieval-augmented large language models. arXiv               vances in neural information processing systems, 35:
  preprint arXiv:2405.06211, 2024.                                     22199–22213, 2022.

Dong, Q., Li, L., Dai, D., Zheng, C., Wu, Z., Chang, B., Sun,        Koncel-Kedziorski, R., Roy, S., Amini, A., et al. Mawps:
  X., Xu, J., and Sui, Z. A survey on in-context learning.             A math word problem repository. In NAACL-HLT, pp.
  arXiv preprint arXiv:2301.00234, 2022.                              1152–1157, 2016.

Feigenbaum, E. A., Feldman, J., et al. Computers and                 Ling, R. F. Residuals and influence in regression, 1984.
  thought. New York McGraw-Hill, 1963.
                                                                     Liu, J., Shen, D., Zhang, Y., Dolan, W. B., Carin, L., and
Fletcher, C. R. Understanding and solving arithmetic word              Chen, W. What makes good in-context examples for gpt-
  problems: A computer simulation. Behavior Research                   3? In Proceedings of Deep Learning Inside Out (DeeLIO
  Methods, Instruments, & Computers, 17(5):565–571,                    2022): The 3rd Workshop on Knowledge Extraction and
  1985.                                                                Integration for Deep Learning Architectures, pp. 100–
                                                                       114, 2022.
Fu, Y., Peng, H., Sabharwal, A., Clark, P., and Khot, T.
  Complexity-based prompting for multi-step reasoning.               Liu, J., Huang, Z., Zhai, C., and Liu, Q. Learning by ap-
  In The Eleventh International Conference on Learning                 plying: A general framework for mathematical reasoning
  Representations, 2022.                                               via enhancing explicit knowledge learning. In Proceed-
                                                                       ings of the AAAI Conference on Artificial Intelligence,
Gao, L., Madaan, A., Zhou, S., Alon, U., Liu, P., Yang,                volume 37, pp. 4497–4506, 2023.
 Y., Callan, J., and Neubig, G. Pal: Program-aided lan-
  guage models. In International Conference on Machine               Liu, J., Huang, Z., Liu, Q., Ma, Z., Zhai, C., and Chen,
  Learning, pp. 10764–10799. PMLR, 2023.                               E. Knowledge-centered dual-process reasoning for math
                                                                       word problems with large language models. IEEE Trans-
Gao, X. and Das, K. Customizing language model responses               actions on Knowledge and Data Engineering, 2025.
  with contrastive in-context learning. In Proceedings of the
  AAAI Conference on Artificial Intelligence, volume 38,             Luo, M., Xu, X., Dai, Z., Pasupat, P., Kazemi, M.,
  pp. 18039–18046, 2024.                                               Baral, C., Imbrasaite, V., and Zhao, V. Y. Dr. icl:
                                                                       Demonstration-retrieved in-context learning. arXiv
Gonen, H., Iyer, S., Blevins, T., Smith, N. A., and Zettle-            preprint arXiv:2305.14128, 2023.
  moyer, L. Demystifying prompts in language models
 via perplexity estimation. In Findings of the Associa-              Ma, Z., Huang, Z., Liu, J., Wang, M., Zhao, H., and Li, X.
  tion for Computational Linguistics: EMNLP 2023, pp.                 Automated creation of reusable and diverse toolsets for
 10136–10148, 2023.                                                   enhancing llm reasoning. In Proceedings of the AAAI
                                                                      Conference on Artificial Intelligence, volume 39, pp.
Han, C., Wang, Z., Zhao, H., and Ji, H. Explaining emergent           24821–24830, 2025.
  in-context learning as kernel regression. arXiv preprint
  arXiv:2305.12766, 2023.                                            Meade, N., Gella, S., Hazarika, D., Gupta, P., Jin, D., Reddy,
                                                                      S., Liu, Y., and Hakkani-Tur, D. Using in-context learning
He, D., Feng, Z., Jin, D., Wang, X., and Zhang, W. Joint              to improve dialogue safety. In Findings of the Association
  identification of network communities and semantics via             for Computational Linguistics: EMNLP 2023, pp. 11882–
  integrative modeling of network topologies and node con-            11910, 2023.
  tents. In Proceedings of the AAAI Conference on Artificial
  Intelligence, volume 31, 2017.                                     Meta, A. Introducing meta llama 3: The most capable
                                                                      openly available llm to date. Meta AI, 2024.
Hendrycks, D., Burns, C., Kadavath, S., Arora, A., Basart,
  S., Tang, E., Song, D., and Steinhardt, J. Measuring               Min, S., Lyu, X., Holtzman, A., Artetxe, M., Lewis, M.,
  mathematical problem solving with the math dataset. In              Hajishirzi, H., and Zettlemoyer, L. Rethinking the role of
 Thirty-fifth Conference on Neural Information Process-               demonstrations: What makes in-context learning work?
  ing Systems Datasets and Benchmarks Track (Round 2),                In Proceedings of the 2022 Conference on Empirical
  2021.                                                               Methods in Natural Language Processing, pp. 11048–
                                                                      11064, 2022.
Koh, P. W. and Liang, P. Understanding black-box predic-
  tions via influence functions. In International conference         Neelakantan, A., Xu, T., Puri, R., Radford, A., Han, J. M.,
  on machine learning, pp. 1885–1894. PMLR, 2017.                      Tworek, J., Yuan, Q., Tezak, N., Kim, J. W., Hallacy,

                                                                10
