Dilith Jayakody

PhD student, Computer Science at Dalhousie University. Researching with Prof. Janarthanan Rajendran.

I work on how reinforcement learning agents can learn their own intrinsic rewards to become more sample-efficient. Before Dal, I completed my BSc in Computer Science and Engineering at the University of Moratuwa and lectured there on a contract basis.

Research

Discovering What to Learn in Reinforcement Learning

PhD research · 2024 – Present

Most RL agents learn from a reward that a person designed. My PhD work asks how an agent can learn its own reward signal instead, one that tells it what is worth learning and helps it improve on the real task faster.

Instability of Meta-Learning Intrinsic Rewards for Policy Gradient Reinforcement Learning

Dilith Jayakody, Domenic Rosati, Janarthanan Rajendran

LIRPG is the foundational method for meta-learning intrinsic rewards. It does well in simple control tasks, but we found that it breaks down in high-dimensional settings such as learning to play Atari from pixels. When the agent trains on the learned reward alone, performance collapses to near-random. We traced the cause to the shared encoder used by the policy and value networks. The learned reward is dense and keeps changing, so the value loss becomes large and noisy, and its gradients drown out the policy's. Training the policy and value function in separate phases, using existing phasic policy gradient methods, fixes the problem without changing how the reward is learned. We scale these findings across 49 Atari games and 5 Procgen games.

NeurIPS 2026 Paper Code

Towards Combining Task-Independent and Learned Task-Dependent Intrinsic Rewards in Cooperative Multi-Agent Reinforcement Learning

Dilith Jayakody, Domenic Rosati, Janarthanan Rajendran

A learned reward can only learn what is useful once the agent has seen some real task reward. In sparse-reward settings that can take a long time. We asked whether a generic exploration bonus (Random Network Distillation, which rewards visiting new states) can help bootstrap a learned, task-specific reward. We tested this in Hanabi, a cooperative card game where players see each other's cards but not their own, so good play needs reasoning about what teammates know. A simple fixed mix of the task reward, the learned reward and the exploration bonus scored significantly higher than PPO and PPO + LIRPG.

AAAI 2026 ToM4AI Workshop Paper

Local Forgetting Replay Buffers for Deep RL

2025 – Present

When part of an environment changes, an agent should update what it knows about that part and keep what it knows about the rest. Standard replay buffers make this hard. This project studies buffers that forget locally.

Replay Buffer with Efficient Local Forgetting for Adaptation to Local Reward Changes in Deep Model-Based Reinforcement Learning

Ruis MacDonald*, Dilith Jayakody*, Sageev Oore, Janarthanan Rajendran

A standard first-in-first-out replay buffer throws away the oldest experience in the whole buffer. After a local reward change, this mixes outdated and new experience in the changed region, while slowly evicting experiences from regions the agent has not visited lately. The Local Forgetting (LoFo) buffer fixes this by dropping the oldest experience from the same region as each new one. But finding that region means comparing each new state against everything in the buffer, which gets slow. We propose LoFoV2, which hashes learned state embeddings to assign each state to a region and keeps a small first-in-first-out buffer per region. With Deep Dyna-Q on MountainCarLoCA and the image-based MiniGridLoCA, LoFoV2 adapts as well as the original LoFo while being significantly faster and compute efficient.

RLC 2026 Continual RL Workshop Paper

* Equal contribution

IndexRL: Reinforcement Learning for Remote Sensing

Undergraduate research · 2022 – 2023

Few-shot Multispectral Segmentation with Representations Generated by Reinforcement Learning

Dilith Jayakody, Thanuja Ambegoda

Multispectral images, such as satellite images, have many bands beyond red, green and blue. Segmentation models for them usually need large labelled datasets. Remote sensing experts often use hand-made indices instead, short mathematical formulas that combine bands to highlight things like water or vegetation. We trained an RL agent to discover such formulas automatically for the class being segmented, using as little as one labelled image. The formulas are added to the image as extra channels before segmentation. Keeping them short limits overfitting, and the approach improved few-shot segmentation across several multispectral datasets.

BMVC 2024 Paper Code Video

All publications →