HiLo: A Learning Framework for Generalized Category Discovery Robust to Domain Shifts