search
HomeTechnology peripheralsAILLM performance is improved by up to 60%! Google ICLR 2024 masterpiece: Let the large language model learn the 'language of graphs'

In the field of computer science, a graph structure consists of nodes (representing entities) and edges (representing relationships between entities).

Pictures are everywhere.

The Internet can be regarded as a huge network, and search engines use graphical methods to organize and display information.

LLMs are mainly trained on regular text, so converting graphs into text understandable by LLMs is a challenging task because graph structures are fundamentally different from text.

At ICLR 2024, a team from Google explored how to transform graph data into a form suitable for LLMs to understand.

LLM性能最高60%提升!谷歌ICLR 2024力作:让大语言模型学会「图的语言」

Paper address: https://openreview.net/pdf?id=IuXR1CCrSi

LLM性能最高60%提升!谷歌ICLR 2024力作:让大语言模型学会「图的语言」

The process of encoding graphs into text using two different methods and feeding text and questions back to LLM

They also developed a tool called GraphQA A benchmark that explores approaches to solving different graph reasoning problems and shows how to formulate these problems in a way that is conducive to LLM solving graph-related problems.

Using the correct method, LLMs can improve the performance of graphics tasks by up to 60%.

GraphOA: An "exam" for LLMs

First, the Google team designed the GraphQA benchmark, which can be viewed as An exam designed to assess LLM's ability to address specific graphics problems.

GraphOA ensures diversity in breadth and number of connections by using multiple types of graphs to find possible biases in LLMs when processing graphs and make the entire process closer to LLMs situations that may be encountered in practical applications.

LLM性能最高60%提升!谷歌ICLR 2024力作:让大语言模型学会「图的语言」

A framework for inference on LLMs using GraphIQA

Although the task is simple, such as checking whether an edge existence, counting the number of nodes or edges, etc., but these tasks require LLMs to understand the relationship between nodes and edges, which is crucial for more complex graph reasoning.

At the same time, the team also explored how to convert graphs into text that LLMs can process, such as solving the following two key issues:

Node encoding: How do we represent a single node? Nodes can include simple integers, common names (people, characters), and letters.

Edge Coding: How do we describe the relationships between nodes? Methods can include parentheses, phrases (such as "are friends"), and symbolic representations (such as arrows).

In the end, the researchers systematically combined various node and edge encoding methods to produce functions like those shown in the figure below.

LLM性能最高60%提升!谷歌ICLR 2024力作:让大语言模型学会「图的语言」

Example of graphical encoding function

How do LLMs perform?

The research team conducted three key experiments on GraphOA:

  1. Testing the ability of LLMs to handle graphics tasks
  2. Test the impact of the size of LLMs on performance
  3. Test the impact of different graph shapes on performance

In Chapter In one experiment, LLMs performed mediocrely. On most basic tasks, LLMs performed no better than random guessing.

But the encoding method significantly affects the results. As shown in the figure below, in most cases, "incident" encoding performs well in most tasks. Choosing the appropriate encoding function can greatly improve the accuracy of the task.

LLM性能最高60%提升!谷歌ICLR 2024力作:让大语言模型学会「图的语言」

Comparison of various graph encoder functions based on different task accuracy

In the second test, the researchers tested the same on different sized models graphics tasks.

In terms of conclusion, in graphical inference tasks, larger models perform better,

However, interestingly, in In the "edge existence" task (determining whether two nodes in the graph are connected), scale is not as important as in other tasks.

Even the largest LLM cannot always beat simple baseline solutions on the cycle checking problem (determining whether a cycle exists in the graph). This shows that LLMs still have room for improvement on certain graph tasks.

LLM性能最高60%提升!谷歌ICLR 2024力作:让大语言模型学会「图的语言」

The impact of model capacity on graph reasoning tasks of PaLM 2-XXS, XS, S and L

In the third test, the researchers used GraphOA to generate graphs with different structures for analysis as to whether the graph structure would affect the ability of LMMs to solve problems.

LLM性能最高60%提升!谷歌ICLR 2024力作:让大语言模型学会「图的语言」

# Examples of graphs generated by GraphQA’s different graph generators. ER, BA, SBM and SFN are Erdős-Rényi, Barabási-Albert, stochastic block model and scale-free network respectively.

The results show that the structure of the graph has a great impact on the performance of LLMs.

For example, in a task asking whether cycles exist, LLMs perform well in closely connected graphs (where cycles are common) but not in path graphs (where cycles are common). never happens).

But at the same time, providing some mixed samples helps LLMs adapt. For example, in the cycle detection task, the researchers added some examples that contain cycles and some that do not contain cycles in the prompts as less Examples of sample learning improve the performance of LLMs in this way.

LLM性能最高60%提升!谷歌ICLR 2024力作:让大语言模型学会「图的语言」

Compare different graph generators on different graph tasks. The main observation is that graph structure has a significant impact on the performance of LLM. ER, BA, SBM and SFN refer to Erdős-Rényi, Barabási-Albert, stochastic block model and scale-free network respectively.

This is just the beginning of letting LLMs understand graphs

In the paper, the Google team initially explored how to best represent graphs as text so that LLMs can understand them.

With the help of correct coding techniques, the accuracy of LLMs on graph problems is significantly improved (from about 5% to over 60% improvement).

At the same time, three main influencing factors were also determined, which are the encoding method of converting graphics into text, the task types of different graphics, and the density structure of graphics.

This is just the beginning for LLMs to understand graphs. With the help of the new benchmark GraphQA, we look forward to further research to explore more possibilities of LLMs.

The above is the detailed content of LLM performance is improved by up to 60%! Google ICLR 2024 masterpiece: Let the large language model learn the 'language of graphs'. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:51CTO.COM. If there is any infringement, please contact admin@php.cn delete
Tool Calling in LLMsTool Calling in LLMsApr 14, 2025 am 11:28 AM

Large language models (LLMs) have surged in popularity, with the tool-calling feature dramatically expanding their capabilities beyond simple text generation. Now, LLMs can handle complex automation tasks such as dynamic UI creation and autonomous a

How ADHD Games, Health Tools & AI Chatbots Are Transforming Global HealthHow ADHD Games, Health Tools & AI Chatbots Are Transforming Global HealthApr 14, 2025 am 11:27 AM

Can a video game ease anxiety, build focus, or support a child with ADHD? As healthcare challenges surge globally — especially among youth — innovators are turning to an unlikely tool: video games. Now one of the world’s largest entertainment indus

UN Input On AI: Winners, Losers, And OpportunitiesUN Input On AI: Winners, Losers, And OpportunitiesApr 14, 2025 am 11:25 AM

“History has shown that while technological progress drives economic growth, it does not on its own ensure equitable income distribution or promote inclusive human development,” writes Rebeca Grynspan, Secretary-General of UNCTAD, in the preamble.

Learning Negotiation Skills Via Generative AILearning Negotiation Skills Via Generative AIApr 14, 2025 am 11:23 AM

Easy-peasy, use generative AI as your negotiation tutor and sparring partner. Let’s talk about it. This analysis of an innovative AI breakthrough is part of my ongoing Forbes column coverage on the latest in AI, including identifying and explaining

TED Reveals From OpenAI, Google, Meta Heads To Court, Selfie With MyselfTED Reveals From OpenAI, Google, Meta Heads To Court, Selfie With MyselfApr 14, 2025 am 11:22 AM

The ​TED2025 Conference, held in Vancouver, wrapped its 36th edition yesterday, April 11. It featured 80 speakers from more than 60 countries, including Sam Altman, Eric Schmidt, and Palmer Luckey. TED’s theme, “humanity reimagined,” was tailor made

Joseph Stiglitz Warns Of The Looming Inequality Amid AI Monopoly PowerJoseph Stiglitz Warns Of The Looming Inequality Amid AI Monopoly PowerApr 14, 2025 am 11:21 AM

Joseph Stiglitz is renowned economist and recipient of the Nobel Prize in Economics in 2001. Stiglitz posits that AI can worsen existing inequalities and consolidated power in the hands of a few dominant corporations, ultimately undermining economic

What is Graph Database?What is Graph Database?Apr 14, 2025 am 11:19 AM

Graph Databases: Revolutionizing Data Management Through Relationships As data expands and its characteristics evolve across various fields, graph databases are emerging as transformative solutions for managing interconnected data. Unlike traditional

LLM Routing: Strategies, Techniques, and Python ImplementationLLM Routing: Strategies, Techniques, and Python ImplementationApr 14, 2025 am 11:14 AM

Large Language Model (LLM) Routing: Optimizing Performance Through Intelligent Task Distribution The rapidly evolving landscape of LLMs presents a diverse range of models, each with unique strengths and weaknesses. Some excel at creative content gen

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.