Knowledge Representation
There are many ways to represent knowledge, the most obvious one is language (symbolic) of course. But there are other ways like in parameters of neural nets (weight matrices) or knowledge graphs that encode complex relations as a DAG. Since I first learned about neural nets (2016), I was fascinated that the knowledge to classify an image is hidden in these mysterious weight matrices (structured bags of numbers) - since then we learned a lot more about them.
Properties of useful knowledge representation:
- solves a problem
- understandable / interpretable
- robust: immune to adversarial examples and compact (atomic does not smear into other knowledge)
- editable
- extensible: no catastrophic forgetting
- generalizable / disentangled: not fractured
- sparse? efficient (low storage)
Candidates:
- regularized dense weight matrices
- sparse distributed representations (sparse, efficient, understandable, robust?)
- vector binding (associate)
Goal
Develop robust, interpretable, editable and extendable knowledge file format for neural nets (LLMs in particular), so we can exchange and improve a global DB of knowledge chunks.
This also unlocks continuous learning: turning new learnings from experience into new useful knowledge chunks.
Neural Net Knowledge
In standard NNs knowledge lives in the nets parameters aka weights (dense matrices + bias vectors).
Problems of normal NNs (including LLMs) weights:
- Fractured representations in gradient descent optimized neural networks
- Brittleness: subtle adversarial image manipulations influence both human and machine perception (argues large training data reduces hallucinations -> though animals do not need many examples to identify objects reliably -> hinting at architectural limits)
How can we quantify how good the learned knowledge geometry of the weight matrices is?
The Fisher Information Matrix measures how sensitive the model's probability predictions are to changes in its parameters. This can be used to heavily prune / compress large NNs (Towards Extreme Pruning of LLMs with Plug-and-Play Mixed Sparsity).
Cheap weight regularization scheme: How to create beautiful internal representations (and grok 6× faster)
Plato's key (transfer knowledge between neural nets): Good X thread
LLM Knowledge
- A Language Model Architecture Whose Initial Weights an LLM Can Write as Code: Externalized editable knowledge
Current LLMs store massive amounts of text in their weights which contains both factual and liquid (structural / programmatic) knowledge. A better architecture would store facts as editable textual facts and focus the LLM weights only on liquid aka programmatic knowledge.
Weight-Space-Programming (WSP) is a promising newly discovered capability of big LLMs that can directly edit weights of other LLMs to edit facts / add new skills, this is useful but does not solve the knowledge representation problems of current LLMs (fractured entangled mess).
My Research Questions
- Check if improved knowledge representations in LLMs fix liminal learning
- Can we use platos key (one learned matrix transform) to cheaply upgrade embeddings to a new model (without degrading retrieval performance for the transformed vectors with the new model)?
References
- https://seanpedersen.github.io/posts/structure-of-neural-latent-space/
- https://blog.jxmo.io/p/there-is-only-one-model
- Harnessing the Universal Geometry of Embeddings
- Revisiting the Platonic Representation Hypothesis: An Aristotelian View -> disproves (limits): The Platonic Representation Hypothesis
- https://phillipi.github.io/prh/
- https://the-puzzler.github.io/blog/beautiful-on-the-inside/
- A Geometric Modeling of Occam's Razor in Deep Learning: Large parameter space of Neural Networks seem to defy Occam's razor but almost degenerate Fisher information explains their low complexity
- The Many Faces of Information Geometry