Background: Group size is one of the important factors that affect collaborative learning, however, there is no consensus in the literature on how many students should the groups be composed of during the problem-solving process.Objectives: This study investigated the effect of group size in a K-12 introductory Artificial Intelligence course by comparing the students' cognitive load, learning motivation, collaborative problem-solving quality, and in-classroom interaction between two-and three-student groups.Methods: Forty-eight high school students were randomly assigned to two kinds of groups (i.e., the two-student group, and the three-student group, each consisting of 24 students). During the experiment, Xiaofei robots were used to teach the theoretical and practical content of five AI topics over 6 weeks for 1.5 h each week.
Results:The ANOVA results indicated that group size mattered in the AI course, the two-student group was more effective in terms of enhancing students' learning motivation and collaborative problem-solving quality, as well as imposing more cognitive load than the three-student group. The advantage was more obvious in the practical problem context. The Lag Sequential Analysis results indicated that more collaborative learning behavioural sequences existed in the two-student group than in the three-student groups.Contribution: This research provides empirical evidence and potential guidance for group design in Artificial Intelligence Education. Although group size did not affect students' learning achievement, it affected learning motivation, cognitive load, and problem-solving quality and processes. Two-student groups work better than three-student groups in the AI course.