Frequency and Generalisation of Periodic Activation Functions in Reinforcement Learning

Augustine N. Mavor-Parker, Matthew J. Sargent, Caswell Barry, Lewis Griffin, Clare Lyle
7/9/2024
cs.LGcs.AIcs.NE

No confident code implementation found for this paper.

Abstract

Periodic activation functions, often referred to as learned Fourier features have been widely demonstrated to improve sample efficiency and stability in a variety of deep RL algorithms. Potentially incompatible hypotheses have been made about the source of these improvements. One is that periodic activations learn low frequency representations and as a result avoid overfitting to bootstrapped targets. Another is that periodic activations learn high frequency representations that are more expressive, allowing networks to quickly fit complex value functions. We analyse these claims empirically, finding that periodic representations consistently converge to high frequencies regardless of their initialisation frequency. We also find that while periodic activation functions improve sample efficiency, they exhibit worse generalization on states with added observation noise -- especially when compared to otherwise equivalent networks with ReLU activation functions. Finally, we show that weight decay regularization is able to partially offset the overfitting of periodic activation functions, delivering value functions that learn quickly while also generalizing.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{mavorparker2024frequency,
  title  = {Frequency and Generalisation of Periodic Activation Functions in Reinforcement Learning},
  author = {Augustine N. Mavor-Parker and Matthew J. Sargent and Caswell Barry and Lewis Griffin and Clare Lyle},
  year   = {2024},
  eprint = {2407.06756},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.06756v2}
}

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

Discussion