Ants, of course, also have a division of labor and, if I understand the terminology, a 'social system'. I wonder if every family/genus/species in Hymenoptera has these capabilities, including learning complex behavior.
[0] I'm not sure if precisely, those are the only such orders among insects (class Insecta) or among all arthropods (phylum Arthropoda).