The principle of cognitive action - Preliminary experimental analysis

Marco Gori, Marco Maggini, Alessandro RossiarXiv 2017

Introduction: Learning as a Physical Process

Standard machine learning paradigms often struggle with "long-life" or online learning scenarios where data arrives continuously. Traditional approaches typically face a trade-off between high memory consumption (storing past examples) and "catastrophic forgetting" (overwriting old knowledge with new data). Furthermore, most algorithms treat data points as independent and identically distributed (i.i.d.), neglecting the intrinsic temporal correlations found in real-world phenomena.

This paper presents a novel framework for online machine learning by reimagining neural network training as a physical process governed by classical mechanics and variational calculus. By treating weight updates as physical trajectories that minimize a "cognitive action" functional, the authors develop a system with adjustable memory capable of learning from time-correlated data streams.

Methodology: The Cognitive Action Functional

The core of this framework is the construction of a Cost Functional ($\mathcal{L}$) inspired by classical physics. The functional is composed of three primary components:

  • Potential Energy ($V$): Corresponds to the standard loss function, representing the error on the training data.
  • Kinetic Energy ($K$): Represents the "effort" or rate of change in the model's weights. Weights are assigned a "mass" ($\mu$), providing them with inertia to prevent erratic updates.
  • Dissipation ($\psi$): An exponential term ($e^{\theta t}$) models the process of "forgetting." The parameter $\theta$ acts as a "memory knob," controlling how much past information influences current weight updates.

By applying the Principle of Least Action via Euler-Lagrange equations, the authors derive differential equations (ODEs) describing weight evolution. These continuous laws are then discretized into software-implementable update rules, effectively replacing standard Gradient Descent with a physics-simulated update.

Experimental Results

The framework was evaluated on several benchmarks, ranging from synthetic 1D and 2D tasks to real-world audio classification.

Convergence and Robustness

In linear regression tasks, the model successfully converged to target parameters with minimal error (MSE $\approx 1.77 \times 10^{-3}$). For instance, when learning a slope and intercept, the weights evolved smoothly toward their optimal values.

Evolution of model output $y(t)$ and bias $b(t)$ showing smooth convergence in a linear task.

In classification tasks, the model achieved 97% accuracy on 1D data. A key finding was the model's robustness to the loss of supervision: when training labels were removed after an initial period, the model maintained its performance, suggesting it had internalized the underlying task structure.

Real-World Application: Vowel Recognition

The system was tested on the Italian vowel dataset, using auditory spectra coefficients. The framework achieved high accuracy (90-100% across various sets), demonstrating that the "physics of learning" can effectively scale to high-dimensional, real-world features.

Key Insights: Stability and Memory

A critical aspect of this physical approach is the use of control theory tools, specifically the Routh-Hurwitz stability criterion, to ensure the learning process remains stable over time. Without proper parameter tuning, weight trajectories could diverge, leading to system failure.

Example of unstable weight evolution when stability criteria are not satisfied, contrasting with the controlled convergence seen in successful trials.

Other key insights include:

  • Implicit Memory: By incorporating velocity and acceleration into weight updates, the system inherently "remembers" trends without needing an explicit database of past examples.
  • The Memory Knob: The dissipation parameter $\theta$ allows for flexible memory management. High values lead to fast forgetting, while low values enable long-term information retention.

Conclusion

By treating the "mind" of a machine as a physical system, this work opens a unique path toward more fluid and life-like artificial intelligence. Future directions include exploring more complex differential operators and applying the framework to computer vision tasks.

Summary updated

BibTeX
@misc{gori2017principle,
  author = {Marco Gori and Marco Maggini and Alessandro Rossi},
  title = {{The principle of cognitive action - Preliminary experimental analysis}},
  year = {2017},
  eprint = {1701.02377},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1701.02377},
}
Figure