Actually, they retain their experience, which makes it more or less an exploit since the AI doesn't do it. I always merge troops unless they're at more than 2/3 strength.