Do Not Imitate, Reinforce
Iterative Classification via Belief Refinement
1Center for Artificial Intelligence and Data Science, University of Würzburg 2Automation and Robotics Research Group, SnT, University of Luxembourg 3Department of Computer Science, Technical University of Darmstadt
Today classifiers imitate their labels in a single pass and learn to be certain. What if classifiers learned by trial and error instead?
TL;DR
Reinforced Iterative Classification (RIC) rewards a classifier for improving its prediction instead of training it to imitate its labels. A recurrent actor refines its prediction step by step and earns a reward for each improvement. A critic decides when to stop. Learning from returns gives fundamentally different learning and generalization dynamics from supervised training, and a better balance of accuracy and calibration across ten image benchmarks.
How it works
As Andrew Barto put it at RLC 2024, “in the beginning, machine learning was reinforcement learning.” RIC brings this view back to classification by turning each labeled example into a short episode. The prediction starts uniform over the \(K\) classes. At every step a recurrent network reads the input and the current prediction, a policy head proposes the next one, and a value head judges whether refining further is worth it.
Reward every improvement
Cross-entropy asks the model to imitate the label. RIC instead rewards it for improving its prediction: the reward is the change in log probability of the true label \(y\), positive for a step toward \(y\) and negative for a step away. Since the actor samples its predictions, it has to discover by itself which refinements pay off.
Discounting trains every depth
Over an episode the rewards telescope, leaving only the first and the current prediction. With a discount \(\gamma\), the expected return becomes the log probability of the label at a random depth \(N\) drawn from a geometric distribution. Every depth carries weight, so every intermediate prediction is trained to be a good answer and RIC can stop at any step.
Same target, different learning
For labels drawn from \(q(\cdot \mid x)\), the expected loss splits into label ambiguity, the error of the mean prediction, and the cost of random actions. Maximizing the return removes the last two, so a deterministic RIC policy predicts \(q(\cdot \mid x)\), as cross-entropy does. What differs is the path: cross-entropy pushes toward the label while any gap remains, whereas the policy gradient moves a prediction only while sampled refinements earn distinguishable returns.
The critic decides when to stop
Write \(L_t = \mathrm{KL}(q\,\Vert\,a_t)\) for the error of the current prediction. The value compares it with the expected error after further refinement, and since the label ambiguity cancels, it measures only what refinement can still fix. RIC refines while \(V(s_t) > 0\), so ambiguous inputs stop early and confident mistakes keep refining, without a ponder penalty or separate halting network.
Results
We train RIC with Simple Policy Optimization (RIC-SPO) and compare it with supervised learning (SL) and with recurrent and evidential baselines on ten image classification benchmarks, including noisy human labels and medical images.
- The main difficulty shifts from overfitting to underfitting. RIC fits more gradually, while validation performance remains strong as training continues.
- RIC builds confidence at its own pace and stays better calibrated under noisy labels during prolonged training.
- RIC achieves a better balance between accuracy and calibration. Deterministic predictions favor accuracy, while stochastic predictions favor calibration.
- The critic spends computation where further refinement is useful and stops when little improvement remains.
Takeaways
- RIC offers an alternative way to train classifiers, by reinforcement instead of imitation.
- Freed from imitation, the model builds confidence at its own pace, and calibration emerges in training.
- The training dynamics favor models that are more robust to label noise.
- At deployment, deterministic rollouts favor accuracy and stochastic rollouts favor calibration.
- Better reinforcement learning algorithms could improve both speed and performance.
Citation
@article{kallel2026ric,
author = {Mahdi Kallel and Johannes T{\"o}lle and Ahmed Hendawy and Carlo D'Eramo},
title = {Do Not Imitate, Reinforce: Iterative Classification via Belief Refinement},
journal = {Transactions on Machine Learning Research},
year = {2026},
url = {https://openreview.net/forum?id=7xXijNfm8j},
eprint = {2604.22110},
archivePrefix = {arXiv},
}