Hint of Pseudo Code (HoPC): Zero-Shot Step by Step Pseudo Code Reasoning Prompting
On the map: LLM reasoning → Prompting and chain-of-thought reasoning
Abstract (arXiv)
Prompting a language model (LM) is an increasingly important research topic for better utilization of large language models (LLMs). While simple prompting is effective for single-step questions, it fails to activate the correct knowledge path for multi-step reasoning tasks consistently. The few-shot Chain of Thought (CoT), serves as an advanced prompting strategy that explains and demonstrates the reasoning process to the LLM, outperforming simple prompting in challenging reasoning tasks such as arithmetic and common-sense reasoning. The Program of Thought (PoT) aims to generate text and programming language solutions for multi-step reasoning problems. In zero-shot CoT, the prompt is simply ``Let's think step by step'', which is overly simplistic and does not adequately demonstrate a robust reasoning process for complex reasoning challenges. Additionally, PoT requires an extra interpreter to execute the answer and struggles with semantic reasoning problems like StrategyQA. This paper introduces a novel Hint of Pseudo Code (HoPC) prompting technique that does not require extra interpreter as in PoT and incorporates a more powerful zero-shot problem decomposition and semantic code reasoning capabilities than zero-shot CoT. It consists of three components: problem decomposition, semantic code reasoning, and answer extraction. We prompt these components as hints in a sequential, step by step manner, making it easy to tailor and explain for various tasks.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Placed in Prompting and chain-of-thought reasoning, one of 17 directions in LLM reasoning. Builds on 13 of its 18 references that are in the map. First posted on arXiv 19 May 2023.
Builds on
13 of 18 references.
Closest ancestors · 3
Same direction, newest first
- 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Tasks22 Nov
- 2022Large Language Models are Zero-Shot Reasoners24 May
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Models28 Jan
Other references · 10
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
- 2021Are NLP Models really able to Solve Simple Math Word Problems?cited by 861
- 2021Did Aristotle Use a Laptop? A Question Answering Benchmark with Implicit Reasoning Strategiescited by 736
- 2017Program Induction by Rationale Generation : Learning to Solve and Explain Algebraic Word Problemscited by 642
- 2022Decomposed Prompting: A Modular Approach for Solving Complex Taskscited by 554
Built on by
Citing papers per year: 2023: 2; 2024: 3.
5 papers.
- 2024If LLM Is the Wizard, Then Code Is the Wand: A Survey on How Code Empowers Large Language Models to Serve as Intelligent Agentscited by 77
- 2024Instance-adaptive Zero-shot Chain-of-Thought Promptingcited by 25
- 2023Prompt Engineering Through the Lens of Optimal Controlcited by 16
- 2023Towards A Unified View of Answer Calibration for Multi-Step Reasoningcited by 8
- 2024CodeGraph: Enhancing Graph Reasoning of LLMs with Codecited by 6
- 2024Instance-adaptive Zero-shot Chain-of-Thought Prompting30 Sep 2024
- 2024CodeGraph: Enhancing Graph Reasoning of LLMs with Code25 Aug 2024
- 2024If LLM Is the Wizard, Then Code Is the Wand: A Survey on How Code Empowers Large Language Models to Serve as Intelligent Agents1 Jan 2024
- 2023Towards A Unified View of Answer Calibration for Multi-Step Reasoning15 Nov 2023
- 2023Prompt Engineering Through the Lens of Optimal Control22 Oct 2023
Similar, not cited
Close in wording, no citation either way
- 2023Plan-and-Solve Prompting: Improving Zero-Shot Chain-of-Thought Reasoning by Large Language Models
- 2026Soft Guidance Starts to Outperform CoT Prompting as LLMs Improve
- 2023Cross-lingual Prompting: Improving Zero-shot Chain-of-Thought Reasoning across Languages
- 2025Zero-Shot Verification-guided Chain of Thoughts
- 2024Chain-of-Thought Reasoning Without Prompting
- 2023Leveraging Training Data in Few-Shot Prompting for Numerical Reasoning
- 2025Effectiveness of Zero-shot-CoT in Japanese Prompts
- 2024Zero-Shot Chain-of-Thought Reasoning Guided by Evolutionary Algorithms in Large Language Models