← All stories
● Covered by 1 source · 1 reportLow impact1 neutral

Ordinary Differentiation for Machine Learning Instead of Matrix Calculus

🔄 Updated 2h ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • Matrix calculus is often used in machine learning for differentiation.
  • Ordinary differentiation with indexed notation is an alternative.
  • This method is simpler and always works, unlike matrix calculus.
  • It avoids memorizing complex matrix calculus rules.

The Challenge of Matrix Calculus

Matrix calculus is frequently encountered in machine learning contexts, particularly when dealing with differentiation of functions involving vector or matrix variables. It involves a set of complex rules that vary based on vector and matrix orientations, making it difficult to apply consistently.

An Alternative: Ordinary Differentiation with Indices

An alternative approach, historically used by physicists for tensors, involves writing out formulas with indices and applying ordinary differentiation. This method is presented as a more straightforward and universally applicable solution compared to matrix calculus. It eliminates the need to learn specific matrix calculus rules.

Advantages of the Indexed Approach

The primary advantage of using ordinary differentiation with indices is its universal applicability; it works for all formulas. It also requires knowledge only of ordinary differentiation, potentially saving time compared to memorizing and applying the specific rules of matrix calculus. This method is demonstrated with an example of a neuron activation function.

Practical Application Example

The article illustrates the method by differentiating a neuron activation function, \(\mathsf{activation}(x) = \max(0, Ax + b)\). By expanding the matrix multiplication into indexed form, \(\mathsf{activation}(x)_i = \sum_j A_{ij}x_j + b_i\), ordinary differentiation can be applied with respect to \(x_k\), \(A_{kl}\), or \(b_k\) by setting the corresponding primed variable to 1 and others to 0.

✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →

The daily brief

One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.

One email a day. Unsubscribe in one click, any time.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~11 min · 9 stories · Sep 12

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

This article explains that matrix calculus is not necessary for differentiating functions of vector or matrix variables in machine learning. It proposes using ordinary differentiation with indexed notation as a simpler and more universally applicable method. This approach simplifies the mathematical operations required for machine learning model development.