As a crowded place on the university campus, the cafeteria inevitably has many safety hazards, such as fire accidents caused by open flames and large appliances, stampede accidents caused by overcrowding during peak dining hours, etc. Therefore, studying pedestrian evacuation in university campus cafeterias is particularly necessary. Pedestrians on campus mostly travel in groups. Previous studies mainly used continuous models to discuss pedestrian group evacuation behavior. In this study, based on the cellular automaton pedestrian evacuation simulation model, the floor field calculation method was improved. A cellular automaton pedestrian evacuation simulation model considering group behavior was established and applied to the evacuation scenario of students in a university campus cafeteria. The study found that under the different group configurations, the pedestrian ratios, and the pedestrian densities, the pedestrian evacuation efficiency had significant differences. The results showed that when the different group configurations existed in the scenario, the higher the proportion of the pedestrians with three-person front-to-back group configurations, the higher the evacuation efficiency. When only one type of the group configuration existed in the scenario, at low pedestrian density, the evacuation efficiency of the individual pedestrian groups was higher compared to the other six group configurations. While at high pedestrian density, the evacuation efficiency of the three-person front-to-back group configurations was higher. These findings provided important references for pedestrian evacuation in university campus cafeterias and provided insights for the simulation research of group pedestrian evacuation models, contributing to enhancing campus safety management and ensuring the safety of teachers, students, and staff.