Loss Landscapes of LLMs: The Map Beneath Gradient Descent Shrijith Venkatramana, developer of the AI code review tool LiveReview, explains the concept of loss landscapes in large language models, describing how gradient descent navigates high-dimensional parameter spaces and why the geometry of trained LLMs is more complex than a simple bowl-shaped minimum. The post references research by Ian Goodfellow and colleagues showing that neural network optimization paths may lack the expected obstacles, offering insights into learning rates, initialization, and model merging. Hello, I'm Shrijith Venkatramana, and I'm building LiveReview — a blast-radius aware AI code review built for your business-critical systems. Star us to help devs discover the project, give it a try, and share your feedback to help improve the product. There is a strange fact about training a large language model: A model with hundreds of billions of parameters is trained by repeatedly nudging a point in an unimaginably high-dimensional space downhill. That sentence sounds almost absurd. Imagine a landscape where every coordinate is a model weight. With 70 billion parameters, your "position" is a vector with 70 billion coordinates. The training objective assigns one scalar value to that position. Gradient descent looks at the local slope and says: Move this way. Then it does it again. And again. And again. The resulting object is the loss landscape . For developers, loss landscapes are more than a mathematical curiosity. They provide a useful mental model for understanding why learning rates explode, why initialization matters, why some architectures train dramatically better than others, why independently trained models can sometimes be merged or connected, and why the geometry of a trained LLM is much stranger than the familiar picture of a ball rolling into a single bowl. The most interesting part is that the naive picture of "find the lowest valley" is increasingly misleading. Start with an ordinary function: y = x - 3 ^2 Plot it and you get a bowl. The minimum is at: x = 3 loss = 0 Now imagine two parameters: L w1, w2 You can plot this as a 3D surface. Every point w1, w2 corresponds to one model, and its height corresponds to the loss. Neural networks simply take this idea to an absurd scale. For a model with parameters theta = theta 1, theta 2, ..., theta N the training objective is: L theta where N might be billions. So the actual landscape has billions of dimensions. You cannot draw it. But the mathematical object is perfectly well-defined. For an autoregressive language model, a simplified training loss is cross-entropy: L theta = - 1/T sum t log p theta x t | x