Learning quantum structures in compact localized eigenstates