PAL: Bridging LLM Reasoning with Code for Accuracy

Program-Aided Language Models (PAL) enhance Chain-of-Thought by prompting LLMs to generate and execute code (e.g., Python) for calculations, achieving up to 40% absolute accuracy gains on complex math problems like GSM-Hard over CoT alone.

Sources

Open the full topic