Second Year PhD report
π€ Matteo Magnini, supervisor Andrea Omicini
$$ \text{Man}(\text{Socrates}) $$
$$ \text{Mortal}(\text{Socrates}) $$
All those knowledge representations where there are symbols carrying meaning: logic rules, traffic signs, sentences in natural language, etc.
Models that are based on numerical values and do not have a symbolic meaning like neural networks.
Intelligent systems incorporate knowledge, possibly both symbolic and sub-symbolic, to make decisions.
The training process is guided by the loss function that incorporates the knowledge penalising the model when it makes predictions that violates it.
The symbolic knowledge is embedded into a sub-symbolic representation. The embeddings are provided as additional input to the neural network.
The network architecture is modified to include symbolic knowledge. Some neurons and connection are designed to mimic the symbolic knowledge.
The well known Iris dataset is used to train a neural network.
A neural network is trained to classify the Iris dataset. A human canβt understand how the network makes decisions by inspecting it.
A decision tree is generated from the neural network to extract symbolic knowledge. The decision tree is interpretable by humans.
LLMs are huge neural networks (up to hundreds of billions of parameters) that are trained on a large corpus of text data. Generally, LLMs work by predicting the most plausible token given the previous tokens in a sentence. In the last years, the success of LLM has been world-wide recognised, and they are successfully used in applications of different domains.
LLMs can be exploited to extract symbolic knowledge about a particular domain of interest. The process can be done by iteratively querying the LLM with a set of questions following a specific protocol. From the answers, a symbolic representation can be generated.
Conversely, LLMs can operate by exploiting external (symbolic) knowledge like textual documents, ontologies, databases, etc. This knowledge can be provided with two different strategies: