← Latest papers
💬 NLP

AI University: An LLM-Powered Learning Assistant for Engineering---A Finite Element Method Case Study

This paper introduces AI University (AI-U), a framework that combines fine-tuned large language models with retrieval-augmented generation to create adaptive, course-specific learning assistants, demonstrating through a Finite Element Method case study that this approach significantly outperforms base and closed-weight models in alignment with instructional materials and user preference.

Original authors: Mostafa Faghih Shojaei, Rahul Gulati, Benjamin A. Jasperson, Shangshang Wang, Simone Cimolato, Manas Vardhan, Dangli Cao, Willie Neiswanger, Krishna Garikipati

Published 2026-08-25
📖 6 min read🧠 Deep dive

Original authors: Mostafa Faghih Shojaei, Rahul Gulati, Benjamin A. Jasperson, Shangshang Wang, Simone Cimolato, Manas Vardhan, Dangli Cao, Willie Neiswanger, Krishna Garikipati

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

In the world of higher education, particularly in fields like engineering and physics, learning often involves mastering complex, abstract concepts that describe how the physical world behaves. One such concept is the finite element method, a powerful numerical technique used to solve difficult mathematical problems that describe everything from how a bridge bends under weight to how heat flows through a jet engine. For decades, students have learned these subjects through lectures, textbooks, and problem sets, relying on human instructors to explain the nuances of the material. Today, a new tool has emerged to assist in this process: the large language model. These are artificial intelligence systems trained on vast amounts of text from the internet, capable of answering questions and generating explanations on almost any topic. However, while these general models are incredibly knowledgeable, they often lack the specific voice, style, and depth of a particular university course. They might explain a concept correctly, but not in the way a specific professor teaches it, potentially leaving students confused by unfamiliar terminology or missing the specific examples used in their class.

A team of researchers at the University of Southern California has developed a system called AI University to bridge this gap. Their goal was to create a learning assistant that does not just know the subject matter, but speaks the language of the specific course it is helping with. To test this idea, they focused on a graduate-level engineering course dedicated to the finite element method. The researchers built a framework that combines a specialized artificial intelligence with a system that can instantly search through the course's own materials, including recorded video lectures, lecture notes, and textbooks. The result is a digital tutor that can answer student questions with the same tone, style, and references as the human instructor, while also pointing directly to the exact moment in a video lecture or page in a book where the concept was originally explained.

The process began with the creation of a custom dataset. The researchers took the course's primary textbook, lecture transcripts, and coding assignments and used an advanced AI to generate thousands of question-and-answer pairs based strictly on that material. This step was crucial; it ensured the AI learned the specific way the course instructor introduced new ideas, the symbols they preferred, and the depth of detail expected. They then used this data to "fine-tune" a medium-sized open-source AI model. Fine-tuning is a process where a general AI is given extra training on a specific topic to make it an expert in that area. The researchers used a technique called Low-Rank Adaptation, which allows the model to learn the new material efficiently without needing to be completely rebuilt from scratch. The resulting model, which they named LLaMA-TOMMI-1.0, was designed to mimic the instructional style of the course.

However, the researchers knew that a model trained on past materials might struggle with new questions or might make mistakes if it relied too heavily on its general training. To solve this, they built a second layer into the system. When a student asks a question, the system first asks the fine-tuned expert model for an answer. It then immediately searches the database of course materials to find relevant sections from the textbook or video lectures. A second, more logical AI model then acts as a synthesizer. It takes the initial answer from the expert model and the retrieved course materials, compares them, and constructs a final response. If the expert model's answer is strong, the synthesizer enriches it with citations from the course materials. If the answer is weak or inaccurate, the synthesizer ignores it and builds a new answer based entirely on the retrieved course content. This system also includes a "thinking" step where the AI explains its reasoning and assigns a confidence level to its answer, helping students understand how the conclusion was reached.

The team tested this system rigorously to see if it actually worked better than using a standard, untrained AI. They compared the performance of their custom-tuned model against the original, unmodified version of the same AI. In automated tests, the fine-tuned model produced answers that were significantly closer to the "ground truth" of the course materials. When evaluated by a quantitative measure, the expert model scored higher on 86% of test cases. More importantly, when human experts who were familiar with the course material reviewed the answers, they also showed a strong preference for the custom model. These advanced users chose the fine-tuned version nearly twice as often as the base model when asked which response was better for understanding the course content.

The researchers also compared their system against a very powerful, commercially available AI model that was not fine-tuned for the course. While the commercial model was capable of providing mathematically sophisticated answers, it often used concepts and terminology that were outside the scope of the specific graduate class. It would sometimes provide answers that were technically correct but too advanced or irrelevant for the students' current level of study. In contrast, the AI University system consistently provided answers that matched the course's specific instructional style and referenced the exact materials the students were using. The course instructor, who evaluated the responses for tone and alignment, preferred the custom system in 55% of cases, noting that it felt like a natural extension of the classroom experience.

A key feature of the project is a working web application that students can use. This interface allows users to ask questions and receive answers that include clickable links to the specific timestamps in video lectures and the relevant sections of the textbook. This feature adds a layer of trust and transparency, allowing students to verify the information immediately. The system is designed to be flexible; as the course progresses and new lectures are added, the system can be updated to include this new content, ensuring the assistant remains current throughout the semester. The researchers emphasize that their entire system is built using open-source tools, meaning it can be hosted locally to protect student privacy and does not rely on proprietary data sharing.

The study concludes that while general artificial intelligence models are powerful, they are most effective in education when they are tailored to the specific needs and style of a course. The AI University framework demonstrates that by combining fine-tuning with a retrieval system that grounds answers in specific course materials, it is possible to create a learning assistant that is both accurate and pedagogically aligned. The results suggest that this approach offers a practical path forward for integrating AI into higher education, providing students with a tool that supports their learning without losing the unique voice and structure of their instructor. The researchers note that while their study was limited to a small group of advanced users and a single course, the consistency of the results points to a promising method for adapting AI to specialized fields in science and engineering.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →