Saved in:
Bibliographic Details
Main Authors: Sharma, Aditya, Dalmia, Aman, Kazemi, Mehran, Zouaq, Amal, Pal, Christopher J.
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2410.13510
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929547938627584
author Sharma, Aditya
Dalmia, Aman
Kazemi, Mehran
Zouaq, Amal
Pal, Christopher J.
author_facet Sharma, Aditya
Dalmia, Aman
Kazemi, Mehran
Zouaq, Amal
Pal, Christopher J.
contents Geometry problem-solving demands advanced reasoning abilities to process multimodal inputs and employ mathematical knowledge effectively. Vision-language models (VLMs) have made significant progress in various multimodal tasks. Yet, they still struggle with geometry problems and are significantly limited by their inability to perform mathematical operations not seen during pre-training, such as calculating the cosine of an arbitrary angle, and by difficulties in correctly applying relevant geometry formulas. To overcome these challenges, we present GeoCoder, which leverages modular code-finetuning to generate and execute code using a predefined geometry function library. By executing the code, we achieve accurate and deterministic calculations, contrasting the stochastic nature of autoregressive token prediction, while the function library minimizes errors in formula usage. We also propose a multimodal retrieval-augmented variant of GeoCoder, named RAG-GeoCoder, which incorporates a non-parametric memory module for retrieving functions from the geometry library, thereby reducing reliance on parametric memory. Our modular code-finetuning approach enhances the geometric reasoning capabilities of VLMs, yielding an average improvement of over 16% across various question complexities on the GeomVerse dataset compared to other finetuning methods.
format Preprint
id arxiv_https___arxiv_org_abs_2410_13510
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle GeoCoder: Solving Geometry Problems by Generating Modular Code through Vision-Language Models
Sharma, Aditya
Dalmia, Aman
Kazemi, Mehran
Zouaq, Amal
Pal, Christopher J.
Computation and Language
Computer Vision and Pattern Recognition
Geometry problem-solving demands advanced reasoning abilities to process multimodal inputs and employ mathematical knowledge effectively. Vision-language models (VLMs) have made significant progress in various multimodal tasks. Yet, they still struggle with geometry problems and are significantly limited by their inability to perform mathematical operations not seen during pre-training, such as calculating the cosine of an arbitrary angle, and by difficulties in correctly applying relevant geometry formulas. To overcome these challenges, we present GeoCoder, which leverages modular code-finetuning to generate and execute code using a predefined geometry function library. By executing the code, we achieve accurate and deterministic calculations, contrasting the stochastic nature of autoregressive token prediction, while the function library minimizes errors in formula usage. We also propose a multimodal retrieval-augmented variant of GeoCoder, named RAG-GeoCoder, which incorporates a non-parametric memory module for retrieving functions from the geometry library, thereby reducing reliance on parametric memory. Our modular code-finetuning approach enhances the geometric reasoning capabilities of VLMs, yielding an average improvement of over 16% across various question complexities on the GeomVerse dataset compared to other finetuning methods.
title GeoCoder: Solving Geometry Problems by Generating Modular Code through Vision-Language Models
topic Computation and Language
Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2410.13510