Preserving Human Knowledge
Transcript
- Hello, I'm Rob Schley, I am the Head of Product at GraphAware. You'll have to forgive us. We didn't know we were giving this talk until yesterday, so it's a little bit last minute, a little bit thrown together. So, please be patient. So I'm just gonna set the stage a little bit, and then I'm gonna let the real engineers over there (laughing) tell you about how it all comes together.
This is kind of a mission statement, if you will. Oh, gosh, turn off notifications. Okay, so the world is full of knowledgeable, insightful, incredibly wise people who spent their entire lives, in some cases, learning their skills, applying their skills, refining their skills over time. And many of those people are in this room, and the rest of the world includes those people as well.
And between us all, we effectively possess the entire body of human knowledge, insight, and wisdom. If humanity were to go extinct tomorrow, all of it would be gone. Unfortunately, we don't have any way, we don't possess the technology, to share our knowledge, our wisdom with each other directly. I can't copy the things that are in my brain to your brain. So in order for us to share our knowledge, we have to communicate. And to communicate, we've invented countless ways, right? We went from speech to written language to encyclopedias, books, radio, TV, all of this, right? All just to share information, share knowledge, share wisdom about how the world works.
Humans are a creative species, but we didn't do this just for fun, right? Sorry. We did it because communication is hard, and communicating at scale is especially hard. Speak up? (laughs) It's hard because we don't share the same backgrounds, we don't share the same education, we don't share the same experiences, the same perspectives, the same biases, et cetera. So we all have to start from scratch each time. And when we share, we reduce our knowledge.
It gets degraded because we can't share with high fidelity, right? Our knowledge becomes a text document that gets sent off to a publisher and is put into a book, and all of the nuance and detail and interconnectedness that is in our minds does not come through in those communication mediums. So, what do we do?
We spend countless hours reading text, trying to master a topic. You have your 10,000 hours, right, to really understand something, because all of this knowledge is hard to share effectively. And so, we kinda think maybe it shouldn't be so hard, right? Maybe one day, we will possess the technology that allows me to copy the ideas in my mind and share them with someone else. Maybe one day we'll get there. It's gonna be awesome.
But until we do, isn't there something that we can do to take all this information and make it more accessible, more available for people to use every day? That is the driving motivation behind Hume, what we are here to talk about today. It is the culmination of two years of research and development, and we think it is going to dramatically impact how we are able to interact, access, and act upon information, knowledge, and wisdom.
So, I know this is a a technical talk, so I'm not gonna give you too much philosophy. I'm gonna hand it over to my colleague here, and he's gonna tell you how this stuff actually works. (audience clapping) - Thanks, Rob. So I would like to start with this image that I'm quite sure we have seen before, because it is quite recurring in a lot of blog posts and other presentations.
And I really like it, because it shows the evolutionary path that transforms data in something different, in something more interesting. That could be insight, wisdom, that could be actions. So, because we talked a lot in the last five years about data-driven application, but let's say that data by itself, in its original nature, is just useless, because it doesn't provide any real value for a company because it is sparse, it is distributed across a lot of data silos
or data sources and it is unstructured, where unstructured doesn't mean exactly it is referring to the text, but even just having a lot of data silos, each of which has, let's say, it's own data structure, means that at the end, you have to deal with a lot of structures in your data, so this means that at the end, you have a lot of issues in managing this variety of your data. And this is at the end, a chaotic situation in which you cannot get anything from this.
Already, just converting this data, collecting them, and organizing them, you can get information, but information itself is also useless compared with knowledge, and migrating from information to knowledge is a hard task, it requires a lot of effort, because it is a quality change, because knowledge, it is connected information, so you need to connect dots to obtain knowledge from information. But once you get to knowledge, of course you can assign meaning
semantic to your data, to your information, and it is at this point that you finally can get insight, you can get wisdom from your data. So starting from something, let's say completely useless, you can achieve a situation, a status in which you get real knowledge and at some point you can move farther and extract insight and wisdom. And from wisdom, you can, that is, I mean related information that connect, let's say, data and extract other knowledge,
you can drive your company, because for instance, you can, let's say, deliver better products analyzing your production chain, or you can deliver a better service to your end user. You can save costs for your company. So, we got this idea in mind, with we designed the Hume, let's say, processing pipeline. Because here, you can find what is the process of converting data wherever you have them, in insight, and wisdom, and then through them, into concrete action for your company.
The first step is, of course, ingesting data from your data sources, so extracting them, pre-process in some way from wherever source you like to have them, and start organizing it. So starting having this kind of information, instead of pure data. Of course, we will focus on the textual data that are generally considered as unstructured data but this is not true, because text, or language as you prefer, has a lot of structure related to grammar, to lexicon, to the relationship between words and to the other kind of constructs that are behind the text. So what you need to do, and this is the second phase, has to extract the hidden structure of your textual data, and organize them in a way in which a machine can process it.
But this is not enough, because sometimes the data that you have is not enough for making any kind of process or is not, let's say, the right set of data that you need, so the enrichment process allows you to extend the knowledge that you have about your own business, introducing external sources that will allow you to get more insight at the end of the process about your specific knowledge. And you can do this using, as I said, external knowledge, but at the end, you can even just process the data that you already have, the information that you gather, in order to extract other knowledge. I will give you an example. Supposing that you are analyzing different documents, you can compute similarities between them. And this is not outside of your knowledge, it's already inside, you are just processing it to extract a new information that are, in this case, similarities between documents,
but that will be useful for, again, navigating your data, for instance, your knowledge. Once you have this knowledge, and we will see what is the problem about knowledge because you have to store and manage this knowledge, you can start applying some machine learning tools that will give you real insight about your data at the end. And of course, you have to index them, because you have to provide some kind of access to this data and at that point, you are ready to deliver insight. That could be, as I said, new, a kind of report for the managers, or could be a recommendation engine or could be whatever you think will be useful for your specific business, to do with your initial data. So, but, in this evolutionary path, there is a big problem, because we're talking about knowledge,
but there are two main problems related to knowledge. The first one is, of course, how we are gonna learn a new knowledge, we are gonna construct the knowledge starting from the information that we can gather from our data, but the second problem, and we will see it is quite a big problem, is how we will represent this knowledge. Let's start from this point, because, you know, who of you working with machine learning knows exactly the representation is one of the big issue
in machine learning, is one of the most complex and compelling task in machine learning, because representation or specifically knowledge representation means how you are gonna to organize your information so that an autonomous system that could be a machine learning agent or, in general, a machine, can perform its complex task on your knowledge. So the way in which you will actually model your knowledge will affect the quality of the end results
that you will get from the knowledge that you get. So in Hume specifically, we decided to use Knowledge Graph as a way for representing knowledge, but we use, let's say, the broader concept of Knowledge Fraph because we didn't like to consider Knowledge Graph just as a way for representing RDF in a property graph. Here, we consider, let's say, Knowledge Graph, as a, let's say, a set of interconnected entities with their related properties. This is a very broad concept of Knowledge Graph
because this is what we will actually get at the end, just a way in which we can represent different type of relationships between items in your information. So if you remind what we saw at the beginning in the image, in that central image, this is no more than this, the knowledge, just connect the dots that will give you sense, semantic meaning of your information. And in this evolutionary path, Knowledge Graph plays a very important role because it, let's say, represent the core
of the AI-enabled evolutionary path, because all the things that we will build on top of our knowledge will happen on top of our Knowledge Graph. Then, of course, as I said before, we have to create this Knowledge Graph and this is where let's say the fun part will come in. And as you can see in this diagram, the idea is that we would like to have this Knowledge Graph that starts just from the information that you can get from your textual data or even structured data,
and grow this Knowledge Graph at each process. That can be, I mean, not only one of these, but it can repeat again and again, because this is an iterative process, and what you get back can be used in different ways. You can export, for instance, a vector, and different ways for processing this vector, so using other machine learning tools, or you can export a different type of documents that are views of the same set of knowledge that you have, and store them in elastic search for providing some kind of, I don't know, enterprise search engine or semantic search. Or you can even visualize them, and so helping people to have a better clue about the data that you have, just because you connected already the dots for them, and they can go over your dataset and see with their brand,
something that any other machine learning tool cannot provide them. So, at the end, let's say that what we get back at the end of this evolutionary path, we see a graph like this, of course, this is a very simplified version, but what is important to notice here is that what you have is that your knowledge now has a lot of navigational patterns that you can use because once you start storing your knowledge as a Knowledge Graph, every single point and every single relationship could be for you an access point for your analysis, for your query, for your investigation. Because for instance, you can start from a topic and say, okay, what is the generic, the general sentiment about this topic in my newsfeed, for instance, or whatever, or I can start the navigation from a equipment and say, okay, what is the generic sentiment or what are the documents related to the equipment. So this is what we would like to achieve. And this is what Christophe will show you in details
how our platform provide the right set of tools that allows you to easily start from your data and achieve a Knowledge Graph like this that will be the entry point for any kind of further analysis for extracting insight and taking, at the end, the right set of actions for your own company. Chris. - So I will not speak about ingestion and, for example, indexing into elastic search. I will really focus on natural language capabilities enrichment and the type of machine-learning algorithms
you can apply on the resulting graph. Once you start ingesting data, the way you might represent it after a first pass of natural language processing, is a simplified version like this. So you have your documents, annotated texts that represent actually the entry points of the natural language processed view of the same document to not interfere with your original domain. And then sentences of the document and entities and words. Tag are tokens, for example, and entities.
There is one very important aspect in this, is the quality of your entities. Because entities are representing real-world concepts, like persons, organization, but of course you can rely on probabilistic models, so there is no 100% accuracy on entities, so you will always have wrong results. This is something that will always happen.
The problem is that the quality of your entities will determine the quality of all the further steps you will apply to your graph. So if something is recognized as a organization instead of a location, in the wrong context. An example is Amazon. In one sense it can be a company, in another it can be the forest. So if you have the wrong entity, the graph analysis you will do after, or the usage of this graph for providing to your user applications, for example, will provide problem.
So this is why the quality is important. So by default, natural language processing tools provide general entity recognition models, like person, locations, organization, money, number, also dates, time, et cetera. Those are very generic because they apply in every domain. In Hume, we have the capability to actually train your own models based on your domain. This is very important because if you are working in insurance industry, you want to recognize a cause of an accident, for example. Or if you are working in finance, you want to recognize start-up names or company names more efficiently than with general model.
Healthcare is also a very specific domain because drug in one part of healthcare is good, while in other parts of healthcare, it is bad, right? So this is very important to have great entity recognition models. So we use actually the capabilities of Stanford LLP based on general entity recognition model, but also the ability to train your own model. However, you always have noise. So, we actually found a technique by combining deep learning-based model, like Word2Vec, to remove the noise based on the context of the text in which the entities appear. So, to give you an example, how Word2Vec word is just returns you a vector representation of a word or an entity.
Because we have this vector representation, we can apply mathematical operations on them. So we can apply cosine similarity for example, which is a well-known similarity accurate for computing distance between vectors. So we can remove actually words or entities that are not relevant to our context. So, the advantage with this is that it accomplish state of the art precision like 99% on very complex domain models.
Musical instrument, it doesn't sound like, but it is a very complex domain, to recognize entities actually. So I mean, explaining the full details on this would take me two days. So, if you go to hume.ga/ner, we have written an article that explain, in details, the whole process, how we achieve this accuracy for named entity recognition. To give you an example of applications, why those entities are important, you always need an information need at the end, right? So, what is the problem you want to solve? Here, an example might be I want my user to access document very easily. So here, we extract entities that represent locations in the documents or geographical latitude, longitude points.
When it is a location, we can use geolocation APIs like Google APIs for example, and store it in the graph. That means that if a user click on the map, it is very easy now thankfully with Neo4j special, to find the document that have mentions of entities located around, I don't know, 100 miles around the click, for example. This is very easy and it offers actually a very easy way for business people to retrieve document or your knowledge workers, et cetera.
Entity recognition is not the only problem, or not the only way to enrich your graph. There are other ways. You can use external Knowledge Bases like Wikidata, like ConceptNet 5, but not only, we will see there is not only text. So Wikidata offers the ability to enrich entities, find that Amazon is a company, that it is a retail company, et cetera. And ConceptNet 5 offers us the ability to understand that
Secret is a device, or that San Francisco is located in California, for example. So, you can actually create new connections into the graph between your documents. Because if you take, for example, document with San Francisco, a document with Los Angeles, there is nothing even with entity recognitions that relate them. However, by using external knowledge, you can create a new connection with California, United States, et cetera. So you will automatically enrich your graph and have more connected data, and more knowledge about your documents by using this.
So we arrive to a graph approximately like this, so we see that tag, tokens, words, can be recognized as a device or a city that is located in a region, equipment that is part of another equipment, et cetera, but if you, here, it is a representation of one document, but if you bring that to hundreds, thousand, a million documents, you have a lot of connected data and the ability to provide lot of services to your user only based on the graph analysis of your documents.
In terms of enrichment with Wikidata, for example, so we have created procedure, for Neo4j. We can just call the procedure, and you get back that the enrichment, so, for example, Elon Musk is founder of Tesla, Tesla is in the car industry. Or Pentagon is actually, the real name is The Pentagon and is located in Washington, for example. But as I say, this is not only text. If you take articles that you are reading every day, they contains also image, so you can add additional metadata to your graph, like if you use image recognition platforms, like IBM Watson Recognition or Google, or Microsoft Computer Vision or something like this.
You can actually get back results of the recognition like electrical device, black color, mechanism, machine, et cetera, and add this information into your graph to again, provide better access patterns to your user, but also more connected data, more ability to provide relationships, related document, similar document, et cetera, to your user. However, again, the quality of what you will bring in your graph will determine the quality of the applications you will build.
So, if you go one step down, you can go buy a Google Home. And take a picture, pass the image to, I don't know, IBM Watson Visual Recognition because this is the one I used here. And I get back that this Google Home actually is recognized as a soap dispenser, which is very funny, so I wouldn't be proud to be Google Home product designer. So, I mean this cannot go into your graph, right? Again, the quality of entities or the quality of additional metadata will drive the quality and success of your application. So this is why we have used, again, deep learning-based model like Word2Vec, but not only, there is also GloVe models, FastText model, to actually filter out the labels returned by IBM Watson or other services, as an example, with the whole document
of your entity or concept, et cetera. So it will remove out of context words or results from external bases. And this can be applied also with Wikidata because there is a great example. Sometimes, with Stanford, it can happen that north will be recognized as a location in the text. Then you will try to pass north to Wikidata that will return 10 results, 10 possible results. Funnily, the first north, the first search result for Wikidata that will be a location will be Republic of Macedonia. Wow, from north. So again, you can use other techniques like string similarity matching for validating the result. Or Word2Vec for example.
So, there are lot of more of techniques that you can use to enrich, do more into your graph, so there is Doc2vec plus similarities. So what is Doc2vec? Instead of having a word vector, you will have a document vector. So you will be able to apply mathematical operations like cosine similarity to compute distance between documents, distance of meaning, actually. And if you store that into the graph, like the top 500 for documents, or the top 100 related document, this is very easy because you improve than your search or recommendation engine because of the graph structure. You don't have to fill to, to compute the similarity or to compute the traversals. On the fly, you already know who are the top 100 related document.
So you can see here, you can just store a relationship between two documents or two concepts, and know what is the similarity between them. Topic modeling, very important. It offers you the ability to actually cluster your documents but in an unsupervised manner. So you don't have actually to have labeled data. They can analyze your text, and cluster them between. Oh, if you look at the map, they will make groups of them based on meanings.
So you can see here in the top left, topic node. In the bottom left, another topic node. So if you only look at this graph, by adding additional information, you have again new ways of providing relevant results to your user. Again, this is not only search. This is not only finding related documents. This is really important in those type of applications to have your business or subject matter expert persons to be involved in the whole process because they will determine accurately which, what is useful for them to use in the graph.
And much much more. So, instead of documents, we can use also Paragraph2Vec, which is on the paragraph level. We can, we use also Doc2Vec techniques for building classification models like Sentiment Polarity Analysis, which is sentiment analysis. Which actually solve a big problem because once you start using sentiment analysis with Stanford, the performance drops completely. So you can use actually like build with Stanford a subset of data to actually have builder model with Doc2Vec, and then we use Doc2Vec to have a faster sentiment analysis model. When I'm speaking about faster, the times are crazy because once you enable sentiment analysis in Stanford, or a modest sized document, you can pass from two seconds to 22 seconds for document processing because this is a complex task.
Okay, you can start a Neo4j cluster doing two, three days, analyze a lot of data, build a model with Doc2Vec. You will use this model, so you will have approximately the same accuracy than Stanford, but you will get results in seven milliseconds. So, once you want to actually go to scale, or adopt pipelines, this is really important to know the tools you are using, and important to have actually composable components to be able to solve your needs.
Because, for example, customer support for airlines, they cannot afford 22 seconds for a document, right? It should be fast paced. So, again, imagine one document, what we can extract from only one document and which compare. But take that to two documents. This is already a huge Knowledge Graph. Take that to thousand, one million. It will be an awesome Knowledge Graph.
In terms of use case, I have to be quick. Financial market analysis, so you can actually combine structure data from finance like shareholders, et cetera, and apply sentiment analysis on finance news. And then you can propagate what is the sentiments across the network, so all the sentiment of a person impacts other person or other companies and why they have shares, et cetera. Significance Engine, this determines, this is a real application. This determines if a document in a government should be archived or not based on its significance in the graph. Geo Search, we talked about it. In terms of performance, this is the performance for one Neo4j node because everything is built for Neo4j, so if you have a three-node cluster,
it will be approximately three times faster. So let's take the longer text document, research papers, it takes approximately one day to process one million documents. So that applicants are not only for Neo4j. You can take the same code, scale on patrice part, or build spring boot application just by requiring the code in your palm, and you can scale as much as you want. So, at the end, what is it? It is really an ecosystem of components that you can compose for solving an information need. Very important, you need an information need, of course. This is really the difference between data-driven and knowledge-driven.
And the great advantage with this ecosystem is that everything is on premise. So we don't care about data, or we don't want your data in the Cloud. So we are really focused on on premise deployment. I will let the last word to Rob. And then it will be question. Come here. - So every day now, I'm asked what is Hume. It's a great question.
Hume is an approach to turning machines from passive things into active things. It's about building machines that collaborate with us to understand huge amounts of information, quickly, efficiently, precisely, and reliably. That's it, that's the whole idea. Turn information into knowledge at scale, for people.
- Thank you. (audience applauding) Questions? - [Man] Great, I think very good job to combine (mumbles) with CRI. The question really is when you run the CRI, that's like a sequence, right? How far you need to run the sequence to really understand the content? Because why you don't need resolution, right? You probably had to have content, or contact. How far you need to do this, the sequence, so you can understand cloud is cloud in the sky, and Cloud is Cloud computing? How far you need to really input contact?
- Well, the length of the context will not be really important. Once you have complex domain, what really be important is the ability to provide enough examples in enough different situation to actually build an accurate model. So, you cannot build a model with 100 documents. This is impossible. But you need examples with different situations. So you can build a model with sentences of six, seven words. This is not an issue, but you need examples. - But anyway, let's say that we tested it with, with Wikipedia data, and we notice that training it with 400 different musical instruments allowed us to recognize over more than 1,000 different instruments, so this means that this specific algorithm used by Stanford allows you to infer musical instruments even though during the training phases,
I mean, they are not available, so this means that it understands the meaning and create the right, it's a model for recognizing these type of musical instruments, even though they are not seeing. But as Christophe said, of course, you need any way to train this model with a lot of data. But a lot of data doesn't mean that you have to train with all the use cases that you will have, but that at least the system should learn how to recognize in a proper way a musical instrument in a context. Not the specific musical instrument, but musical instrument as a generic concept in the text.
- Yes? - [Man] So is the user supposed to provide the Knowledge Graph, (mumbles) language recognition with the Knowledge Graph, or (mumbles)? - No, I mean, the Knowledge Graph is the start of the process. So the ingestions allow you to take your documents as they are, in their normal form, and that would be PDF, PPT, Excel, whatever, and convert them in your own knowledge graph. So the idea is that since, as Christophe was saying, it is installed on premise. The Knowledge Graph, the resulting Knowledge Graph, will become part of your assets, part of the company's asset, so because it will be created for you,
ingesting data that you have that is already part of your knowledge. We just convert that knowledge distributed useless where it is in something that you can really use so it becomes a value for the company. - [Man] Would it work with the very structure of the company? Like financial reports? - Generally, we combine structure documents with our structure. So for example, a use case I worked on is combining research papers with funding from the governments
to understand actually my topic or my key word, or where is the money going, or finding that if I am working on a subject, and I've already my abstract, I can actually take my abstract, compare to all the research papers that they know about to know if one, somebody is already having money for this, or if somebody worked on something, if research have already been complete on this, so all that kind. But the financial information generally comes with in stricter form, so, yup.
But you just combine them. So you take, you try to validate the entities against a certain entity, so yeah. - And anyway, you can work on different connectors because our platform is flexible enough to build any kind of connectors through your existing data source, wherever your data are. - Wikidata is an example. For example, for us, we worked a lot with some data, for example, or with customer's data.
So it is very common to use another RDF graph, for example, to combine it with our platform, yeah. Okay, thank you. - Thank you. (audience applauding)

Ask anything
We've read this whole study set, so questions about it get the best answers.