A unit upgrade is a type of technology card. After a player gains a unit upgrade card, each of that player’s units that correspond to that upgrade card is treated as having the attributes and abilities printed on that upgrade card.
Any previous attributes of that unit, such as the one printed on that player’s faction sheet, are ignored.
LRR v2.0 (base game / Prophecy of Kings); specific card abilities may override the general rule.