Natural Wake-Sleep Algorithm