TL;DR
This paper proposes a framework for characterizing automatic programming systems based on how tasks are communicated, how knowledge is acquired, and the characteristics of the resulting program. It advocates for systems that accept problem specifications in natural language within the problem's domain, internalizing computer science knowledge to generate efficient code.
What Problem Does This Paper Address?
The paper tackles the broad and ambitious goal of "automatic programming," which aims to make computers more effectively utilized by simplifying their use and optimizing resource application. The authors note that the term "automatic programming" has historically been applied to a wide range of systems (compilers, debuggers, etc.), leading to a need for a more refined definition and criteria for evaluating such systems. The core challenge is to define what constitutes a truly "automatic" programming system and how to measure its merit, considering factors like program efficiency, resource usage, user effort, and task complexity.
Methods
The paper outlines a conceptual framework for automatic programming systems, dividing them into four key phases:
- Problem Acquisition: The system understands the task and acquires domain knowledge, ideally through natural language interaction.
- Process Transformation: The system transforms the problem into a process, focusing on identifying and abstracting relevant information while discarding irrelevancies. This phase emphasizes finding efficient solutions rather than just any solution.
- Model Verification: The user verifies that the system's understanding and proposed solution align with their intent. This involves allowing the user to observe the system's behavior in domain-specific terms and providing mechanisms for error isolation and correction.
- Automatic Coding: The system generates an efficient computer implementation of the process. This phase relies on knowledge of data representations, algorithm selection, and optimization techniques, aiming to produce code that reflects the user's intent and available resources.
The paper also proposes a "Basic Model" where problems are stated in terms of a model of the domain, and the solution is derived from this model, ultimately producing an efficient computer implementation. This model emphasizes using natural language within the problem domain and internalizing computer science knowledge.
Datasets
Not discussed in the paper.
Key Insights and Ideas
- Domain-Specific Natural Language is Key: The paper strongly advocates for users to specify problems and provide advice in natural language that is native to the problem domain. This reduces the burden on the user and allows the system to leverage existing domain understanding.
- Internalizing Computer Science Knowledge: A crucial aspect is that the system should internalize computer science knowledge (e.g., data structures, algorithms) rather than requiring the user to explicitly provide it. This allows the system to optimize and generate efficient code.
- Focus on "What" Not "How": The ideal automatic programming system should allow users to specify what they want done, not how to do it. This "non-proceduralness" is a key measure of a system's sophistication.
- Model-Based Approach: The core of the proposed system is building and manipulating a model of the problem domain. This model serves as the basis for understanding, transforming, and ultimately implementing the solution.
- Efficiency Through Abstraction and Irrelevancy Removal: True optimization in automatic programming comes not just from compiler-level optimizations but from identifying and removing irrelevant aspects of the problem domain and abstracting the necessary processing.
- Interactive Verification is Crucial: The system must allow for user interaction and verification throughout the process, ensuring that the generated solution accurately reflects the user's intent.
Key Results
The paper does not present quantitative results from a specific implemented system. Instead, it offers a conceptual framework and a set of criteria for evaluating automatic programming systems. The "results" are the proposed model and the insights derived from it, such as the benefits of domain-specific natural language, internalized computer science knowledge, and a focus on abstraction and irrelevancy removal for efficiency.
Limitations and Future Work
The authors acknowledge several limitations and areas for future work:
- Knowledge Acquisition is Difficult: Acquiring a comprehensive understanding of a problem domain and the interactions within it is a significant challenge. The paper suggests that the state of natural language understanding is adequate for description, but sophisticated inference and modeling capabilities are still needed.
- Model Adequacy and Appropriateness: Determining what constitutes an "adequate" and "appropriate" model for a given problem domain is an open question.
- Fregean vs. Analogical Models: While the paper favors a "fregean" (relation-based) model for generality, it acknowledges that analogical models might be suitable in some cases.
- Automatic Coding Challenges: The paper notes that while the technology for automatic coding is "at hand," challenges remain in optimizing code, particularly in selecting and adapting data representations.
- Need for Further Investigation: The authors conclude that automatic programming systems, regardless of the specific approach, hold immense potential and warrant extensive investigation. They suggest that systems could be incrementally expanded from existing bases (like FORTRAN) and that further research into AI techniques (knowledge representation, inference, learning, problem-solving) is essential.
Summary updated