Research map / Large language models / Agents, code and math
SafeMath: Safe Solutions for Unsafe Math Word Problems
Sagnik Basu, Subhrajit Mitra, Aman Juneja, Somnath Banerjee, Rima Hazra, Animesh Mukherjee
Indian Institute of Technology Kharagpur · Singapore Institute of Technology · National University of Singapore · TCG CREST
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add safety in-context vector (SF) to the math model | math LLMs · toxic math word problems | accuracy: 84.90% -> 88.02% (LlamaMath) | Improved |
| add both safety and math in-context vectors (SFM) | math LLMs · toxic math word problems | accuracy: avg gain 2.96% over base model | Improved |
| use few-shot prompting with 2 safe examples | Qwen2Math / Qwen3 · toxic math word problems | accuracy: 78.18% -> 4.06% (Qwen2Math) | Hurt |
| use Safety-Arithmetic baseline instead of base model | LlamaMath · toxic math word problems | accuracy: 84.90% -> 64.06% | Hurt |
| add safe prompting instruction | Qwen3 · toxic math word problems | accuracy: 77.66% -> 49.01% | Hurt |
| apply SFM steering | LlamaMath · human safety judgment | % safe: 40.5% -> 50% | Improved |
| increase math vector coefficient alpha (ablation) | SafeMath · toxic math word problems | accuracy/safety | Mixed |
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most shared results.
- Safety-Arithmetic — Safety Arithmetic: A Framework for Test-time Safety Alignment of Language Models by Steering Parameters and Activations (EMNLP 2024) · better on 5 of 5 shared results
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems in mathematical and structural reasoning benchmarks
Which reasoning benchmarks hold up beyond one language, text-only prompts and one judge model?
- Benchmarks cover one language or a few high-resource ones. · 25 papers state it
- Evaluation and inference cost more than the plain baseline. · 12 papers state it
- Tasks are text-only, with no images, audio or other modalities. · 11 papers state it
Closest papers by meaning
- Adversarial Math Word Problem Generation (EMNLP 2024 · similarity 0.88)
- GSM-Plus: A Comprehensive Benchmark for Evaluating the Robustness of LLMs as Mathematical Problem Solvers (ACL 2024 · similarity 0.88)
- Exposing the Achilles' Heel: Evaluating LLMs Ability to Handle Mistakes in Mathematical Reasoning (ACL 2025 · similarity 0.88)
- MathAttack: Attacking Large Language Models towards Math Solving Ability (AAAI 2024 · similarity 0.87)
- A Careful Examination of Large Language Model Performance on Grade School Arithmetic (NeurIPS 2024 · similarity 0.87)
- Physics of Language Models: Part 2.2, How to Learn From Mistakes on Grade-School Math Problems (ICLR 2025 · similarity 0.86)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.