AP computer science
The most gender-balanced and most ethnically mixed stage in the chapter — 30.58% female in 2021, up from 16.8% in 2007.
Chapter 7 is the only chapter in the report whose subject is people rather than models. It draws on three sources: the Women in Machine Learning workshop at NeurIPS (2022), the CRA Taulbee Survey of North American computing departments (2021), and Code.org’s AP computer science data (2021). Read across all three, the same pattern repeats — the ethnic mix of computing classrooms has shifted substantially in a decade, and the gender split has barely moved at any level.
Women in Machine Learning, founded in 2006, runs an annual technical workshop at NeurIPS. In 2022 it drew 1,157 participants — 13 times the 2010 count, but down from 1,486 the year before.
The decade-long trend is a steady climb: from 2010 to 2022 attendance at the WiML workshop multiplied thirteenfold. The 2021-to-2022 dip is the first real break in that line, and the chapter attributes it to the same drop in overall NeurIPS attendance that followed the conference moving away from a purely virtual format. Since 2020 WiML has also run an Un-Workshop at ICML, built around collaboration between participants from different backgrounds rather than paper presentations.
The CRA Taulbee Survey tracks North American computing departments. On the 2021 numbers, the female share is 22.3% of new CS bachelor’s graduates, 27.8% of master’s, and 23.3% of PhDs — and 21.3% of the AI PhDs specifically.
Bachelor’s degrees moved the most, and not by much: 22.30% of new CS bachelor’s graduates in 2021 were female, up from the year before and in line with a decade-long climb, against 77.66% male and 0.04% nonbinary or other. Master’s degrees are the least male of the three levels at 27.83% female and 0.90% nonbinary — but the chapter is blunt that this has not substantially increased over time, moving only from 24.6% in 2011 to 27.8% in 2021. PhDs rose to 23.30% female from 19.9%, with 0.12% nonbinary; 76.58% of new CS PhDs were male.
Among new PhDs whose focus is artificial intelligence, 78.7% were male and 21.3% female in 2021. That is a 3.2 percentage point gain on 2011 — spread over a decade in which AI itself went from academic subfield to the center of the industry. The report’s own reading is that the number rose marginally from 2020 to 2021 and that there are no meaningful trends in the last decade relating to the gender of new AI PhDs.
As of 2021, CS, CE, and information faculty in North America were 75.94% male, 23.94% female, and 0.12% nonbinary — the female share up about 5 percentage points since 2011. New hires look different from the standing body: 30.17% of new faculty hires in 2021 were female, up from 24.9% in 2017 and about nine points above 2015, with 0.57% nonbinary. Because faculty turnover is slow, a hiring rate above the standing rate is what the incumbent numbers will follow, eventually.
The 2021 edition of the Taulbee Survey was the first to ask departments how many students received disability accommodations in the past year. The counts are small: 4.1% of bachelor’s students, 1.0% of PhD students, and 0.8% of master’s students. The chapter presents these as a first baseline rather than a finding — and notes elsewhere that publicly available demographic data on AI diversity is sparse enough that whole dimensions, sexual orientation among them, are not covered at all.
In 2011, 71.9% of new resident CS bachelor’s graduates in North America were white. By 2021 that was 46.7% — the single largest shift anywhere in this chapter.
Among new resident CS bachelor’s graduates in 2021, 46.69% were white, 33.99% Asian, 10.91% Hispanic of any race, 4.10% multiracial, 3.85% Black or African American, 0.24% Native Hawaiian or Pacific Islander, and 0.22% American Indian or Alaska Native. The Asian, Hispanic, and multiracial shares all rose steadily over the decade. These figures cover domestic students only — a real limit, because 16.3% of new CS bachelor’s graduates that year were nonresident aliens, and the survey does not report their ethnicity.
The same direction shows at the graduate levels, from a higher starting point. Master’s: 50.28% white, 34.83% Asian, 7.25% Hispanic, 3.82% Black, 3.45% multiracial. PhD: 58.64% white, 29.00% Asian, 5.12% Hispanic, 4.05% Black, 2.13% multiracial — with the white share down 9.4 percentage points since 2011. Graduate computing in North America runs heavily on international students, who are outside these percentages entirely: 65.2% of new CS master’s graduates and 68.6% of new CS PhDs in 2021 were nonresident aliens.
Resident CS, CE, and information faculty in 2021 were 58.08% white and 29.70% Asian, with 5.82% unknown, 2.80% Hispanic, 2.54% Black or African American, 0.67% multiracial, 0.25% American Indian or Alaska Native, and 0.13% Native Hawaiian or Pacific Islander. The gap between white faculty and the next largest group is closing, from 46.1 percentage points in 2011 to 28.4 in 2021, but it is closing from one direction only. Black representation is the number that moves least anywhere in the chapter: 3.85% of bachelor’s graduates, 3.82% of master’s, 4.05% of PhDs, and 2.54% of faculty.
Code.org tracks who sits the AP computer science exams in the United States. In 2021 the female share was 30.58% — almost double the 16.8% of 2007, and still the high-water mark of the whole pipeline.
Of AP computer science exams taken in 2021, 69.16% were taken by male students, 30.58% by female students, and 0.26% by students who identified as neither. Male students still take more AP computer science exams than any other gender, but the female proportion has almost doubled in the last decade — the fastest gender shift the chapter records at any level.
The state spread is wide and does not track where the industry is. The highest female shares were in Alabama (36%) and Washington, D.C. (36%), followed by Nevada, Louisiana, Tennessee, Maryland, and New York at 35% each. The states with the most CS and AI activity sit around the national average — Washington 32%, California 31%, Texas 30%. At the bottom are Kansas and South Dakota (15% each), North Dakota (16%), and Alaska (20%).
White students took the greatest proportion of 2021 exams at 42.74%, followed by Asian students (28.78%), Hispanic/Latino/Latina students (16.48%), Black/African American students (6.32%), students of two or more races (4.92%), Native American/Alaskan students (0.62%), and Native Hawaiian/Pacific Islander students (0.15%). As in postsecondary computer science, the test-taking pool has become more ethnically diverse year over year, with the Asian, Hispanic/Latino/Latina, and Black/African American shares all rising.
The same two questions asked at every stage from the AP exam to the faculty meeting: who is in the room, and who is not.
The most gender-balanced and most ethnically mixed stage in the chapter — 30.58% female in 2021, up from 16.8% in 2007.
22.30% female in 2021. The white share dropped from 71.9% in 2011 to 46.69% — the biggest single change in the chapter.
27.83% female — the highest of the three degree levels, and the one the chapter says has not substantially increased over time.
23.30% female in 2021, up from 19.9%. Also the whitest student stage at 58.64% — though that is 9.4 points lower than in 2011.
78.7% male, 21.3% female — a 3.2 point gain on 2011, and the chapter finds no meaningful trend across the decade.
23.94% female overall, but 30.17% of new hires — the one number in the chapter with a clearly better leading edge.
Headline findings from Chapter 7 · Diversity.
North American AI researchers and practitioners in both industry and academia are predominantly white and male. This lack of diversity can lead to harms, among them the reinforcement of existing societal inequalities and bias.
In 2021, 78.7% of new AI PhDs were male. Only 21.3% were female, a 3.2 percentage point increase from 2011.
In 2011, 71.9% of new resident CS bachelor’s graduates were white. In 2021, that number dropped to 46.7%.
Since 2017, the proportion of new female CS, CE, and information faculty hires has increased from 24.9% to 30.2%. Still, most faculty in North American universities are male (75.9%).
The share of AP computer science exams taken by female students increased from 16.8% in 2007 to 30.6% in 2021.
Chapter 7 (sections 7.1–7.3) with every figure and citation is free from Stanford HAI. The chapter notes its own limits: the data is neither comprehensive nor conclusive, and publicly available demographic data on AI diversity remains sparse.
Open the AI Index 2023 →