Category: Deep learning
-
Back-propagation
The goal when training neural networks, is to find the optimal values of the weights and biases that minimize the cost function. When using gradient descent to achieve this goal, one has to find the derivative of the cost with respect to every parameter in the network which is extremely compute expensive Back-propagation is a…
-
Gradient Descent
Gradient descent is widely used and is one of the best optimization algorithms.It is a technique use to find the minimum value of a function. This function could be anything. In the context of a neural network, the function we are interested in is called the cost function. It is the difference between the predicted…
-
The attention mechanism
The attention mechanism is one of the key pieces of technology inside LLMs and many other prominent systems in robotics, computer vision etc. This article attempts to explain how it processes data. It was first introduced in a 2017 landmark paper called Attention is all you need Imagine you are given a sentence : “The…
-
The mathematics and concepts in LLM’s
Today, state-of-the-art LLMs like Gemini, Claude, DeepSeek, GPT etc exhibit extraordinary capabilities resembling aspects of human cognition. They are able to write poems, produce powerful codebases, summarize text etc. and interact with users in a multimodal way. Their performance is largely correlated to their architecture. An LLM architecture is a parametrized function that applies a…
