Objective

Chatbots such as ChatGPT are built on large language models (LLMs), programs trained on huge amounts of text to produce new text. Many students now use them, and the authors cite adoption estimates ranging from 24.6% in one survey of Asian undergraduates to 58.2% among graduate students at a U.S. medical school. But how these tools are built and tested is hard to follow for people who are not machine learning experts. The authors worry that this can lead to blind trust, hidden bias going unnoticed, and weaker thinking skills.

The authors, from the biomedical engineering department at the University of California, Davis, designed a 60-minute lecture on how LLM chatbots are built. They wanted to see whether teaching students how the technology works would change what they think about it. They used ideas from several models of how people adopt technology.

The study asked four questions:

  1. Does the module build students' understanding of GenAI systems?
  2. Is better understanding linked to more confidence in using GenAI products?
  3. In which direction do students' views change once they understand how the systems are built?
  4. Will students see the instructor as an AI advocate when the instructor teaches a GenAI module, whatever the instructor's own view?

Methods

This was a small before-and-after survey study. The same students answered questions before and after one lecture, with no comparison class. That design can show whether answers changed, but cannot show that the lecture caused the change, because other things may also have shifted over those minutes or weeks.

The module. The 60-minute lecture was the last part of a Machine Learning for Biomedical Engineering elective in Spring 2024. The students already knew traditional machine learning but had not studied language processing or deep learning. To keep the material manageable, the lecture split an LLM into building blocks and included discussion exercises and a worked example. It covered:

  1. How a chatbot works from prompt to answer.
  2. Tokenizers, which turn sentences into numbers. A live demonstration showed GPT-4o's tokenizer.
  3. Word embeddings, which capture word meaning. Students saw that GPT-4o's tokenizer has 524,288 different words and that GPT-4 embeddings use 3,072 dimensions.
  4. The main neural network stage that turns the prompt into an answer, shown only as a block diagram.
  5. An overview of training, including estimated size, time and cost for GPT-4.

The survey. The class period was 80 minutes. Students filled out a paper survey in the first 10 minutes and again in the last 10 minutes. It had 11 statements on a 6-point agreement scale (1 strongly disagree, 6 strongly agree), covering attitude, self-efficacy, optimism, intention to use chatbots and perceived instructor attitude, plus an open question about what comes to mind with generative AI. The after survey also asked about the clearest and muddiest points. Surveys were anonymous and linked by a number.

Analysis. Thirteen students returned both surveys, and some skipped questions. The authors used paired t-tests, a regression to find what predicts intention to use chatbots, and two coders to sort written answers into themes (agreement of 0.840 on Cohen's Kappa). UC Davis designated the study as non-human subject research.

Key Findings

Overall, students felt they understood chatbots much better after the lecture, felt more confident using them and were more optimistic, while still thinking chatbots are biased.

Survey ratings (before to after, out of 6)

  • Understanding the building blocks of chatbots: 2.769 to 4.615. This was a large and statistically meaningful rise.
  • Confidence in using chatbot outputs effectively: 4.154 to 4.615 (p = 0.027).
  • Optimism about future LLMs: 4.154 to 5.000 (p = 0.020).
  • Favorability toward generative adversarial networks (GANs) in medicine: 4.400 to 4.900 (p = 0.015). The abstract describes this as favorability toward GenAI in medicine.
  • Perceived instructor attitude toward LLMs: 4.375 to 4.875 (p = 0.033).
  • Likelihood of using chatbots: 4.538 to 4.923. This was near, but not at, statistical meaning (p = 0.0961).
  • Accuracy of chatbot answers: 2.615 to 3.231, not statistically meaningful.
  • Chatbots giving answers without bias: 1.923 to 1.846. Students already disagreed before the lecture and still did after.

What went along with intention to use chatbots

A regression model with four statements fit the data well (R2 = 0.70). Two items stood out. Confidence in using chatbot outputs went with higher intention (slope 1.68, p = 0.001). Believing chatbots are less biased also went with higher intention (slope 0.78, p = 0.016). Understanding the building blocks went with higher intention too, but not at a statistically meaningful level. With only 13 students, these links are tentative. The authors also note that the regression kept only four of the 11 statements, because adding any other statement made the model fit worse.

The authors say the module worked as hoped for understanding and for confidence, but only partly for the other questions. Intention to use chatbots rose only to a near-meaningful level, and most of that change seemed to come from the rise in confidence. Whether better understanding of bias lowers use could not be tested, since students already doubted that chatbots avoid bias.

Written answers

Before the lecture, students named chatbot products and image or letter generation. Afterward, they more often named the components and training of LLMs (11 mentions after, none before) and medical uses. The change in what they wrote was statistically meaningful (p = 0.002). Students called tokenizers the clearest part, followed by word embeddings and training cost. The structure and training of that main network stage was the muddiest.

Implications

The authors conclude that a lecture on how GenAI models are built shifted students' attitudes in a positive direction while they stayed aware of the limits of these tools. They believe that adding such modules to a modern engineering curriculum would help students achieve AI literacy.

Instructors

The authors note that confidence in using chatbot outputs was a stronger contributor to intention than understanding how they are built. They suggest that if the aim is to raise AI literacy or adoption, lessons on using chatbots, such as prompting and checking outputs, may work better than lessons on building them. They also advise instructors to match the lesson to students' background and to allow more time, and to be aware that students may read the instructor's identity as a sign of support for AI. The students in this class were surprised to learn that their instructor does not use chatbots.

Developers of courses

The authors plan a more technical module for easier adoption and a non-technical module on prompting and evaluating output.

Our reading (not the authors' recommendation):

  • Teachers in other fields might try a short explanation of tokenizers and word embeddings, since these were the parts students found clearest, and leave out the details of the main network stage for beginners.
  • Because this was one small elective, it is too early to treat the lecture as proven. A trial with a comparison class would be needed first.

Limitations

The authors say that the group was small (at most 13 students) and that more offerings of the course would be needed for stronger statistics. Participants had nearly finished a machine learning course and were committed to learning about AI, so they may not resemble other students. Not every student answered every question, and no demographics were collected, though the course was 52% female and mostly senior biomedical engineering undergraduates. The authors also say students lacked the background to follow that main network stage, and that commercial AI companies no longer disclose their training data or network details, so the module used best estimates. They note there was no formal assessment of learning in the course.

The paper does not mention, but there was no comparison class, so changes in ratings cannot be tied to the lecture alone. Students answered the second survey right after the lecture, so the results show a short-term reaction and nothing about lasting change.

The paper does not mention, but understanding, confidence and optimism were all self-rated. A student may feel they understand more without actually being able to explain or use the ideas better.

The paper does not mention, but the lecturer was also an author who designed the module and who ran the survey, which may shape how students answer. Many statistical tests were run on a tiny sample, so a few of the meaningful results could be chance.

Future Directions

The authors describe several next steps:

  • Offer the course again with more students so the statistics are stronger.
  • Improve the module with a fuller introduction to deep learning, such as layers, kernels or filters and parameters, so students can follow that stage.
  • Develop a technical module that assumes less background and could also train faculty.
  • Develop a non-technical module, with experienced chatbot users, on prompting and evaluating chatbot output.
  • Test the new modules with a more thorough survey.
  • Add a bonus credit activity, such as an in-class GenAI trivia game, as a formal assessment.

The authors also say the question of how learning about bias affects students' trust could not be tested here, because students already thought chatbots were biased before the lecture. A module for general students could help answer it.

The bottom line: In one small class of 13 biomedical engineering students, a 60-minute lecture on how chatbots are built went along with much higher self-rated understanding, more confidence in using chatbot answers and more optimism about the future, while students stayed doubtful that chatbots avoid bias. The class was tiny, knew machine learning already, had no comparison group and rated themselves right after the lecture, so the results are early and should be treated carefully. Teachers who want to try something similar might start with the clearest ideas, tokenizers and word embeddings, and add practice in using and checking chatbot output.