The INS (and IRS) uses gravity to define horizontal/vertical. It also uses the detection of Earth rotation and latitude to define alignment.