\n","children":[{"type":"text","text":""}]},{"type":"p","children":[{"type":"text","text":"Have you ever said, \"if I just had more data, I could make a better decision?\" I can't count the number of times I've heard a data scientist say a variation of that when talking about improving predictions. The curious thing about that sentiment is that we usually have more data than we realize --- and the problem is actually related to whether you can access that information and use it."}]},{"type":"p","children":[{"type":"text","text":"A few weeks ago, I gave a lightning talk on this topic at the "},{"type":"a","url":"https://register.snorkel.ai/events/04054741-5952-406b-8d37-82c8c1217083","title":null,"children":[{"type":"text","text":"Future of Data-Centric AI event"}]},{"type":"text","text":" hosted by Snorkel. My goal was to encourage people to stop wasting perfectly good data they already have in their machine learning workflows. The talk quickly covered why this data isn't used and how a knowledge graph can help people reclaim more predictive information."}]},{"type":"mdxJsxFlowElement","name":"ImgFig","children":[{"type":"text","text":""}],"props":{"src":"/blog/stop-wasting-good-data-reclaim-predictive-information-with-knowledge-graphs/improve-ML.jpg","width":"100%","alt":"improve-ML"}},{"type":"p","children":[{"type":"text","text":"There are two fundamental ways to improve ML results: we either improve the data or encode domain knowledge in the process. In data-centric AI, we're often trying to increase the quality and richness of our data to get better results as opposed to just increasing the size of our dataset which doesn’t address garbage-in, garbage-out problems. Encoding knowledge ranges from simple data cleaning and sampling to more advanced feature engineering and weak supervision. There are many ways to capture knowledge."}]},{"type":"p","children":[{"type":"text","text":"Steam Rolled Data","bold":true}]},{"type":"p","children":[{"type":"text","text":"So what's the first thing most data scientists do when we're getting ready to use all that data and knowledge to make a predictive model? We steamroll the data and force-fit it into ML systems that only handle flat structures. Think about all the organizational data we have where teams have put time and effort into figuring out dependencies, hierarchies, and weighted importance. Now we're flattening it all to fit into a feature matrix."}]},{"type":"mdxJsxFlowElement","name":"ImgFig","children":[{"type":"text","text":""}],"props":{"src":"/blog/stop-wasting-good-data-reclaim-predictive-information-with-knowledge-graphs/feature-matrix.jpg","width":"100%","alt":"feature-matrix"}},{"type":"p","children":[{"type":"text","text":"And not only do we remove that structural information, but most teams also work hard to toss out the relationships between entities themselves. When we translate data into a feature matrix and pluck out predictive elements (feature engineering), it’s often assumed that each data point in rows are independent of each other. But in the real world, that's precisely the opposite; things are highly related. For example, we can improve predictions about buying behavior when we understand relationships between things like previous purchases, browsing paths, social clubs, and reward programs. You don't want to lose this information."}]},{"type":"p","children":[{"type":"text","text":"In a machine learning model - we are fundamentally trying to approximate something in the real world to make predictions about it. So if we start by tossing out data and flattening its meaning - we're going to have a very shallow model that isn't capable of rich or broader predictions."}]},{"type":"p","children":[{"type":"text","text":"Low Hanging Fruit","bold":true}]},{"type":"p","children":[{"type":"text","text":"Knowledge graphs are built by, and for the express purpose of, connecting data. That means knowledge graphs are pretty good at preserving relationships. When our data is connected via a knowledge graph, we can use graph feature engineering to translate complex relationships into a format ML systems can understand without losing significant meaning. Graph feature engineering encodes structural information, and you can use it right away alongside what you’re already doing in your ML pipeline."}]},{"type":"mdxJsxFlowElement","name":"ImgFig","children":[{"type":"text","text":""}],"props":{"src":"/blog/stop-wasting-good-data-reclaim-predictive-information-with-knowledge-graphs/data-map.jpg","width":"100%","alt":"data-map"}},{"type":"p","children":[{"type":"text","text":"Now let’s consider all of our business knowledge and how we might encode more of that logic as part of our models. A lot of people have been talking about semantic layers lately. It’s an old term related to mapping data to its business meaning. However, more recently, the word has been used in an extended way (sometimes as a ‘semantic model’) to focus equally on the greater logic surrounding the data and its meaning. (For example, not just that a number represents a discount, but also how it’s calculated, when it can be applied, and perhaps to include some regulatory rules.) People are using knowledge graphs today to bring this logic together with the data as a semantic layer or model to streamline the development of data apps. But it also enables us to encode this logic for use in ML workflows."}]},{"type":"p","children":[{"type":"text","text":"The Logical Leap Forward","bold":true}]},{"type":"p","children":[{"type":"text","text":"So now, if we capture relationships, semantics, and logic together with our data as a knowledge graph, what next? The logical leap forward is to incorporate this knowledge into a system that can seamlessly perform computation and reasoning over it, thereby increasing its utility. That’s where a relational knowledge graph system comes in. It’s basically a model of concepts, their relationships, and the associated logic together in a model that can execute on the logic. Or, as my colleagues like to say, “the model is the program.”"}]},{"type":"p","children":[{"type":"text","text":"So for those working on predictive models, this innovation means that not only does RelationalAI enable you to uncover and use predictive data, but it also enables you to dynamically compute new or updated information. And do this in a way that integrates with modern workstreams."}]},{"type":"p","children":[{"type":"text","text":"A lot of corporate data is on the Modern Data Stack in cloud data warehouses and data lakes. As a cloud-native, relational knowledge graph, RelationalAI can ingest that corporate data and bring it together with semantics and executable knowledge. With RelationalAI, data engineers and data scientists can streamline complex data pipelines, encode predictive relationships, and conduct reasoning workloads."}]},{"type":"mdxJsxFlowElement","name":"ImgFig","children":[{"type":"text","text":""}],"props":{"src":"/blog/stop-wasting-good-data-reclaim-predictive-information-with-knowledge-graphs/feed-snorkel.jpg","width":"100%","alt":"feed-snorkel"}},{"type":"p","children":[{"type":"text","text":"In my talk, I also quickly discussed the Snorkel Drybell project, where Google used a knowledge graph to add organizational resources into the Snorkel platform to improve predictions. They also used semantic categorization and business rules to capture domain expertise. A relational knowledge graph can bring together this type of highly predictive data and logic and feed it into models. There’s no reason to waste the valuable data you already have."}]},{"type":"p","children":[{"type":"a","url":"https://www.youtube.com/watch?v=MctRbs_r69I&t=1s","title":null,"children":[{"type":"text","text":"Watch the 8 minute lighting talk."}]}]},{"type":"mdxJsxFlowElement","name":"YouTubeVideo","children":[{"type":"text","text":""}],"props":{"videoId":"MctRbs_r69I"}}],"_content_source":{"queryId":"src/content/resources/stop-wasting-good-data-reclaim-predictive-information-with-knowledge-graphs.mdx","path":["resource","body"]}},"_content_source":{"queryId":"src/content/resources/stop-wasting-good-data-reclaim-predictive-information-with-knowledge-graphs.mdx","path":["resource"]}}},"errors":null,"query":"\n query resource($relativePath: String!) {\n resource(relativePath: $relativePath) {\n ... on Document {\n _sys {\n filename\n basename\n breadcrumbs\n path\n relativePath\n extension\n }\n id\n }\n ...ResourceParts\n }\n}\n \n fragment ResourceParts on Resource {\n __typename\n title\n description\n date\n image\n categories\n authors {\n __typename\n name\n link\n }\n seo {\n __typename\n keywords\n description\n image\n image_alt\n canonical_url\n author\n published\n modified\n language\n robots\n site_name\n content_type\n }\n body\n}\n ","variables":{"relativePath":"stop-wasting-good-data-reclaim-predictive-information-with-knowledge-graphs.mdx"}},"src/content/meta/meta.md":{"data":{"meta":{"_sys":{"filename":"meta","basename":"meta.md","breadcrumbs":["meta"],"path":"src/content/meta/meta.md","relativePath":"meta.md","extension":".md"},"id":"src/content/meta/meta.md","__typename":"Meta","banner":{"__typename":"MetaBanner","enabled":true,"content":{"type":"root","children":[{"type":"p","children":[{"type":"text","text":"Check out "},{"type":"a","url":"/resources/highlights-of-relationalai-at-snowflake-data-cloud-summit-2024","title":"SF summit highlights","children":[{"type":"text","text":"highlights"}]},{"type":"text","text":" of RelationalAI at "},{"type":"text","text":"Snowflake's Data Cloud Summit 2024!","bold":true}]}],"_content_source":{"queryId":"src/content/meta/meta.md","path":["meta","banner","content"]}},"_content_source":{"queryId":"src/content/meta/meta.md","path":["meta","banner"]}},"header":{"__typename":"MetaHeader","links":[{"__typename":"MetaHeaderLinks","text":"Product","url":"/product","style":"default","_content_source":{"queryId":"src/content/meta/meta.md","path":["meta","header","links",0]}},{"__typename":"MetaHeaderLinks","text":"Company","url":"/company","style":"default","_content_source":{"queryId":"src/content/meta/meta.md","path":["meta","header","links",1]}},{"__typename":"MetaHeaderLinks","text":"Docs","url":"/docs","style":"default","_content_source":{"queryId":"src/content/meta/meta.md","path":["meta","header","links",2]}},{"__typename":"MetaHeaderLinks","text":"Resources","url":"/resources/all/1","style":"default","_content_source":{"queryId":"src/content/meta/meta.md","path":["meta","header","links",3]}},{"__typename":"MetaHeaderLinks","text":"Get Started","url":"/get-started","style":"cta","_content_source":{"queryId":"src/content/meta/meta.md","path":["meta","header","links",4]}}],"_content_source":{"queryId":"src/content/meta/meta.md","path":["meta","header"]}},"footer":{"__typename":"MetaFooter","sections":[{"__typename":"MetaFooterSections","name":"Product","links":[{"__typename":"MetaFooterSectionsLinks","text":"Overview","url":"/product","_content_source":{"queryId":"src/content/meta/meta.md","path":["meta","footer","sections",0,"links",0]}},{"__typename":"MetaFooterSectionsLinks","text":"Use Cases","url":"/product#for-problems-that-matter","_content_source":{"queryId":"src/content/meta/meta.md","path":["meta","footer","sections",0,"links",1]}},{"__typename":"MetaFooterSectionsLinks","text":"Capabilities","url":"/product#a-new-toolset","_content_source":{"queryId":"src/content/meta/meta.md","path":["meta","footer","sections",0,"links",2]}}],"_content_source":{"queryId":"src/content/meta/meta.md","path":["meta","footer","sections",0]}},{"__typename":"MetaFooterSections","name":"Resources","links":[{"__typename":"MetaFooterSectionsLinks","text":"Documentation","url":"/docs/getting_started","_content_source":{"queryId":"src/content/meta/meta.md","path":["meta","footer","sections",1,"links",0]}},{"__typename":"MetaFooterSectionsLinks","text":"News","url":"/resources/news/1","_content_source":{"queryId":"src/content/meta/meta.md","path":["meta","footer","sections",1,"links",1]}},{"__typename":"MetaFooterSectionsLinks","text":"Research","url":"/resources/research/1","_content_source":{"queryId":"src/content/meta/meta.md","path":["meta","footer","sections",1,"links",2]}},{"__typename":"MetaFooterSectionsLinks","text":"Releases","url":"/resources/releases/1","_content_source":{"queryId":"src/content/meta/meta.md","path":["meta","footer","sections",1,"links",3]}}],"_content_source":{"queryId":"src/content/meta/meta.md","path":["meta","footer","sections",1]}},{"__typename":"MetaFooterSections","name":"About Us","links":[{"__typename":"MetaFooterSectionsLinks","text":"Our Company","url":"/company","_content_source":{"queryId":"src/content/meta/meta.md","path":["meta","footer","sections",2,"links",0]}},{"__typename":"MetaFooterSectionsLinks","text":"Contact Us","url":"/get-started","_content_source":{"queryId":"src/content/meta/meta.md","path":["meta","footer","sections",2,"links",1]}},{"__typename":"MetaFooterSectionsLinks","text":"Careers","url":"/careers","_content_source":{"queryId":"src/content/meta/meta.md","path":["meta","footer","sections",2,"links",2]}},{"__typename":"MetaFooterSectionsLinks","text":"Legal","url":"/legal","_content_source":{"queryId":"src/content/meta/meta.md","path":["meta","footer","sections",2,"links",3]}},{"__typename":"MetaFooterSectionsLinks","text":"GDPR","url":"/gdpr","_content_source":{"queryId":"src/content/meta/meta.md","path":["meta","footer","sections",2,"links",4]}},{"__typename":"MetaFooterSectionsLinks","text":"Security & Trust","url":"https://trust.relational.ai/","_content_source":{"queryId":"src/content/meta/meta.md","path":["meta","footer","sections",2,"links",5]}}],"_content_source":{"queryId":"src/content/meta/meta.md","path":["meta","footer","sections",2]}}],"socials":[{"__typename":"MetaFooterSocials","text":"GitHub","url":"https://github.com/RelationalAI","icon":"https://assets.tina.io/91d76337-e55d-4722-acb5-3106adb895b6/img/logos/github.png","_content_source":{"queryId":"src/content/meta/meta.md","path":["meta","footer","socials",0]}},{"__typename":"MetaFooterSocials","text":"LinkedIn","url":"https://www.linkedin.com/company/relationalai/about","icon":"https://assets.tina.io/91d76337-e55d-4722-acb5-3106adb895b6/img/logos/linkedin.png","_content_source":{"queryId":"src/content/meta/meta.md","path":["meta","footer","socials",1]}},{"__typename":"MetaFooterSocials","text":"Twitter","url":"https://twitter.com/relationalai","icon":"https://assets.tina.io/91d76337-e55d-4722-acb5-3106adb895b6/img/logos/twitter.png","_content_source":{"queryId":"src/content/meta/meta.md","path":["meta","footer","socials",2]}}],"_content_source":{"queryId":"src/content/meta/meta.md","path":["meta","footer"]}},"_content_source":{"queryId":"src/content/meta/meta.md","path":["meta"]}}},"errors":null,"query":"\n query meta($relativePath: String!) {\n meta(relativePath: $relativePath) {\n ... on Document {\n _sys {\n filename\n basename\n breadcrumbs\n path\n relativePath\n extension\n }\n id\n }\n ...MetaParts\n }\n}\n \n fragment MetaParts on Meta {\n __typename\n banner {\n __typename\n enabled\n content\n }\n header {\n __typename\n links {\n __typename\n text\n url\n style\n }\n }\n footer {\n __typename\n sections {\n __typename\n name\n links {\n __typename\n text\n url\n }\n }\n socials {\n __typename\n text\n url\n icon\n }\n }\n}\n ","variables":{"relativePath":"./meta.md"}}};
globalThis.tina_info = tina;
})();
Stop Wasting Good Data: Reclaim Predictive Information With Knowledge Graphs · RelationalAI
Check out highlights of RelationalAI at Snowflake's Data Cloud Summit 2024!
Stop Wasting Good Data: Reclaim Predictive Information With Knowledge Graphs
Have you ever said, "if I just had more data, I could make a better decision?" I can't count the number of times I've heard a data scientist say a variation of that when talking about improving predictions. The curious thing about that sentiment is that we usually have more data than we realize --- and the problem is actually related to whether you can access that information and use it.
A few weeks ago, I gave a lightning talk on this topic at the Future of Data-Centric AI event hosted by Snorkel. My goal was to encourage people to stop wasting perfectly good data they already have in their machine learning workflows. The talk quickly covered why this data isn't used and how a knowledge graph can help people reclaim more predictive information.
There are two fundamental ways to improve ML results: we either improve the data or encode domain knowledge in the process. In data-centric AI, we're often trying to increase the quality and richness of our data to get better results as opposed to just increasing the size of our dataset which doesn’t address garbage-in, garbage-out problems. Encoding knowledge ranges from simple data cleaning and sampling to more advanced feature engineering and weak supervision. There are many ways to capture knowledge.
Steam Rolled Data
So what's the first thing most data scientists do when we're getting ready to use all that data and knowledge to make a predictive model? We steamroll the data and force-fit it into ML systems that only handle flat structures. Think about all the organizational data we have where teams have put time and effort into figuring out dependencies, hierarchies, and weighted importance. Now we're flattening it all to fit into a feature matrix.
And not only do we remove that structural information, but most teams also work hard to toss out the relationships between entities themselves. When we translate data into a feature matrix and pluck out predictive elements (feature engineering), it’s often assumed that each data point in rows are independent of each other. But in the real world, that's precisely the opposite; things are highly related. For example, we can improve predictions about buying behavior when we understand relationships between things like previous purchases, browsing paths, social clubs, and reward programs. You don't want to lose this information.
In a machine learning model - we are fundamentally trying to approximate something in the real world to make predictions about it. So if we start by tossing out data and flattening its meaning - we're going to have a very shallow model that isn't capable of rich or broader predictions.
Low Hanging Fruit
Knowledge graphs are built by, and for the express purpose of, connecting data. That means knowledge graphs are pretty good at preserving relationships. When our data is connected via a knowledge graph, we can use graph feature engineering to translate complex relationships into a format ML systems can understand without losing significant meaning. Graph feature engineering encodes structural information, and you can use it right away alongside what you’re already doing in your ML pipeline.
Now let’s consider all of our business knowledge and how we might encode more of that logic as part of our models. A lot of people have been talking about semantic layers lately. It’s an old term related to mapping data to its business meaning. However, more recently, the word has been used in an extended way (sometimes as a ‘semantic model’) to focus equally on the greater logic surrounding the data and its meaning. (For example, not just that a number represents a discount, but also how it’s calculated, when it can be applied, and perhaps to include some regulatory rules.) People are using knowledge graphs today to bring this logic together with the data as a semantic layer or model to streamline the development of data apps. But it also enables us to encode this logic for use in ML workflows.
The Logical Leap Forward
So now, if we capture relationships, semantics, and logic together with our data as a knowledge graph, what next? The logical leap forward is to incorporate this knowledge into a system that can seamlessly perform computation and reasoning over it, thereby increasing its utility. That’s where a relational knowledge graph system comes in. It’s basically a model of concepts, their relationships, and the associated logic together in a model that can execute on the logic. Or, as my colleagues like to say, “the model is the program.”
So for those working on predictive models, this innovation means that not only does RelationalAI enable you to uncover and use predictive data, but it also enables you to dynamically compute new or updated information. And do this in a way that integrates with modern workstreams.
A lot of corporate data is on the Modern Data Stack in cloud data warehouses and data lakes. As a cloud-native, relational knowledge graph, RelationalAI can ingest that corporate data and bring it together with semantics and executable knowledge. With RelationalAI, data engineers and data scientists can streamline complex data pipelines, encode predictive relationships, and conduct reasoning workloads.
In my talk, I also quickly discussed the Snorkel Drybell project, where Google used a knowledge graph to add organizational resources into the Snorkel platform to improve predictions. They also used semantic categorization and business rules to capture domain expertise. A relational knowledge graph can bring together this type of highly predictive data and logic and feed it into models. There’s no reason to waste the valuable data you already have.