AIDS has killed 25 million people worldwide but new infections are slowing sharply, the UN said in an annual report on the crisis that mixed hope with a warning against complacency.