There is compulsion, HSMP Holder cannot live outside the uk for more than continuous period of 3 months. However, one can visit outside by intervals (less than continuous period of 3 months). To get ILR, all visits cannot be more than 6 months in total.