Roger Federer exited early in his first tournament since losing in the semifinals of the Australian Open.