TMLR 2026

Do Not Imitate, Reinforce

Iterative Classification via Belief Refinement

Mahdi Kallel1, Johannes Tölle2, Ahmed Hendawy3, Carlo D'Eramo1

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?
An actor refines its prediction step by step, and each step earns the gain in log probability of the label, shown as the green slice of the gauge. A critic estimates the improvement still left: green continues, red stops and returns the current prediction.
An actor refines its prediction step by step, and each step earns the gain in log probability of the label, shown as the green slice of the gauge. A critic estimates the improvement still left: green continues, red stops and returns the current prediction.

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.

$$ r_t = \log a_{t,y} - \log a_{t-1,y} $$

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.

$$ \mathbb{E}\Big[\textstyle\sum_{t\ge1}\gamma^{t-1} r_t\Big] = \mathbb{E}_{N\sim\mathrm{Geom}(1-\gamma)}\big[\log a_{N,y}\big] + \log K $$

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.

$$ \begin{gathered} \mathbb{E}_{y\sim q,\,a\sim\pi}\big[-\log a_y\big] = \underbrace{H(q)}_{\text{label ambiguity}} + \underbrace{\mathrm{KL}(q\,\Vert\,\mu)}_{\text{mean prediction error}} + \underbrace{\mathbb{E}\big[D_F(a_y \,\Vert\, \mu_y)\big]}_{\text{cost of stochastic actions}} \\ D_F(u\,\Vert\,v) = u/v - \log(u/v) - 1 \ge 0 \end{gathered} $$

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.

$$ V^\pi(s_t) = L_t - \mathbb{E}_{N\sim\mathrm{Geom}(1-\gamma),\,\pi}\!\left[L_{t+N} \mid s_t\right] $$
1 / 4

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.

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},
}