Switching Reference and Learning