Offline Learning and Forgetting for Reasoning with Large Language Models

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Ni, Tianwei, Nie, Allen, Chaudhary, Sapana, Liu, Yao, Rangwala, Huzefa, Fakoor, Rasool
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866909872257236992
author Ni, Tianwei
Nie, Allen
Chaudhary, Sapana
Liu, Yao
Rangwala, Huzefa
Fakoor, Rasool
author_facet Ni, Tianwei
Nie, Allen
Chaudhary, Sapana
Liu, Yao
Rangwala, Huzefa
Fakoor, Rasool
contents Leveraging inference-time search in large language models has proven effective in further enhancing a trained model's capability to solve complex mathematical and reasoning problems. However, this approach significantly increases computational costs and inference time, as the model must generate and evaluate multiple candidate solutions to identify a viable reasoning path. To address this, we propose an effective approach that integrates search capabilities directly into the model by fine-tuning it on unpaired successful (learning) and failed reasoning paths (forgetting) derived from diverse search methods. A key challenge we identify is that naive fine-tuning can degrade the model's search capability; we show this can be mitigated with a smaller learning rate. Extensive experiments on the challenging Game-of-24 and Countdown arithmetic puzzles show that, replacing CoT-generated data with search-generated data for offline fine-tuning improves success rates by around 23% over inference-time search baselines, while reducing inference time by 180$\times$. On top of this, our learning and forgetting objective consistently outperforms both supervised fine-tuning and preference-based methods.
format Preprint
id arxiv_https___arxiv_org_abs_2504_11364
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Offline Learning and Forgetting for Reasoning with Large Language Models
Ni, Tianwei
Nie, Allen
Chaudhary, Sapana
Liu, Yao
Rangwala, Huzefa
Fakoor, Rasool
Machine Learning
Artificial Intelligence
Computation and Language
Leveraging inference-time search in large language models has proven effective in further enhancing a trained model's capability to solve complex mathematical and reasoning problems. However, this approach significantly increases computational costs and inference time, as the model must generate and evaluate multiple candidate solutions to identify a viable reasoning path. To address this, we propose an effective approach that integrates search capabilities directly into the model by fine-tuning it on unpaired successful (learning) and failed reasoning paths (forgetting) derived from diverse search methods. A key challenge we identify is that naive fine-tuning can degrade the model's search capability; we show this can be mitigated with a smaller learning rate. Extensive experiments on the challenging Game-of-24 and Countdown arithmetic puzzles show that, replacing CoT-generated data with search-generated data for offline fine-tuning improves success rates by around 23% over inference-time search baselines, while reducing inference time by 180$\times$. On top of this, our learning and forgetting objective consistently outperforms both supervised fine-tuning and preference-based methods.
title Offline Learning and Forgetting for Reasoning with Large Language Models
topic Machine Learning
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2504.11364