Generalizing Dynamic Content Delivery
Initial thoughts on how to build the universal AI tutor
Real learning is hard.
In high school I took far too many AP classes. It was something like 20. I say that it was "too many," not only because constantly studying for AP classes precluded me from having any kind of social life, but especially because I was stretched thin beyond belief. I had so much on my plate that I would skip classes just to study, and would compromise my score on one exam to give myself enough time to study for another. Being overcommitted meant that I only spent just enough time on each subject so that I could memorize the necessary information for the exam — on the exam date. Afterward, I would notice that almost all the information I'd learned quickly faded away. I'd only prioritized covering the breadth of each subject, such that I wasn't deeply engaging with any of the information I'd covered.
Just this past week I was looking back at some of my old Barron's AP study guides. Flipping through the pages of my once-dear copy of “AP Environmental Science: Premium Edition”, I was astounded by how little information I recalled. For that subject specifically, I decided not to take the AP class and just study the content on my own for a few days. I had scored a 5 on the AP test, but years later, couldn't recall a single detail about the "water table" or various ecological food chains.
I've come to realize that this is how reading frequently works. You read a book, you get a little inspired; maybe think differently for a little while, and then whoosh! It's all but gone. Except for perhaps the tiny population with photographic memory, the human brain just doesn't permanently store every idea it encounters. Information enters the working memory, and without going through extremely specific mechanisms that help encode it into long-term memory, the information just fades away. When people say they learn even more after reading a book for the second time, I believe they're often just re-discovering information that they'd processed before but completely forgotten about.
Think about this for a moment. This means that for every how-to or self-help book you've read, you remember next to none of its tips for how to work or live more effectively. For almost every class you've ever taken in school, you'd probably fail most of the tests. Isn't a university diploma supposed to be the most universal signal of merit in the US? This has transformed the way I think about what it means to have “read a book” or “taken a class.” The words you read effectively travel in one eye and out the other!
I'd even go on to argue that rampant forgetting brings up serious concerns for public safety and economic stability. It means that job-seekers with diplomas often don't even know the information they're supposed to in order to do their job. It means that doctors might make life-and-death decisions from an incomplete—and actively decaying—base of knowledge. It means that even teachers who are on-paper “qualified” might not fully know what they're teaching, and the older employees of a company who aren’t fresh out of school might be much less knowledgeable about a variety of technical areas simply because of information they've forgotten. Forgetting has colossal implications for education, upskilling, and workforce training.
A quick interjection: Forgetting isn’t even remotely the biggest issue! The fundamental problem of education is motivation. I have yet to write an article about this, but to sum up my perspective: a lack of interest, engagement, and accountability is what makes it so hard for most people to read a textbook instead of taking a class. And let us not forget the fact that people who read for fun in general are a dying breed! It is widely agreed upon that TV and social media have hijacked the global attention span. More than ever, students feel the need to watch flashy videos to introduce a concept rather than listening to a lecture or calmly perusing an expert-designed textbook.
Importantly, the “textbookworms” are equally immune to forgetting the content they’ve learned. Thus the process of learning in general, in nearly all modern contexts, rests on extremely precarious premises: even when learners are engaged—which they rarely are—most information is forgotten.
What are the best ways to learn?
Since I’ve primarily used books as an example, allow me to break down the merits and pitfalls of a few of the most common alternatives to books.
Online courses: Courses like those offered on Coursera, aka MOOCs (Massive Open Online Courses) are great because everyone can access them and they may be self-based. Unfortunately they suffer from what I call the “Global MOOC Attrition Crisis”, the well-documented phenomenon of only around 10% of MOOC students actually completing the courses they sign up for. Large swaths drop off after only a week or two! These courses aren’t motivating or engaging enough for the problem of forgetting to even be a consideration.
In person courses: This is the cornerstone of modern western “education”. A lecture-based “college-style” class where students complete assignments, perhaps engage in discussions, and (ostensibly) read content on their own, . On the bright side, students are kept accountable to their learning and have an interactive experience. However, unfortunately, it is extremely expensive to pay an expert on a subject to teach it to various students. Also, while I am proud to be a Dartmouth student, I can attest to the fact that there is often no correlation with being an expert in a field and being a decent teacher. Not to mention the fact that students far too often slide by with pure participation and regurgitation rather than a quality, demonstrated synthesis of the course material.
To put it in a broad stroke: the most knowledgeable instructors are often not the most effective teachers, and the highest-achieving students are often not the most effective learners.
Youtube videos: The preferred method of the latest generations. Videos are awesome for explaining concepts visually and engagingly, accomplishing much that a simple whiteboard or paper book cannot. However, I believe that videos are the most forgetting-prone form of content delivery. If you disagree, I challenge you to think back at some of the educational videos you've watched and see how much of that content you can repeat.
"Learning" apps: A variety of apps have come out in recent years that promise to teach subjects in micro-doses/mini-lessons, which include Duolingo, Imprint, and the god-forsaken "brain-training" industry. They're super engaging but they don't actually teach very much. Many individuals have noticed that Duolingo students seldom develop fluency in the languages they practice for 2 minutes a day. I must give credit, however, for Duolingo’s mastery of the engagement game! They seem to be one of the only educational innovations that may claim to have at least somewhat successfully addressed the problem of student motivation.
Spaced repetition: One of the premier ways of language learning and memorizing concepts for medical school, spaced repetition is a mechanism of organizing flashcards such that each card is memorized as quickly and efficiently as possible. A far as I know, Anki is the most popular app for this. Spaced repetition, though, suffers from a few key issues. One is that of pattern-matching, where students learn to match the visual snapshot of words or phrases rather than the underlying concepts themselves. Another issue is I have yet to come across a non-boring spaced repetition system. They are all extremely tedious. The final problem is that spaced repetition is not ideal for presenting information for the first time. It's a study method, not a teaching method—it’s geared toward memorizing concepts to which the user has already been exposed. Thus, it can't guide learners through problems step-by-step or develop problem-solving intuition.
In short, there’s no option here that works for both the initial instruction of content and the later memorization of it in an effective, engaging, memorable manner. Instead, learners are forced to re-read content, rely on various forms of media saying the same things, and deal with the ramifications of forgetting content that they never truly memorized.
What do LLMs mean for learning?
AI developments have been pretty exciting lately. Aside from enabling me and every living student on earth to cheat on their homework, they can occasionally be quite nice for navigating through problems step-by-step, occasionally teaching HOW to solve a problem without actually solving it. The recent "learning modes" of Claude, Gemini, and ChatGPT are cool examples of this—they're essentially a system prompt that attempts to guide students through topics slowly and dialectically, rather than just blurting out all the answers off the bat. Unfortunately they still become sycophantic with certain prompts and often present concepts too slowly, too quickly, or in not enough detail. Additionally, as a learner, there’s a constant tension between relying on content in the LLM’s training dataset for generation and having to manually upload more specialized learning materials that LLMs cannot be trained on. Even more critically, they have no internal sense of the learner's progress in mastering the subject or the learner's memory of past concepts: they don’t know almost anything about the learner or how much the learner knows.
They remind me a lot of a style of learning that hasn't been as popular in the last few hundred years, was used to train many of the greatest thinkers: aristocratic tutoring. A quote from Erik Hoel’s great post about the idea:
…it usually involved a paid adult tutor, who was an expert in the field, spending significant time with a young child or teenager, instructing them but also engaging them in discussions, often in a live-in capacity, fostering both knowledge but also engagement with intellectual subjects and fields.
Side note: see an interesting rebuttal of Hoel’s post here.
It's a form of education where a generally affluent family employs an expert mentor who personally guides a learner through his/her knowledge in a conversational format. When done well, 1:1 mentorship is the most efficient educational method. Benjamin Bloom did a lot of great research about this, and coined the "Two Sigma Problem": the conundrum where conventional lecture-style education leads to two standard deviations less content mastery than 1:1 tutoring. He helped devise “mastery-based learning,” which improved learner outcomes substantially, but still not quite as much as 1:1 tutoring did.
What's extremely exciting is that the capabilities of LLMs are rapidly approaching that of a virtually free, on-demand PhD-level tutor. We are insanely close to a world that sci-fi authors have long dreamed of, in which an "AI tutor" can guide students through absolutely any subject, completely eliminating the need to use textbooks or rely on lectures to learn. Especially because people all over the world are literally getting addicted to talking to these AI chatbots all day, this is a great opportunity to make a universal tutor that makes learning extremely comfortable and engaging for everyone.
AI for content delivery
There are a lot of ways to approach making this LLM tutor. I believe it’s important to have a “conceptual backing”. This means a hard-coded underlying model of a) each concept in the subject to be taught, and b) the user's understanding of each of said concepts. This will enable the system to keep students accountable to what they're learning, refresh their memory on previously reviewed concepts, and enable students to connect all concepts to each other. If the conceptual backing is given to the LLM after the training stage, some intellectual property concerns regarding training and redistributing copyrighted material may be averted (this remains one of the trickiest issues of the project though!). I envision the interface being primarily text-based (speech can easily be built-in later), and consisting primarily of questions asked to the user (i.e. problems for the user to solve) and questions asked by the user (clarifications on topics or problems they are solving).
There's two ways I've thought about implementing this conceptually-backed dynamic content delivery system.
The first is a direct "learner-facing" version, in which users upload a document of whatever they want to learn, and it's presented to them step-by-step. The system will parse the material, distill from it a list of mutually exclusive and collectively exhaustive "concepts," and use each of these concepts in prompts to an LLM that will serve as the user interface. If the user has questions, the LLM will dive deeper, perhaps quoting text or bringing up images from the original material. As the tutor guides the student through the content, it will evaluate the student's understanding, tracking progress until mastery of the material. For particularly long materials, concepts may be reintroduced with spaced repetition.
The second is the instructor-facing version: in which some publisher, teacher, or professor will have some content they want to make into a high-quality interactive learning experience. Then students will interact with it. In this case, the instructors will be adding the content rather than the student.
As far as I know, static content interactivity is an issue that many publishers are currently facing—and each publisher is hiring unique teams and coming up individual software for making their content interactive. I’m pretty sure that instead of that, it’s possible to make a generalizable tutoring platform. In this case, the creator of the content would put it into this system, and would tweak the system so that it perfectly conforms to their design. Like the learner-facing model, the mechanism will parse concepts and generate small learning segments based on these concepts, introducing the learners to the content engagingly, step-by-step.
Right now I'm working on both of these formats.
For the direct learner-facing case, I'm making a website where users can upload any PDF, and then have the content taught to them in an interactive format. At first, the learning experience will consist of blocks of the original text followed by opportunities for summarization and answering quiz questions on the content. Then, the interface will step in front of the original text, only relying on its underlying concepts to create an LLM-driven scheme of instruction.
This system will track user progress with respect to its underlying model of each concept in the text—updating learner progress for individual concept by RAGing user responses against embeddings of each concept from the “ground-truth” text. The user can ask it questions, and it will regularly pose questions to the user. Critically, the process of “studying” will be built-in to the learning experience.
As of now, users can upload materials, have the original text and images of those materials be presented to them in a clean format (not yet interactive), and navigate/view the materials they've previously uploaded. They can quickly ask for definitions on words in the content or ask an LLM to explain pieces of the text. I’m currently debating whether to upload PDFs in their entirety to the server, or just use the Node server to send the base64-encoded PDF directly to the text extraction API, which then streams to the database. While immediately processing the PDF is nicer for latency, I’m leaning toward uploading the entire PDF, which would enable users to leave the site while uploaded content is still being processed.
My current progress on this: spongify.jonahbard.com. The deployed site may or may not work at the moment because of a server issue downstream of the aforementioned debate!
For the instructor-facing case, I'm working with the curriculum of Dartmouth’s Software Design and Implementation course. It's currently a flipped classroom whose instructional basis resides in a large markdown file—perfect for LLM processing! The nuance with this case is that instructors will actually be able to tweak the content before it’s just parsed from the original text and presented to students. Instructors would build around the system itself, creating LLM-friendly learning modules in a generative interface. At first, the learning experience will take the form of a piece of text followed by some review questions (a mix from past units and current ones). The next level of implementation is combining the text and questions into one smooth format, so there is minimal navigation necessary for learners.
So far, I've broken the content down into units, created a clean interface parsing the markdown and embedding linked instructional videos, and developed a pipeline for auto-generating questions for each unit of the content. I am currently putting in the quiz interface feature. I’ve partnered with the current professor teaching this course to build the material specifically around the active class’s needs. Some exciting news from earlier today is that my site is now live on Dartmouth’s local server for students to access, so after a couple updates I’ll make this week, it will be able to be used by the in-session course!
My current progress on this: cs50.jonahbard.com
Some more considerations
It’s tricky to predict which will be the perfect approach to making an AI tutor. I’m taking a non-deterministic route, using LLMs to generate outputs and evaluate student progress with respect to an underlying conceptual model. It’s possible that the best way to do this more deterministic, perhaps by hand-writing everything that the interface says to the user, and hard-coding the entire decision tree of possible user responses. Companies like MathAcademy and Synthesis have taken this route pretty successfully. Theres especially a debate about where diagrams and images would be sourced in the dynamic content delivery platform.
However, I’m quite confident that LLMs will soon, if not already, be able to create state-of-the-art instructional experiences for learners across a vast range of subjects. In addition, LLMs provide a much more robust way to evaluate student progress. My long-term view is that modern educational model of being “taught” things by a human will soon go away, and students in practically every class will primarily rely on an LLM-based system to instruct them. I imagine humans being most integral for motivating and encouraging students to learn on their own, introducing extremely novel or niche concepts, as well as providing 1:1 mentorship to alleviate confusion on specific topics.