[Paper Review] Program Induction by Rationale Generation : Learning to Solve and Explain Algebraic Word Problems
This paper proposes a program induction framework that generates natural language rationales—step-by-step explanations with mathematical expressions—to solve algebraic word problems. By modeling rationales as latent variables that guide program search, the approach improves both rationale fluency and answer accuracy, achieving significantly higher performance than baseline neural models on a new 100,000-sample dataset of math problems with rationales.
Solving algebraic word problems requires executing a series of arithmetic operations---a program---to obtain a final answer. However, since programs can be arbitrarily complicated, inducing them directly from question-answer pairs is a formidable challenge. To make this task more feasible, we solve these problems by generating answer rationales, sequences of natural language and human-readable mathematical expressions that derive the final answer through a series of small steps. Although rationales do not explicitly specify programs, they provide a scaffolding for their structure via intermediate milestones. To evaluate our approach, we have created a new 100,000-sample dataset of questions, answers and rationales. Experimental results show that indirect supervision of program learning via answer rationales is a promising strategy for inducing arithmetic programs.
Motivation & Objective
- To address the challenge of inducing complex arithmetic programs from question-answer pairs in algebraic word problems.
- To improve model interpretability and learning efficiency by generating natural language rationales that structure the solution process.
- To create a large-scale, high-quality dataset of 100,000 algebraic word problems with annotated rationales and correct answers.
- To develop a sequence-to-sequence model that jointly generates rationales and infers underlying programs for solving problems.
- To demonstrate that indirect supervision via rationales enables better program induction than direct answer prediction.
Proposed method
- The model uses a sequence-to-sequence architecture with attention and copy mechanisms to generate rationales that include natural language and symbolic expressions.
- It employs a heuristic search strategy to explore plausible programs that generate the observed rationale and lead to the correct answer.
- The rationale is treated as a latent variable that guides the search for the correct arithmetic program, providing intermediate milestones.
- The model incorporates input copying and output copying mechanisms to improve generation of variables and values in the rationale.
- Programs are inferred by searching over possible operation sequences that, when executed, produce the rationale and final answer.
- The framework jointly optimizes for rationale fluency (measured by BLEU) and answer accuracy.
Experimental results
Research questions
- RQ1Can generating intermediate rationales improve the induction of arithmetic programs for solving algebraic word problems?
- RQ2Does using rationales as a latent scaffold reduce the search space for program induction compared to direct answer prediction?
- RQ3Can a neural sequence model jointly generate fluent rationales and infer correct programs without explicit program supervision?
- RQ4How does rationale-guided program induction compare to end-to-end answer prediction in terms of accuracy and interpretability?
- RQ5To what extent do copy mechanisms and heuristic search improve the model's ability to generate correct rationales and solutions?
Key findings
- The proposed model significantly outperforms state-of-the-art sequence-to-sequence models, doubling their accuracy on the task of solving algebraic word problems.
- All baseline models perform near chance level (around 20% accuracy), indicating that direct answer prediction is ineffective without rationale supervision.
- The model achieves the highest BLEU score among all variants, demonstrating superior fluency and correctness in rationale generation.
- The inclusion of an output copy mechanism improves BLEU scores, though it adds little to perplexity, as copied tokens could also be generated via softmax or input copying.
- The model successfully solves simple problems in one or two steps, such as '120 slices from 10-slice cakes', generating rationales like '120 / 10 = 12 cakes. Answer is C'.
- The heuristic search strategy is essential—without rationale modeling, the search space is too unconstrained for effective program induction.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.