Text2Grad: Reinforcement Learning from Natural Language Feedback

Abstract

Traditional RLHF optimizes language models with coarse, scalar rewards that mask the fine-grained reasons behind success or failure, leading to slow, opaque learning. Recent work augments RL with textual critiques through prompting or reflection, improving interpretability but leaving model parameters untouched. We introduce **Text2Grad**, a reinforcement-learning paradigm that *turns free-form textual feedback into span-level gradients*. Given human (or programmatic) critiques, Text2Grad aligns each feedback phrase with the relevant token spans, converts these alignments into differentiable reward signals, and performs gradient updates that directly refine the offending portions of the model's policy. This yields precise, feedback-conditioned adjustments instead of global nudges. Text2Grad is realized through three components: (1) a high-quality feedback–annotation pipeline that pairs critiques with token spans; (2) a fine-grained reward model that predicts span-level reward on answers while generating explanatory critiques; and (3) a span-level policy optimizer that back-propagates *natural-language gradients*. Across summarization, code generation, and question answering, Text2Grad consistently surpasses scalar-reward RL and prompt-only baselines, providing both higher task metrics and richer interpretability. Our results suggest that natural-language feedback can serve not only as explanations, but also as actionable training signals for fine-grained alignment. The code for our method is available at *[https://github.com/microsoft/Text2Grad](https://github.com/microsoft/Text2Grad)*.

Cite

Text

Wang et al. "Text2Grad: Reinforcement Learning from Natural Language Feedback." International Conference on Learning Representations, 2026.

Markdown

[Wang et al. "Text2Grad: Reinforcement Learning from Natural Language Feedback." International Conference on Learning Representations, 2026.](https://mlanthology.org/iclr/2026/wang2026iclr-text2grad/)

BibTeX

@inproceedings{wang2026iclr-text2grad,
  title     = {{Text2Grad: Reinforcement Learning from Natural Language Feedback}},
  author    = {Wang, Hanyang and Wang, Lu and Zhang, Chaoyun and Mao, Tianjun and Qin, Si and Lin, Qingwei and Rajmohan, Saravan and Zhang, Dongmei},
  booktitle = {International Conference on Learning Representations},
  year      = {2026},
  url       = {https://mlanthology.org/iclr/2026/wang2026iclr-text2grad/}
}