Explore how graph databases make model knowledge updatable without retraining.

Introducing a groundbreaking approach to model decomposition with the power of graph databases.

3 min readMachine Learning

The idea of updating a large language model's factual knowledge by simply inserting a row into a graph database is not just clever, it's the kind of quiet breakthrough that redefines what we expect from AI systems. For too long, the assumption has been that knowledge lives inside the model's weights, frozen after training and only changeable through expensive, time-consuming retraining. This approach, demonstrated by the Larql project from IBM's CTO, dismantles that assumption by decomposing a static model into a graph database and performing a k-nearest-neighbor walk on each layer. The result is mathematically identical to a matrix multiplication, but the practical implications are anything but ordinary.

What this means for you is straightforward: your model's knowledge is no longer a black box you must live with. If a fact changes, or new information emerges, you don't need to gather a new dataset, spin up training infrastructure, or hope the fine-tuning doesn't degrade other capabilities. You simply update the graph. That's a shift from treating models as finished products to treating them as living systems, ones that can stay current with the world without losing what made them useful in the first place. For teams that rely on up-to-date information, this isn't a minor convenience; it's the difference between a tool that reflects yesterday's reality and one that can keep pace with today's.

The memory advantage is just as significant. Because the decomposed model lives as a database, it sidesteps the massive memory footprint of a dense neural network. You're not storing billions of parameters as opaque tensors; you're querying a structured graph that serves the same function with less overhead. That opens the door to running more capable models on hardware that would otherwise struggle, or simply leaving headroom for other tasks. It's a practical win that doesn't ask you to compromise on accuracy or settle for a smaller model, it asks you to rethink how the model is stored in the first place.

We're not suggesting this replaces every approach to model updating, nor that it's without its own engineering challenges. But the core insight, that a model's knowledge can be decomposed, stored, and updated like any other data, deserves serious attention. If you've been holding back from adopting AI because you feared the cost of keeping it current, this changes the calculation. The path forward isn't to build bigger models and hope they stay relevant. It's to build systems that can learn from the world without forgetting how to think. That's a future worth exploring, and it starts with questioning what we think a model has to be.

From Machine Learning

https://youtu.be/8Ppw8254nLI?si=lo-6PM5pwnpyvwMXh

Now you can decompose a static llm model and do a knn walk on each layer (which was decomposed into a graph database), and it's mathematically identical to doing matmult. It allows you to update the models internal factual knowledge without retraining (just insert into graph DB), it also uses less memory (since its just a database). The creator is the CTO at IBM.

Read the original at Machine Learning