Text this: Microstructure transition and grain refinement mechanism of undercooled alloys