HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Multi-View Reasoning: Consistent Contrastive Learning for Math Word Problem

Wenqi Zhang Yongliang Shen Yanna Ma Xiaoxia Cheng Zeqi Tan Qingpeng Nong Weiming Lu

Multi-View Reasoning: Consistent Contrastive Learning for Math Word Problem

Abstract

Math word problem solver requires both precise relation reasoning about quantities in the text and reliable generation for the diverse equation. Current sequence-to-tree or relation extraction methods regard this only from a fixed view, struggling to simultaneously handle complex semantics and diverse equations. However, human solving naturally involves two consistent reasoning views: top-down and bottom-up, just as math equations also can be expressed in multiple equivalent forms: pre-order and post-order. We propose a multi-view consistent contrastive learning for a more complete semantics-to-equation mapping. The entire process is decoupled into two independent but consistent views: top-down decomposition and bottom-up construction, and the two reasoning views are aligned in multi-granularity for consistency, enhancing global generation and precise reasoning. Experiments on multiple datasets across two languages show our approach significantly outperforms the existing baselines, especially on complex problems. We also show after consistent alignment, multi-view can absorb the merits of both views and generate more diverse results consistent with the mathematical laws.

Code Repositories

zwq2018/multi-view-consistency-for-mwp
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
math-word-problem-solving-on-math23kMulti-view* (ours)
Accuracy (5-fold): 85.2
Accuracy (training-test): 87.1
math-word-problem-solving-on-mathqaMulti-view
Answer Accuracy: 80.6
math-word-problem-solving-on-mawpsMulti-view
Accuracy (%): 92.3

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp