AR$^2$: Adversarial Reinforcement Learning for Abstract Reasoning in Large Language Models

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Yeh, Cheng-Kai, Lee, Hsing-Wang, Kuo, Chung-Hung, Huang, Hen-Hsen
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866914020024385536
author Yeh, Cheng-Kai
Lee, Hsing-Wang
Kuo, Chung-Hung
Huang, Hen-Hsen
author_facet Yeh, Cheng-Kai
Lee, Hsing-Wang
Kuo, Chung-Hung
Huang, Hen-Hsen
contents Abstraction--the ability to recognize and distill essential computational patterns from complex problem statements--is a foundational skill in computer science, critical both for human problem-solvers and coding-oriented large language models (LLMs). Despite recent advances in training LLMs for code generation using reinforcement learning (RL), most existing approaches focus primarily on superficial pattern recognition, overlooking explicit training for abstraction. In this study, we propose AR$^2$ (Adversarial Reinforcement Learning for Abstract Reasoning), a novel framework explicitly designed to enhance the abstraction abilities of LLMs. AR$^2$ employs a teacher model to transform kernel problems into narrative-rich, challenging descriptions without changing their fundamental logic. Simultaneously, a student coding model is trained to solve these complex narrative problems by extracting their underlying computational kernels. Experimental results demonstrate that AR$^2$ substantially improves the student model's accuracy on previously unseen, challenging programming tasks, underscoring abstraction as a key skill for enhancing LLM generalization.
format Preprint
id arxiv_https___arxiv_org_abs_2509_03537
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle AR$^2$: Adversarial Reinforcement Learning for Abstract Reasoning in Large Language Models
Yeh, Cheng-Kai
Lee, Hsing-Wang
Kuo, Chung-Hung
Huang, Hen-Hsen
Computation and Language
Artificial Intelligence
Machine Learning
Abstraction--the ability to recognize and distill essential computational patterns from complex problem statements--is a foundational skill in computer science, critical both for human problem-solvers and coding-oriented large language models (LLMs). Despite recent advances in training LLMs for code generation using reinforcement learning (RL), most existing approaches focus primarily on superficial pattern recognition, overlooking explicit training for abstraction. In this study, we propose AR$^2$ (Adversarial Reinforcement Learning for Abstract Reasoning), a novel framework explicitly designed to enhance the abstraction abilities of LLMs. AR$^2$ employs a teacher model to transform kernel problems into narrative-rich, challenging descriptions without changing their fundamental logic. Simultaneously, a student coding model is trained to solve these complex narrative problems by extracting their underlying computational kernels. Experimental results demonstrate that AR$^2$ substantially improves the student model's accuracy on previously unseen, challenging programming tasks, underscoring abstraction as a key skill for enhancing LLM generalization.
title AR$^2$: Adversarial Reinforcement Learning for Abstract Reasoning in Large Language Models
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2509.03537