Abstract
Teaching Artificial Intelligence (AI) effectively requires a seamless integration of abstract mathematics, textual explanation, and functional programming. Traditional educational materials often fragment these modes across static documents, presentation slides, and separate coding environments, increasing cognitive load for students. This paper introduces Moro, a browser-based notebook tool designed to unify these elements into a single interactive environment. Moro enables educators to create "living" resources that transition between long-form textbooks and interactive slides, featuring built-in visualizations for complex AI data structures.
Introduction
The pedagogical landscape of AI is uniquely challenging. A student must often bridge the gap between a LaTeX formula in a textbook, a static diagram on a lecture slide, and a line of code in an IDE. This fragmentation prevents students from seeing the immediate relationship between theory and practice. Furthermore, static images fail to capture the dynamic nature of AI algorithms, such as the expansion of search trees or the shifting of probability distributions during parameter optimization.
The Moro Platform
Moro addresses these challenges through a web-based platform inspired by the "notebook" paradigm. It provides a unified interface where different types of content are organized into cells.
System Architecture and Features
Moro's core technical features include:
- Cell-Based Architecture: Users can mix Markdown for text, LaTeX for math (rendered via MathJax), and interactive code blocks.
- WYSIWYG Editor: The authoring interface provides immediate side-by-side previews, syntax highlighting, and keyboard shortcuts, lowering the barrier for instructors to create high-quality materials.
- Remote Execution: Code is executed on a remote server, allowing students to run complex models on any device, including tablets, without local installation.
Pedagogical Advantages
By placing executable code directly beneath mathematical equations, Moro provides "contextual code" advantages. Students can modify parameters in a formula and immediately observe the impact on the resulting output or visualization. This interactivity turns passive reading into active exploration. Additionally, because a single notebook can serve as both course notes and lecture slides (via a built-in presentation mode), instructors can maintain a single, synchronized source of truth for their curriculum.
Real-World Applications and Results
Moro has been evaluated through several real-world deployments:
- Graduate NLP Course: Moro served as an interactive textbook for topics like Conditional Random Fields (CRFs) and matrix factorization. Students could interact with n-gram models, viewing updated probability distributions in real-time.
- WOLFE Documentation: The tool was used to document a probabilistic programming language, utilizing interactive factor graphs to visualize conditional independencies.
- ACL 2015 Tutorial: Presenters used Moro to deliver a 3.5-hour tutorial to hundreds of researchers, allowing for live code modifications to answer audience questions.
Conclusion and Future Work
Moro represents a significant step toward unifying the fragmented tools used in AI education. While currently focused on Scala, future development aims to support other popular languages like Python and expand the library of specialized visualizations for domains such as computer vision and reinforcement learning. By removing the "installation tax" and providing a rich, interactive environment, Moro enables a more cohesive and engaging learning experience for the next generation of AI practitioners.
Summary updated