Give me a hint: Can LLMs take a hint to solve math problems?
Paper · 2024 · Vansh Agrawal, Pratham Singla, Amitoj Singh Miglani et al.
Summary
The authors ask whether LLMs solve competition-style math better when they receive a short, problem-specific nudge rather than worked examples. They borrow the idea from tutoring, where a teacher points a student in the right direction without giving away the full solution. Gemini 1.5 Flash was shown each question with its final answer and asked to write a hint. The hint was then added to the target prompt. This approach was compared with baseline, one-shot, few-shot and chain-of-thought (CoT) prompting, and with misleading (adversarial) and unrelated (random) hints, for 17 prompt variants in total. Eleven LLMs were tested: base, instruction-tuned, math-tuned and closed-source models. The test set was a 700-problem subset of the MATH dataset. Hinting gave the best average accuracy and CoT the weakest among the non-adversarial methods. Bad hints pushed accuracy below CoT. The work suggests that light guidance can beat full worked examples, but models are easily misled by wrong context.
Key points
- The evaluation used 7 MATH topics with 100 problems each, at difficulty levels 1–5. The 11 models comprised 9 open-source models plus GPT-4o-mini and Gemini Flash.
- In Table 2, hinting lifted closed-source models from 0.6685 to 0.7186 and math-tuned models from 0.6180 to 0.6485. Base models dropped from 0.5385 to 0.5104, which the authors attribute to weak instruction following.
- Adversarial hints hurt every model category. Random hints were especially damaging for base models, which fell to 0.2871.
- Qwen-2-Math-Instruct came close to GPT-4o-mini and led the 7B/8B group, while Mistral-Instruct ranked lowest in that group.
- The study has several limitations:
- The problem sample is small.
- Answers were graded by an LLM.
- Hints were generated with access to the correct answer.
- No models larger than about 8B parameters among the open-source set were tested.
Institutions
Fields, topics and concepts
📚 Shelves 6The field of science this work belongs to (OpenAlex fields).Computer Science · 18,614 worksArtificial Intelligence · 17,965 worksArts and Humanities · 17,450 worksLanguage and Linguistics · 17,296 worksMathematics · 189 worksApplied Mathematics · 52 works
🧭 Topics 1Research subjects and languages the work is about.Language models & pretraining · 3,894 works
Cite
Cite as Vansh Agrawal, Pratham Singla, Amitoj Singh Miglani, Shivank Garg and Ayush Mangal. 2024. Give me a hint: Can LLMs take a hint to solve math problems?. arXiv:2410.05915.
@misc{agrawal2024give,
title = {{Give me a hint: Can LLMs take a hint to solve math problems?}},
author = {Vansh Agrawal, Pratham Singla, Amitoj Singh Miglani, Shivank Garg and Ayush Mangal},
year = {2024},
doi = {10.48550/arxiv.2410.05915},
eprint = {2410.05915},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2410.05915}
}References
- Arkil Patel, Satwik Bhattamishra, and Navin Goyal. Are NLP models really able to solve simple math word problems? In Kristina Toutanova, Anna Rumshisky, Luke Zettlemoyer, Dilek Hakkani-Tur, Iz Beltagy, Steven Bethard, Ryan Cotterell, Tanmoy Chakraborty, and Yichao Zhou, editors, Proceedings of the 2…
- Jingyuan Ma, Damai Dai, and Zhifang Sui. Large language models are unconscious of unreasonability in math problems. arXiv preprint arXiv:2403.19346, 2024. — [arXiv:2403.19346](https://arxiv.org/abs/2403.19346) find
- Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel Ziegler, Jeffrey Wu, Clemens Winter, Chri… — Language Models are Few-Shot Learners
- Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, et al. Chain-of-thought prompting elicits reasoning in large language models. Advances in neural information processing systems, 35:24824–24837, 2022.
- Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the math dataset. arXiv preprint arXiv:2103.03874, 2021.
- OpenAI Team et al. Gpt-4 technical report. arXiv preprint arXiv:2303.08774, 2023.
- Gemini Team et al. Gemini 1.5: Unlocking multimodal understanding across millions of tokens of context, 2024.
- Ankit Satpute, Noah Gießing, André Greiner-Petter, Moritz Schubotz, Olaf Teschke, Akiko Aizawa, and Bela Gipp. Can llms master math? investigating large language models on math stack exchange. In Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Re… find
- Shubham Vatsal and Harsh Dubey. A survey of prompt engineering methods in large language models for different nlp tasks. arXiv preprint arXiv:2407.12994, 2024. — [arXiv:2407.12994](https://arxiv.org/abs/2407.12994) find
- Janice Ahn, Rishu Verma, Renze Lou, Di Liu, Rui Zhang, and Wenpeng Yin. Large language models for mathematical reasoning: Progresses and challenges. arXiv preprint arXiv:2402.00157, 2024.
- Hongwei Liu, Zilong Zheng, Yuxuan Qiao, Haodong Duan, Zhiwei Fei, Fengzhe Zhou, Wenwei Zhang, Songyang Zhang, Dahua Lin, and Kai Chen. Mathbench: Evaluating the theory and application proficiency of llms with a hierarchical mathematics benchmark. arXiv preprint arXiv:2405.12209, 2024.
- Yujun Mao, Yoon Kim, and Yilun Zhou. Champ: A competition-level dataset for fine-grained analyses of llms’ mathematical reasoning capabilities. arXiv preprint arXiv:2401.06961, 2024. find
- Jinlan Fu, Shenzhen Huangfu, Hang Yan, See-Kiong Ng, and Xipeng Qiu. Hint-before-solving prompting: Guiding llms to effectively utilize encoded knowledge. arXiv preprint arXiv:2402.14310, 2024. — [arXiv:2402.14310](https://arxiv.org/abs/2402.14310) find
- Freda Shi, Xinyun Chen, Kanishka Misra, Nathan Scales, David Dohan, Ed H Chi, Nathanael Schärli, and Denny Zhou. Large language models can be easily distracted by irrelevant context. In International Conference on Machine Learning, pages 31210–31227. PMLR, 2023.
- An Yang, Baosong Yang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Zhou, Chengpeng Li, Chengyuan Li, Dayiheng Liu, Fei Huang, et al. Qwen2 technical report. arXiv preprint arXiv:2407.10671, 2024. find
- Albert Q Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, et al. Mistral 7b. arXiv preprint arXiv:2310.06825, 2023. find
- Jeffrey Zhou, Tianjian Lu, Swaroop Mishra, Siddhartha Brahma, Sujoy Basu, Yi Luan, Denny Zhou, and Le Hou. Instruction-following evaluation for large language models. arXiv preprint arXiv:2311.07911, 2023.
- Kaijie Zhu, Jindong Wang, Jiaheng Zhou, Zichen Wang, Hao Chen, Yidong Wang, Linyi Yang, Wei Ye, Yue Zhang, Neil Zhenqiang Gong, et al. Promptbench: Towards evaluating the robustness of large language models on adversarial prompts. arXiv preprint arXiv:2306.04528, 2023.
- Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Amy Yang, Angela Fan, et al. The llama 3 herd of models. arXiv preprint arXiv:2407.21783, 2024.
- Ebtesam Almazrouei, Hamza Alobeidli, Abdulaziz Alshamsi, Alessandro Cappelli, Ruxandra Cojocaru, Mérouane Debbah, Étienne Goffinet, Daniel Hesslow, Julien Launay, Quentin Malartic, et al. The falcon series of open language models. arXiv preprint arXiv:2311.16867, 2023.
- Susan Zhang, Stephen Roller, Naman Goyal, Mikel Artetxe, Moya Chen, Shuohui Chen, Christopher Dewan, Mona Diab, Xian Li, Xi Victoria Lin, et al. Opt: Open pre-trained transformer language models. arXiv preprint arXiv:2205.01068, 2022.
- AI Anthropic. The claude 3 model family: Opus, sonnet, haiku. Claude-3 Model Card, 2024. find
- Haotong Qin, Ge-Peng Ji, Salman Khan, Deng-Ping Fan, Fahad Shahbaz Khan, and Luc Van Gool. How good is google bard’s visual understanding? an empirical study on open challenges. Machine Intelligence Research, 20(5):605–613, August 2023. find
- Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168, 2021.
- Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Mingchuan Zhang, YK Li, Yu Wu, and Daya Guo. Deepseekmath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300, 2024.
- Ke Wang, Junting Pan, Weikang Shi, Zimu Lu, Mingjie Zhan, and Hongsheng Li. Measuring multimodal mathematical reasoning with math-vision dataset, 2024.
Updated
This page in Markdown → https://md.research.elamur.ai/free/en/papers/agrawal-2024-give-me-hint-llms-take/