CodeIt: Self-Improving Language Models with Prioritized Hindsight Replay

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Butt, Natasha, Manczak, Blazej, Wiggers, Auke, Rainone, Corrado, Zhang, David W., Defferrard, Michaël, Cohen, Taco
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866910509232553984
author Butt, Natasha
Manczak, Blazej
Wiggers, Auke
Rainone, Corrado
Zhang, David W.
Defferrard, Michaël
Cohen, Taco
author_facet Butt, Natasha
Manczak, Blazej
Wiggers, Auke
Rainone, Corrado
Zhang, David W.
Defferrard, Michaël
Cohen, Taco
contents Large language models are increasingly solving tasks that are commonly believed to require human-level reasoning ability. However, these models still perform very poorly on benchmarks of general intelligence such as the Abstraction and Reasoning Corpus (ARC). In this paper, we approach ARC as a programming-by-examples problem, and introduce a novel and scalable method for language model self-improvement called Code Iteration (CodeIt). Our method iterates between 1) program sampling and hindsight relabeling, and 2) learning from prioritized experience replay. By relabeling the goal of an episode (i.e., the target program output given input) to the realized output produced by the sampled program, our method effectively deals with the extreme sparsity of rewards in program synthesis. Applying CodeIt to the ARC dataset, we demonstrate that prioritized hindsight replay, along with pre-training and data-augmentation, leads to successful inter-task generalization. CodeIt is the first neuro-symbolic approach that scales to the full ARC evaluation dataset. Our method solves 15% of ARC evaluation tasks, achieving state-of-the-art performance and outperforming existing neural and symbolic baselines. Our code is available at https://github.com/Qualcomm-AI-research/codeit .
format Preprint
id arxiv_https___arxiv_org_abs_2402_04858
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle CodeIt: Self-Improving Language Models with Prioritized Hindsight Replay
Butt, Natasha
Manczak, Blazej
Wiggers, Auke
Rainone, Corrado
Zhang, David W.
Defferrard, Michaël
Cohen, Taco
Artificial Intelligence
Computation and Language
Machine Learning
Large language models are increasingly solving tasks that are commonly believed to require human-level reasoning ability. However, these models still perform very poorly on benchmarks of general intelligence such as the Abstraction and Reasoning Corpus (ARC). In this paper, we approach ARC as a programming-by-examples problem, and introduce a novel and scalable method for language model self-improvement called Code Iteration (CodeIt). Our method iterates between 1) program sampling and hindsight relabeling, and 2) learning from prioritized experience replay. By relabeling the goal of an episode (i.e., the target program output given input) to the realized output produced by the sampled program, our method effectively deals with the extreme sparsity of rewards in program synthesis. Applying CodeIt to the ARC dataset, we demonstrate that prioritized hindsight replay, along with pre-training and data-augmentation, leads to successful inter-task generalization. CodeIt is the first neuro-symbolic approach that scales to the full ARC evaluation dataset. Our method solves 15% of ARC evaluation tasks, achieving state-of-the-art performance and outperforming existing neural and symbolic baselines. Our code is available at https://github.com/Qualcomm-AI-research/codeit .
title CodeIt: Self-Improving Language Models with Prioritized Hindsight Replay
topic Artificial Intelligence
Computation and Language
Machine Learning
url https://arxiv.org/abs/2402.04858