Skip to main content
QUICK REVIEW

[Paper Review] Stan: An LLM-based thermodynamics course assistant

Eric M. Furst, Vasudevan Venkateshwaran|arXiv (Cornell University)|Mar 4, 2026
Topic ModelingComputer Science0 citations
TL;DR

Stan is a dual-purpose LLM-based toolchain for a thermodynamics course, grounding student queries in a textbook and lecture transcripts while providing instructor analytics, all running on local hardware with open models.

ABSTRACT

Discussions of AI in education focus predominantly on student-facing tools -- chatbots, tutors, and problem generators -- while the potential for the same infrastructure to support instructors remains largely unexplored. We describe Stan, a suite of tools for an undergraduate chemical engineering thermodynamics course built on a data pipeline that we develop and deploy in dual roles: serving students and supporting instructors from a shared foundation of lecture transcripts and a structured textbook index. On the student side, a retrieval-augmented generation (RAG) pipeline answers natural-language queries by extracting technical terms, matching them against the textbook index, and synthesizing grounded responses with specific chapter and page references. On the instructor side, the same transcript corpus is processed through structured analysis pipelines that produce per-lecture summaries, identify student questions and moments of confusion, and catalog the anecdotes and analogies used to motivate difficult material -- providing a searchable, semester-scale record of teaching that supports course reflection, reminders, and improvement. All components, including speech-to-text transcription, structured content extraction, and interactive query answering, run entirely on locally controlled hardware using open-weight models (Whisper large-v3, Llama~3.1 8B) with no dependence on cloud APIs, ensuring predictable costs, full data privacy, and reproducibility independent of third-party services. We describe the design, implementation, and practical failure modes encountered when deploying 7--8 billion parameter models for structured extraction over long lecture transcripts, including context truncation, bimodal output distributions, and schema drift, along with the mitigations that resolved them.

Motivation & Objective

  • Provide a retrieval-augmented generation (RAG) system grounded to textbook content for student queries in thermodynamics.
  • Offer instructor-facing analytics by processing lecture transcripts into summaries, questions, confusion signals, and anecdotes.
  • Ensure all components run on locally controlled hardware with open-weight models for privacy and reproducibility.
  • Address practical deployment challenges such as domain-term transcription, hallucination mitigation, and schema drift.
  • Support dual workflows (student and instructor) from a shared data backbone (transcripts and textbook index).

Proposed method

  • Build a two-tier hardware architecture: a GPU workstation for batch processing (transcription and indexing) and a laptop for interactive querying with local inference.
  • Construct a structured textbook representation from a back-of-book index and a table-of-contents tree extracted from the PDF.
  • Use a dual-path term extraction (regex + local LLM) to search an index and apply a max-score merge to select top matches.
  • Ground the LLM-generated student responses by assembling a constrained context from the top retrieved entries with explicit chapter/section/page references.
  • Process lecture transcripts with an LLM-driven analysis pipeline to produce per-lecture summaries, questions, confusion signals, and anecdotes in JSON.
  • Mitigate transcription hallucinations via decoder-level controls, context isolation, and post-processing to drastically reduce repeated segments.
  • Compare domain-prompted Whisper transcripts to institutional ASR transcripts to assess domain-term fidelity and contextual accuracy.
  • Advocate for direct USB audio capture or open API access to institutional recordings to bypass vendor-lock-in.

Experimental results

Research questions

  • RQ1How can an LLM-based assistant be designed to ground thermodynamics queries in textbook and lecture content while avoiding hallucinations?
  • RQ2Can instructor-facing analytics derived from lecture transcripts support course reflection and improvement without exposing raw data?
  • RQ3What are practical deployment considerations (hardware, privacy, copyright) for local, open-model tools in a university course?
  • RQ4How does domain-aware transcription and dual-path extraction affect grounding quality and retrieval relevance?

Key findings

  • A local, open-model stack (Whisper large-v3, Llama 3.1 8B) with a two-tier hardware setup enables transcription, indexing, and interactive querying without cloud APIs.
  • Domain vocabulary prompting improves transcription accuracy for specialized thermodynamic terms, reducing misrecognition compared with vanilla transcripts.
  • Hallucinations in transcription are dramatically reduced from 6.4% to 0.02% with a three-layer mitigation strategy (decoder penalties, context isolation, post-processing).
  • Institutional ASR transcripts are similar in word counts and domain-term frequency to domain-prompted Whisper, but domain prompts preserve surrounding context better.
  • The student-facing pipeline uses a dual-path term extractor (regex and LLM) with a max-score merge to robustly map queries to a structured textbook index.
  • The instructor-facing pipeline produces per-lecture summaries, questions, confusion signals, and anecdotes in under 15 minutes on the RTX 4090, enabling semester-scale analysis.
  • Direct per-lecture processing and open hardware reduces dependence on cloud services and vendor systems, aiding privacy and reproducibility.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.