Nicklas Hansen

Researcher at UC San Diego

I am currently a researcher in Prof. Xiaolong Wang's lab at UC San Diego. Before that, I was a visiting student at UC Berkeley and a research intern at Berkeley AI Research, where I was fortunate to work with Lerrel Pinto and Xiaolong Wang in Alyosha Efros' group.

I recently completed an MSc in Machine Learning at the Technical University of Denmark (DTU), advised by Ole Winther. I have also been at Nanyang Technological University (NTUsg), Retune-DSP and

Research interest

I am broadly interested in research on the generalization and adaptation of intelligent systems. I believe AI in the future should be flexible, learn with little supervision, and learn continously over their lifetime. I work with machine learning, robotics, and computer vision.

Publications and pre-prints

Nicklas Hansen
Generalization in Visual Reinforcement Learning
Master Thesis, Working Draft, 2021
Nicklas Hansen, Xiaolong Wang
Generalization in Reinforcement Learning by Soft Data Augmentation
arXiv, 2020
arXiv Website Code BibTeX
Nicklas Hansen, Rishabh Jangir, Yu Sun, Guillem Alenyà, Pieter Abbeel, Alexei A. Efros, Lerrel Pinto, Xiaolong Wang
Self-Supervised Policy Adaptation during Deployment
ICLR, 2021 (Spotlight)
arXiv Website Code BibTeX
Ali Mohebbi, Alexander R. Johansen, Nicklas Hansen, Peter E. Christensen, Jens M. Tarp, Morten L. Jensen, Henrik Bengtsson, Morten Mørup
Short Term Blood Glucose Prediction based on Continuous Glucose Monitoring Data
EMBC, 2020
arXiv BibTeX


Reinforcement Learning (Jan 2021)
Technical University of Denmark
Special course that I co-organize w/ Prof. Ole Winther for a group of students.
Three weeks of full-time study on classical and deep RL.
02456 Deep Learning (Fall 2019, Fall 2020)
Technical University of Denmark
Teaching Assistant
Significant course material contributions, supervised 100+ students’ projects on RL.
Website Code
02454 Introduction to Cognitive Science (Fall 2019)
Technical University of Denmark
Teaching Assistant
Assisted tutorial sessions and corrected assignments.


Neural AI (June 2019)
Introduction to Reinforcement Learning
I introduced a crowd of 100+ students from the Greater Copenhagen Area to RL.

Selected open-source projects

Nicklas Hansen, Xiaolong Wang
DMControl Generalization Benchmark
November 2020
arXiv Website Code BibTeX
Nicklas Hansen*, Christoffer Riis*
Recent Optimization Algorithms for Deep Learning
December 2019
Slides Code
Nicklas Hansen, Peter E. Christensen, Alexander R. Johansen
How to build RNNs and LSTMs from scratch with NumPy
October 2019
Colab Code
Nicklas Hansen
Minimal Neural Architecture Search
October 2019
Jeppe J.W. Olsen*, Nicklas Hansen*, Peter E. Christensen*
SyntaxSQLNet: A Text-to-SQL Parser (Reimplementation)
July 2019
Code BibTeX
Nicklas Hansen*, Simon H. Albrechtsen*
Voice Activity Detection in Noisy Environments
December 2018
PDF Code BibTeX

Press coverage

I have been mentioned in various media in connection with my research and my stay at UC Berkeley. Here's a few selected articles:


You are very welcome to contact me regarding my research. I typically respond within a few days.
I can be contacted directly at hello [at] nicklashansen .com