LogoLogo
Continuum WebsiteContinuum ApplicationsContinuum KnowledgeAxolotl Platform
Continuum Knowledge
Continuum Knowledge
  • Continuum
  • Data
    • Datasets
      • Pre Training Data
      • Types of Fine Tuning
      • Self Instruct Paper
      • Self-Alignment with Instruction Backtranslation
      • Systematic Evaluation of Instruction-Tuned Large Language Models on Open Datasets
      • Instruction Tuning
      • Instruction Fine Tuning - Alpagasus
      • Less is More For Alignment
      • Enhanced Supervised Fine Tuning
      • Visualising Data using t-SNE
      • UMAP: Uniform Manifold Approximation and Projection for Dimension Reduction
      • Training and Evaluation Datasets
      • What is perplexity?
  • MODELS
    • Foundation Models
      • The leaderboard
      • Foundation Models
      • LLama 2 - Analysis
      • Analysis of Llama 3
      • Llama 3.1 series
      • Google Gemini 1.5
      • Platypus: Quick, Cheap, and Powerful Refinement of LLMs
      • Mixtral of Experts
      • Mixture-of-Agents (MoA)
      • Phi 1.5
        • Refining the Art of AI Training: A Deep Dive into Phi 1.5's Innovative Approach
      • Phi 2.0
      • Phi-3 Technical Report
  • Training
    • The Fine Tuning Process
      • Why fine tune?
        • Does Fine-Tuning LLMs on New Knowledge Encourage Hallucinations?
        • Explanations in Fine Tuning
      • Tokenization
        • Tokenization Is More Than Compression
        • Tokenization - SentencePiece
        • Tokenization explore
        • Tokenizer Choice For LLM Training: Negligible or Crucial?
        • Getting the most out of your tokenizer for pre-training and domain adaptation
        • TokenMonster
      • Parameter Efficient Fine Tuning
        • P-Tuning
          • The Power of Scale for Parameter-Efficient Prompt Tuning
        • Prefix-Tuning: Optimizing Continuous Prompts for Generation
        • Harnessing the Power of PEFT: A Smarter Approach to Fine-tuning Pre-trained Models
        • What is Low-Rank Adaptation (LoRA) - explained by the inventor
        • Low Rank Adaptation (Lora)
        • Practical Tips for Fine-tuning LMs Using LoRA (Low-Rank Adaptation)
        • QLORA: Efficient Finetuning of Quantized LLMs
        • Bits and Bytes
        • The Magic behind Qlora
        • Practical Guide to LoRA: Tips and Tricks for Effective Model Adaptation
        • The quantization constant
        • QLORA: Efficient Finetuning of Quantized Language Models
        • QLORA and Fine-Tuning of Quantized Language Models (LMs)
        • ReLoRA: High-Rank Training Through Low-Rank Updates
        • SLoRA: Federated Parameter Efficient Fine-Tuning of Language Models
        • GaLora: Memory-Efficient LLM Training by Gradient Low-Rank Projection
      • Hyperparameters
        • Batch Size
        • Padding Tokens
        • Mixed precision training
        • FP8 Formats for Deep Learning
        • Floating Point Numbers
        • Batch Size and Model loss
        • Batch Normalisation
        • Rethinking Learning Rate Tuning in the Era of Language Models
        • Sample Packing
        • Gradient accumulation
        • A process for choosing the learning rate
        • Learning Rate Scheduler
        • Checkpoints
        • A Survey on Efficient Training of Transformers
        • Sequence Length Warmup
        • Understanding Training vs. Evaluation Data Splits
        • Cross-entropy loss
        • Weight Decay
        • Optimiser
        • Caching
      • Training Processes
        • Extending the context window
        • PyTorch Fully Sharded Data Parallel (FSDP)
        • Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation
        • YaRN: Efficient Context Window Extension of Large Language Models
        • Sliding Window Attention
        • LongRoPE
        • Reinforcement Learning
        • An introduction to reinforcement learning
        • Reinforcement Learning from Human Feedback (RLHF)
        • Direct Preference Optimization: Your Language Model is Secretly a Reward Model
  • INFERENCE
    • Why is inference important?
      • Grouped Query Attention
      • Key Value Cache
      • Flash Attention
      • Flash Attention 2
      • StreamingLLM
      • Paged Attention and vLLM
      • TensorRT-LLM
      • Torchscript
      • NVIDIA L40S GPU
      • Triton Inference Server - Introduction
      • Triton Inference Server
      • FiDO: Fusion-in-Decoder optimised for stronger performance and faster inference
      • Is PUE a useful measure of data centre performance?
      • SLORA
  • KNOWLEDGE
    • Vector Databases
      • A Comprehensive Survey on Vector Databases
      • Vector database management systems: Fundamental concepts, use-cases, and current challenges
      • Using the Output Embedding to Improve Language Models
      • Decoding Sentence-BERT
      • ColBERT: Efficient and Effective Passage Search via Contextualized Late Interaction over BERT
      • SimCSE: Simple Contrastive Learning of Sentence Embeddings
      • Questions Are All You Need to Train a Dense Passage Retriever
      • Improving Text Embeddings with Large Language Models
      • Massive Text Embedding Benchmark
      • RocketQAv2: A Joint Training Method for Dense Passage Retrieval and Passage Re-ranking
      • LLM2Vec: Large Language Models Are Secretly Powerful Text Encoders
      • Embedding and Fine-Tuning in Neural Language Models
      • Embedding Model Construction
      • Demystifying Embedding Spaces using Large Language Models
      • Fine-Tuning Llama for Multi-Stage Text Retrieval
      • Large Language Model Based Text Augmentation Enhanced Personality Detection Model
      • One Embedder, Any Task: Instruction-Finetuned Text Embeddings
      • Vector Databases are not the only solution
      • Knowledge Graphs
        • Harnessing Knowledge Graphs to Elevate AI: A Technical Exploration
        • Unifying Large Language Models and Knowledge Graphs: A Roadmap
      • Approximate Nearest Neighbor (ANN)
      • High Dimensional Data
      • Principal Component Analysis (PCA)
      • Vector Similarity Search - HNSW
      • FAISS (Facebook AI Similarity Search)
      • Unsupervised Dense Retrievers
    • Retrieval Augmented Generation
      • Retrieval-Augmented Generation for Large Language Models: A Survey
      • Fine-Tuning or Retrieval?
      • Revolutionising Information Retrieval: The Power of RAG in Language Models
      • A Survey on Retrieval-Augmented Text Generation
      • REALM: Retrieval-Augmented Language Model Pre-Training
      • Retrieve Anything To Augment Large Language Models
      • Generate Rather Than Retrieve: Large Language Models Are Strong Context Generators
      • Active Retrieval Augmented Generation
      • DSPy: LM Assertions: Enhancing Language Model Pipelines with Computational Constraints
      • DSPy: Compiling Declarative Language Model Calls
      • DSPy: In-Context Learning for Extreme Multi-Label Classification
      • Optimizing Instructions and Demonstrations for Multi-Stage Language Model Programs
      • HYDE: Revolutionising Search with Hypothetical Document Embeddings
      • Enhancing Recommender Systems with Large Language Model Reasoning Graphs
      • Retrieval Augmented Generation (RAG) versus fine tuning
      • RAFT: Adapting Language Model to Domain Specific RAG
      • Summarisation Methods and RAG
      • Lessons Learned on LLM RAG Solutions
      • Stanford: Retrieval Augmented Language Models
      • Overview of RAG Approaches with Vector Databases
      • Mastering Chunking in Retrieval-Augmented Generation (RAG) Systems
    • Semantic Routing
    • Resource Description Framework (RDF)
  • AGENTS
    • What is agency?
      • Rephrase and Respond: Let Large Language Models Ask Better Questions for Themselves
      • Types of Agents
      • The risk of AI agency
      • Understanding Personality in Large Language Models: A New Frontier in AI Psychology
      • AI Agents - Reasoning, Planning, and Tool Calling
      • Personality and Brand
      • Agent Interaction via APIs
      • Bridging Minds and Machines: The Legacy of Newell, Shaw, and Simon
      • A Survey on Language Model based Autonomous Agents
      • Large Language Models as Agents
      • AI Reasoning: A Deep Dive into Chain-of-Thought Prompting
      • Enhancing AI Reasoning with Self-Taught Reasoner (STaR)
      • Exploring the Frontier of AI: The "Tree of Thoughts" Framework
      • Toolformer: Revolutionising Language Models with API Integration - An Analysis
      • TaskMatrix.AI: Bridging Foundational AI Models with Specialised Systems for Enhanced Task Completion
      • Unleashing the Power of LLMs in API Integration: The Rise of Gorilla
      • Andrew Ng's presentation on AI agents
      • Making AI accessible with Andrej Karpathy and Stephanie Zhan
  • Regulation and Ethics
    • Regulation and Ethics
      • Privacy
      • Detecting AI Generated content
      • Navigating the IP Maze in AI: The Convergence of Blockchain, Web 3.0, and LLMs
      • Adverse Reactions to generative AI
      • Navigating the Ethical Minefield: The Challenge of Security in Large Language Models
      • Navigating the Uncharted Waters: The Risks of Autonomous AI in Military Decision-Making
  • DISRUPTION
    • Data Architecture
      • What is a data pipeline?
      • What is Reverse ETL?
      • Unstructured Data and Generatve AI
      • Resource Description Framework (RDF)
      • Integrating generative AI with the Semantic Web
    • Search
      • BM25 - Search Engine Ranking Function
      • BERT as a reranking engine
      • BERT and Google
      • Generative Engine Optimisation (GEO)
      • Billion-scale similarity search with GPUs
      • FOLLOWIR: Evaluating and Teaching Information Retrieval Models to Follow Instructions
      • Neural Collaborative Filtering
      • Federated Neural Collaborative Filtering
      • Latent Space versus Embedding Space
      • Improving Text Embeddings with Large Language Models
    • Recommendation Engines
      • On Interpretation and Measurement of Soft Attributes for Recommendation
      • A Survey on Large Language Models for Recommendation
      • Model driven recommendation systems
      • Recommender AI Agent: Integrating Large Language Models for Interactive Recommendations
      • Foundation Models for Recommender Systems
      • Exploring the Impact of Large Language Models on Recommender Systems: An Extensive Review
      • AI driven recommendations - harming autonomy?
    • Logging
      • A Taxonomy of Anomalies in Log Data
      • Deeplog
      • LogBERT: Log Anomaly Detection via BERT
      • Experience Report: Deep Learning-based System Log Analysis for Anomaly Detection
      • Log-based Anomaly Detection with Deep Learning: How Far Are We?
      • Deep Learning for Anomaly Detection in Log Data: A Survey
      • LogGPT
      • Adaptive Semantic Gate Networks (ASGNet) for log-based anomaly diagnosis
  • Infrastructure
    • The modern data centre
      • Enhancing Data Centre Efficiency: Strategies to Improve PUE
      • TCO of NVIDIA GPUs and falling barriers to entry
      • Maximising GPU Utilisation with Kubernetes and NVIDIA GPU Operator
      • Data Centres
      • Liquid Cooling
    • Servers and Chips
      • The NVIDIA H100 GPU
      • NVIDIA H100 NVL
      • Lambda Hyperplane 8-H100
      • NVIDIA DGX Servers
      • NVIDIA DGX-2
      • NVIDIA DGX H-100 System
      • NVLink Switch
      • Tensor Cores
      • NVIDIA Grace Hopper Superchip
      • NVIDIA Grace CPU Superchip
      • NVIDIA GB200 NVL72
      • Hopper versus Blackwell
      • HGX: High-Performance GPU Platforms
      • ARM Chips
      • ARM versus x86
      • RISC versus CISC
      • Introduction to RISC-V
    • Networking and Connectivity
      • Infiniband versus Ethernet
      • NVIDIA Quantum InfiniBand
      • PCIe (Peripheral Component Interconnect Express)
      • NVIDIA ConnectX InfiniBand adapters
      • NVMe (Non-Volatile Memory Express)
      • NVMe over Fabrics (NVMe-oF)
      • NVIDIA Spectrum-X
      • NVIDIA GPUDirect
      • Evaluating Modern GPU Interconnect
      • Scalable Hierarchical Aggregation and Reduction Protocol (SHARP)
      • Next-generation networking in AI environments
      • NVIDIA Collective Communications Library (NCCL)
    • Data and Memory
      • NVIDIA BlueField Data Processing Units (DPUs)
      • Remote Direct Memory Access (RDMA)
      • High Bandwidth Memory (HBM3)
      • Flash Memory
      • Model Requirements
      • Calculating GPU memory for serving LLMs
      • Transformer training costs
      • GPU Performance Optimisation
    • Libraries and Complements
      • NVIDIA Base Command
      • NVIDIA AI Enterprise
      • CUDA - NVIDIA GTC 2024 presentation
      • RAPIDs
      • RAFT
    • Vast Data Platform
      • Vast Datastore
      • Vast Database
      • Vast Data Engine
      • DASE (Disaggregated and Shared Everything)
      • Dremio and VAST Data
    • Storage
      • WEKA: A High-Performance Storage Solution for AI Workloads
      • Introduction to NVIDIA GPUDirect Storage (GDS)
        • GDS cuFile API
      • NVIDIA Magnum IO GPUDirect Storage (GDS)
      • Vectors in Memory
Powered by GitBook
LogoLogo

Continuum - Accelerated Artificial Intelligence

  • Continuum Website
  • Axolotl Platform

Copyright Continuum Labs - 2023

On this page
  • Schema
  • Analysing Identity in Knowledge Graphs
  • Context in Knowledge Graphs
  • Role of Knowledge Graphs in Data Management
  • Technologies and Standards Enabling Knowledge Graphs
  • Semantic Web Standards in Data and Metadata Management
  • Vision and Implementation
  • Influence of Generative AI and LLMs
  • Conclusion

Was this helpful?

  1. KNOWLEDGE
  2. Vector Databases

Knowledge Graphs

Analysis of Knowledge Graphs and Influence of Generative AI and LLMs

PreviousVector Databases are not the only solutionNextHarnessing Knowledge Graphs to Elevate AI: A Technical Exploration

Last updated 1 year ago

Was this helpful?

The term "knowledge graph" has seen its evolution over decades, with its modern usage gaining momentum post the 2012 announcement by Google.

This surge in interest isn't limited to Google; major tech and commercial entities like Airbnb, Amazon, eBay, Facebook, IBM, LinkedIn, Microsoft, Uber, and others have also ventured into developing their own knowledge graphs.

The academic world has responded in kind, with an increasing volume of literature - ranging from books to papers—exploring various facets of knowledge graphs, from foundational theories to innovative applications.

At the heart of these developments lies the concept of representing data in graph form, a method that has proven particularly beneficial for handling complex and interconnected information across diverse domains.

Unlike traditional data storage models, graphs offer a dynamic and flexible schema that is well-suited for capturing intricate relationships and evolving data landscapes. Additionally, specialised graph query languages enhance the utility of graphs, providing powerful tools for data navigation and knowledge extraction.

Knowledge graphs stand out for their ability to integrate, manage, and derive insights from vast and varied data sources, enabling applications that were previously unfeasible with conventional data management approaches.

The adoption of graph-based knowledge representation facilitates a broad spectrum of operations, from simple data retrieval to advanced analytics and machine learning applications, allowing for a deeper understanding of the underlying information.

This paper aims to offer a comprehensive introduction to knowledge graphs, elucidating their core principles, the methodologies employed to construct and refine them, and their practical applications in real-world scenarios.

Schema

The versatility of knowledge graphs (KGs) is accentuated by their schema, which provides a high-level structure and semantics, guiding the graph's construction and usage.

While traditional databases rely on predefined schemas, KGs offer the flexibility to define, refine, or even bypass the schema as needed, adapting to the graph's evolving nature.

This section delves into three primary schema types in KGs: semantic, validating, and emergent, each serving distinct roles in the graph's ecosystem.

Semantic Schema: This schema defines the meanings of terms used in the graph, facilitating reasoning and inference. By establishing classes and hierarchies, a semantic schema allows for the categorisation of entities and the definition of relationships between them. For instance, if a node is identified as a "Food Festival," it can also be inferred to be an "Event" based on the class hierarchy. This schema layer enhances the graph's interpretability and supports advanced querying and reasoning capabilities.

Validating Schema: While KGs often operate under the Open World Assumption, implying incomplete knowledge, there are scenarios where data completeness is crucial. A validating schema ensures that the graph adheres to specified constraints, like an event having a name, venue, and dates. It serves as a quality check, ensuring that the data meets the necessary criteria for various applications, enhancing the reliability and utility of the graph.

Emergent Schema: Unlike the other two, the emergent schema is not predefined but arises from the data itself, revealing the graph's latent structure. Techniques like quotient graphs categorise nodes based on equivalence relations, offering a summarised view of the graph's topology. This emergent schema can help understand the graph's overarching structure, guide further schema development, or optimize graph querying and integration.

Analysing Identity in Knowledge Graphs

The concept of identity in knowledge graphs (KGs) ensures the accuracy and utility of the data they contain.

When we mention an entity like "Santiago" in a KG, it's crucial to specify which Santiago we're referring to—is it Santiago, Chile, or another city with the same name? This section explores how KGs handle the notion of identity to maintain clarity and avoid ambiguity.

Persistent Identifiers (PIDs)

To differentiate between entities with similar or identical names, KGs employ persistent identifiers, which are unique and long-lasting. These identifiers ensure that even as KGs merge or grow, each entity remains distinct. For example, the use of Digital Object Identifiers (DOIs) for academic papers or ORCID iDs for authors provides a unique reference that can be universally recognized and resolved.

Global Web Identifiers

In the area of the Semantic Web, using Internationalised Resource Identifiers (IRIs) allows KGs to assign unique identifiers not just to web pages but to real-world entities themselves. This distinction helps avoid confusion—for instance, differentiating between a webpage about Santiago and the city of Santiago itself.

External Identity Links

Even with unique identifiers within a KG, linking entities across different KGs can be challenging. Establishing external identity links, such as using the owl:sameAs property, can indicate that two differently identified entities across KGs actually refer to the same real-world entity. This is crucial for integrating and merging knowledge from diverse sources.

Datatypes and Lexicalisation

KGs also deal with datatype values, like dates or numbers, that need to be machine-readable and interpretable. The use of standardised datatypes ensures that these values are processed correctly across various applications. Additionally, KGs often include human-readable labels, aliases, or comments to provide a clearer understanding of what an entity represents, enhancing the graph's accessibility and usability.

Existential Node

Sometimes, a KG must represent entities whose exact identity isn't known but whose existence is implied. Existential nodes allow for the representation of such entities without specifying their precise identity, maintaining the graph's integrity while acknowledging incomplete information.

In essence, managing identity in KGs is a multifaceted challenge that requires a careful balance between machine readability and human interpretability. By employing a combination of unique identifiers, external links, and clear labelling, KGs can effectively maintain accurate and unambiguous representations of the vast array of entities they encompass.

Context in Knowledge Graphs

Understanding the context within which knowledge graph (KG) data is presented is crucial for interpreting and using the information accurately.

Context can be temporal, geographic, provenance-based, or a combination of these and other types, influencing how data is perceived and used.

Direct Representation of Context

Context can be directly incorporated into KGs as data nodes. For instance, temporal data like event dates provide a context indicating when certain facts are applicable. Moreover, transforming relations into nodes allows for the addition of contextual details to the relationships themselves, offering a more granular understanding of the data.

Reification

This method allows for making statements about other statements, essentially providing a way to define context about edges in the graph.

Reification transforms relationships into nodes, to which additional contextual information can be linked. Various forms of reification, such as RDF reification and n-ary relations, enable the explicit representation of context, although each has its nuances and implications for how the KG is interpreted and queried.

Higher-arity Representations

These involve named graphs, property graphs, and RDF* for adding context to edges. Named graphs are particularly flexible, allowing multiple edges to be grouped under a single contextual umbrella. Property graphs attribute context directly to edges, while RDF* extends RDF to include edges as nodes, thereby facilitating the annotation of relationships with contextual information.

Annotations

Annotations provide a structured way to define context, enabling automated reasoning about the data. They can be domain-specific, like temporal or fuzzy annotations, or domain-independent, leveraging algebraic structures to combine and operate on context values. This approach allows for dynamic interpretation of the KG based on context, enhancing the ability to derive meaningful insights from the graph.

Other Contextual Frameworks

Beyond the standard methods, other frameworks like contextual knowledge repositories and contextual OLAP (Online Analytical Processing) offer advanced ways to manage context.

These frameworks enable the assignment of context to sub-graphs or individual data points across multiple dimensions, supporting operations like slice-and-dice or roll-up to analyse KG data at various levels of granularity.

In summary, context in KGs is a multifaceted concept that influences how data is interpreted and used. By explicitly representing context, KGs can provide a more nuanced and accurate representation of knowledge, facilitating better decision-making and insights derived from the data.

Role of Knowledge Graphs in Data Management

  • Functionality: Represents real-world concepts and relationships as a network of connected entities, integrating data from various sources.

  • Utility: Facilitates complex query navigation, searching, and answering.

  • Technology Comparison: Similar to the World Wide Web's hyperlinking system, connecting diverse elements in a network.

Technologies and Standards Enabling Knowledge Graphs

  1. Resource Description Framework (RDF): Framework for representing resource information in a graph, supporting decentralized data querying.

  2. Web Ontology Language (OWL): Adds ontological capabilities to RDF, enabling conceptual and logical data modelling.

  3. SPARQL Protocol and RDF Query Language (SPARQL): Query language for RDF, allowing data retrieval and manipulation from federated sources.

  4. Shapes Constraint Language (SHACL): Describes and validates RDF graphs.

  5. Simple Knowledge Organization System (SKOS): Model for sharing and linking knowledge organization systems on the web.

Semantic Web Standards in Data and Metadata Management

  • Adoption by Tech Giants: Used by companies like Meta, Google, Microsoft, and Amazon for interoperability and content publication.

  • Application in Metadata Management: Enables enterprise-wide metadata-driven knowledge graphs, combining organizational knowledge and relationships.

Vision and Implementation

  • Enterprise-Wide Knowledge Graph: Represents a database of organisational knowledge, enriched with contextual and semantic information.

  • Automatic Population and Data Linking: Facilitates the automatic creation of graphs and data finding based on defined ontologies.

  • Deep Analysis Potential: Allows comprehensive analysis of data-related information, including semantics, origin, lineage, and ownership.

Influence of Generative AI and LLMs

  1. Enhancing Knowledge Graph Creation: AI and LLMs can assist in automating the creation and updating of knowledge graphs, analysing unstructured data and converting it into structured formats suitable for graph integration.

  2. Semantic Analysis and Enrichment: AI can provide deeper semantic understanding and context to the elements within the knowledge graph, enriching the connections and relationships.

  3. Automating Ontology Development: LLMs can help in developing and refining ontologies, crucial for effective knowledge graph implementation.

  4. Data Integration and Analysis: AI can aid in integrating diverse data sources into the knowledge graph, and perform complex data analysis to extract meaningful insights.

  5. Query Optimisation and Interpretation: LLMs can improve query capabilities within knowledge graphs, providing more accurate and contextually relevant responses to complex queries.

  6. Predictive Analytics and Trend Identification: AI can use the interconnected data within knowledge graphs to predict trends and identify patterns not immediately visible.

Conclusion

Knowledge graphs are a powerful tool in modern data management, offering a structured, interconnected way to represent and analyse organizational knowledge.

The integration of generative AI and LLMs in knowledge graph development and management can significantly enhance their capabilities, leading to more dynamic, contextually rich, and insightful data analyses.

This integration aligns with the future vision of data management, where automatic data integration and deep semantic analysis become central to extracting value from vast amounts of data.

Page cover image
LogoKnowledge GraphsarXiv.org
Knowledge Graphs