Abstract
Modern software remains fundamentally rigid, acting as a "static and bullheaded" servant in an increasingly complex world. This paper argues that for ubiquitous computing to fulfill its potential, software must become inherently adaptive. By integrating automatic differentiation (AD) into general-purpose programming—a paradigm known as differentiable programming—we can create systems that learn and evolve through gradient-based optimization, even within complex structures involving loops, recursion, and Turing-equivalent logic.
The Problem: The Rigidity of Modern Software
A fundamental gap exists in the "pantheistic dream" of computer science: the vision where every object in our environment is endowed with a vital computational essence. While hardware has advanced significantly in terms of power and ubiquity, the software driving these devices remains frustratingly static. Even the most sophisticated devices often lack the ability to adapt to their environment or user in a meaningful, automated way.
The core challenge is that traditional software is hand-coded and brittle. To make complex systems truly adaptive, adaptation cannot be an "add-on" feature or a manual patch; it must be compositional and automatic. We require a framework where adaptive components can be combined and nested without losing their ability to be optimized, bridging the gap between rigid logic and fluid, learning-based behaviors.
Methodological Foundations: Differentiable Programming
The paper advocates for Differentiable Programming as the primary solution to software rigidity. This involves taking the core mechanism of modern AI—gradient optimization—and applying it to fully general computational settings rather than just fixed neural network architectures.
Key Components of the Approach
- Automatic Differentiation (AD): This is the underlying technology that allows a system to calculate the derivative (gradient) of a program's output with respect to its inputs or parameters. It provides the mathematical foundation for optimization.
- General-Purpose Integration: Unlike standard machine learning, which often uses rigid layers, this approach pushes AD into settings that include iteration (loops), nesting, and Turing equivalence. This allows the code itself—complete with logic and control flow—to become the model that is optimized.
- Compositionality: A critical requirement for scaling adaptive systems is the ability to build complex software out of smaller adaptive parts, much like how traditional software is built from functions and modules.
Key Insights: Beyond Neural Networks
The power of gradient descent lies not just in training neural networks, but in its application to "fully general settings." When we treat general-purpose code as differentiable, the software ceases to be a fixed set of instructions and becomes a dynamic system capable of refinement.
The ultimate goal of these AD underpinnings is practical: to create the "less annoying computer." This vision describes a future where computers are less frustrating because they can automatically adjust their behavior to suit the context of the user, moving these techniques out of the research lab and into the "computers that surround us."
Limitations and Future Work
As a conceptual roadmap, this work points toward significant future research directions. While the author advocates for pushing AD into Turing-equivalent settings, the practical implementation of efficient gradients through arbitrary, long-running, or recursive code remains a major technical challenge. Scaling these techniques to everyday software engineering is the next frontier in making the dream of ubiquitous, adaptive computing a reality.
Summary updated