Levels of Analysis for Machine Learning

Jessica B. Hamrick, Shakir MohamedarXiv 2020

Abstract

Machine learning is currently involved in some of the most vigorous debates it has ever seen. Such debates often seem to go around in circles, reaching no conclusion or resolution. This is perhaps unsurprising given that researchers in machine learning come to these discussions with very different frames of reference, making it challenging for them to align perspectives and find common ground. As a remedy for this dilemma, we advocate for the adoption of a common conceptual framework which can be used to understand, analyze, and discuss research. We present one such framework which is popular in cognitive science and neuroscience and which we believe has great utility in machine learning as well: Marr's levels of analysis. Through a series of case studies, we demonstrate how the levels facilitate an understanding and dissection of several methods from machine learning. By adopting the levels of analysis in one's own work, we argue that researchers can be better equipped to engage in the debates necessary to drive forward progress in our field.

Introduction: The Communication Gap in ML

The field of machine learning (ML) is currently defined by vigorous, often circular debates: Is deep learning truly "symbolic"? Can it achieve Artificial General Intelligence (AGI)? Is it inherently untrustworthy? While these questions are vital, the discussions surrounding them often stall. This stagnation frequently occurs because researchers from diverse backgrounds—ranging from engineering and mathematics to psychology and neuroscience—lack a shared conceptual "map."

Without a common vocabulary, one researcher might critique a model's ultimate goal (the "what"), while another defends its specific architecture (the "how"). This misalignment leads to researchers talking past one another. To move the field forward productively, we propose the adoption of a classic framework from cognitive science: David Marr’s Levels of Analysis.

The Marrian Framework

In his 1982 work, David Marr proposed that complex information-processing systems should be understood through a three-layer hierarchy. Applying this to ML allows us to categorize our claims and critiques more precisely:

  1. The Computational Level: This level defines what the system does and why. It focuses on the ultimate goal, the logic of the strategy, and the relationship between inputs and outputs. For example, in reinforcement learning, the computational goal might be defined as maximizing a cumulative reward signal.
  2. The Algorithmic (or Representational) Level: This level defines how the computational goal is achieved. it focuses on the representations used (the data structures) and the procedures or instructions applied to those representations. An example would be the specific use of Q-learning with a replay buffer to achieve the goal of reward maximization.
  3. The Implementation Level: This level defines the physical or software "nuts and bolts." It focuses on how the algorithm is realized in a physical medium. In modern ML, this typically refers to the specific neural network architecture (e.g., a Transformer or CNN) and the hardware it runs on (e.g., a TPU or GPU cluster).

Case Studies in Marrian Analysis

Disentangling the Deep Q-Network (DQN)

By applying these levels to a milestone like DQN, we can clarify its components. The computational goal is solving the Bellman equation to achieve optimal behavior. The algorithmic choice is Temporal Difference (TD) learning. The implementation involves a deep convolutional neural network. When critics argue that DQN doesn't "understand objects," the framework helps identify if the critique is computational (the objective function should explicitly include object discovery) or implementation-based (the CNN architecture is the wrong choice for spatial reasoning).

The Symbolic vs. Neural False Dichotomy

A recurring debate in AI is whether systems should be "symbolic" or "neural." Marr’s levels suggest this is often a false dichotomy. A system might utilize symbolic logic at the algorithmic level (the way it processes information) while being realized through neural networks at the implementation level. Recognizing that these concepts can exist at different levels allows for the development of hybrid systems that bridge the gap between high-level heuristics and low-level gradient-based learning.

Machine Learning in Healthcare

In high-stakes fields like healthcare, the framework forces a necessary separation of concerns. Researchers must consider clinical goals (computational) separately from how patient data is encoded (algorithmic) and how the system is deployed within secure hospital infrastructure (implementation). This clarity helps pinpoint where issues like algorithmic bias or "alert fatigue" actually originate, leading to more targeted solutions.

The "Zoom" Effect and Fractal Analysis

One of the most powerful aspects of this framework is its fractal nature. A researcher can analyze an entire autonomous agent using the three levels, or they can "zoom in" and apply all three levels to a single component, such as a vision module or a specific optimizer. This flexibility allows for granular technical discussion without losing sight of the broader system goals.

Limitations and Future Directions

While Marr’s 1982 framework is a robust starting point, it requires modernization for the current AI landscape. Critics note several areas for expansion:

  • Learning as a Level: Modern ML is defined by how systems change over time. Some argue that "learning" should be its own level, describing the transition from one state of the system to another.
  • Social Context: The original framework views systems in isolation. Future iterations must account for the "socially-situated" nature of AI—how these systems interact with human culture, ethics, and societal structures.
  • Granularity of Representation: There is ongoing debate regarding whether the Algorithmic level should be split to better distinguish between the data representations and the mathematical procedures that manipulate them.

Conclusion

The primary value of adopting Marr’s Levels of Analysis is the reduction of friction in academic debate and peer review. By identifying the level at which a contribution or critique lies, researchers can align their perspectives and drive progress more efficiently. While the framework will continue to evolve, it provides the essential "map" needed to navigate the increasingly complex landscape of machine learning research.

Summary updated

Abstract

Machine learning is currently involved in some of the most vigorous debates it has ever seen. Such debates often seem to go around in circles, reaching no conclusion or resolution. This is perhaps unsurprising given that researchers in machine learning come to these discussions with very different frames of reference, making it challenging for them to align perspectives and find common ground. As a remedy for this dilemma, we advocate for the adoption of a common conceptual framework which can be used to understand, analyze, and discuss research. We present one such framework which is popular in cognitive science and neuroscience and which we believe has great utility in machine learning as well: Marr's levels of analysis. Through a series of case studies, we demonstrate how the levels facilitate an understanding and dissection of several methods from machine learning. By adopting the levels of analysis in one's own work, we argue that researchers can be better equipped to engage in the debates necessary to drive forward progress in our field.
BibTeX
@misc{hamrick2020levels,
  author = {Jessica B. Hamrick and Shakir Mohamed},
  title = {{Levels of Analysis for Machine Learning}},
  year = {2020},
  eprint = {2004.05107},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.05107},
}
Figure