I've experienced this once when climbing into a warmer air mass. The first indication was the rapidly rising barbers pole on the PFD, and a quick cross check of the FMGC revealed the max alt had dropped by a couple of thousand feet! A slow climb in V/S then ensued until we coould get clearance for a return to a lower level. I learned about flying from that.