Reinforcement Learning for Compositional Generalization with Outcome-Level Optimization

Xiyan Fu, Wei Liu
5/6/2026
cs.LGcs.CL

No confident code implementation found for this paper.

Abstract

Compositional generalization refers to correctly interpret novel combinations of known primitives, which remains a major challenge. Existing approaches often rely on supervised fine-tuning, which encourages models to imitate target outputs. This token-level training paradigm fails to capture the global compositional structure required for generalizing to unseen combinations. In this work, we investigate whether compositional generalization can instead be improved through outcome-level reinforcement learning. We adopt Group Relative Policy Optimization to optimize models based on feedback on their final outputs. Within this framework, we explore both a simple binary outcome reward and a composite reward that provides additional composition feedback. Experiments on multiple compositional benchmarks show that reinforcement learning improves compositional generalization compared to supervised fine-tuning. Further analysis reveals that supervised models tend to overfit frequent training compositions, whereas reinforcement learning improves compositional generalization by reshaping the output distribution, particularly for more complex composition types.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{fu2026reinforcement,
  title  = {Reinforcement Learning for Compositional Generalization with Outcome-Level Optimization},
  author = {Xiyan Fu and Wei Liu},
  year   = {2026},
  eprint = {2605.04920},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.04920v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.04920.svg)](https://codeofpaper.com/paper/2605.04920)

Discussion