I believe one of the devs say that for gaining experience, it's actually more of a Fibonnacci sequence.

It's somewhat ludicrous that the unit maintains experience when retrained but also good in some ways since now it's easier to get elite troops.

This does not always work though and I have had units drop a chevron or two when retrained but this is only with very few men left.