Students who don't keep in touch often don't have to follow the rules. Since I don't contact you often, even once a year, this situation will definitely not come uninvited. If invited, then you can consider whether it is necessary to follow the ceremony. After all, after two people don't contact, there may be no contact.
For those who send you invitations without contact, it must be just to let you go through the motions. Since this is the relationship and the purpose is so obvious, it is also the right choice not to follow the rules and join such people.