Found 99 bookmarks
Custom sorting
Choosing the Right Format: How Knowledge Graph Layouts Impact AI Reasoning
Choosing the Right Format: How Knowledge Graph Layouts Impact AI Reasoning
Choosing the Right Format: How Knowledge Graph Layouts Impact AI Reasoning ... šŸ‘‰ Why This Matters Most AI systems blend knowledge graphs (structured data) with large language models (flexible reasoning). But thereā€™s a hidden variable: "how" you translate the graph into text for the AI. Researchers discovered that the formatting choice alone can swing performance by up to "17.5%" on reasoning tasks. Imagine solving 1 in 5 more problems correctly just by adjusting how you present data. šŸ‘‰ What They Built KG-LLM-Bench is a new benchmark to test how language models reason with knowledge graphs. It includes five tasks: - Triple verification (ā€œDoes this fact exist?ā€) - Shortest path finding (ā€œHow are two concepts connected?ā€) - Aggregation (ā€œHow many entities meet X condition?ā€) - Multi-hop reasoning (ā€œWhich entities linked to A also have property B?ā€) - Global analysis (ā€œWhich node is most central?ā€) The team tested seven models (Claude, GPT-4o, Gemini, Llama, Nova) with five ways to ā€œtextualizeā€ graphs, from simple edge lists to structured JSON and semantic web formats like RDF Turtle. šŸ‘‰ Key Insights 1. Format matters more than assumed: Ā Ā - Structured JSON and edge lists performed best overall, but results varied by task. Ā Ā - For example, JSON excels at aggregation tasks (data is grouped by entity), while edge lists help identify central nodes (repeated mentions highlight connections). 2. Models donā€™t cheat: Replacing real entity names with fake ones (e.g., ā€œFranceā€ ā†’ ā€œVerdaniaā€) caused only a 0.2% performance drop, proving models rely on context, not memorized knowledge. 3. Token efficiency: Ā Ā - Edge lists used ~2,600 tokens vs. JSON-LDā€™s ~13,500. Shorter formats free up context space for complex reasoning. Ā Ā - But concise ā‰  always better: structured formats improved accuracy for tasks requiring grouped data. 4. Models struggle with directionality: Ā  Counting outgoing edges (e.g., ā€œWhich countries does France border?ā€) is easier than incoming ones (ā€œWhich countries border France?ā€), likely due to formatting biases. šŸ‘‰ Practical Takeaways - Optimize for your task: Use JSON for aggregation, edge lists for centrality. - Test your model: The best format depends on the LLMā€”Claude thrived with RDF Turtle, while Gemini preferred edge lists. - Donā€™t fear pseudonyms: Masking real names minimally impacts performance, useful for sensitive data. The benchmark is openly available, inviting researchers to add new tasks, graphs, and models. As AI handles larger knowledge bases, choosing the right ā€œdata languageā€ becomes as critical as the reasoning logic itself. Paper: [KG-LLM-Bench: A Scalable Benchmark for Evaluating LLM Reasoning on Textualized Knowledge Graphs] Authors: Elan Markowitz, Krupa Galiya, Greg Ver Steeg, Aram Galstyan
Choosing the Right Format: How Knowledge Graph Layouts Impact AI Reasoning
Ā·linkedin.comĀ·
Choosing the Right Format: How Knowledge Graph Layouts Impact AI Reasoning
Towards Mechanistic Interpretability of Graph Transformers via Attention Graphs
Towards Mechanistic Interpretability of Graph Transformers via Attention Graphs
Our first attempts at mechanistic interpretability of Transformers from the perspective of network science and graph theory! Check out our preprint: arxiv.org/abs/2502.12352 A wonderful collaboration with superstar MPhil students Batu El, Deepro Choudhury, as well as Pietro Lio' as part of the Geometric Deep Learning class last year at University of Cambridge Department of Computer Science and Technology We were motivated by Demis Hassabis calling AlphaFold and other AI systems for scientific discovery as ā€˜engineering artifactsā€™. We need new tools to interpret the underlying mechanisms and advance our scientific understanding. Graph Transformers are a good place to start. The key ideas are: - Attention across multi-heads and layers can be seen as a heterogenous, dynamically evolving graph. - Attention graphs are complex systems represent information flow in Transformers. - We can use network science to extract mechanistic insights from them! More to come on the network science perspective to understanding LLMs next! | 13 comments on LinkedIn
Ā·linkedin.comĀ·
Towards Mechanistic Interpretability of Graph Transformers via Attention Graphs
Unifying Text Semantics and Graph Structures for Temporal Text-attributed Graphs with Large Language Models
Unifying Text Semantics and Graph Structures for Temporal Text-attributed Graphs with Large Language Models
LLMs are taking Graph Neural Networks to the next level: While we've been discussing LLMs for natural language, they're quietly changing how we representā€¦
Unifying Text Semantics and Graph Structures for Temporal Text-attributed Graphs with Large
Ā·linkedin.comĀ·
Unifying Text Semantics and Graph Structures for Temporal Text-attributed Graphs with Large Language Models
Zep packs Temporal Knowledge Graphs + Semantic Entity Extraction + Cypher Queries storageā€”Outperforming MemGPT with 94.8% Accuracy
Zep packs Temporal Knowledge Graphs + Semantic Entity Extraction + Cypher Queries storageā€”Outperforming MemGPT with 94.8% Accuracy
šŸŽā³ Zep packs Temporal Knowledge Graphs + Semantic Entity Extraction + Cypher Queries storageā€”Outperforming MemGPT with 94.8% Accuracy. Build Personalized AIā€¦ | 46 comments on LinkedIn
Zep packs Temporal Knowledge Graphs + Semantic Entity Extraction + Cypher Queries storageā€”Outperforming MemGPT with 94.8% Accuracy
Ā·linkedin.comĀ·
Zep packs Temporal Knowledge Graphs + Semantic Entity Extraction + Cypher Queries storageā€”Outperforming MemGPT with 94.8% Accuracy
MiniRAG Introduces Near-LLM Accurate RAG for Small Language Models with Just 25% of the Storage
MiniRAG Introduces Near-LLM Accurate RAG for Small Language Models with Just 25% of the Storage
šŸ†šŸš£MiniRAG Introduces Near-LLM Accurate RAG for Small Language Models with Just 25% of the Storage. Achieving that by Semantic-Aware Heterogeneous Graphā€¦
MiniRAG Introduces Near-LLM Accurate RAG for Small Language Models with Just 25% of the Storage
Ā·linkedin.comĀ·
MiniRAG Introduces Near-LLM Accurate RAG for Small Language Models with Just 25% of the Storage
MiniRAG Introduces Near-LLM Accurate RAG for Small Language Models with Just 25% of the Storage
MiniRAG Introduces Near-LLM Accurate RAG for Small Language Models with Just 25% of the Storage
šŸ†šŸš£MiniRAG Introduces Near-LLM Accurate RAG for Small Language Models with Just 25% of the Storage. Achieving that by Semantic-Aware Heterogeneous Graphā€¦
MiniRAG Introduces Near-LLM Accurate RAG for Small Language Models with Just 25% of the Storage
Ā·linkedin.comĀ·
MiniRAG Introduces Near-LLM Accurate RAG for Small Language Models with Just 25% of the Storage
KET-RAG: Turbocharging AI Agents with 10x Cheaper, Smarter Knowledge Retrieval
KET-RAG: Turbocharging AI Agents with 10x Cheaper, Smarter Knowledge Retrieval
KET-RAG: Turbocharging AI Agents with 10x Cheaper, Smarter Knowledge Retrieval This Multi-Granular Graph Framework uses PageRank and Keyword-Chunk Graph to have the Best Cost-Quality Tradeoff ļ¹Œļ¹Œļ¹Œļ¹Œļ¹Œļ¹Œļ¹Œļ¹Œļ¹Œ 怋The Problem: Knowledge Graphs Are Expensive (and Clunky) AI agents needĀ contextĀ to answer complex questionsā€”like connecting ā€œCOVID vaccinesā€ to ā€œmyocarditis risksā€ across research papers. But todayā€™s solutions face two nightmares: āœøĀ Cost: Building detailed knowledge graphs with LLMs can costĀ $33,000 for a 5GB legal case. āœøĀ Quality: Cheap methods (like KNN graphs) miss key relationships, leading toĀ 32% worse answers. ā˜†Ā Imagine training an AI doctor that either bankrupts you or misdiagnoses patients. Ouch. ļ¹Œļ¹Œļ¹Œļ¹Œļ¹Œļ¹Œļ¹Œļ¹Œļ¹Œ 怋The Fix: KET-RAGā€™s Two-Layer Brain KET-RAG mergesĀ precisionĀ (knowledge graphs) andĀ efficiencyĀ (keyword-text maps) into one system: āœøĀ Layer 1: Knowledge Graph Skeleton ā˜† Uses PageRank to findĀ core text chunksĀ (like ā€œvaccine side effectsā€ in medical docs). ā˜† Builds a sparse graphĀ onlyĀ on these chunks with LLMsā€”saving 80% of indexing costs. āœøĀ Layer 2: Keyword-Chunk Bipartite Graph ā˜† Links keywords (e.g., ā€œmyocarditisā€) to all related text snippetsā€”no LLM needed. ā˜† Acts as a ā€œfast laneā€ for retrieving context without expensive entity extraction. ļ¹Œļ¹Œļ¹Œļ¹Œļ¹Œļ¹Œļ¹Œļ¹Œļ¹Œ 怋Results: Beating Microsoftā€™s Graph-RAG with Pennies On HotpotQA and MuSiQue benchmarks, KET-RAG: āœøĀ Retrieves 81.6%Ā of critical info vs. Microsoftā€™s 74.6%ā€”with 10x lower cost. āœø Boosts answer accuracy (F1 score) byĀ 32.4%Ā while cutting indexing bills byĀ 20%. āœø Scales to terabytes of data without melting budgets. ā˜†Ā Think of it as a Tesla Model 3 outperforming a Lamborghini at 1/10th the price. ļ¹Œļ¹Œļ¹Œļ¹Œļ¹Œļ¹Œļ¹Œļ¹Œļ¹Œ 怋Why AI Agents Need This AI agents arenā€™t just chatbotsā€”theyā€™reĀ problem solversĀ for medicine, law, and customer service. KET-RAG gives them: āœøĀ Real-time, multi-hop reasoning: Connecting ā€œdrug A ā†’ gene B ā†’ side effect Cā€ in milliseconds. āœøĀ Cost-effective scalability: Deploying agents across millions of documents without going broke. āœøĀ Adaptability: Mixing precise knowledge graphs (for critical data) with keyword maps (for speed). Paper in comments ā‰£ā‰£ā‰£ā‰£ā‰£ā‰£ā‰£ā‰£ā‰£ā‰£ā‰£ā‰£ā‰£ā‰£ā‰£ā‰£ā‰£ā‰£ā‰£ā‰£ā‰£ā‰£ā‰£ā‰£ā‰£ā‰£ 怋Build Your Own Supercharged AI Agent? šŸ”® Join My š‡ššš§šš¬-šŽš§ š€šˆ š€š šžš§š­š¬ š“š«ššš¢š§š¢š§š  TODAY! and Learn Building AI Agent with Langgraph/Langchain, CrewAI and OpenAI Swarm + RAG Pipelines š„š§š«šØš„š„ ššŽš– [34% discount]: šŸ‘‰ https://lnkd.in/eGuWr4CH | 10 comments on LinkedIn
KET-RAG: Turbocharging AI Agents with 10x Cheaper, Smarter Knowledge Retrieval
Ā·linkedin.comĀ·
KET-RAG: Turbocharging AI Agents with 10x Cheaper, Smarter Knowledge Retrieval
Adaptive Graph of Thoughts (AGoT), a test-time framework that replaces rigid prompting strategies (like Chain/Tree of Thought) with dynamic directed acyclic graphs
Adaptive Graph of Thoughts (AGoT), a test-time framework that replaces rigid prompting strategies (like Chain/Tree of Thought) with dynamic directed acyclic graphs
Dynamic Reasoning Graphs + LLMs = šŸ¤ Large Language Models (LLMs) often stumble on complex tasks when confined to linear reasoning. What if they could dynamically restructure their thought process like humans? A new paper introduces Adaptive Graph of Thoughts (AGoT), a test-time framework that replaces rigid prompting strategies (like Chain/Tree of Thought) with dynamic directed acyclic graphs (DAGs). Instead of forcing fixed reasoning steps, AGoT recursively decomposes problems into sub-tasks, selectively expanding only the most critical pathways. This is crucial for industries like scientific research or legal analysis, where problems demand non-linear, nested reasoning. The key innovation lies in complexity checks: AGoT assesses each reasoning node, spawning sub-graphs for intricate subtasks while resolving simpler ones directly. This mirrors how experts allocate mental effortā€”drilling into uncertainties while streamlining obvious steps. The framework achieved 46.2% improvement on GPQA (a notoriously hard science QA benchmark), rivaling gains from compute-heavy fine-tuning. By unifying chain, tree, and graph paradigms, AGoT retains CoTā€™s clarity, ToTā€™s exploration, and GoTā€™s flexibility without manual tuning. The result? LLMs that self-adapt their reasoning depth based on problem complexityā€”no architectural changes needed. For AI practitioners, AGoTā€™s DAG structure offers a principled interface to scale reasoning modularly. ā†“ š–ššš§š§šš š¤š§šØš° š°š”ššš­ š²šØš® š¦š¢š¬š¬šžš? Join my newsletter with 50k+ readers that breaks down all you need to know about the latest LLM research: llmwatch.com šŸ’”
Adaptive Graph of Thoughts (AGoT), a test-time framework that replaces rigid prompting strategies (like Chain/Tree of Thought) with dynamic directed acyclic graphs
Ā·linkedin.comĀ·
Adaptive Graph of Thoughts (AGoT), a test-time framework that replaces rigid prompting strategies (like Chain/Tree of Thought) with dynamic directed acyclic graphs
What is really Graph RAG?
What is really Graph RAG?
What is really Graph RAG? Inspired by "From Local to Global: A Graph RAG Approach to Query-Focused Summarization" paper from Microsoft! How do you combineā€¦ | 12 comments on LinkedIn
What is really Graph RAG?
Ā·linkedin.comĀ·
What is really Graph RAG?
Knowledge Graphs as a source of trust for LLM-powered enterprise question answering
Knowledge Graphs as a source of trust for LLM-powered enterprise question answering
Knowledge Graphs as a source of trust for LLM-powered enterprise question answering That has been our position from the beginning when we started our researchā€¦ | 29 comments on LinkedIn
Knowledge Graphs as a source of trust for LLM-powered enterprise question answering
Ā·linkedin.comĀ·
Knowledge Graphs as a source of trust for LLM-powered enterprise question answering
SimGRAG is a novel method for knowledge graph driven RAG, transforms queries into graph patterns and aligns them with candidate subgraphs using a graph semantic distance metric
SimGRAG is a novel method for knowledge graph driven RAG, transforms queries into graph patterns and aligns them with candidate subgraphs using a graph semantic distance metric
SimGRAG is a novel method for knowledge graph driven RAG, transforms queries into graph patterns and aligns them with candidate subgraphs using a graphā€¦
SimGRAG is a novel method for knowledge graph driven RAG, transforms queries into graph patterns and aligns them with candidate subgraphs using a graph semantic distance metric
Ā·linkedin.comĀ·
SimGRAG is a novel method for knowledge graph driven RAG, transforms queries into graph patterns and aligns them with candidate subgraphs using a graph semantic distance metric
Graphs + Transformers = the best of both worlds
Graphs + Transformers = the best of both worlds
Graphs + Transformers = the best of both worlds šŸ¤ The same models powering breakthroughs in natural language processing are now being adapted for graphsā€¦
Graphs + Transformers = the best of both worlds
Ā·linkedin.comĀ·
Graphs + Transformers = the best of both worlds
Knowledge Graph In-Context Learning
Knowledge Graph In-Context Learning
Unlocking universal reasoning across knowledge graphs. Knowledge graphs (KGs) are powerful tools for organizing and reasoning over vast amounts ofā€¦ | 13 comments on LinkedIn
Knowledge Graph In-Context Learning
Ā·linkedin.comĀ·
Knowledge Graph In-Context Learning