Roger Federer saved two match points before suffering only his second career loss to Andy Roddick as the persistent American posted a win at the Miami Masters on Thursday.