AlphaDev achieved its performance gains by discovering algorithms with fewer assembly instructions (e.g., 29 instructions shorter for VarSort4) and introducing novel instruction sequences like 'AlphaDev swap and copy moves,' which save single instructions and challenge traditional algorithmic thinking.