Collaborative Development of Modular Open Source Educational Resources for Natural Language Processing

Matthias Aßenmacher, Andreas Stephan, Leonie Weissweiler, Erion Çano, Ingo Ziegler, Marwin Härttrich, Bernd Bischl, Benjamin Roth, Christian Heumann, Hinrich Schütze2024

Abstract

Matthias Aßenmacher, Andreas Stephan, Leonie Weissweiler, Erion Çano, Ingo Ziegler, Marwin Härttrich, Bernd Bischl, Benjamin Roth, Christian Heumann, Hinrich Schütze. Proceedings of the Sixth Workshop on Teaching NLP.

2024.

This paper introduces a collaboratively developed, modular, and truly open-source educational resource (OSER) for teaching Natural Language Processing (NLP). By sharing the burden of curriculum development across universities, the authors provide a framework that stays current with the breakneck speed of Large Language Model (LLM) research while remaining adaptable to different institutional requirements.

Introduction

The "moving target" problem in NLP is a significant hurdle for educators. Since the introduction of the Transformer in 2017, the field has rapidly shifted from specialized neural architectures like RNNs to a unified paradigm of massive, autoregressive LLMs. For instructors, this creates a massive maintenance burden; a syllabus written only two years ago can quickly become a historical artifact.

While high-quality NLP courses exist online, they are often "open access" rather than "open source," meaning instructors cannot easily modify slides or integrate them into their own systems. The authors address this by creating a modular system that treats educational material like open-source software, managed via GitHub and LaTeX.

Modular Curriculum Design

A core principle of the project is modularity. The course is divided into "core" modules essential for all students and "optional" modules tailored to specific audiences or emerging topics. To handle students from diverse backgrounds—ranging from Linguistics to Computer Science and Statistics—the authors implemented a "Module 0" strategy.

Figure 1: Chapter 0 provides a foundation in Machine Learning basics to accommodate students from diverse academic backgrounds.

This prerequisite module covers Machine Learning basics, including supervised regression and classification, ensuring all students have a unified foundation before diving into complex NLP tasks.

Pedagogical Philosophy and Structure

The curriculum is structured around the Transformer as the central architectural milestone. The course moves from foundational deep learning basics into the "Post-BERT Era" and contemporary LLMs.

Figure 2: The curriculum structure transitions from the Transformer architecture into the Post-BERT era and contemporary LLM applications.

Key methodological choices include:

  • Separation of Concerns: Theory is kept in LaTeX slide sets, while implementation details are strictly relegated to programming assignments. This prevents slides from becoming cluttered with code that is difficult to maintain.
  • Didactic Value of "Vanilla" Implementation: Despite the industry's reliance on high-level libraries like Hugging Face, the authors insist on students building a "Vanilla Transformer" from scratch to ensure a deep understanding of internal mechanisms.
  • Collaborative Infrastructure: Using GitHub allows for inter-university contributions and easy updates to the course website and materials.

Results and Evaluation

The authors tracked student performance at LMU Munich from 2020 to 2023. To incentivize engagement, they used weekly quizzes and bi-weekly assignments to award bonus points for the final exam. In 2022, nearly 98.4% of students earned some bonus points.

In 2023, the assignments were made significantly more rigorous, moving from "fill-in-the-blanks" to writing complete code. While the percentage of students receiving any bonus dropped to 81.6%, the share of students achieving a high bonus (>50%) increased to 60.5%. This suggests that challenging, from-scratch assignments effectively engage dedicated students.

Conclusion and Future Work

Maintaining an OSER involves unique challenges, such as the dilemma of whether to open-source assignment solutions. While public solutions align with open-source values, they risk enabling cheating. Furthermore, academic projects must navigate personnel turnover and the subjective challenge of deciding when a new development is stable enough to be included in the core curriculum. The project's source material remains available on GitHub for community contribution and adaptation.

Summary updated

BibTeX
@misc{aenmacher2024collaborative,
  author = {Matthias Aßenmacher and Andreas Stephan and Leonie Weissweiler and Erion Çano and Ingo Ziegler and Marwin Härttrich and Bernd Bischl and Benjamin Roth and Christian Heumann and Hinrich Schütze},
  title = {{Collaborative Development of Modular Open Source Educational Resources for Natural Language Processing}},
  year = {2024},
  doi = {10.18653/v1/2024.teachingnlp-1.6},
}
Figure