Balancing Expressivity and Robustness: Constrained Rational Activations for Reinforcement Learning

Rafał Surdej, Michał Bortkiewicz, Alex Lewandowski, Mateusz Ostaszewski, Clare Lyle
7/19/2025
cs.LG

Official code: special114/rl_rational_plasticity (3 stars, last commit 2025-06-20).

Abstract

Trainable activation functions, whose parameters are optimized alongside network weights, offer increased expressivity compared to fixed activation functions. Specifically, trainable activation functions defined as ratios of polynomials (rational functions) have been proposed to enhance plasticity in reinforcement learning. However, their impact on training stability remains unclear. In this work, we study trainable rational activations in both reinforcement and continual learning settings. We find that while their flexibility enhances adaptability, it can also introduce instability, leading to overestimation in RL and feature collapse in longer continual learning scenarios. Our main result is demonstrating a trade-off between expressivity and plasticity in rational activations. To address this, we propose a constrained variant that structurally limits excessive output scaling while preserving adaptability. Experiments across MetaWorld and DeepMind Control Suite (DMC) environments show that our approach improves training stability and performance. In continual learning benchmarks, including MNIST with reshuffled labels and Split CIFAR-100, we reveal how different constraints affect the balance between expressivity and long-term retention. While preliminary experiments in discrete action domains (e.g., Atari) did not show similar instability, this suggests that the trade-off is particularly relevant for continuous control. Together, our findings provide actionable design principles for robust and adaptable trainable activations in dynamic, non-stationary environments. Code available at: https://github.com/special114/rl_rational_plasticity.

View on arXivView PDF

Code Implementations(1)

30Shell, PythonJun 20, 20251 years ago

Similar Papers

Cite this paper

@article{surdej2025balancing,
  title  = {Balancing Expressivity and Robustness: Constrained Rational Activations for Reinforcement Learning},
  author = {Rafał Surdej and Michał Bortkiewicz and Alex Lewandowski and Mateusz Ostaszewski and Clare Lyle},
  year   = {2025},
  eprint = {2507.14736},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.14736v1}
}

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/2507.14736.svg)](https://codeofpaper.com/paper/2507.14736)

Discussion