NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Evolutionary Retrofitting

Mathurin Videau, Mariia Zameshina, Alessandro Leite, Laurent Najman, Marc Schoenauer, Olivier Teytaud

TL;DR

The paper introduces AfterLearnER (After Learning Evolutionary Retrofitting), a framework that uses gradient-free evolutionary optimization to fine-tune fully trained machine learning models. By targeting a tiny subset of impactful parameters, it optimizes models directly against real-world, non-differentiable metrics (like BLEU scores, game kills, or human preference clicks) using only a few dozen to a few hundred data points.

What Problem Does This Paper Address?

Standard deep learning relies heavily on gradient descent, which requires loss functions to be smooth and differentiable. However, the metrics we actually care about in the real world—such as whether a translated piece of code successfully compiles, the word error rate of synthesized speech, or human aesthetic satisfaction—are inherently non-differentiable.

To circumvent this, researchers typically train models using differentiable "proxies" (like cross-entropy), which can lead to a misalignment between training objectives and real-world performance. While techniques like fine-tuning or Reinforcement Learning from Human Feedback (RLHF) try to fix this post-training, they are computationally expensive, require massive amounts of data (thousands of samples), and still generally depend on gradient backpropagation through surrogate models.

Methods

AfterLearnER bypasses gradients entirely by treating the fully trained model as a black box. It isolates a very small, highly impactful set of parameters or hyperparameters (termed $\aleph$-parameters), such as input normalization values or final layer rescaling weights. It then uses evolutionary algorithms (specifically via the open-source library Nevergrad and its automated optimization wizard NGOpt) to optimize these parameters against the true target metric (the $\aleph$-loss).

The framework operates in two distinct modes:

  1. Offline Mode: Performed once after training and before deployment. It uses a small validation set to optimize model parameters permanently.
  2. Online Mode: Performed dynamically at inference time. It optimizes latent variables or model inputs directly based on real-time user feedback (e.g., human clicks on generated images).
Fig. 1. AfterLearnER vs. Classical ML. Top: Standard gradient-based training (e.g., backpropagation) and hyperparameter tuning (the outer loop). Bottom: The two modes of AfterLearnER. Left: In the offline mode, retrofitting of some parameters (termed ℵ-parameter, see text) of the trained model, once and for all before test time, as in Sections 5.1 to 5.4, and the output of AfterLearnER is an optimized model. Right: In the online mode, the ℵ-parameter can also include some model input in the latent space, the objective can then be dynamic (the loss, the user feedback, or a surrogate model), as in Sections 6.1 to 6.4. The output of AfterLearneER is then an improved output for the given input.

The authors position AfterLearnER alongside other post-training paradigms like Test-Time Adaptation (TTA) and Parameter-Efficient Fine-Tuning (PEFT), distinguishing it by its ability to handle completely non-differentiable objectives without any backpropagation cycles.

Table 1. Comparison between different works related to AfterLearnER. The columns from left to right are: Whether their target task is the same as the one used during pre-training; Whether any additional knowledge is needed for the optimization; What proportion of the model parameters are modified; Whether some gradient is needed or not; The number of full backprop optimization that is performed (if any) after the pre-training; The corresponding typical references (there are dozens of other works, and we cannot pretend to be exhaustive).

Datasets & Applications

Rather than introducing a single new benchmark, the authors validate AfterLearnER across eight highly diverse domains using established models and datasets:

  • Depth Sensing: Optimizing the MiDaS monocular depth estimation model using subsets of ImageNet.
  • Speech Re-synthesis: Tuning Tacotron/Vocoder parameters in TextLessLib to minimize Word Error Rate.
  • Reinforcement Learning: Enhancing a deep RL agent playing the game Doom via the VizDoom simulator.
  • Code Translation: Refining the Transcoder model on GitHub-sourced C++, Java, and Python functions.
  • Generative Modeling (GANs & Diffusion): Improving image quality and diversity using EG3D (trained on AFHQ cats and FFHQ faces) and Latent Diffusion Models (LDM) based on human preference feedback.

Key Insights and Ideas

  • The Power of Bottlenecks: Black-box optimization scales poorly with dimensionality. AfterLearnER succeeds because it targets parameters that intersect all paths from inputs to outputs (like normalization layers). Tweaking a handful of these "gatekeeper" variables can radically steer model behavior safely.
  • Data Efficiency via Aggregation: Traditional training requires a gradient step per mini-batch. AfterLearnER requires only a single scalar feedback per model evaluation, making it exceptionally compatible with slow, expensive feedback loops like human evaluation or complex simulators.
  • Theoretical Immunity to Overfitting: Using a mathematical foundation based on Bonferroni corrections, the authors demonstrate that because the parameter search space is small and the feedback volume is low, AfterLearnER has a remarkably low risk of overfitting to the small validation sets it uses.

Key Results

AfterLearnER consistently outperformed baseline models across all tasks with minimal computational overhead:

  • Depth Sensing: With just 300 scalar feedbacks, the framework enhanced the Small MiDaS baseline model to occasionally outperform the much larger Hybrid model.
  • Code Translation: It successfully improved code translation quality (measured by BLEU or computational accuracy) in 31 out of 32 independent test cases.
  • Doom AI: The retrofitted agent significantly increased its kill/death ratio over the baseline agent in both normal and "terminator" game modes.
  • Image Generation: For Latent Diffusion Models, human satisfaction rates regarding image cropping and composition quality jumped from a baseline of 2.9% to up to 6.7% using a surrogate model trained on just 200 human interactions.

Limitations and Future Work

While powerful, AfterLearnER is strictly an "add-on" optimization layer; it refines an already well-trained model but cannot replace the initial deep learning pipeline.

Currently, the selection of which $\aleph$-parameters to optimize is done heuristically based on human intuition (e.g., selecting normalization layers). The authors note that future work should investigate automated ways to discover optimal parameter subsets. Additionally, they suggest expanding the framework to handle multi-objective optimization problems (e.g., balancing code translation accuracy with execution speed) and applying it to mitigate hallucinations in Large Language Models.

Summary updated

BibTeX
@article{videau2026evolutionary,
  author = {Mathurin Videau and Mariia Zameshina and Alessandro Leite and Laurent Najman and Marc Schoenauer and Olivier Teytaud},
  title = {{Evolutionary Retrofitting}},
  journal = {ACM Trans. Evol. Learn. Optim.},
  year = {2026},
  doi = {10.1145/3771736},
}
Figure