As the title says. Reloading the world will simply cancel out the speed boost.
I originally reported this as part of MC-278753, before I was fully aware of report scoping guidelines (which, in my defense, still aren’t specified in any detail in the Bug Tracker Guidelines). I believe that the pig and strider cases should be tracked in their own report, since mobs' walking target/attacking/target/source of fear not being saved to NBT can at least be exploited, whereas this issue just feels bad when it happens. It’s possible Mojang will want to consider this a duplicate of MC-278753, but for now I will simply link this report as a clone.
To reproduce, use a carrot and stick to speed boost a pig, the reload the world a few second later and note how the boost has disappeared.
Can confirm.