Artificial Intelligence and Automatic Programming in CAI

TL;DR

This paper introduces MALT, a generative Computer-Assisted Instruction (CAI) system designed to teach machine language programming. MALT leverages Artificial Intelligence (AI) techniques to create personalized learning experiences, generate novel programming problems, and provide intelligent feedback, aiming to bridge the gap between theoretical knowledge and practical programming skills.

What Problem Does This Paper Address?

Traditional computer-assisted instruction (CAI) often relies on pre-programmed responses and a limited set of questions, failing to adapt to individual student needs or provide truly generative learning experiences. Teaching low-level programming concepts like machine language is particularly challenging due to its abstract nature and the need for precise, step-by-step execution. Students often struggle to translate theoretical understanding into functional code, and existing CAI systems lack the intelligence to diagnose subtle errors or guide students through complex problem-solving processes. This paper addresses the need for a CAI system that can:

  • Generate an unlimited variety of meaningful programming problems.
  • Solve these problems itself to provide correct solutions and feedback.
  • Monitor student solutions and offer pertinent, remedial feedback.
  • Individualize instruction based on student performance and learning style.
  • Bridge the gap between classroom learning and independent programming.

Methods

MALT employs a generative approach to CAI, built around several key AI-inspired components:

  • Problem Generation: MALT uses a tree-based structure (AND-OR goal tree) to represent problems. This tree decomposes complex programming tasks into input, processing, and output phases, each with multiple alternative sub-problems and primitive tasks. The system dynamically selects paths through this tree, influenced by the student's competence, to generate unique problems.
  • Problem Solver: The core of MALT's intelligence lies in its ability to solve the generated problems. It breaks down problems into a sequence of primitive tasks (35 in total) that it can directly code. The system's knowledge of these primitive tasks and their relationships allows it to construct a complete solution program.
  • Student Model: MALT maintains a "student model" that tracks individual performance, learning pace, and preferences. This model influences the difficulty and type of problems generated and the level of interaction provided.
  • Intelligent Monitoring and Feedback: When a student submits code, MALT analyzes it instruction-by-instruction. It compares the student's code against its own generated solution and provides feedback. This feedback can range from simple error messages to suggestions for correction, and even simulation of program execution. The system aims to diagnose the source of errors, not just identify them.
  • Heuristic Approach to Automatic Programming: MALT's problem-solving capability is based on a heuristic approach to automatic programming, focusing on generating machine-language code. This differs from theorem-proving approaches, which the authors felt might not be suitable for emphasizing specific programming techniques.

Datasets

Not discussed in the paper. The system generates its own problems and uses student interactions as its primary data source for evaluation.

Key Insights and Ideas

  • Generative CAI for Low-Level Programming: The paper demonstrates that generative CAI, powered by AI, can be effectively applied to teach complex, low-level programming concepts like machine language, a domain traditionally difficult to automate instruction for.
  • The Power of Primitive Tasks: By defining a set of fundamental "primitive tasks," MALT can construct a vast array of complex programming problems and their solutions, showcasing a modular and scalable approach.
  • Adaptive Instruction is Crucial: The success of MALT hinges on its ability to adapt to the student. By tracking performance and adjusting problem difficulty and feedback, it creates a more engaging and effective learning environment than static CAI systems.
  • Beyond Correctness: Diagnosing Errors: A key insight is that simply telling a student their answer is wrong is insufficient. MALT's goal is to understand why an error occurred and provide targeted remedial guidance, mimicking a human tutor.
  • Bridging the Theory-Practice Gap: MALT aims to bridge the gap between theoretical concepts learned in class and the practical skills needed for independent programming, a common challenge for students.

Key Results

The paper presents MALT as a functional system implemented in CPS (a dialect of PL/I) on an IBM 360/65. While specific quantitative results are not detailed in terms of student performance metrics (e.g., test scores), the paper highlights:

  • Favorable Student Reaction: Student feedback (tabulated in Table 4) was overwhelmingly positive. Students found MALT useful for introducing machine language programming, preparing them for batch assembly, and helping them organize their programs.
  • High Success Rate: In a pilot study, students spent two weeks using MALT and then had a week to code a sizable problem in batch mode. All but one student managed to accomplish this, suggesting MALT's effectiveness in preparing them for independent work.
  • Moderate Interaction Level: The system operates at a moderate degree of interaction, providing more guidance to beginners and less to advanced students, freeing them to focus on more challenging aspects.

Limitations and Future Work

The authors acknowledge several limitations and suggest future directions:

  • Problem Variety Algorithm: Improvements are needed in the algorithm that determines if a generated problem is sufficiently different from previous ones presented to a student.
  • Program Synthesis and Verification: The authors note that advancements in program synthesis and verification research could further enhance the system, potentially allowing students more freedom in designing their programs while the system verifies and completes them.
  • Computational Resources: The design of MALT was constrained by the available time-sharing system and memory limits, precluding more ambitious AI integrations. Future work could explore more sophisticated AI techniques if computational resources were less of a barrier.
  • Natural Language Understanding: While the paper touches on natural language communication in CAI, MALT's current interaction is more structured. Future systems could benefit from more advanced natural language processing to handle unstructured student responses.
  • Deeper Error Diagnosis: While MALT attempts to diagnose errors, the paper suggests that isolating the precise location of an error in a student's program remains a challenge, though simplified by the system's diagnostics and student observation.

Summary updated

BibTeX
@inproceedings{1973artificial,
  title = {{Artificial Intelligence and Automatic Programming in CAI}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1973},
}
Figure