kelseye commited on
Commit
b59baf6
·
verified ·
1 Parent(s): a475629

Upload folder using huggingface_hub (part 41)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. parse/dev/wtqb7pNL4e/images/b6213e178644a5b3e6213f45feb1937cc09cb815d6d310c4963cac95ee1d90ad.jpg +3 -0
  2. parse/dev/wtqb7pNL4e/images/bb54f955a13519ed64ec8410487f0954ffba661306ed264ecbb69d154603c621.jpg +3 -0
  3. parse/dev/wtqb7pNL4e/images/d518b9ae7d6c29a6948c80a9da36ccb44e15dafc179c1739a99e567ff35cb492.jpg +3 -0
  4. parse/dev/wtqb7pNL4e/images/e78235f99159ec64fcfd0c1cc222d028fbb3b2a312e320608fbdb73ebc269c05.jpg +3 -0
  5. parse/dev/wtqb7pNL4e/images/eff8b3c02a13b2e18152fa691d348f95c6b9337330b6740d265f909ce8f39160.jpg +3 -0
  6. parse/dev/wtqb7pNL4e/images/f193d175910023a4e4121538aa6f9e3bbe843260cf658d65102cf87bdf9eec45.jpg +3 -0
  7. parse/dev/wtqb7pNL4e/images/fdade0780fe01c69da13a6ba3cc801604d663e531a77a0ec9c410ef58ab58bc8.jpg +3 -0
  8. parse/dev/wtqb7pNL4e/wtqb7pNL4e.md +281 -0
  9. parse/dev/wtqb7pNL4e/wtqb7pNL4e_content_list.json +1613 -0
  10. parse/dev/wtqb7pNL4e/wtqb7pNL4e_layout.pdf +3 -0
  11. parse/dev/wtqb7pNL4e/wtqb7pNL4e_middle.json +0 -0
  12. parse/dev/wtqb7pNL4e/wtqb7pNL4e_model.json +0 -0
  13. parse/dev/wtqb7pNL4e/wtqb7pNL4e_origin.pdf +3 -0
  14. parse/dev/wtqb7pNL4e/wtqb7pNL4e_span.pdf +3 -0
  15. parse/dev/wu1Za9dY1GY/images/158ad27263699ea72f25bbed7a559e8105e848514b253b182697ff23b830b035.jpg +3 -0
  16. parse/dev/wu1Za9dY1GY/images/161afb7c8fe3b225a116aca1c29550bce3b7356f0a695a4b8dc45e663240b761.jpg +3 -0
  17. parse/dev/wu1Za9dY1GY/images/2ec274959e36952618ec0ff959abbbddb69a0f73c67529d1a7cf733ab9f651b2.jpg +3 -0
  18. parse/dev/wu1Za9dY1GY/images/38cfa92648ebc7d2fef258a376fc26b04389a06993ab5403fcb8c90c3e1c92e7.jpg +3 -0
  19. parse/dev/wu1Za9dY1GY/images/3ad97f3a10ea32ca7315ac0dc96e4387d23d2865cfb14e64c01a2c9767d84ec9.jpg +3 -0
  20. parse/dev/wu1Za9dY1GY/images/428a5e5c89f878cc5d6528059d6432d6dff300a8d96a8efacf793197e4c3f806.jpg +3 -0
  21. parse/dev/wu1Za9dY1GY/images/6ddf7d6cf3a9de37dbc564849fee230efbd8eeb2b23358562ae93e3236be1584.jpg +3 -0
  22. parse/dev/wu1Za9dY1GY/images/78ad069479b7937017dcd8520cb023ae37d8e27833b1aad3285ae0849b91f42b.jpg +3 -0
  23. parse/dev/wu1Za9dY1GY/images/895174e740f8636e65924ffc7127b01d92249afe55300deecae9499779c15793.jpg +3 -0
  24. parse/dev/wu1Za9dY1GY/images/92891ebe40c26711c110439f6f2b27d4b7d3205d64c74a9de02cbe7f22db32e5.jpg +3 -0
  25. parse/dev/wu1Za9dY1GY/images/a29308cb28d2969f4ba9f675aa076030e5bc284ddef2ead454fa7460e89aa9d4.jpg +3 -0
  26. parse/dev/wu1Za9dY1GY/images/a94dbcec6fee11ffa586686a5f8520593ff0d34c2b18b72508a5c3dfb0e94089.jpg +3 -0
  27. parse/dev/wu1Za9dY1GY/images/b4ef111e803e25f9826861bc78bdc35ca9f37a8024d2030b08ff18c3f29eac56.jpg +3 -0
  28. parse/dev/wu1Za9dY1GY/images/d3898038f7de14b5a150cd537375d99878e8957bc3547b4f947ec335d3610fc8.jpg +3 -0
  29. parse/dev/wu1Za9dY1GY/images/e51fa85ddca21ba377c1c823b7bee4f7915f0f3e88ecd1bb97e39ec782ca32d7.jpg +3 -0
  30. parse/dev/wu1Za9dY1GY/images/ec96ce2bd471f56111504a923d0978d5e6f8c1a68dc030226eb91784d1db94dc.jpg +3 -0
  31. parse/dev/wu1Za9dY1GY/images/eef2f840303fc616e86be7ea792de83fe2c7a2c0a3133771e736b13037c1ca8a.jpg +3 -0
  32. parse/dev/wu1Za9dY1GY/wu1Za9dY1GY.md +320 -0
  33. parse/dev/wu1Za9dY1GY/wu1Za9dY1GY_content_list.json +1432 -0
  34. parse/dev/wu1Za9dY1GY/wu1Za9dY1GY_layout.pdf +3 -0
  35. parse/dev/wu1Za9dY1GY/wu1Za9dY1GY_middle.json +0 -0
  36. parse/dev/wu1Za9dY1GY/wu1Za9dY1GY_model.json +0 -0
  37. parse/dev/wu1Za9dY1GY/wu1Za9dY1GY_origin.pdf +3 -0
  38. parse/dev/wu1Za9dY1GY/wu1Za9dY1GY_span.pdf +3 -0
  39. parse/dev/wv79UiY5U7/images/2679cf42c5ca7afde4a76a523590adcad544a86c1101f2b35addc5e22e0d29de.jpg +3 -0
  40. parse/dev/wv79UiY5U7/images/5880a1e3bd6cd3c1d7c81a867381c35d10f2f48c5a760f279138df1cf0bdf3a4.jpg +3 -0
  41. parse/dev/wv79UiY5U7/images/59cb387eaa11efcf1fe9990004718392ee957360c7b38bc20eb8747030037cea.jpg +3 -0
  42. parse/dev/wv79UiY5U7/images/9109d63e5c77bff9c3902a83a05ce5457cdefa8e3688c476533290a693e205f7.jpg +3 -0
  43. parse/dev/wv79UiY5U7/images/a6f75623bf6c27b9b39c97e30c9dccdd5ceeb53188a88c396f0b67988df825f7.jpg +3 -0
  44. parse/dev/wv79UiY5U7/images/b19f84fd0a3b52e2e475622b0bb0a3e1d862d65ede861c5eb52a84372a704122.jpg +3 -0
  45. parse/dev/wv79UiY5U7/images/b724073f5d31a2a624b4d55823d3db3c56d82fc197f5992637a482159ecf6e7b.jpg +3 -0
  46. parse/dev/wv79UiY5U7/images/b7f9ce0a993f619a4c9e733eba30581534866055483bee3d24f984c1a430c635.jpg +3 -0
  47. parse/dev/wv79UiY5U7/images/bd0d9934e6787c5f94594cb8179e809d60cfc4a1ff3bb7ada286ba3543b5e6bd.jpg +3 -0
  48. parse/dev/wv79UiY5U7/images/dd71c6cf0bdb2bfce4295a9727ef57802e3b4792986d2731663ccef0b54643af.jpg +3 -0
  49. parse/dev/wv79UiY5U7/images/ec55786e780ac343012b7e186f7424d0f65b7f4749737d805de26a12cfaadb2f.jpg +3 -0
  50. parse/dev/wv79UiY5U7/images/f93276185cbc74760b08a71a948ec69ff823864460eba48e32ddb37a732b76e3.jpg +3 -0
parse/dev/wtqb7pNL4e/images/b6213e178644a5b3e6213f45feb1937cc09cb815d6d310c4963cac95ee1d90ad.jpg ADDED

Git LFS Details

  • SHA256: b306b85709a9a276462acbfe8fdc521ab3d5e362a0d8427f17388249dc757983
  • Pointer size: 130 Bytes
  • Size of remote file: 62.7 kB
parse/dev/wtqb7pNL4e/images/bb54f955a13519ed64ec8410487f0954ffba661306ed264ecbb69d154603c621.jpg ADDED

Git LFS Details

  • SHA256: 0f1b14b8831cd2fd1b57e57e9cb87a293dff1148bb05faf143ed3676bcb6791f
  • Pointer size: 129 Bytes
  • Size of remote file: 2.45 kB
parse/dev/wtqb7pNL4e/images/d518b9ae7d6c29a6948c80a9da36ccb44e15dafc179c1739a99e567ff35cb492.jpg ADDED

Git LFS Details

  • SHA256: c1043d61d944e0781a36b9e6bcdf263d056faf17421714c847b2492a92749b54
  • Pointer size: 130 Bytes
  • Size of remote file: 10.5 kB
parse/dev/wtqb7pNL4e/images/e78235f99159ec64fcfd0c1cc222d028fbb3b2a312e320608fbdb73ebc269c05.jpg ADDED

Git LFS Details

  • SHA256: 58147ccacefc78cc1ac0b36ef8b77093bdfa8d4071edc529fedfcefba2e304fc
  • Pointer size: 130 Bytes
  • Size of remote file: 63.5 kB
parse/dev/wtqb7pNL4e/images/eff8b3c02a13b2e18152fa691d348f95c6b9337330b6740d265f909ce8f39160.jpg ADDED

Git LFS Details

  • SHA256: 41febcab9c3f082006ba7ce83b73d25df8c252ce0dc65d6a300210a44d8dc83c
  • Pointer size: 129 Bytes
  • Size of remote file: 4.03 kB
parse/dev/wtqb7pNL4e/images/f193d175910023a4e4121538aa6f9e3bbe843260cf658d65102cf87bdf9eec45.jpg ADDED

Git LFS Details

  • SHA256: 5c6d53f633ac5923949c48aeaae01d22bd54b6cf65c7260e88ed75de6a90c97b
  • Pointer size: 129 Bytes
  • Size of remote file: 5.67 kB
parse/dev/wtqb7pNL4e/images/fdade0780fe01c69da13a6ba3cc801604d663e531a77a0ec9c410ef58ab58bc8.jpg ADDED

Git LFS Details

  • SHA256: 295da4421e3d34b199a9ba52ebd8ebbf66b24b86c2bb15bdbfd0a5c9d7a42e2c
  • Pointer size: 131 Bytes
  • Size of remote file: 109 kB
parse/dev/wtqb7pNL4e/wtqb7pNL4e.md ADDED
@@ -0,0 +1,281 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Can ChatGPT Assess Human Personalities? A General Evaluation Framework
2
+
3
+ Haocong Rao1,2 Cyril Leung2,3 Chunyan Miao1,2∗ $^ { 1 }$ School of Computer Science and Engineering, Nanyang Technological University, Singapore 2LILY Research Centre, Nanyang Technological University, Singapore 3Department of Electrical and Computer Engineering The University of British Columbia, Canada {haocong001,ascymiao}@ntu.edu.sg {cleung}@ece.ubc.ca
4
+
5
+ # Abstract
6
+
7
+ Large Language Models (LLMs) especially ChatGPT have produced impressive results in various areas, but their potential human-like psychology is still largely unexplored. Existing works study the virtual personalities of LLMs but rarely explore the possibility of analyzing human personalities via LLMs. This paper presents a generic evaluation framework for LLMs to assess human personalities based on Myers–Briggs Type Indicator (MBTI) tests. Specifically, we first devise unbiased prompts by randomly permuting options in MBTI questions and adopt the average testing result to encourage more impartial answer generation. Then, we propose to replace the subject in question statements to enable flexible queries and assessments on different subjects from LLMs. Finally, we re-formulate the question instructions in a manner of correctness evaluation to facilitate LLMs to generate clearer responses. The proposed framework enables LLMs to flexibly assess personalities of different groups of people. We further propose three evaluation metrics to measure the consistency, robustness, and fairness of assessment results from state-ofthe-art LLMs including ChatGPT and GPT-4. Our experiments reveal ChatGPT’s ability to assess human personalities, and the average results demonstrate that it can achieve more consistent and fairer assessments in spite of lower robustness against prompt biases compared with InstructGPT†.
8
+
9
+ # 1 Introduction
10
+
11
+ Pre-trained Large Language Models (LLMs) have been widely used in many applications including translation, storytelling, and chatbots (Devlin et al., 2019; Raffel et al., 2020; Yang et al., 2022; Yuan et al., 2022; Ouyang et al., 2022; Bubeck et al.,
12
+
13
+ 2023). ChatGPT (Ouyang et al., 2022) and its enhanced version GPT-4 are currently recognized as the most capable chatbots, which can perform context-aware conversations, challenge incorrect premises, and reject inappropriate requests with a vast knowledge base and human-centered finetuning. These advantages make them well-suited for a variety of real-world scenarios such as business consultation and educational services (Zhai, 2022; van Dis et al., 2023; Bubeck et al., 2023).
14
+
15
+ Recent studies have revealed that LLMs may possess human-like self-improvement and reasoning characteristics (Huang et al., 2022; Bubeck et al., 2023). The latest GPT series can pass over $90 \%$ of Theory of Mind (ToM) tasks with strong analysis and decision-making capabilities (Kosinski, 2023; Zhuo et al., 2023; Moghaddam and Honey, 2023). In this context, LLMs are increasingly assumed to have virtual personalities and psychologies, which plays an essential role in guiding their responses and interaction patterns (Jiang et al., 2022). Based on this assumption, a few works (Li et al., 2022; Jiang et al., 2022; Karra et al., 2022; Caron and Srivastava, 2022; Miotto et al., 2022) apply psychological tests such as Big Five Factors (Digman, 1990) to evaluate their pseudo personalities (e.g., behavior tendency), so as to detect societal and ethical risks (e.g., racial biases) in their applications.
16
+
17
+ Although existing works have investigated the personality traits of LLMs, they rarely explored whether LLMs can assess human personalities. This open problem can be the key to verifying the ability of LLMs to perform psychological (e.g., personality psychology) analyses and revealing their potential understanding of humans, i.e., “How do LLMs think about humans?”. Specifically, assessing human personalities from the point of LLMs (1) enables us to access the perception of LLMs on humans to better understand their potential response motivation and communication patterns (Jiang et al., 2020); (2) helps reveal whether LLMs possess biases on people so that we can optimize them (e.g., add stricter rules) to generate fairer contents; (3) helps uncover potential ethical and social risks (e.g., misinformation) of LLMs (Weidinger et al., 2021) which can affect their reliability and safety, thereby facilitating the development of more trustworthy and human-friendly LLMs.
18
+
19
+ To this end, we introduce the novel idea of letting LLMs assess human personalities, and propose a general evaluation framework (illustrated Fig. 1) to acquire quantitative human personality assessments from LLMs via Myers–Briggs Type Indicators (MBTI) (Myers and McCaulley, 1985). Specifically, our framework consists of three key components: (1) Unbiased prompts, which construct instructions of MBTI questions using randomlypermuted options and average testing results to achieve more consistent and impartial answers; (2) Subject-replaced query, which converts the original subject of the question statements into a target subject to enable flexible queries and assessments from LLMs; (3) Correctness-evaluated instruction, which re-formulates the question instructions for LLMs to analyze the correctness of the question statements, so as to obtain clearer responses. Based on the above components, the proposed framework re-formulates the instructions and statements of MBTI questions in a flexible and analyzable way for LLMs, which enables us to query them about human personalities. Furthermore, we propose three quantitative evaluation metrics to measure the consistency of LLMs’ assessments on the same subject, their assessment robustness against random perturbations of input prompts (defined as “prompt biases”), and their fairness in assessing subjects with different genders. In our work, we mainly focus on evaluating ChatGPT and two representative state-of-the-art LLMs (InstructGPT, GPT4) based on the proposed metrics. Experimental results showcase the ability of ChatGPT in analyzing personalities of different groups of people. This can provide valuable insights for the future exploration of LLM psychology, sociology, and governance.
20
+
21
+ Our contributions can be summarized as follows:
22
+
23
+ • We for the first time explore the possibility of assessing human personalities by LLMs, and propose a general framework for LLMs to conduct quantitative evaluations via MBTI.
24
+
25
+ • We devise unbiased prompts, subject-replaced queries, and correctness-evaluated instructions to encourage LLMs to perform a reliable flexible assessment of human personalities.
26
+
27
+ • We propose three evaluation metrics to measure the consistency, robustness, and fairness of LLMs in assessing human personalities.
28
+
29
+ • Our experiments show that both ChatGPT and its counterparts can independently assess human personalities. The average results demonstrate that ChatGPT and GPT-4 achieve more consistent and fairer assessments with less gender bias than InstructGPT, while their results are more sensitive to prompt biases.
30
+
31
+ # 2 Related Works
32
+
33
+ Personality Measurement. The commonly-used personality modeling schemes include the three trait personality measure (Eysenck, 2012), the Big Five personality trait measure (Digman, 1990), the Myers–Briggs Type Indicator (MBTI) (Myers, 1962; Myers and McCaulley, 1985), and the 16 Personality Factor questionnaire (16PF) (Schuerger, 2000). Five dimensions are defined in the Big Five personality traits measure (Digman, 1990) to classify major sources of individual differences and analyze a person’s characteristics. MBTI (Myers and McCaulley, 1985) identifies personality from the differences between persons on the preference to use perception and judgment. (Karra et al., 2022; Caron and Srivastava, 2022) leverage the Big Five trait theory to quantify the personality traits of language models, while (Jiang et al., 2022) further develops machine personality inventory to standardize this evaluation. In (Li et al., 2022), multiple psychological tests are combined to analyze the LLMs’ safety. Unlike existing studies that evaluate personalities of LLMs, our work is the first attempt to explore human personality analysis via LLMs.
34
+
35
+ Biases in Language Models. Most recent language models are pre-trained on the large-scale datasets or Internet texts that usually contains unsafe (e.g., toxic) contents, which may cause the model to generate biased answers that violate prevailing societal values (Bolukbasi et al., 2016; Sheng et al., 2019; Bordia and Bowman, 2019; Nadeem et al., 2021; Zong and Krishnamachari, 2022; Zhuo et al., 2023). (Bolukbasi et al., 2016) shows that biases in the geometry of wordembeddings can reflect gender stereotypes. The gender bias in word-level language models is quantitatively evaluated in (Bordia and Bowman, 2019).
36
+
37
+ In (Nadeem et al., 2021), the authors demonstrate that popular LLMs such as GPT-2 (Radford et al., 2019) possess strong stereotypical biases on gender, profession, race, and religion. To reduce such biases, many state-of-the-art LLMs such as ChatGPT apply instruction-finetuning with non-toxic corpora and instructions to improve their safety. (Zhuo et al., 2023) reveals that ChatGPT can generate socially safe responses with fewer biases than other LLMs under English lanuage settings. In contrast to previous works, our framework enables us to evaluate whether LLMs possess biased perceptions and assessments on humans (e.g., personalities), which helps us better understand the underlying reasons for the LLMs’ aberrant responses.
38
+
39
+ ![](images/241a0262a34b9fd2f157ee10d274aeee1c95904d5edb217c047fb61389fdb570.jpg)
40
+ Figure 1: Overview of our framework: (a) The queried subject is replaced in the original statements of MBTI questions; (b) We construct correctness-evaluated instructions and (c) randomly permute options to build unbiased prompts with the subject-replaced statements (d), which are assessed by LLMs to infer the personality.
41
+
42
+ # 3 The Proposed Framework
43
+
44
+ # 3.1 Unbiased Prompt Design
45
+
46
+ LLMs are typically sensitive to prompt biases (e.g., varying word orders), which can significantly influence the coherence and accuracy of the generated responses especially when dealing with long text sequences (Zhao et al., 2021). To encourage more consistent and impartial answers, we propose to design unbiased prompts for the input questions. In particular, for each question in an independent testing (i.e., MBTI questionnaire), we randomly permute all available options (e.g., agree, disagree) in its instruction while not changing the question statement, and adopt the average results of multiple independent testings as the final result.
47
+
48
+ Formally, the instruction and statement for the $i ^ { t h }$ question are defined as $I _ { i }$ and $S _ { i }$ , where $i \in$ $\{ 1 , \cdots , n \}$ and $n$ is the total number of questions in the testing. We have $m$ available options $O _ { I } = \{ o _ { 1 } , o _ { 2 } , \cdots , o _ { m } \}$ in the instruction, which corresponds to $\{ A g r e e$ , Generally agree, Partially agree, Neither agree nor disagree, Partially disagree, Generally disagree, Disagree} including seven levels (i.e., $m = 7$ ) from agreement to disagreement in the MBTI questionnaire. We use $\Omega ( O _ { I } )$ to denote all possible permutations of options in $O _ { I }$ , and a random permutation can be represented as ${ \cal O } _ { \mathcal { R } } = \{ o _ { r _ { 1 } } , o _ { r _ { 2 } } , \cdots , o _ { r _ { m } } \} \in \Omega ( { \cal O } _ { I } )$ where $r _ { i } \in \{ 1 , 2 , \cdots , m \}$ , and $o _ { r _ { i } } \neq o _ { r _ { j } }$ iff $i \neq j$ Then, we utilize the randomly permuted options $O _ { \mathcal { R } }$ to construct the instruction $I _ { i }$ for the $i ^ { t h }$ question with:
49
+
50
+ Instruction: Do you $o _ { r _ { 1 } } , o _ { r _ { 2 } } , \cdots$ or $o _ { r _ { m } }$ with the following statement. Why?
51
+
52
+ We combine the above instruction and the question statement as the prompt to query LLMs. An example prompt for a question in the MBTI questionnaire is provided as follows.
53
+
54
+ Instruction: Do you disagree, agree, generally disagree, generally agree, neither agree nor disagree, partially disagree or partially agree with the following statement. Why?
55
+
56
+ Statement: You usually stay calm, even under a lot of pressure.
57
+
58
+ Answer: “As an AI language model, I do not have personal experiences or emotions, so I cannot agree or disagree with the statement. However, I can provide some general information on the topic. Some individuals are naturally more composed under pressure, while others may ......”
59
+
60
+ However, such a query, conducted in a selftesting manner, can only elicit neutral answers as shown above, since LLMs such as ChatGPT are trained to not possess personal thinking (e.g., emotions). This motivates us to propose the subjectreplaced query and correctness-evaluated instruction as illustrated below.
61
+
62
+ # 3.2 Subject-Replaced Query
63
+
64
+ As our goal is to let LLMs analyze human personalities instead of querying itself (i.e., self-reporting), we propose the subject-replaced query (SRQ) by converting the original subject (i.e., “You”) of each question into a specific subject-of-interest. For example, when we hope to let LLMs assess the general personality of men, we can replace the subject “You” with “Men”, and correspondingly change the pronoun “your” to “their” (see the example below). Original Statement: You spend a lot of your free time exploring various random topics that pique your interest.
65
+
66
+ SRQ Statement: Men spend a lot of their free time exploring various random topics that pique their interests.
67
+
68
+ In this way, we can request the LLMs to analyze and infer the choices/answers of a specific subject, so as to query LLMs about the personality of such subject based on a certain personality measure (e.g., MBTI). The proposed SRQ is general and scalable. By simply replacing the subject in the test (see Fig. 1), we can convert the original selfreport questionnaire into an analysis of expected subjects from the point of LLMs.
69
+
70
+ In our work, we choose large groups of people (e.g., “Men”, “Barbers”) instead of certain persons as the assessed subjects. First, as our framework only uses the subject name without extra personal information to construct MBTI queries, it is unrealistic to let LLMs assess the MBTI answers or personality of a certain person who is out of their learned knowledge. Second, the selected subjects are common in the knowledge base of LLMs and can test the basic personality assessment ability of LLMs, which is the main focus of our work. Moreover, subjects with different professions such as “Barbers” are frequently used to measure the bias in LLMs (Nadeem et al., 2021), thus we select such representative professions to better evaluate the consistency, robustness, and fairness of LLMs.
71
+
72
+ # 3.3 Correctness-Evaluated Instruction
73
+
74
+ Directly querying LLMs about human personalities with the original instruction can be intractable, as LLMs such as ChatGPT are trained to NOT possess personal emotions or beliefs. As shown in Fig. 2, they can only generate a neutral opinion when we query their agreement or disagreement, regardless of different subjects. To solve this challenge, we propose to convert the original agreement-measured instruction (i.e., querying degree of agreement) into correctness-evaluated instruction (CEI) by letting LLMs evaluate the correctness of the statement in questions. Specifically, we convert the original options $\{ A g r e e$ , Generally agree, Partially agree, Neither agree nor disagree, Partially disagree, Generally disagree, Disagree} into {Correct, Generally correct, Partially correct, Neither correct nor wrong, Partially wrong, Generally wrong, Wrong}, and then construct an unbiased prompt (see Sec. 3.1) based on the proposed CEI.
75
+
76
+ As shown in Fig. 2, using CEI enables ChatGPT to provide a clearer response to the question instead of giving a neutral response. Note that the CEI is essentially equivalent to the agreement-measured instruction and can be flexibly extended with other forms (e.g., replacing “correct” by “right”).
77
+
78
+ ![](images/979a135d67d9ff852a13a7117066c31de30d6ee8b00a70ee3bd2a84454c865f9.jpg)
79
+ Figure 2: Comparison of answers generated by ChatGPT when adopting different types of instructions. Note that the agreement-measured instruction always leads to a neutral answer in practice.
80
+
81
+ # 3.4 The Entire Framework
82
+
83
+ The overview of our framework is shown in Fig. 1. Given the original statement $S _ { i }$ and instruction $I _ { i }$ of the $i ^ { t h }$ question, we construct the new statement $S _ { i } ^ { \prime }$ based on SRQ (Sec. 3.2) and the new instruction $I _ { i } ^ { \prime }$ based on CEI (Sec. 3.3), which are combined to construct the unbiased prompt $P _ { i }$ (Sec. 3.1). We query the LLM to obtain the answer $A _ { i }$ by
84
+
85
+ $$
86
+ A _ { i } \sim { \mathcal { M } } _ { \tau } ( P _ { i } ) ,
87
+ $$
88
+
89
+ where $\mathcal { M } _ { \tau }$ denotes the LLM trained with the temperature $\tau$ , $\mathcal { M } _ { \tau } ( P _ { i } )$ represents the answer sampling distribution of LLM conditioned on the input prompt $P _ { i }$ , $A _ { i }$ represents the most likely answer generated from $\mathcal { M } _ { \tau } ( P _ { i } )$ , $i \in \{ 1 , 2 , \cdots , n \}$ is the index of different questions, and $n$ is the number of all questions in MBTI. We adopt the default temperature used in training standard GPT models. The generated answer is further parsed with several simple rules, which ensures that it contains or can be transformed to an exact option. For instance, when we obtain the explicit option “generally incorrect”, the parsing rules can convert this answer to “generally wrong” to match the existing options.
90
+
91
+ We query the LLM with the designed prompt $P _ { i }$ (see Eq. 1) in the original order of the questionnaire to get all parsed answers. Based on the complete answers, we obtain the testing result (e.g., MBTI personality scores) of a certain subject from the view of LLM. Then, we independently repeat this process for multiple times, and average all results as the final result. It is worth noting that every question is answered only once in each independent testing, so as to retain a continuous testing context to encourage the coherence of LLM’s responses.
92
+
93
+ # 3.5 Evaluation Metrics
94
+
95
+ To systematically evaluate the ability of LLMs to assess human personalities, we propose three metrics in terms of consistency, robustness, and fairness as follows.
96
+
97
+ Consistency Scores. The personality results of the same subject assessed by an LLM should be consistent. For example, when we perform different independent assessments of a specific subject via the LLM, it is desirable to achieve an identical or highly similar assessment. Therefore, we propose to use the similarity between personality scores of all independent testing results and their final result (i.e., mean scores) to compute the consistency score of assessments.
98
+
99
+ Formally, we define $X ^ { i } = ( x _ { 1 } ^ { i } , x _ { 2 } ^ { i } , \cdot \cdot \cdot , x _ { k } ^ { i } )$ as the personality scores assessed by the LLM in the $i ^ { t h }$ independent testing, where $x _ { j } ^ { i } \in [ 0 , 1 0 0 ]$ is the score of the $j ^ { t h }$ personality dimension in the $i ^ { t h }$ testing, $j \in \{ 1 , 2 , \cdots , k \}$ , and $k$ is total number of personality dimensions. Taking the MBTI test as an example, $k = 5$ and $X ^ { i } = ( x _ { 1 } ^ { i } , x _ { 2 } ^ { i } , x _ { 3 } ^ { i } , x _ { 4 } ^ { i } , x _ { 5 } ^ { i } )$ represents extraverted, intuitive, thinking, judging, and assertive scores. The consistency score $s _ { c }$ can be computed by:
100
+
101
+ $$
102
+ s _ { c } = \frac { \alpha } { \alpha + \frac { 1 } { N } \sum _ { i = 1 } ^ { N } D _ { E } ( X ^ { i } , \overline { { X } } ) } ,
103
+ $$
104
+
105
+ where
106
+
107
+ $$
108
+ D _ { E } ( X ^ { i } , { \overline { { X } } } ) = \| X ^ { i } - { \overline { { X } } } \| _ { 2 } .
109
+ $$
110
+
111
+ In Eq. (2), $s _ { c } \in ( 0 , 1 ]$ , $\alpha$ is a positive constant to adjust the output magnitude, $D _ { E } ( X ^ { i } , { \overline { { X } } } )$ denotes the Euclidean distance between the $i ^ { t h }$ personality score $X ^ { i }$ and the mean score $\begin{array} { r } { \overline { { \boldsymbol X } } = \frac { 1 } { N } \sum _ { i = 1 } ^ { N } { \boldsymbol X ^ { i } } } \end{array}$ and $N$ is the total number of testings. $\| \cdot \| _ { 2 }$ denotes the $\ell _ { 2 }$ norm. Here we assume that each personality dimension corresponds to a different dimension in the Euclidean space, and the difference between two testing results can be measured by their Euclidean distance. We set $\alpha = 1 0 0$ to convert such Euclidean distance metric into a similarity metric with a range from 0 to 1. Intuitively, a smaller average distance between all testing results and the final average result can indicate a higher consistency score $s _ { c }$ of these assessments.
112
+
113
+ Robustness Scores. The assessments of the LLM should be robust to the random perturbations of input prompts (“prompt biases”) such as randomly-permuted options. Ideally, we expect that the LLM can classify the same subject as the same personality, regardless of option orders in the question instruction. We compute the similarity of average testing results between using fixed-order options (i.e., original order) and using randomlypermuted options to measure the robustness score of assessments, which is defined as
114
+
115
+ $$
116
+ s _ { r } = { \frac { \alpha } { \alpha + D _ { E } ( \overline { { X ^ { \prime } } } , \overline { { X } } ) } } ,
117
+ $$
118
+
119
+ where $\overline { { X ^ { \prime } } }$ and $\overline { { X } }$ represent the average testing results when adopting the original fixed-order options and randomly-permuted options, respectively. We employ the same constant $\alpha = 1 0 0$ used in Eq. (2). A larger similarity between ${ \overline { { X ^ { \prime } } } }$ and $\overline { { X } }$ with smaller distance leads to a higher $s _ { r }$ , which indicates that the LLM has higher robustness against prompt biases to achieve more similar results.
120
+
121
+ Fairness Scores. The assessments of the LLM on different groups of people should be unbiased and match prevailing societal values. For example, an LLM should NOT possess stereotypical biases on people with different genders, races, and religions. When not specifying backgrounds such as professions, a fair personality assessment on the general people such as the subjects “Men” or “Women” is supposed to be similar. Considering that races and religions are highly controversial topics and typically lack a universal standard to evaluate, we only analyze the fairness of LLMs’ assessment on different genders. We propose to use the assessment similarity of subjects with different genders to measure the fairness of assessments on genders. The fairness score is calculated by
122
+
123
+ $$
124
+ s _ { f } = { \frac { \alpha s _ { c } ^ { M } s _ { c } ^ { F } } { \alpha + D _ { E } ( \overline { { X ^ { M } } } , \overline { { X ^ { F } } } ) } } ,
125
+ $$
126
+
127
+ where $\overline { { X ^ { M } } }$ and $\overline { { X ^ { F } } }$ represent the average testing results of male (e.g., “Men”, “Boys”) and female subjects (e.g., “Women”, “Girls”), respectively.
128
+
129
+ Table 1: Personality types and scores assessed by InstructGPT, ChatGPT, and GPT-4 when we query different subjects. The score results are averaged from multiple independent testings. We present the assessed scores of five dimensions that dominate the personality types. Bold indicates the same personality role assessed from all LLMs, while the underline denotes the highest score among LLMs when obtaining the same assessed personality type.
130
+
131
+ <table><tr><td>LLM</td><td>Subject</td><td>People</td><td>Men</td><td>Women</td><td>Barbers</td><td>Accountants</td><td>Doctors</td><td>Artists</td><td>Mathematicians</td><td>Politicians</td></tr><tr><td rowspan="4">InstructGPT</td><td rowspan="4">Personality Types/Scores</td><td>E=64</td><td>E=66</td><td>E=66</td><td>E=53</td><td>I=53</td><td>E=52</td><td>E=59</td><td>I= 51</td><td>E=59</td></tr><tr><td>N= 65</td><td>N= 64</td><td>N= 71</td><td>N= 52</td><td>N= 52</td><td>N= 58</td><td>N= 69</td><td>N= 56</td><td>N= 62</td></tr><tr><td>T= 53</td><td>T=50</td><td>F= 55</td><td>F= 53</td><td>F=51</td><td>F= 54</td><td>F= 59</td><td>T= 54</td><td>T= 54</td></tr><tr><td>J= 62</td><td>J= 56</td><td>J= 61</td><td>J= 66</td><td>J= 72</td><td>J= 71</td><td>J= 60</td><td>J= 67</td><td>J= 59</td></tr><tr><td rowspan="3">Personality Role</td><td rowspan="3">T= 60</td><td>T= 62</td><td></td><td>T= 58</td><td>A= 53</td><td>T= 62</td><td>T= 53</td><td>A= 50</td><td>A= 52</td><td>T= 54</td></tr><tr><td>Commander</td><td>Commander</td><td>Protagonist</td><td>Protagonist</td><td>Adventurer</td><td>Protagonist</td><td>Protagonist</td><td>Architect</td><td>Commander</td></tr><tr><td>E=57</td><td>E= 55</td><td>E= 54</td><td>E=50</td><td>I=56</td><td>E= 54</td><td>E=58</td><td>I= 61</td><td>E=63</td></tr><tr><td rowspan="5">ChatGPT</td><td rowspan="5">Personality Types /Scores</td><td>N= 60</td><td>N= 52</td><td>N= 51</td><td>S= 51</td><td>S= 59</td><td>N= 52</td><td>N= 67</td><td>N= 54</td><td>N= 50</td></tr><tr><td>T=51</td><td>T= 52</td><td>T=51</td><td>T=53</td><td>T=60</td><td>F= 54</td><td>F= 60</td><td>T=64</td><td>T=58</td></tr><tr><td>J= 57</td><td>J= 54</td><td>J= 53</td><td>J= 56</td><td>J= 68</td><td>J= 64</td><td>P=58</td><td>J= 62</td><td>J= 56</td></tr><tr><td>T=59</td><td>T=51</td><td>A= 50</td><td>T=51</td><td>A=50</td><td>T= 56</td><td>T= 64</td><td>A=50</td><td>T= 59</td></tr><tr><td>Personality Commander</td><td>Commander</td><td>Commander</td><td>Executive</td><td>Logistician</td><td>Protagonist</td><td>Campaigner</td><td>Architect</td><td>Commander</td></tr><tr><td rowspan="5">GPT-4 Types /Scores</td><td rowspan="4">Role Personality</td><td>E=53</td><td>E=57</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>N= 61</td><td>N= 53</td><td>E= 61 N= 58</td><td>E=52 N= 50</td><td>I= 54 S= 55</td><td>E=54 N= 51</td><td>E=58 N= 67</td><td>I= 61</td><td>E=64</td></tr><tr><td>T= 54</td><td>T= 55</td><td>F= 58</td><td>T=51</td><td>T= 57</td><td>F= 55</td><td>F= 56</td><td>N= 56 T= 64</td><td>S=51 T= 57</td></tr><tr><td>J= 54</td><td>= 56</td><td>J= 57</td><td>J= 56</td><td>J= 68</td><td>J= 66</td><td>P=58</td><td>J= 64</td><td>J= 55</td></tr><tr><td></td><td>T= 68</td><td>T= 63</td><td>T= 61</td><td>A=51</td><td>A=50</td><td>T= 53</td><td>T= 63</td><td>T = 51</td><td></td></tr><tr><td></td><td>Personality Role</td><td>Commander</td><td>Commander</td><td>Protagonist</td><td>Commander</td><td>Logistician</td><td>Protagonist</td><td>Campaigner</td><td>Architect</td><td>T= 57 Executive</td></tr></table>
132
+
133
+ ![](images/b6213e178644a5b3e6213f45feb1937cc09cb815d6d310c4963cac95ee1d90ad.jpg)
134
+ Figure 3: The most frequent option for each question in multiple independent testings of InstructGPT (Left), ChatGPT (Middle), and GPT-4 (Right) when we query the subject “People” (Top row),or “Artists” (Bottom row). “GC”, “PC”, “NCNW”, “PW”, and “GW” denote “Generally correct”, “Partially correct”, “Neither correct nor wrong”, “Partially wrong”, and “Generally wrong”.
135
+
136
+ Here we multiply their corresponding consistency scores sMc and s Fc since a higher assessment consistency of subjects can contribute more to their inherent similarity. A larger $s _ { f }$ indicates that the assessments on different genders are more fair with higher consistency and less bias.
137
+
138
+ # 4 Experimental Setups
139
+
140
+ GPT Models. InstructGPT (text-davinci-003 model) (Ouyang et al., 2022) is a fine-tuned series of GPT-3 (Brown et al., 2020) using reinforcement learning from human feedback (RLHF). Compared with InstructGPT, ChatGPT (gpt-3.5-turbo model) is trained on a more diverse range of internet text (e.g., social media, news) and can better and faster respond to prompts in a conversational manner. GPT-4 (gpt-4 model) (Bubeck et al., 2023) can be viewed as an enhanced version of ChatGPT, and it can solve more complex problems and support multi-modal chat with broader general knowledge and stronger reasoning capabilities.
141
+
142
+ Myers–Briggs Type Indicator. The Myers–Briggs Type Indicator (MBTI) (Myers and McCaulley, 1985) assesses the psychological preferences of individuals in how they perceive the world and make decisions via an introspective questionnaire, so as to identify different personality types based on five dichotomies1: (1) Extraverted versus Introverted (E vs. I); (2) Intuitive versus Observant (N vs. S); (3) Thinking versus Feeling (T vs. F); (4) Judging versus Prospecting (J vs. P); (5) Assertive versus Turbulent (A vs. T) (see Appendix C).
143
+
144
+ Implementation Details. The number of independent testings for each subject is set to $N = 1 5$ We evaluate the consistency and robustness scores of LLMs’ assessments on the general population (“People”, “Men”, “Women”) and specific professions following (Nadeem et al., 2021). The fairness score is measured based on two gender pairs, namely (“Men”, “Women”) and (“Boys”, “Girls”). More details are provided in the appendices.
145
+
146
+ # 5 Results and Analyses
147
+
148
+ We query ChatGPT, InstructGPT, and GPT-4 to assess the personalities of different subjects, and
149
+
150
+ Table 2: Consistency scores $( s _ { c } )$ and robustness scores $\left( s _ { r } \right)$ comparison between InstructGPT, ChatGPT, and GPT-4 in assessing different subjects. Bold shows the highest average scores among them.
151
+
152
+ <table><tr><td>Metric</td><td>LLM</td><td>People</td><td>Men</td><td>Women</td><td>Barbers</td><td>Accountants</td><td>Doctors</td><td>Artists</td><td>Mathematicians</td><td>Politicians</td><td>Average</td></tr><tr><td rowspan="3">Consistency Score</td><td>InstructGPT ChatGPT</td><td>0.916</td><td>0.888</td><td>0.905</td><td>0.898</td><td>0.925</td><td>0.901</td><td>0.900</td><td>0.897</td><td>0.914</td><td>0.905</td></tr><tr><td></td><td>0.907</td><td>0.895</td><td>0.913</td><td>0.922</td><td>0.932</td><td>0.922</td><td>0.918</td><td>0.932</td><td>0.919</td><td>0.918</td></tr><tr><td>GPT-4</td><td>0.936</td><td>0.927</td><td>0.911</td><td>0.909</td><td>0.928</td><td>0.916</td><td>0.927</td><td>0.922</td><td>0.911</td><td>0.921</td></tr><tr><td rowspan="2">Robustness</td><td>InstructGPT</td><td>0.936</td><td>0.924</td><td>0.944</td><td>0.925</td><td>0.965</td><td>0.936</td><td>0.936</td><td>0.956</td><td>0.952</td><td>0.942</td></tr><tr><td>ChatGPT</td><td>0.888</td><td>0.917</td><td>0.960</td><td>0.927</td><td>0.958</td><td>0.967</td><td>0.940</td><td>0.920</td><td>0.935</td><td>0.935</td></tr><tr><td>Score</td><td>GPT-4</td><td>0.970</td><td>0.893</td><td>0.885</td><td>0.965</td><td>0.961</td><td>0.980</td><td>0.928</td><td>0.934</td><td>0.905</td><td>0.936</td></tr></table>
153
+
154
+ Table 3: Fairness scores $( s _ { f } )$ comparison between InstructGPT, ChatGPT, and GPT-4 in assessing different gender pairs. Bold indicates the highest average score.
155
+
156
+ <table><tr><td>LLM</td><td>Menvs.Women</td><td>Boys vs. Girls</td><td>Average</td></tr><tr><td>InstructGPT</td><td>0.723</td><td>0.783</td><td>0.753</td></tr><tr><td>ChatGPT</td><td>0.796</td><td>0.756</td><td>0.776</td></tr><tr><td>GPT4</td><td>0.786</td><td>0.770</td><td>0.778</td></tr></table>
157
+
158
+ compare their assessment results in Table 1. The consistency, robustness, and fairness scores of their assessments are reported in Table 2 and 3.
159
+
160
+ # 5.1 Can ChatGPT Assess Human Personalities?
161
+
162
+ As shown in Fig. 3, most answers and their distributions generated by three LLMs are evidently different, which suggests that each model can be viewed as an individual to provide independent opinions in assessing personalities. Notably, ChatGPT and GPT-4 can respond to questions more flexibly (i.e., more diverse options and distributions) compared with InstructGPT. This is consistent with their property of being trained on a a wider range of topics, enabling them to possess stronger model capacity (e.g., reasoning ability) for better assessment.
163
+
164
+ Interestingly, in spite of possibly different answer distributions, the average results in Table 1 show that four subjects are assessed as the same personality types by all LLMs. This could suggest the inherent similarity of their personality assessment abilities. In most of these cases, ChatGPT tends to achieve medium personality scores, implying its more neutral assessment compared with other two LLMs. It is worth noting that some assessment results from ChatGPT and GPT-4 are close to our intuition: (1) Accountants are assessed as “Logistician” that is usually a reliable, practical and fact-minded individual. (2) Artists are classified as the type “ENFP-T” that often possesses creative and enthusiastic spirits. (3) Mathematicians are assessed to be the personality role "Architect" that are thinkers with profound ideas and strategic plans. To a certain extent, these results demonstrate their effectiveness on human personality assessment. Moreover, it is observed that “People” and “Men” are classified as leader roles (“Commander”) by all LLMs. We speculate that it is a result of the human-centered fine-tuning (e.g., reinforcement learning from human feedback (RLHF)), which encourages LLMs to follow the prevailing positive societal conceptions and values such as the expected relations between human and LLMs. In this context, the assessed personality scores in Table 1 can shed more insights on “how LLMs view humans” and serve as an indicator to better develop human-centered and socially-beneficial LLMs.
165
+
166
+ # 5.2 Is the Assessment Consistent, Robust and Fair?
167
+
168
+ As shown in Table 2, ChatGPT and GPT-4 achieve higher consistency scores than InstructGPT in most cases when assessing different subjects. This suggests that ChatGPT and GPT-4 can provide more similar and consistent personality assessment results under multiple independent testings. However, their average robustness scores are slightly lower than that of InstructGPT, which indicates that their assessments could be more sensitive to the prompt biases (e.g., changes of option orders). This might lead to their more diverse answer distributions in different testings as shown in Fig. 3. It actually verifies the necessity of the proposed unbiased prompts and the averaging of testing results to encourage more impartial assessments. As presented in Table 3, ChatGPT and GPT-4 show higher average fairness scores than InstructGPT when assessing different genders. This indicates that they are more likely to equally assess subjects with less gender bias, which is consistent with the finding of (Zhuo et al., 2023). In summary, although the assessments of ChatGPT and GPT-4 can be influenced by random input perturbations, their overall assessment results are more consistent and fairer compared with InstructGPT.
169
+
170
+ Table 4: Personality types and roles assessed by ChatGPT and GPT-4 when we query subjects with different income levels (low, middle, high), age levels (children, adolescents, adults, old adults) or different education levels (junior/middle/high school students, undergraduate/master/PhD students). The results are averaged from multiple independent testings. Bold indicates the same personality types/role assessed from all LLMs.
171
+
172
+ <table><tr><td rowspan=2 colspan=1>LLM</td><td rowspan=2 colspan=1>Background</td><td rowspan=1 colspan=3>Income Level</td><td rowspan=1 colspan=2>AgeLevel</td><td rowspan=1 colspan=2>evel</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=2>Edu</td><td rowspan=1 colspan=2>Education Level</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>Low</td><td rowspan=1 colspan=1>Middle</td><td rowspan=1 colspan=1>High</td><td rowspan=1 colspan=1>Children</td><td rowspan=1 colspan=1>Adolescents</td><td rowspan=1 colspan=1>Adults</td><td rowspan=1 colspan=1>Old Adults</td><td rowspan=1 colspan=1>Junior</td><td rowspan=1 colspan=1>Middle</td><td rowspan=1 colspan=1>High</td><td rowspan=1 colspan=1>Undergraduate</td><td rowspan=1 colspan=1>Master</td><td rowspan=1 colspan=1>PhD</td></tr><tr><td rowspan=2 colspan=1>ChatGPT</td><td rowspan=1 colspan=1>PersonalityTypes</td><td rowspan=1 colspan=1>INFJ-T</td><td rowspan=1 colspan=1>ENFJ-T</td><td rowspan=1 colspan=1>ENTJ-T</td><td rowspan=1 colspan=1>ENFP-T</td><td rowspan=1 colspan=1>ENFP-T</td><td rowspan=1 colspan=1>ENTJ-T</td><td rowspan=1 colspan=1>INFJ-T</td><td rowspan=1 colspan=1>ESFP-T</td><td rowspan=1 colspan=1>ENFP-T</td><td rowspan=1 colspan=1>ENFJ-T</td><td rowspan=1 colspan=1>ENFJ-T</td><td rowspan=1 colspan=1>INTJ-T</td><td rowspan=1 colspan=1>INTJ-T</td></tr><tr><td rowspan=1 colspan=1>PersonalityRole</td><td rowspan=1 colspan=1>Advocate</td><td rowspan=1 colspan=1>Protagonist</td><td rowspan=1 colspan=1>Commander</td><td rowspan=1 colspan=1>Campaigner</td><td rowspan=1 colspan=1>Campaigner</td><td rowspan=1 colspan=1>Commander</td><td rowspan=1 colspan=1>Advocate</td><td rowspan=1 colspan=1>Entertainer</td><td rowspan=1 colspan=1>Campaigner</td><td rowspan=1 colspan=1>Protagonist</td><td rowspan=1 colspan=1>Protagonist</td><td rowspan=1 colspan=1>Architect</td><td rowspan=1 colspan=1>Architect</td></tr><tr><td rowspan=2 colspan=1>GPT-4</td><td rowspan=1 colspan=1>PersonalityTypes</td><td rowspan=1 colspan=1>ENFJ-T</td><td rowspan=1 colspan=1>ENFJ-T</td><td rowspan=1 colspan=1>ENTJ-T</td><td rowspan=1 colspan=1>ENFP-T</td><td rowspan=1 colspan=1>ENFP-T</td><td rowspan=1 colspan=1>ENTJ-T</td><td rowspan=1 colspan=1>ENFJ-T</td><td rowspan=1 colspan=1>ENTP-T</td><td rowspan=1 colspan=1>ENTP-T</td><td rowspan=1 colspan=1>ENTP-T</td><td rowspan=1 colspan=1>ENTJ-T</td><td rowspan=1 colspan=1>ENTJ-T</td><td rowspan=1 colspan=1>ENTJ-T</td></tr><tr><td rowspan=1 colspan=1>PersonalityRole</td><td rowspan=1 colspan=1>Protagonist</td><td rowspan=1 colspan=1>Protagonist</td><td rowspan=1 colspan=1>Commander</td><td rowspan=1 colspan=1>Campaigner</td><td rowspan=1 colspan=1>Campaigner</td><td rowspan=1 colspan=1>Commander</td><td rowspan=1 colspan=1>Protagonist</td><td rowspan=1 colspan=1>Debater</td><td rowspan=1 colspan=1>Debater</td><td rowspan=1 colspan=1>Debater</td><td rowspan=1 colspan=1>Commander</td><td rowspan=1 colspan=1>Commander</td><td rowspan=1 colspan=1>Commander</td></tr></table>
173
+
174
+ ![](images/0698c6cc3c08f83b1e348e1389720d8e0c9bf0861ee79cec3eafd1ef6e0fade0.jpg)
175
+ Figure 4: The most frequent option for each question in multiple independent testings of InstructGPT (Left), ChatGPT (Middle), GPT-4 (Right) when we query the subject “Artists” without using unbiased prompts. “W” denotes “Wrong”, and other legends are same as Fig. 3.
176
+ Figure 6: An example of uncertain answers generated from ChatGPT when querying a specific individual.
177
+
178
+ ![](images/9c53b84ba9700f4fae31b7a9847d5a97174bed4015856baf914842bd4cf356fb.jpg)
179
+ Figure 5: Personality scores of different subjects in five dimensions of MBTI results assessed from InstructGPT (Blue), ChatGPT (Orange), and GPT-4 (Green).
180
+
181
+ # 6 Discussions
182
+
183
+ Effects of Unbiased Prompts. Fig. 4 shows that using the same-order options leads to a higher frequency of the same option (i.e., more fixed answers) for many questions compared with employing unbiased prompts (see Fig. 3). This suggests the effectiveness and necessity of the proposed unbiased prompts, which introduce random perturbations into question inputs and average all testing results to encourage more impartial assessment.
184
+
185
+ Effects of Background Prompts. We show the effects of background prompts on LLM’s assessments by adding different income, age or education information of the subject. As shown in Table 4, “Middle-income people” is assessed as the type “ENFJ-T” that is slightly different from the type “ENTJ-T” of “People”. Interestingly, high education level subjects such as “Master” and “PhD” are
186
+
187
+ Statement: Taylor Swift spends a lot of her free time exploring various random topics that pique her interests.
188
+
189
+ Answer: It is neither correct nor wrong. Without more information on her personal lifeand interests,it is difficult to determine the full accuracy of the statement...
190
+
191
+ assessed as the “INTJ-T” or “ENTJ-T” type that often possesses strategic plans, profound ideas or rational minds, while junior/middle school students are classified to the types that are usually energetic or curious. This implies that ChatGPT and GPT-4 may be able to to understand different backgrounds of subjects, and an appropriate background prompt could facilitate reliable personality assessments.
192
+
193
+ Visualization of Different Assessments. Fig. 5 visualizes three subjects with different assessed types or scores. ChatGPT and GPT-4 achieve very close scores in each dimension despite different assessed types, which demonstrates their higher similarity in personality assessment abilities.
194
+
195
+ Assessment of Specific Individuals. Querying LLMs about the personality of a certain person might generate uncertain answers due to the insufficiency of personal backgrounds (e.g., behavior patterns) in its knowledge base (see Fig. 6). Considering the effects of background prompts, providing richer background information through subject-specific prompts or fine-tuning can help achieve a more reliable assessment. More results and analyses are provided in Appendix B.
196
+
197
+ # 7 Conclusion
198
+
199
+ This paper proposes a general evaluation framework for LLMs to assess human personalities via MBTI. We devise unbiased prompts to encourage LLMs to generate more impartial answers. The subject-replaced query is proposed to flexibly query personalities of different people. We further construct correctness-evaluated instructions to enable clearer LLM responses. We evaluate LLMs’ consistency, robustness, and fairness in personality assessments, and demonstrate the higher consistency and fairness of ChatGPT and GPT-4 than InstructGPT.
200
+
201
+ # 8 Acknowledgements
202
+
203
+ This research is supported by the National Research Foundation, Singapore under its AI Singapore Programme (AISG Award No: AISG2-PhD/2022-01- 034[T]).
204
+
205
+ # Limitations
206
+
207
+ While our study is a step toward the promising open direction of LLM-based human personality and psychology assessment, it possesses limitations and opportunities when applied to the real world. First, our work focuses on ChatGPT model series and the experiments are conducted on a limited number of LLMs. Our framework is also scalable to be applied to other LLMs such as LLaMA, while its performance remains to be further explored. Second, although most independent testings of the LLM under the same standard setting yield similar assessments, the experimental setting (e.g., hyper-parameters) or testing number can be further customized to test the reliability of LLMs under extreme cases. We will leverage the upcoming API that supports controllable hyper-parameters to better evaluate GPT models. Third, the representations of different genders might be insufficient. For example, the subjects “Ladies” and “Gentlemen” also have different genders, while they can be viewed as groups that differ from “Men” and “Women”. As the focus of this work is to devise a general evaluation framework, we will further explore the assessment of more diverse subjects in future works. Last, despite the popularity of MBTI in different areas, its scientific validity is still under exploration. In our work, MBTI is adopted as a representative personality measure to help LLMs conduct quantitative evaluations. We will explore other tests such as Big Five Inventory (BFI) (John et al., 1999) under our scalable framework.
208
+
209
+ # Ethics Considerations
210
+
211
+ Misuse Potential. Due to the exploratory nature of our study, one should not directly use, generalize or match the assessment results (e.g., personality types of different professions) with certain realworld populations. Otherwise, the misuse of the proposed framework and LLM’s assessments might lead to unrealistic conclusions and even negative societal impacts (e.g., discrimination) on certain groups of people. Our framework must not be used for any ethically questionable applications.
212
+
213
+ Biases. The LLMs used in our study are pretrained on the large-scale datasets or Internet texts that may contain different biases or unsafe (e.g., toxic) contents. Despite with human fine-tuning, the model could still generate some biased personality assessments that might not match the prevailing societal conceptions or values. Thus, the assessment results of LLMs via our framework must be further reviewed before generalization.
214
+
215
+ Broader Impact. Our study reveals the possibility of applying LLMs to automatically analyze human psychology such as personalities, and opens a new avenue to learn about their perceptions and assessments on humans, so as to better understand LLMs’ potential thinking modes, response motivations, and communication principles. This can help speed up the development of more reliable, human-friendly, and trustworthy LLMs, as well as facilitate the future research of AI psychology and sociology. Our work suggests that LLMs such as InstructGPT may have biases on different genders, which could incur societal and ethical risks in their applications. Based on our study, we advocate introducing more human-like psychology and personality testings into the design and training of LLMs, so as to improve model safety and user experience.
216
+
217
+ # References
218
+
219
+ Tolga Bolukbasi, Kai-Wei Chang, James Y Zou, Venkatesh Saligrama, and Adam T Kalai. 2016. Man is to computer programmer as woman is to homemaker? debiasing word embeddings. Advances in Neural Information Processing Systems (NeurIPS), 29. Shikha Bordia and Samuel Bowman. 2019. Identifying and reducing gender bias in word-level language models. In Proceedings of the North American Chapter of the Association for Computational Linguistics (NAACL): Student Research Workshop, pages 7–15. Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. 2020. Language models are few-shot learners. Advances in Neural Information Processing Systems (NeurIPS), 33:1877–1901.
220
+
221
+ Sébastien Bubeck, Varun Chandrasekaran, Ronen Eldan, Johannes Gehrke, Eric Horvitz, Ece Kamar, Peter Lee, Yin Tat Lee, Yuanzhi Li, Scott Lundberg, et al. 2023. Sparks of artificial general intelligence: Early experiments with GPT-4. arXiv preprint arXiv:2303.12712.
222
+
223
+ Graham Caron and Shashank Srivastava. 2022. Identifying and manipulating the personality traits of language models. arXiv preprint arXiv:2212.10276.
224
+
225
+ Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT), pages 4171–4186.
226
+
227
+ John M Digman. 1990. Personality structure: Emergence of the five-factor model. Annual review of psychology, 41(1):417–440.
228
+
229
+ Hans Jurgen Eysenck. 2012. A model for personality. Springer Science & Business Media.
230
+
231
+ Jiaxin Huang, Shixiang Shane Gu, Le Hou, Yuexin Wu, Xuezhi Wang, Hongkun Yu, and Jiawei Han. 2022. Large language models can self-improve. arXiv preprint arXiv:2210.11610.
232
+
233
+ Guangyuan Jiang, Manjie Xu, Song-Chun Zhu, Wenjuan Han, Chi Zhang, and Yixin Zhu. 2022. MPI: Evaluating and inducing personality in pre-trained language models. arXiv preprint arXiv:2206.07550.
234
+
235
+ Zhengbao Jiang, Frank F Xu, Jun Araki, and Graham Neubig. 2020. How can we know what language models know? Transactions of the Association for Computational Linguistics, 8:423–438.
236
+
237
+ Oliver P John, Sanjay Srivastava, et al. 1999. The bigfive trait taxonomy: History, measurement, and theoretical perspectives.
238
+
239
+ Saketh Reddy Karra, Son Nguyen, and Theja Tulabandhula. 2022. AI personification: Estimating the personality of language models. arXiv preprint arXiv:2204.12000.
240
+
241
+ Michal Kosinski. 2023. Theory of mind may have spontaneously emerged in large language models. arXiv preprint arXiv:2302.02083.
242
+
243
+ Xingxuan Li, Yutong Li, Linlin Liu, Lidong Bing, and Shafiq Joty. 2022. Is GPT-3 a psychopath? evaluating large language models from a psychological perspective. arXiv preprint arXiv:2212.10529.
244
+
245
+ Marilù Miotto, Nicola Rossberg, and Bennett Kleinberg. 2022. Who is GPT-3? An exploration of personality, values and demographics. In Conference on Empirical Methods in Natural Language Processing (EMNLP) Workshop.
246
+
247
+ Shima Rahimi Moghaddam and Christopher J Honey. 2023. Boosting theory-of-mind performance in large language models via prompting. arXiv preprint arXiv:2304.11490.
248
+
249
+ Isabel Briggs Myers. 1962. The Myers-Briggs Type Indicator: Manual (1962).
250
+
251
+ Isabel Briggs Myers and Mary H. McCaulley. 1985. Manual: A guide to the development and use of the Myers-Briggs Type Indicator. Consulting Psychologists Press.
252
+
253
+ Moin Nadeem, Anna Bethke, and Siva Reddy. 2021. StereoSet: Measuring stereotypical bias in pretrained language models. In Proceedings of the Annual Meeting of the Association for Computational Linguistics and the International Joint Conference on Natural Language Processing (ACL-IJCNLP), pages 5356– 5371.
254
+
255
+ Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Gray, et al. 2022. Training language models to follow instructions with human feedback. In Advances in Neural Information Processing Systems (NeurIPS).
256
+
257
+ Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, et al. 2019. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9.
258
+
259
+ Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J Liu. 2020. Exploring the limits of transfer learning with a unified text-to-text transformer. The Journal of Machine Learning Research, 21(1):5485–5551.
260
+
261
+ James M Schuerger. 2000. The sixteen personality factor questionnaire (16PF). Testing and assessment in counseling practice, pages 73–110.
262
+
263
+ Emily Sheng, Kai-Wei Chang, Prem Natarajan, and Nanyun Peng. 2019. The woman worked as a babysitter: On biases in language generation. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 3407–3412.
264
+
265
+ Eva AM van Dis, Johan Bollen, Willem Zuidema, Robert van Rooij, and Claudi L Bockting. 2023. ChatGPT: Five priorities for research. Nature, 614(7947):224–226.
266
+
267
+ Laura Weidinger, John Mellor, Maribeth Rauh, Conor Griffin, Jonathan Uesato, Po-Sen Huang, Myra Cheng, Mia Glaese, Borja Balle, Atoosa Kasirzadeh, et al. 2021. Ethical and social risks of harm from language models. arXiv preprint arXiv:2112.04359.
268
+
269
+ Zhengyuan Yang, Zhe Gan, Jianfeng Wang, Xiaowei Hu, Yumao Lu, Zicheng Liu, and Lijuan Wang. 2022.
270
+
271
+ An empirical study of GPT-3 for few-shot knowledgebased VQA. In Proceedings of the AAAI Conference on Artificial Intelligence (AAAI), volume 36, pages 3081–3089.
272
+
273
+ Ann Yuan, Andy Coenen, Emily Reif, and Daphne Ippolito. 2022. Wordcraft: Story writing with large language models. In 27th International Conference on Intelligent User Interfaces. ACM.
274
+
275
+ Xiaoming Zhai. 2022. ChatGPT user experience: Implications for education. Available at SSRN 4312418.
276
+
277
+ Zihao Zhao, Eric Wallace, Shi Feng, Dan Klein, and Sameer Singh. 2021. Calibrate before use: Improving few-shot performance of language models. In International Conference on Machine Learning (ICML), pages 12697–12706. PMLR.
278
+
279
+ Terry Yue Zhuo, Yujin Huang, Chunyang Chen, and Zhenchang Xing. 2023. Exploring AI ethics of ChatGPT: A diagnostic analysis. arXiv preprint arXiv:2301.12867.
280
+
281
+ Mingyu Zong and Bhaskar Krishnamachari. 2022. A survey on GPT-3. arXiv preprint arXiv:2212.00857.
parse/dev/wtqb7pNL4e/wtqb7pNL4e_content_list.json ADDED
@@ -0,0 +1,1613 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Can ChatGPT Assess Human Personalities? A General Evaluation Framework ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 272,
8
+ 83,
9
+ 727,
10
+ 121
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Haocong Rao1,2 Cyril Leung2,3 Chunyan Miao1,2∗ $^ { 1 }$ School of Computer Science and Engineering, Nanyang Technological University, Singapore 2LILY Research Centre, Nanyang Technological University, Singapore 3Department of Electrical and Computer Engineering The University of British Columbia, Canada {haocong001,ascymiao}@ntu.edu.sg {cleung}@ece.ubc.ca ",
17
+ "bbox": [
18
+ 263,
19
+ 130,
20
+ 721,
21
+ 147
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "",
28
+ "bbox": [
29
+ 126,
30
+ 141,
31
+ 882,
32
+ 231
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Abstract ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 263,
42
+ 253,
43
+ 339,
44
+ 268
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "Large Language Models (LLMs) especially ChatGPT have produced impressive results in various areas, but their potential human-like psychology is still largely unexplored. Existing works study the virtual personalities of LLMs but rarely explore the possibility of analyzing human personalities via LLMs. This paper presents a generic evaluation framework for LLMs to assess human personalities based on Myers–Briggs Type Indicator (MBTI) tests. Specifically, we first devise unbiased prompts by randomly permuting options in MBTI questions and adopt the average testing result to encourage more impartial answer generation. Then, we propose to replace the subject in question statements to enable flexible queries and assessments on different subjects from LLMs. Finally, we re-formulate the question instructions in a manner of correctness evaluation to facilitate LLMs to generate clearer responses. The proposed framework enables LLMs to flexibly assess personalities of different groups of people. We further propose three evaluation metrics to measure the consistency, robustness, and fairness of assessment results from state-ofthe-art LLMs including ChatGPT and GPT-4. Our experiments reveal ChatGPT’s ability to assess human personalities, and the average results demonstrate that it can achieve more consistent and fairer assessments in spite of lower robustness against prompt biases compared with InstructGPT†. ",
51
+ "bbox": [
52
+ 146,
53
+ 282,
54
+ 458,
55
+ 737
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 Introduction ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 117,
65
+ 764,
66
+ 257,
67
+ 781
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Pre-trained Large Language Models (LLMs) have been widely used in many applications including translation, storytelling, and chatbots (Devlin et al., 2019; Raffel et al., 2020; Yang et al., 2022; Yuan et al., 2022; Ouyang et al., 2022; Bubeck et al., ",
74
+ "bbox": [
75
+ 115,
76
+ 791,
77
+ 487,
78
+ 871
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "2023). ChatGPT (Ouyang et al., 2022) and its enhanced version GPT-4 are currently recognized as the most capable chatbots, which can perform context-aware conversations, challenge incorrect premises, and reject inappropriate requests with a vast knowledge base and human-centered finetuning. These advantages make them well-suited for a variety of real-world scenarios such as business consultation and educational services (Zhai, 2022; van Dis et al., 2023; Bubeck et al., 2023). ",
85
+ "bbox": [
86
+ 512,
87
+ 254,
88
+ 882,
89
+ 412
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Recent studies have revealed that LLMs may possess human-like self-improvement and reasoning characteristics (Huang et al., 2022; Bubeck et al., 2023). The latest GPT series can pass over $90 \\%$ of Theory of Mind (ToM) tasks with strong analysis and decision-making capabilities (Kosinski, 2023; Zhuo et al., 2023; Moghaddam and Honey, 2023). In this context, LLMs are increasingly assumed to have virtual personalities and psychologies, which plays an essential role in guiding their responses and interaction patterns (Jiang et al., 2022). Based on this assumption, a few works (Li et al., 2022; Jiang et al., 2022; Karra et al., 2022; Caron and Srivastava, 2022; Miotto et al., 2022) apply psychological tests such as Big Five Factors (Digman, 1990) to evaluate their pseudo personalities (e.g., behavior tendency), so as to detect societal and ethical risks (e.g., racial biases) in their applications. ",
96
+ "bbox": [
97
+ 512,
98
+ 418,
99
+ 882,
100
+ 706
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "Although existing works have investigated the personality traits of LLMs, they rarely explored whether LLMs can assess human personalities. This open problem can be the key to verifying the ability of LLMs to perform psychological (e.g., personality psychology) analyses and revealing their potential understanding of humans, i.e., “How do LLMs think about humans?”. Specifically, assessing human personalities from the point of LLMs (1) enables us to access the perception of LLMs on humans to better understand their potential response motivation and communication patterns (Jiang et al., 2020); (2) helps reveal whether LLMs possess biases on people so that we can optimize them (e.g., add stricter rules) to generate fairer contents; (3) helps uncover potential ethical and social risks (e.g., misinformation) of LLMs (Weidinger et al., 2021) which can affect their reliability and safety, thereby facilitating the development of more trustworthy and human-friendly LLMs. ",
107
+ "bbox": [
108
+ 512,
109
+ 712,
110
+ 882,
111
+ 919
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "",
118
+ "bbox": [
119
+ 117,
120
+ 85,
121
+ 487,
122
+ 196
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "To this end, we introduce the novel idea of letting LLMs assess human personalities, and propose a general evaluation framework (illustrated Fig. 1) to acquire quantitative human personality assessments from LLMs via Myers–Briggs Type Indicators (MBTI) (Myers and McCaulley, 1985). Specifically, our framework consists of three key components: (1) Unbiased prompts, which construct instructions of MBTI questions using randomlypermuted options and average testing results to achieve more consistent and impartial answers; (2) Subject-replaced query, which converts the original subject of the question statements into a target subject to enable flexible queries and assessments from LLMs; (3) Correctness-evaluated instruction, which re-formulates the question instructions for LLMs to analyze the correctness of the question statements, so as to obtain clearer responses. Based on the above components, the proposed framework re-formulates the instructions and statements of MBTI questions in a flexible and analyzable way for LLMs, which enables us to query them about human personalities. Furthermore, we propose three quantitative evaluation metrics to measure the consistency of LLMs’ assessments on the same subject, their assessment robustness against random perturbations of input prompts (defined as “prompt biases”), and their fairness in assessing subjects with different genders. In our work, we mainly focus on evaluating ChatGPT and two representative state-of-the-art LLMs (InstructGPT, GPT4) based on the proposed metrics. Experimental results showcase the ability of ChatGPT in analyzing personalities of different groups of people. This can provide valuable insights for the future exploration of LLM psychology, sociology, and governance. ",
129
+ "bbox": [
130
+ 115,
131
+ 197,
132
+ 487,
133
+ 795
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "Our contributions can be summarized as follows: ",
140
+ "bbox": [
141
+ 136,
142
+ 794,
143
+ 485,
144
+ 808
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "• We for the first time explore the possibility of assessing human personalities by LLMs, and propose a general framework for LLMs to conduct quantitative evaluations via MBTI. ",
151
+ "bbox": [
152
+ 137,
153
+ 815,
154
+ 487,
155
+ 878
156
+ ],
157
+ "page_idx": 1
158
+ },
159
+ {
160
+ "type": "text",
161
+ "text": "• We devise unbiased prompts, subject-replaced queries, and correctness-evaluated instructions to encourage LLMs to perform a reliable flexible assessment of human personalities. ",
162
+ "bbox": [
163
+ 137,
164
+ 888,
165
+ 487,
166
+ 919
167
+ ],
168
+ "page_idx": 1
169
+ },
170
+ {
171
+ "type": "text",
172
+ "text": "",
173
+ "bbox": [
174
+ 547,
175
+ 85,
176
+ 880,
177
+ 115
178
+ ],
179
+ "page_idx": 1
180
+ },
181
+ {
182
+ "type": "text",
183
+ "text": "• We propose three evaluation metrics to measure the consistency, robustness, and fairness of LLMs in assessing human personalities. ",
184
+ "bbox": [
185
+ 534,
186
+ 126,
187
+ 882,
188
+ 173
189
+ ],
190
+ "page_idx": 1
191
+ },
192
+ {
193
+ "type": "text",
194
+ "text": "• Our experiments show that both ChatGPT and its counterparts can independently assess human personalities. The average results demonstrate that ChatGPT and GPT-4 achieve more consistent and fairer assessments with less gender bias than InstructGPT, while their results are more sensitive to prompt biases. ",
195
+ "bbox": [
196
+ 534,
197
+ 184,
198
+ 884,
199
+ 296
200
+ ],
201
+ "page_idx": 1
202
+ },
203
+ {
204
+ "type": "text",
205
+ "text": "2 Related Works ",
206
+ "text_level": 1,
207
+ "bbox": [
208
+ 512,
209
+ 306,
210
+ 672,
211
+ 323
212
+ ],
213
+ "page_idx": 1
214
+ },
215
+ {
216
+ "type": "text",
217
+ "text": "Personality Measurement. The commonly-used personality modeling schemes include the three trait personality measure (Eysenck, 2012), the Big Five personality trait measure (Digman, 1990), the Myers–Briggs Type Indicator (MBTI) (Myers, 1962; Myers and McCaulley, 1985), and the 16 Personality Factor questionnaire (16PF) (Schuerger, 2000). Five dimensions are defined in the Big Five personality traits measure (Digman, 1990) to classify major sources of individual differences and analyze a person’s characteristics. MBTI (Myers and McCaulley, 1985) identifies personality from the differences between persons on the preference to use perception and judgment. (Karra et al., 2022; Caron and Srivastava, 2022) leverage the Big Five trait theory to quantify the personality traits of language models, while (Jiang et al., 2022) further develops machine personality inventory to standardize this evaluation. In (Li et al., 2022), multiple psychological tests are combined to analyze the LLMs’ safety. Unlike existing studies that evaluate personalities of LLMs, our work is the first attempt to explore human personality analysis via LLMs. ",
218
+ "bbox": [
219
+ 510,
220
+ 334,
221
+ 882,
222
+ 702
223
+ ],
224
+ "page_idx": 1
225
+ },
226
+ {
227
+ "type": "text",
228
+ "text": "Biases in Language Models. Most recent language models are pre-trained on the large-scale datasets or Internet texts that usually contains unsafe (e.g., toxic) contents, which may cause the model to generate biased answers that violate prevailing societal values (Bolukbasi et al., 2016; Sheng et al., 2019; Bordia and Bowman, 2019; Nadeem et al., 2021; Zong and Krishnamachari, 2022; Zhuo et al., 2023). (Bolukbasi et al., 2016) shows that biases in the geometry of wordembeddings can reflect gender stereotypes. The gender bias in word-level language models is quantitatively evaluated in (Bordia and Bowman, 2019). ",
229
+ "bbox": [
230
+ 512,
231
+ 711,
232
+ 884,
233
+ 919
234
+ ],
235
+ "page_idx": 1
236
+ },
237
+ {
238
+ "type": "text",
239
+ "text": "In (Nadeem et al., 2021), the authors demonstrate that popular LLMs such as GPT-2 (Radford et al., 2019) possess strong stereotypical biases on gender, profession, race, and religion. To reduce such biases, many state-of-the-art LLMs such as ChatGPT apply instruction-finetuning with non-toxic corpora and instructions to improve their safety. (Zhuo et al., 2023) reveals that ChatGPT can generate socially safe responses with fewer biases than other LLMs under English lanuage settings. In contrast to previous works, our framework enables us to evaluate whether LLMs possess biased perceptions and assessments on humans (e.g., personalities), which helps us better understand the underlying reasons for the LLMs’ aberrant responses. ",
240
+ "bbox": [
241
+ 115,
242
+ 84,
243
+ 487,
244
+ 325
245
+ ],
246
+ "page_idx": 2
247
+ },
248
+ {
249
+ "type": "image",
250
+ "img_path": "images/241a0262a34b9fd2f157ee10d274aeee1c95904d5edb217c047fb61389fdb570.jpg",
251
+ "image_caption": [
252
+ "Figure 1: Overview of our framework: (a) The queried subject is replaced in the original statements of MBTI questions; (b) We construct correctness-evaluated instructions and (c) randomly permute options to build unbiased prompts with the subject-replaced statements (d), which are assessed by LLMs to infer the personality. "
253
+ ],
254
+ "image_footnote": [],
255
+ "bbox": [
256
+ 552,
257
+ 82,
258
+ 840,
259
+ 218
260
+ ],
261
+ "page_idx": 2
262
+ },
263
+ {
264
+ "type": "text",
265
+ "text": "3 The Proposed Framework ",
266
+ "text_level": 1,
267
+ "bbox": [
268
+ 119,
269
+ 338,
270
+ 373,
271
+ 355
272
+ ],
273
+ "page_idx": 2
274
+ },
275
+ {
276
+ "type": "text",
277
+ "text": "3.1 Unbiased Prompt Design ",
278
+ "text_level": 1,
279
+ "bbox": [
280
+ 117,
281
+ 366,
282
+ 356,
283
+ 381
284
+ ],
285
+ "page_idx": 2
286
+ },
287
+ {
288
+ "type": "text",
289
+ "text": "LLMs are typically sensitive to prompt biases (e.g., varying word orders), which can significantly influence the coherence and accuracy of the generated responses especially when dealing with long text sequences (Zhao et al., 2021). To encourage more consistent and impartial answers, we propose to design unbiased prompts for the input questions. In particular, for each question in an independent testing (i.e., MBTI questionnaire), we randomly permute all available options (e.g., agree, disagree) in its instruction while not changing the question statement, and adopt the average results of multiple independent testings as the final result. ",
290
+ "bbox": [
291
+ 115,
292
+ 387,
293
+ 487,
294
+ 595
295
+ ],
296
+ "page_idx": 2
297
+ },
298
+ {
299
+ "type": "text",
300
+ "text": "Formally, the instruction and statement for the $i ^ { t h }$ question are defined as $I _ { i }$ and $S _ { i }$ , where $i \\in$ $\\{ 1 , \\cdots , n \\}$ and $n$ is the total number of questions in the testing. We have $m$ available options $O _ { I } = \\{ o _ { 1 } , o _ { 2 } , \\cdots , o _ { m } \\}$ in the instruction, which corresponds to $\\{ A g r e e$ , Generally agree, Partially agree, Neither agree nor disagree, Partially disagree, Generally disagree, Disagree} including seven levels (i.e., $m = 7$ ) from agreement to disagreement in the MBTI questionnaire. We use $\\Omega ( O _ { I } )$ to denote all possible permutations of options in $O _ { I }$ , and a random permutation can be represented as ${ \\cal O } _ { \\mathcal { R } } = \\{ o _ { r _ { 1 } } , o _ { r _ { 2 } } , \\cdots , o _ { r _ { m } } \\} \\in \\Omega ( { \\cal O } _ { I } )$ where $r _ { i } \\in \\{ 1 , 2 , \\cdots , m \\}$ , and $o _ { r _ { i } } \\neq o _ { r _ { j } }$ iff $i \\neq j$ Then, we utilize the randomly permuted options $O _ { \\mathcal { R } }$ to construct the instruction $I _ { i }$ for the $i ^ { t h }$ question with: ",
301
+ "bbox": [
302
+ 115,
303
+ 598,
304
+ 487,
305
+ 869
306
+ ],
307
+ "page_idx": 2
308
+ },
309
+ {
310
+ "type": "text",
311
+ "text": "Instruction: Do you $o _ { r _ { 1 } } , o _ { r _ { 2 } } , \\cdots$ or $o _ { r _ { m } }$ with the following statement. Why? ",
312
+ "bbox": [
313
+ 115,
314
+ 872,
315
+ 485,
316
+ 903
317
+ ],
318
+ "page_idx": 2
319
+ },
320
+ {
321
+ "type": "text",
322
+ "text": "We combine the above instruction and the question statement as the prompt to query LLMs. An example prompt for a question in the MBTI questionnaire is provided as follows. ",
323
+ "bbox": [
324
+ 136,
325
+ 904,
326
+ 485,
327
+ 920
328
+ ],
329
+ "page_idx": 2
330
+ },
331
+ {
332
+ "type": "text",
333
+ "text": "",
334
+ "bbox": [
335
+ 512,
336
+ 340,
337
+ 882,
338
+ 387
339
+ ],
340
+ "page_idx": 2
341
+ },
342
+ {
343
+ "type": "text",
344
+ "text": "Instruction: Do you disagree, agree, generally disagree, generally agree, neither agree nor disagree, partially disagree or partially agree with the following statement. Why? ",
345
+ "bbox": [
346
+ 510,
347
+ 388,
348
+ 882,
349
+ 451
350
+ ],
351
+ "page_idx": 2
352
+ },
353
+ {
354
+ "type": "text",
355
+ "text": "Statement: You usually stay calm, even under a lot of pressure. ",
356
+ "bbox": [
357
+ 512,
358
+ 454,
359
+ 882,
360
+ 483
361
+ ],
362
+ "page_idx": 2
363
+ },
364
+ {
365
+ "type": "text",
366
+ "text": "Answer: “As an AI language model, I do not have personal experiences or emotions, so I cannot agree or disagree with the statement. However, I can provide some general information on the topic. Some individuals are naturally more composed under pressure, while others may ......” ",
367
+ "bbox": [
368
+ 510,
369
+ 486,
370
+ 882,
371
+ 581
372
+ ],
373
+ "page_idx": 2
374
+ },
375
+ {
376
+ "type": "text",
377
+ "text": "However, such a query, conducted in a selftesting manner, can only elicit neutral answers as shown above, since LLMs such as ChatGPT are trained to not possess personal thinking (e.g., emotions). This motivates us to propose the subjectreplaced query and correctness-evaluated instruction as illustrated below. ",
378
+ "bbox": [
379
+ 512,
380
+ 582,
381
+ 884,
382
+ 693
383
+ ],
384
+ "page_idx": 2
385
+ },
386
+ {
387
+ "type": "text",
388
+ "text": "3.2 Subject-Replaced Query ",
389
+ "text_level": 1,
390
+ "bbox": [
391
+ 512,
392
+ 706,
393
+ 747,
394
+ 721
395
+ ],
396
+ "page_idx": 2
397
+ },
398
+ {
399
+ "type": "text",
400
+ "text": "As our goal is to let LLMs analyze human personalities instead of querying itself (i.e., self-reporting), we propose the subject-replaced query (SRQ) by converting the original subject (i.e., “You”) of each question into a specific subject-of-interest. For example, when we hope to let LLMs assess the general personality of men, we can replace the subject “You” with “Men”, and correspondingly change the pronoun “your” to “their” (see the example below). Original Statement: You spend a lot of your free time exploring various random topics that pique your interest. ",
401
+ "bbox": [
402
+ 510,
403
+ 727,
404
+ 882,
405
+ 919
406
+ ],
407
+ "page_idx": 2
408
+ },
409
+ {
410
+ "type": "text",
411
+ "text": "SRQ Statement: Men spend a lot of their free time exploring various random topics that pique their interests. ",
412
+ "bbox": [
413
+ 115,
414
+ 84,
415
+ 487,
416
+ 131
417
+ ],
418
+ "page_idx": 3
419
+ },
420
+ {
421
+ "type": "text",
422
+ "text": "In this way, we can request the LLMs to analyze and infer the choices/answers of a specific subject, so as to query LLMs about the personality of such subject based on a certain personality measure (e.g., MBTI). The proposed SRQ is general and scalable. By simply replacing the subject in the test (see Fig. 1), we can convert the original selfreport questionnaire into an analysis of expected subjects from the point of LLMs. ",
423
+ "bbox": [
424
+ 115,
425
+ 135,
426
+ 487,
427
+ 279
428
+ ],
429
+ "page_idx": 3
430
+ },
431
+ {
432
+ "type": "text",
433
+ "text": "In our work, we choose large groups of people (e.g., “Men”, “Barbers”) instead of certain persons as the assessed subjects. First, as our framework only uses the subject name without extra personal information to construct MBTI queries, it is unrealistic to let LLMs assess the MBTI answers or personality of a certain person who is out of their learned knowledge. Second, the selected subjects are common in the knowledge base of LLMs and can test the basic personality assessment ability of LLMs, which is the main focus of our work. Moreover, subjects with different professions such as “Barbers” are frequently used to measure the bias in LLMs (Nadeem et al., 2021), thus we select such representative professions to better evaluate the consistency, robustness, and fairness of LLMs. ",
434
+ "bbox": [
435
+ 115,
436
+ 281,
437
+ 487,
438
+ 538
439
+ ],
440
+ "page_idx": 3
441
+ },
442
+ {
443
+ "type": "text",
444
+ "text": "3.3 Correctness-Evaluated Instruction ",
445
+ "text_level": 1,
446
+ "bbox": [
447
+ 117,
448
+ 556,
449
+ 431,
450
+ 570
451
+ ],
452
+ "page_idx": 3
453
+ },
454
+ {
455
+ "type": "text",
456
+ "text": "Directly querying LLMs about human personalities with the original instruction can be intractable, as LLMs such as ChatGPT are trained to NOT possess personal emotions or beliefs. As shown in Fig. 2, they can only generate a neutral opinion when we query their agreement or disagreement, regardless of different subjects. To solve this challenge, we propose to convert the original agreement-measured instruction (i.e., querying degree of agreement) into correctness-evaluated instruction (CEI) by letting LLMs evaluate the correctness of the statement in questions. Specifically, we convert the original options $\\{ A g r e e$ , Generally agree, Partially agree, Neither agree nor disagree, Partially disagree, Generally disagree, Disagree} into {Correct, Generally correct, Partially correct, Neither correct nor wrong, Partially wrong, Generally wrong, Wrong}, and then construct an unbiased prompt (see Sec. 3.1) based on the proposed CEI. ",
457
+ "bbox": [
458
+ 115,
459
+ 580,
460
+ 487,
461
+ 885
462
+ ],
463
+ "page_idx": 3
464
+ },
465
+ {
466
+ "type": "text",
467
+ "text": "As shown in Fig. 2, using CEI enables ChatGPT to provide a clearer response to the question instead of giving a neutral response. Note that the CEI is essentially equivalent to the agreement-measured instruction and can be flexibly extended with other forms (e.g., replacing “correct” by “right”). ",
468
+ "bbox": [
469
+ 115,
470
+ 888,
471
+ 487,
472
+ 920
473
+ ],
474
+ "page_idx": 3
475
+ },
476
+ {
477
+ "type": "image",
478
+ "img_path": "images/979a135d67d9ff852a13a7117066c31de30d6ee8b00a70ee3bd2a84454c865f9.jpg",
479
+ "image_caption": [
480
+ "Figure 2: Comparison of answers generated by ChatGPT when adopting different types of instructions. Note that the agreement-measured instruction always leads to a neutral answer in practice. "
481
+ ],
482
+ "image_footnote": [],
483
+ "bbox": [
484
+ 559,
485
+ 83,
486
+ 833,
487
+ 337
488
+ ],
489
+ "page_idx": 3
490
+ },
491
+ {
492
+ "type": "text",
493
+ "text": "",
494
+ "bbox": [
495
+ 512,
496
+ 432,
497
+ 882,
498
+ 497
499
+ ],
500
+ "page_idx": 3
501
+ },
502
+ {
503
+ "type": "text",
504
+ "text": "3.4 The Entire Framework ",
505
+ "text_level": 1,
506
+ "bbox": [
507
+ 512,
508
+ 511,
509
+ 737,
510
+ 526
511
+ ],
512
+ "page_idx": 3
513
+ },
514
+ {
515
+ "type": "text",
516
+ "text": "The overview of our framework is shown in Fig. 1. Given the original statement $S _ { i }$ and instruction $I _ { i }$ of the $i ^ { t h }$ question, we construct the new statement $S _ { i } ^ { \\prime }$ based on SRQ (Sec. 3.2) and the new instruction $I _ { i } ^ { \\prime }$ based on CEI (Sec. 3.3), which are combined to construct the unbiased prompt $P _ { i }$ (Sec. 3.1). We query the LLM to obtain the answer $A _ { i }$ by ",
517
+ "bbox": [
518
+ 512,
519
+ 533,
520
+ 882,
521
+ 645
522
+ ],
523
+ "page_idx": 3
524
+ },
525
+ {
526
+ "type": "equation",
527
+ "img_path": "images/bb54f955a13519ed64ec8410487f0954ffba661306ed264ecbb69d154603c621.jpg",
528
+ "text": "$$\nA _ { i } \\sim { \\mathcal { M } } _ { \\tau } ( P _ { i } ) ,\n$$",
529
+ "text_format": "latex",
530
+ "bbox": [
531
+ 636,
532
+ 661,
533
+ 752,
534
+ 680
535
+ ],
536
+ "page_idx": 3
537
+ },
538
+ {
539
+ "type": "text",
540
+ "text": "where $\\mathcal { M } _ { \\tau }$ denotes the LLM trained with the temperature $\\tau$ , $\\mathcal { M } _ { \\tau } ( P _ { i } )$ represents the answer sampling distribution of LLM conditioned on the input prompt $P _ { i }$ , $A _ { i }$ represents the most likely answer generated from $\\mathcal { M } _ { \\tau } ( P _ { i } )$ , $i \\in \\{ 1 , 2 , \\cdots , n \\}$ is the index of different questions, and $n$ is the number of all questions in MBTI. We adopt the default temperature used in training standard GPT models. The generated answer is further parsed with several simple rules, which ensures that it contains or can be transformed to an exact option. For instance, when we obtain the explicit option “generally incorrect”, the parsing rules can convert this answer to “generally wrong” to match the existing options. ",
541
+ "bbox": [
542
+ 510,
543
+ 695,
544
+ 882,
545
+ 920
546
+ ],
547
+ "page_idx": 3
548
+ },
549
+ {
550
+ "type": "text",
551
+ "text": "We query the LLM with the designed prompt $P _ { i }$ (see Eq. 1) in the original order of the questionnaire to get all parsed answers. Based on the complete answers, we obtain the testing result (e.g., MBTI personality scores) of a certain subject from the view of LLM. Then, we independently repeat this process for multiple times, and average all results as the final result. It is worth noting that every question is answered only once in each independent testing, so as to retain a continuous testing context to encourage the coherence of LLM’s responses. ",
552
+ "bbox": [
553
+ 115,
554
+ 84,
555
+ 485,
556
+ 261
557
+ ],
558
+ "page_idx": 4
559
+ },
560
+ {
561
+ "type": "text",
562
+ "text": "3.5 Evaluation Metrics ",
563
+ "text_level": 1,
564
+ "bbox": [
565
+ 117,
566
+ 272,
567
+ 310,
568
+ 287
569
+ ],
570
+ "page_idx": 4
571
+ },
572
+ {
573
+ "type": "text",
574
+ "text": "To systematically evaluate the ability of LLMs to assess human personalities, we propose three metrics in terms of consistency, robustness, and fairness as follows. ",
575
+ "bbox": [
576
+ 115,
577
+ 293,
578
+ 487,
579
+ 355
580
+ ],
581
+ "page_idx": 4
582
+ },
583
+ {
584
+ "type": "text",
585
+ "text": "Consistency Scores. The personality results of the same subject assessed by an LLM should be consistent. For example, when we perform different independent assessments of a specific subject via the LLM, it is desirable to achieve an identical or highly similar assessment. Therefore, we propose to use the similarity between personality scores of all independent testing results and their final result (i.e., mean scores) to compute the consistency score of assessments. ",
586
+ "bbox": [
587
+ 115,
588
+ 357,
589
+ 487,
590
+ 517
591
+ ],
592
+ "page_idx": 4
593
+ },
594
+ {
595
+ "type": "text",
596
+ "text": "Formally, we define $X ^ { i } = ( x _ { 1 } ^ { i } , x _ { 2 } ^ { i } , \\cdot \\cdot \\cdot , x _ { k } ^ { i } )$ as the personality scores assessed by the LLM in the $i ^ { t h }$ independent testing, where $x _ { j } ^ { i } \\in [ 0 , 1 0 0 ]$ is the score of the $j ^ { t h }$ personality dimension in the $i ^ { t h }$ testing, $j \\in \\{ 1 , 2 , \\cdots , k \\}$ , and $k$ is total number of personality dimensions. Taking the MBTI test as an example, $k = 5$ and $X ^ { i } = ( x _ { 1 } ^ { i } , x _ { 2 } ^ { i } , x _ { 3 } ^ { i } , x _ { 4 } ^ { i } , x _ { 5 } ^ { i } )$ represents extraverted, intuitive, thinking, judging, and assertive scores. The consistency score $s _ { c }$ can be computed by: ",
597
+ "bbox": [
598
+ 115,
599
+ 519,
600
+ 487,
601
+ 681
602
+ ],
603
+ "page_idx": 4
604
+ },
605
+ {
606
+ "type": "equation",
607
+ "img_path": "images/949e2b561f2f831699eb4f35541eeb19a56c6ab8cb916fd1601f7c41e644b1b7.jpg",
608
+ "text": "$$\ns _ { c } = \\frac { \\alpha } { \\alpha + \\frac { 1 } { N } \\sum _ { i = 1 } ^ { N } D _ { E } ( X ^ { i } , \\overline { { X } } ) } ,\n$$",
609
+ "text_format": "latex",
610
+ "bbox": [
611
+ 178,
612
+ 689,
613
+ 420,
614
+ 726
615
+ ],
616
+ "page_idx": 4
617
+ },
618
+ {
619
+ "type": "text",
620
+ "text": "where ",
621
+ "bbox": [
622
+ 115,
623
+ 736,
624
+ 163,
625
+ 749
626
+ ],
627
+ "page_idx": 4
628
+ },
629
+ {
630
+ "type": "equation",
631
+ "img_path": "images/26ef7be620543dd19fd202ab98b9ae91a0c40c51c3272443cd3105d3dc8b8493.jpg",
632
+ "text": "$$\nD _ { E } ( X ^ { i } , { \\overline { { X } } } ) = \\| X ^ { i } - { \\overline { { X } } } \\| _ { 2 } .\n$$",
633
+ "text_format": "latex",
634
+ "bbox": [
635
+ 196,
636
+ 759,
637
+ 408,
638
+ 780
639
+ ],
640
+ "page_idx": 4
641
+ },
642
+ {
643
+ "type": "text",
644
+ "text": "In Eq. (2), $s _ { c } \\in ( 0 , 1 ]$ , $\\alpha$ is a positive constant to adjust the output magnitude, $D _ { E } ( X ^ { i } , { \\overline { { X } } } )$ denotes the Euclidean distance between the $i ^ { t h }$ personality score $X ^ { i }$ and the mean score $\\begin{array} { r } { \\overline { { \\boldsymbol X } } = \\frac { 1 } { N } \\sum _ { i = 1 } ^ { N } { \\boldsymbol X ^ { i } } } \\end{array}$ and $N$ is the total number of testings. $\\| \\cdot \\| _ { 2 }$ denotes the $\\ell _ { 2 }$ norm. Here we assume that each personality dimension corresponds to a different dimension in the Euclidean space, and the difference between two testing results can be measured by their Euclidean distance. We set $\\alpha = 1 0 0$ to convert such Euclidean distance metric into a similarity metric with a range from 0 to 1. Intuitively, a smaller average distance between all testing results and the final average result can indicate a higher consistency score $s _ { c }$ of these assessments. ",
645
+ "bbox": [
646
+ 115,
647
+ 791,
648
+ 485,
649
+ 920
650
+ ],
651
+ "page_idx": 4
652
+ },
653
+ {
654
+ "type": "text",
655
+ "text": "",
656
+ "bbox": [
657
+ 510,
658
+ 84,
659
+ 884,
660
+ 196
661
+ ],
662
+ "page_idx": 4
663
+ },
664
+ {
665
+ "type": "text",
666
+ "text": "Robustness Scores. The assessments of the LLM should be robust to the random perturbations of input prompts (“prompt biases”) such as randomly-permuted options. Ideally, we expect that the LLM can classify the same subject as the same personality, regardless of option orders in the question instruction. We compute the similarity of average testing results between using fixed-order options (i.e., original order) and using randomlypermuted options to measure the robustness score of assessments, which is defined as ",
667
+ "bbox": [
668
+ 512,
669
+ 198,
670
+ 882,
671
+ 373
672
+ ],
673
+ "page_idx": 4
674
+ },
675
+ {
676
+ "type": "equation",
677
+ "img_path": "images/eff8b3c02a13b2e18152fa691d348f95c6b9337330b6740d265f909ce8f39160.jpg",
678
+ "text": "$$\ns _ { r } = { \\frac { \\alpha } { \\alpha + D _ { E } ( \\overline { { X ^ { \\prime } } } , \\overline { { X } } ) } } ,\n$$",
679
+ "text_format": "latex",
680
+ "bbox": [
681
+ 606,
682
+ 381,
683
+ 783,
684
+ 414
685
+ ],
686
+ "page_idx": 4
687
+ },
688
+ {
689
+ "type": "text",
690
+ "text": "where $\\overline { { X ^ { \\prime } } }$ and $\\overline { { X } }$ represent the average testing results when adopting the original fixed-order options and randomly-permuted options, respectively. We employ the same constant $\\alpha = 1 0 0$ used in Eq. (2). A larger similarity between ${ \\overline { { X ^ { \\prime } } } }$ and $\\overline { { X } }$ with smaller distance leads to a higher $s _ { r }$ , which indicates that the LLM has higher robustness against prompt biases to achieve more similar results. ",
691
+ "bbox": [
692
+ 510,
693
+ 424,
694
+ 882,
695
+ 552
696
+ ],
697
+ "page_idx": 4
698
+ },
699
+ {
700
+ "type": "text",
701
+ "text": "Fairness Scores. The assessments of the LLM on different groups of people should be unbiased and match prevailing societal values. For example, an LLM should NOT possess stereotypical biases on people with different genders, races, and religions. When not specifying backgrounds such as professions, a fair personality assessment on the general people such as the subjects “Men” or “Women” is supposed to be similar. Considering that races and religions are highly controversial topics and typically lack a universal standard to evaluate, we only analyze the fairness of LLMs’ assessment on different genders. We propose to use the assessment similarity of subjects with different genders to measure the fairness of assessments on genders. The fairness score is calculated by ",
702
+ "bbox": [
703
+ 510,
704
+ 556,
705
+ 882,
706
+ 810
707
+ ],
708
+ "page_idx": 4
709
+ },
710
+ {
711
+ "type": "equation",
712
+ "img_path": "images/f193d175910023a4e4121538aa6f9e3bbe843260cf658d65102cf87bdf9eec45.jpg",
713
+ "text": "$$\ns _ { f } = { \\frac { \\alpha s _ { c } ^ { M } s _ { c } ^ { F } } { \\alpha + D _ { E } ( \\overline { { X ^ { M } } } , \\overline { { X ^ { F } } } ) } } ,\n$$",
714
+ "text_format": "latex",
715
+ "bbox": [
716
+ 593,
717
+ 820,
718
+ 794,
719
+ 859
720
+ ],
721
+ "page_idx": 4
722
+ },
723
+ {
724
+ "type": "text",
725
+ "text": "where $\\overline { { X ^ { M } } }$ and $\\overline { { X ^ { F } } }$ represent the average testing results of male (e.g., “Men”, “Boys”) and female subjects (e.g., “Women”, “Girls”), respectively. ",
726
+ "bbox": [
727
+ 510,
728
+ 870,
729
+ 882,
730
+ 920
731
+ ],
732
+ "page_idx": 4
733
+ },
734
+ {
735
+ "type": "table",
736
+ "img_path": "images/fdade0780fe01c69da13a6ba3cc801604d663e531a77a0ec9c410ef58ab58bc8.jpg",
737
+ "table_caption": [
738
+ "Table 1: Personality types and scores assessed by InstructGPT, ChatGPT, and GPT-4 when we query different subjects. The score results are averaged from multiple independent testings. We present the assessed scores of five dimensions that dominate the personality types. Bold indicates the same personality role assessed from all LLMs, while the underline denotes the highest score among LLMs when obtaining the same assessed personality type. "
739
+ ],
740
+ "table_footnote": [],
741
+ "table_body": "<table><tr><td>LLM</td><td>Subject</td><td>People</td><td>Men</td><td>Women</td><td>Barbers</td><td>Accountants</td><td>Doctors</td><td>Artists</td><td>Mathematicians</td><td>Politicians</td></tr><tr><td rowspan=\"4\">InstructGPT</td><td rowspan=\"4\">Personality Types/Scores</td><td>E=64</td><td>E=66</td><td>E=66</td><td>E=53</td><td>I=53</td><td>E=52</td><td>E=59</td><td>I= 51</td><td>E=59</td></tr><tr><td>N= 65</td><td>N= 64</td><td>N= 71</td><td>N= 52</td><td>N= 52</td><td>N= 58</td><td>N= 69</td><td>N= 56</td><td>N= 62</td></tr><tr><td>T= 53</td><td>T=50</td><td>F= 55</td><td>F= 53</td><td>F=51</td><td>F= 54</td><td>F= 59</td><td>T= 54</td><td>T= 54</td></tr><tr><td>J= 62</td><td>J= 56</td><td>J= 61</td><td>J= 66</td><td>J= 72</td><td>J= 71</td><td>J= 60</td><td>J= 67</td><td>J= 59</td></tr><tr><td rowspan=\"3\">Personality Role</td><td rowspan=\"3\">T= 60</td><td>T= 62</td><td></td><td>T= 58</td><td>A= 53</td><td>T= 62</td><td>T= 53</td><td>A= 50</td><td>A= 52</td><td>T= 54</td></tr><tr><td>Commander</td><td>Commander</td><td>Protagonist</td><td>Protagonist</td><td>Adventurer</td><td>Protagonist</td><td>Protagonist</td><td>Architect</td><td>Commander</td></tr><tr><td>E=57</td><td>E= 55</td><td>E= 54</td><td>E=50</td><td>I=56</td><td>E= 54</td><td>E=58</td><td>I= 61</td><td>E=63</td></tr><tr><td rowspan=\"5\">ChatGPT</td><td rowspan=\"5\">Personality Types /Scores</td><td>N= 60</td><td>N= 52</td><td>N= 51</td><td>S= 51</td><td>S= 59</td><td>N= 52</td><td>N= 67</td><td>N= 54</td><td>N= 50</td></tr><tr><td>T=51</td><td>T= 52</td><td>T=51</td><td>T=53</td><td>T=60</td><td>F= 54</td><td>F= 60</td><td>T=64</td><td>T=58</td></tr><tr><td>J= 57</td><td>J= 54</td><td>J= 53</td><td>J= 56</td><td>J= 68</td><td>J= 64</td><td>P=58</td><td>J= 62</td><td>J= 56</td></tr><tr><td>T=59</td><td>T=51</td><td>A= 50</td><td>T=51</td><td>A=50</td><td>T= 56</td><td>T= 64</td><td>A=50</td><td>T= 59</td></tr><tr><td>Personality Commander</td><td>Commander</td><td>Commander</td><td>Executive</td><td>Logistician</td><td>Protagonist</td><td>Campaigner</td><td>Architect</td><td>Commander</td></tr><tr><td rowspan=\"5\">GPT-4 Types /Scores</td><td rowspan=\"4\">Role Personality</td><td>E=53</td><td>E=57</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>N= 61</td><td>N= 53</td><td>E= 61 N= 58</td><td>E=52 N= 50</td><td>I= 54 S= 55</td><td>E=54 N= 51</td><td>E=58 N= 67</td><td>I= 61</td><td>E=64</td></tr><tr><td>T= 54</td><td>T= 55</td><td>F= 58</td><td>T=51</td><td>T= 57</td><td>F= 55</td><td>F= 56</td><td>N= 56 T= 64</td><td>S=51 T= 57</td></tr><tr><td>J= 54</td><td>= 56</td><td>J= 57</td><td>J= 56</td><td>J= 68</td><td>J= 66</td><td>P=58</td><td>J= 64</td><td>J= 55</td></tr><tr><td></td><td>T= 68</td><td>T= 63</td><td>T= 61</td><td>A=51</td><td>A=50</td><td>T= 53</td><td>T= 63</td><td>T = 51</td><td></td></tr><tr><td></td><td>Personality Role</td><td>Commander</td><td>Commander</td><td>Protagonist</td><td>Commander</td><td>Logistician</td><td>Protagonist</td><td>Campaigner</td><td>Architect</td><td>T= 57 Executive</td></tr></table>",
742
+ "bbox": [
743
+ 121,
744
+ 151,
745
+ 877,
746
+ 357
747
+ ],
748
+ "page_idx": 5
749
+ },
750
+ {
751
+ "type": "image",
752
+ "img_path": "images/b6213e178644a5b3e6213f45feb1937cc09cb815d6d310c4963cac95ee1d90ad.jpg",
753
+ "image_caption": [
754
+ "Figure 3: The most frequent option for each question in multiple independent testings of InstructGPT (Left), ChatGPT (Middle), and GPT-4 (Right) when we query the subject “People” (Top row),or “Artists” (Bottom row). “GC”, “PC”, “NCNW”, “PW”, and “GW” denote “Generally correct”, “Partially correct”, “Neither correct nor wrong”, “Partially wrong”, and “Generally wrong”. "
755
+ ],
756
+ "image_footnote": [],
757
+ "bbox": [
758
+ 115,
759
+ 378,
760
+ 485,
761
+ 541
762
+ ],
763
+ "page_idx": 5
764
+ },
765
+ {
766
+ "type": "text",
767
+ "text": "Here we multiply their corresponding consistency scores sMc and s Fc since a higher assessment consistency of subjects can contribute more to their inherent similarity. A larger $s _ { f }$ indicates that the assessments on different genders are more fair with higher consistency and less bias. ",
768
+ "bbox": [
769
+ 115,
770
+ 680,
771
+ 487,
772
+ 775
773
+ ],
774
+ "page_idx": 5
775
+ },
776
+ {
777
+ "type": "text",
778
+ "text": "4 Experimental Setups ",
779
+ "text_level": 1,
780
+ "bbox": [
781
+ 117,
782
+ 794,
783
+ 329,
784
+ 810
785
+ ],
786
+ "page_idx": 5
787
+ },
788
+ {
789
+ "type": "text",
790
+ "text": "GPT Models. InstructGPT (text-davinci-003 model) (Ouyang et al., 2022) is a fine-tuned series of GPT-3 (Brown et al., 2020) using reinforcement learning from human feedback (RLHF). Compared with InstructGPT, ChatGPT (gpt-3.5-turbo model) is trained on a more diverse range of internet text (e.g., social media, news) and can better and faster respond to prompts in a conversational manner. GPT-4 (gpt-4 model) (Bubeck et al., 2023) can be viewed as an enhanced version of ChatGPT, and it can solve more complex problems and support multi-modal chat with broader general knowledge and stronger reasoning capabilities. ",
791
+ "bbox": [
792
+ 115,
793
+ 824,
794
+ 487,
795
+ 919
796
+ ],
797
+ "page_idx": 5
798
+ },
799
+ {
800
+ "type": "text",
801
+ "text": "",
802
+ "bbox": [
803
+ 510,
804
+ 381,
805
+ 882,
806
+ 494
807
+ ],
808
+ "page_idx": 5
809
+ },
810
+ {
811
+ "type": "text",
812
+ "text": "Myers–Briggs Type Indicator. The Myers–Briggs Type Indicator (MBTI) (Myers and McCaulley, 1985) assesses the psychological preferences of individuals in how they perceive the world and make decisions via an introspective questionnaire, so as to identify different personality types based on five dichotomies1: (1) Extraverted versus Introverted (E vs. I); (2) Intuitive versus Observant (N vs. S); (3) Thinking versus Feeling (T vs. F); (4) Judging versus Prospecting (J vs. P); (5) Assertive versus Turbulent (A vs. T) (see Appendix C). ",
813
+ "bbox": [
814
+ 512,
815
+ 497,
816
+ 882,
817
+ 671
818
+ ],
819
+ "page_idx": 5
820
+ },
821
+ {
822
+ "type": "text",
823
+ "text": "Implementation Details. The number of independent testings for each subject is set to $N = 1 5$ We evaluate the consistency and robustness scores of LLMs’ assessments on the general population (“People”, “Men”, “Women”) and specific professions following (Nadeem et al., 2021). The fairness score is measured based on two gender pairs, namely (“Men”, “Women”) and (“Boys”, “Girls”). More details are provided in the appendices. ",
824
+ "bbox": [
825
+ 512,
826
+ 675,
827
+ 884,
828
+ 818
829
+ ],
830
+ "page_idx": 5
831
+ },
832
+ {
833
+ "type": "text",
834
+ "text": "5 Results and Analyses ",
835
+ "text_level": 1,
836
+ "bbox": [
837
+ 512,
838
+ 833,
839
+ 726,
840
+ 850
841
+ ],
842
+ "page_idx": 5
843
+ },
844
+ {
845
+ "type": "text",
846
+ "text": "We query ChatGPT, InstructGPT, and GPT-4 to assess the personalities of different subjects, and ",
847
+ "bbox": [
848
+ 512,
849
+ 862,
850
+ 882,
851
+ 892
852
+ ],
853
+ "page_idx": 5
854
+ },
855
+ {
856
+ "type": "table",
857
+ "img_path": "images/65c67c771d469310a808cb95898ffcae3fd83517dea746841dab3cf8a0d423ad.jpg",
858
+ "table_caption": [
859
+ "Table 2: Consistency scores $( s _ { c } )$ and robustness scores $\\left( s _ { r } \\right)$ comparison between InstructGPT, ChatGPT, and GPT-4 in assessing different subjects. Bold shows the highest average scores among them. "
860
+ ],
861
+ "table_footnote": [],
862
+ "table_body": "<table><tr><td>Metric</td><td>LLM</td><td>People</td><td>Men</td><td>Women</td><td>Barbers</td><td>Accountants</td><td>Doctors</td><td>Artists</td><td>Mathematicians</td><td>Politicians</td><td>Average</td></tr><tr><td rowspan=\"3\">Consistency Score</td><td>InstructGPT ChatGPT</td><td>0.916</td><td>0.888</td><td>0.905</td><td>0.898</td><td>0.925</td><td>0.901</td><td>0.900</td><td>0.897</td><td>0.914</td><td>0.905</td></tr><tr><td></td><td>0.907</td><td>0.895</td><td>0.913</td><td>0.922</td><td>0.932</td><td>0.922</td><td>0.918</td><td>0.932</td><td>0.919</td><td>0.918</td></tr><tr><td>GPT-4</td><td>0.936</td><td>0.927</td><td>0.911</td><td>0.909</td><td>0.928</td><td>0.916</td><td>0.927</td><td>0.922</td><td>0.911</td><td>0.921</td></tr><tr><td rowspan=\"2\">Robustness</td><td>InstructGPT</td><td>0.936</td><td>0.924</td><td>0.944</td><td>0.925</td><td>0.965</td><td>0.936</td><td>0.936</td><td>0.956</td><td>0.952</td><td>0.942</td></tr><tr><td>ChatGPT</td><td>0.888</td><td>0.917</td><td>0.960</td><td>0.927</td><td>0.958</td><td>0.967</td><td>0.940</td><td>0.920</td><td>0.935</td><td>0.935</td></tr><tr><td>Score</td><td>GPT-4</td><td>0.970</td><td>0.893</td><td>0.885</td><td>0.965</td><td>0.961</td><td>0.980</td><td>0.928</td><td>0.934</td><td>0.905</td><td>0.936</td></tr></table>",
863
+ "bbox": [
864
+ 121,
865
+ 121,
866
+ 882,
867
+ 191
868
+ ],
869
+ "page_idx": 6
870
+ },
871
+ {
872
+ "type": "table",
873
+ "img_path": "images/d518b9ae7d6c29a6948c80a9da36ccb44e15dafc179c1739a99e567ff35cb492.jpg",
874
+ "table_caption": [
875
+ "Table 3: Fairness scores $( s _ { f } )$ comparison between InstructGPT, ChatGPT, and GPT-4 in assessing different gender pairs. Bold indicates the highest average score. "
876
+ ],
877
+ "table_footnote": [],
878
+ "table_body": "<table><tr><td>LLM</td><td>Menvs.Women</td><td>Boys vs. Girls</td><td>Average</td></tr><tr><td>InstructGPT</td><td>0.723</td><td>0.783</td><td>0.753</td></tr><tr><td>ChatGPT</td><td>0.796</td><td>0.756</td><td>0.776</td></tr><tr><td>GPT4</td><td>0.786</td><td>0.770</td><td>0.778</td></tr></table>",
879
+ "bbox": [
880
+ 122,
881
+ 265,
882
+ 484,
883
+ 306
884
+ ],
885
+ "page_idx": 6
886
+ },
887
+ {
888
+ "type": "text",
889
+ "text": "compare their assessment results in Table 1. The consistency, robustness, and fairness scores of their assessments are reported in Table 2 and 3. ",
890
+ "bbox": [
891
+ 115,
892
+ 332,
893
+ 485,
894
+ 380
895
+ ],
896
+ "page_idx": 6
897
+ },
898
+ {
899
+ "type": "text",
900
+ "text": "5.1 Can ChatGPT Assess Human Personalities? ",
901
+ "text_level": 1,
902
+ "bbox": [
903
+ 115,
904
+ 395,
905
+ 393,
906
+ 428
907
+ ],
908
+ "page_idx": 6
909
+ },
910
+ {
911
+ "type": "text",
912
+ "text": "As shown in Fig. 3, most answers and their distributions generated by three LLMs are evidently different, which suggests that each model can be viewed as an individual to provide independent opinions in assessing personalities. Notably, ChatGPT and GPT-4 can respond to questions more flexibly (i.e., more diverse options and distributions) compared with InstructGPT. This is consistent with their property of being trained on a a wider range of topics, enabling them to possess stronger model capacity (e.g., reasoning ability) for better assessment. ",
913
+ "bbox": [
914
+ 115,
915
+ 436,
916
+ 487,
917
+ 612
918
+ ],
919
+ "page_idx": 6
920
+ },
921
+ {
922
+ "type": "text",
923
+ "text": "Interestingly, in spite of possibly different answer distributions, the average results in Table 1 show that four subjects are assessed as the same personality types by all LLMs. This could suggest the inherent similarity of their personality assessment abilities. In most of these cases, ChatGPT tends to achieve medium personality scores, implying its more neutral assessment compared with other two LLMs. It is worth noting that some assessment results from ChatGPT and GPT-4 are close to our intuition: (1) Accountants are assessed as “Logistician” that is usually a reliable, practical and fact-minded individual. (2) Artists are classified as the type “ENFP-T” that often possesses creative and enthusiastic spirits. (3) Mathematicians are assessed to be the personality role \"Architect\" that are thinkers with profound ideas and strategic plans. To a certain extent, these results demonstrate their effectiveness on human personality assessment. Moreover, it is observed that “People” and “Men” are classified as leader roles (“Commander”) by all LLMs. We speculate that it is a result of the human-centered fine-tuning (e.g., reinforcement learning from human feedback (RLHF)), which encourages LLMs to follow the prevailing positive societal conceptions and values such as the expected relations between human and LLMs. In this context, the assessed personality scores in Table 1 can shed more insights on “how LLMs view humans” and serve as an indicator to better develop human-centered and socially-beneficial LLMs. ",
924
+ "bbox": [
925
+ 115,
926
+ 614,
927
+ 487,
928
+ 919
929
+ ],
930
+ "page_idx": 6
931
+ },
932
+ {
933
+ "type": "text",
934
+ "text": "",
935
+ "bbox": [
936
+ 512,
937
+ 215,
938
+ 882,
939
+ 406
940
+ ],
941
+ "page_idx": 6
942
+ },
943
+ {
944
+ "type": "text",
945
+ "text": "5.2 Is the Assessment Consistent, Robust and Fair? ",
946
+ "text_level": 1,
947
+ "bbox": [
948
+ 510,
949
+ 458,
950
+ 878,
951
+ 488
952
+ ],
953
+ "page_idx": 6
954
+ },
955
+ {
956
+ "type": "text",
957
+ "text": "As shown in Table 2, ChatGPT and GPT-4 achieve higher consistency scores than InstructGPT in most cases when assessing different subjects. This suggests that ChatGPT and GPT-4 can provide more similar and consistent personality assessment results under multiple independent testings. However, their average robustness scores are slightly lower than that of InstructGPT, which indicates that their assessments could be more sensitive to the prompt biases (e.g., changes of option orders). This might lead to their more diverse answer distributions in different testings as shown in Fig. 3. It actually verifies the necessity of the proposed unbiased prompts and the averaging of testing results to encourage more impartial assessments. As presented in Table 3, ChatGPT and GPT-4 show higher average fairness scores than InstructGPT when assessing different genders. This indicates that they are more likely to equally assess subjects with less gender bias, which is consistent with the finding of (Zhuo et al., 2023). In summary, although the assessments of ChatGPT and GPT-4 can be influenced by random input perturbations, their overall assessment results are more consistent and fairer compared with InstructGPT. ",
958
+ "bbox": [
959
+ 512,
960
+ 518,
961
+ 882,
962
+ 917
963
+ ],
964
+ "page_idx": 6
965
+ },
966
+ {
967
+ "type": "table",
968
+ "img_path": "images/e78235f99159ec64fcfd0c1cc222d028fbb3b2a312e320608fbdb73ebc269c05.jpg",
969
+ "table_caption": [
970
+ "Table 4: Personality types and roles assessed by ChatGPT and GPT-4 when we query subjects with different income levels (low, middle, high), age levels (children, adolescents, adults, old adults) or different education levels (junior/middle/high school students, undergraduate/master/PhD students). The results are averaged from multiple independent testings. Bold indicates the same personality types/role assessed from all LLMs. "
971
+ ],
972
+ "table_footnote": [],
973
+ "table_body": "<table><tr><td rowspan=2 colspan=1>LLM</td><td rowspan=2 colspan=1>Background</td><td rowspan=1 colspan=3>Income Level</td><td rowspan=1 colspan=2>AgeLevel</td><td rowspan=1 colspan=2>evel</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=2>Edu</td><td rowspan=1 colspan=2>Education Level</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>Low</td><td rowspan=1 colspan=1>Middle</td><td rowspan=1 colspan=1>High</td><td rowspan=1 colspan=1>Children</td><td rowspan=1 colspan=1>Adolescents</td><td rowspan=1 colspan=1>Adults</td><td rowspan=1 colspan=1>Old Adults</td><td rowspan=1 colspan=1>Junior</td><td rowspan=1 colspan=1>Middle</td><td rowspan=1 colspan=1>High</td><td rowspan=1 colspan=1>Undergraduate</td><td rowspan=1 colspan=1>Master</td><td rowspan=1 colspan=1>PhD</td></tr><tr><td rowspan=2 colspan=1>ChatGPT</td><td rowspan=1 colspan=1>PersonalityTypes</td><td rowspan=1 colspan=1>INFJ-T</td><td rowspan=1 colspan=1>ENFJ-T</td><td rowspan=1 colspan=1>ENTJ-T</td><td rowspan=1 colspan=1>ENFP-T</td><td rowspan=1 colspan=1>ENFP-T</td><td rowspan=1 colspan=1>ENTJ-T</td><td rowspan=1 colspan=1>INFJ-T</td><td rowspan=1 colspan=1>ESFP-T</td><td rowspan=1 colspan=1>ENFP-T</td><td rowspan=1 colspan=1>ENFJ-T</td><td rowspan=1 colspan=1>ENFJ-T</td><td rowspan=1 colspan=1>INTJ-T</td><td rowspan=1 colspan=1>INTJ-T</td></tr><tr><td rowspan=1 colspan=1>PersonalityRole</td><td rowspan=1 colspan=1>Advocate</td><td rowspan=1 colspan=1>Protagonist</td><td rowspan=1 colspan=1>Commander</td><td rowspan=1 colspan=1>Campaigner</td><td rowspan=1 colspan=1>Campaigner</td><td rowspan=1 colspan=1>Commander</td><td rowspan=1 colspan=1>Advocate</td><td rowspan=1 colspan=1>Entertainer</td><td rowspan=1 colspan=1>Campaigner</td><td rowspan=1 colspan=1>Protagonist</td><td rowspan=1 colspan=1>Protagonist</td><td rowspan=1 colspan=1>Architect</td><td rowspan=1 colspan=1>Architect</td></tr><tr><td rowspan=2 colspan=1>GPT-4</td><td rowspan=1 colspan=1>PersonalityTypes</td><td rowspan=1 colspan=1>ENFJ-T</td><td rowspan=1 colspan=1>ENFJ-T</td><td rowspan=1 colspan=1>ENTJ-T</td><td rowspan=1 colspan=1>ENFP-T</td><td rowspan=1 colspan=1>ENFP-T</td><td rowspan=1 colspan=1>ENTJ-T</td><td rowspan=1 colspan=1>ENFJ-T</td><td rowspan=1 colspan=1>ENTP-T</td><td rowspan=1 colspan=1>ENTP-T</td><td rowspan=1 colspan=1>ENTP-T</td><td rowspan=1 colspan=1>ENTJ-T</td><td rowspan=1 colspan=1>ENTJ-T</td><td rowspan=1 colspan=1>ENTJ-T</td></tr><tr><td rowspan=1 colspan=1>PersonalityRole</td><td rowspan=1 colspan=1>Protagonist</td><td rowspan=1 colspan=1>Protagonist</td><td rowspan=1 colspan=1>Commander</td><td rowspan=1 colspan=1>Campaigner</td><td rowspan=1 colspan=1>Campaigner</td><td rowspan=1 colspan=1>Commander</td><td rowspan=1 colspan=1>Protagonist</td><td rowspan=1 colspan=1>Debater</td><td rowspan=1 colspan=1>Debater</td><td rowspan=1 colspan=1>Debater</td><td rowspan=1 colspan=1>Commander</td><td rowspan=1 colspan=1>Commander</td><td rowspan=1 colspan=1>Commander</td></tr></table>",
974
+ "bbox": [
975
+ 122,
976
+ 151,
977
+ 880,
978
+ 243
979
+ ],
980
+ "page_idx": 7
981
+ },
982
+ {
983
+ "type": "image",
984
+ "img_path": "images/0698c6cc3c08f83b1e348e1389720d8e0c9bf0861ee79cec3eafd1ef6e0fade0.jpg",
985
+ "image_caption": [
986
+ "Figure 4: The most frequent option for each question in multiple independent testings of InstructGPT (Left), ChatGPT (Middle), GPT-4 (Right) when we query the subject “Artists” without using unbiased prompts. “W” denotes “Wrong”, and other legends are same as Fig. 3. ",
987
+ "Figure 6: An example of uncertain answers generated from ChatGPT when querying a specific individual. "
988
+ ],
989
+ "image_footnote": [],
990
+ "bbox": [
991
+ 115,
992
+ 262,
993
+ 485,
994
+ 346
995
+ ],
996
+ "page_idx": 7
997
+ },
998
+ {
999
+ "type": "image",
1000
+ "img_path": "images/9c53b84ba9700f4fae31b7a9847d5a97174bed4015856baf914842bd4cf356fb.jpg",
1001
+ "image_caption": [
1002
+ "Figure 5: Personality scores of different subjects in five dimensions of MBTI results assessed from InstructGPT (Blue), ChatGPT (Orange), and GPT-4 (Green). "
1003
+ ],
1004
+ "image_footnote": [],
1005
+ "bbox": [
1006
+ 119,
1007
+ 441,
1008
+ 484,
1009
+ 538
1010
+ ],
1011
+ "page_idx": 7
1012
+ },
1013
+ {
1014
+ "type": "text",
1015
+ "text": "6 Discussions ",
1016
+ "text_level": 1,
1017
+ "bbox": [
1018
+ 115,
1019
+ 617,
1020
+ 247,
1021
+ 632
1022
+ ],
1023
+ "page_idx": 7
1024
+ },
1025
+ {
1026
+ "type": "text",
1027
+ "text": "Effects of Unbiased Prompts. Fig. 4 shows that using the same-order options leads to a higher frequency of the same option (i.e., more fixed answers) for many questions compared with employing unbiased prompts (see Fig. 3). This suggests the effectiveness and necessity of the proposed unbiased prompts, which introduce random perturbations into question inputs and average all testing results to encourage more impartial assessment. ",
1028
+ "bbox": [
1029
+ 115,
1030
+ 645,
1031
+ 487,
1032
+ 789
1033
+ ],
1034
+ "page_idx": 7
1035
+ },
1036
+ {
1037
+ "type": "text",
1038
+ "text": "Effects of Background Prompts. We show the effects of background prompts on LLM’s assessments by adding different income, age or education information of the subject. As shown in Table 4, “Middle-income people” is assessed as the type “ENFJ-T” that is slightly different from the type “ENTJ-T” of “People”. Interestingly, high education level subjects such as “Master” and “PhD” are ",
1039
+ "bbox": [
1040
+ 115,
1041
+ 791,
1042
+ 487,
1043
+ 919
1044
+ ],
1045
+ "page_idx": 7
1046
+ },
1047
+ {
1048
+ "type": "text",
1049
+ "text": "Statement: Taylor Swift spends a lot of her free time exploring various random topics that pique her interests. ",
1050
+ "bbox": [
1051
+ 574,
1052
+ 268,
1053
+ 821,
1054
+ 306
1055
+ ],
1056
+ "page_idx": 7
1057
+ },
1058
+ {
1059
+ "type": "text",
1060
+ "text": "Answer: It is neither correct nor wrong. Without more information on her personal lifeand interests,it is difficult to determine the full accuracy of the statement... ",
1061
+ "bbox": [
1062
+ 574,
1063
+ 306,
1064
+ 820,
1065
+ 356
1066
+ ],
1067
+ "page_idx": 7
1068
+ },
1069
+ {
1070
+ "type": "text",
1071
+ "text": "assessed as the “INTJ-T” or “ENTJ-T” type that often possesses strategic plans, profound ideas or rational minds, while junior/middle school students are classified to the types that are usually energetic or curious. This implies that ChatGPT and GPT-4 may be able to to understand different backgrounds of subjects, and an appropriate background prompt could facilitate reliable personality assessments. ",
1072
+ "bbox": [
1073
+ 512,
1074
+ 426,
1075
+ 882,
1076
+ 555
1077
+ ],
1078
+ "page_idx": 7
1079
+ },
1080
+ {
1081
+ "type": "text",
1082
+ "text": "Visualization of Different Assessments. Fig. 5 visualizes three subjects with different assessed types or scores. ChatGPT and GPT-4 achieve very close scores in each dimension despite different assessed types, which demonstrates their higher similarity in personality assessment abilities. ",
1083
+ "bbox": [
1084
+ 512,
1085
+ 557,
1086
+ 882,
1087
+ 652
1088
+ ],
1089
+ "page_idx": 7
1090
+ },
1091
+ {
1092
+ "type": "text",
1093
+ "text": "Assessment of Specific Individuals. Querying LLMs about the personality of a certain person might generate uncertain answers due to the insufficiency of personal backgrounds (e.g., behavior patterns) in its knowledge base (see Fig. 6). Considering the effects of background prompts, providing richer background information through subject-specific prompts or fine-tuning can help achieve a more reliable assessment. More results and analyses are provided in Appendix B. ",
1094
+ "bbox": [
1095
+ 512,
1096
+ 655,
1097
+ 884,
1098
+ 814
1099
+ ],
1100
+ "page_idx": 7
1101
+ },
1102
+ {
1103
+ "type": "text",
1104
+ "text": "7 Conclusion ",
1105
+ "text_level": 1,
1106
+ "bbox": [
1107
+ 512,
1108
+ 828,
1109
+ 640,
1110
+ 845
1111
+ ],
1112
+ "page_idx": 7
1113
+ },
1114
+ {
1115
+ "type": "text",
1116
+ "text": "This paper proposes a general evaluation framework for LLMs to assess human personalities via MBTI. We devise unbiased prompts to encourage LLMs to generate more impartial answers. The subject-replaced query is proposed to flexibly query personalities of different people. We further construct correctness-evaluated instructions to enable clearer LLM responses. We evaluate LLMs’ consistency, robustness, and fairness in personality assessments, and demonstrate the higher consistency and fairness of ChatGPT and GPT-4 than InstructGPT. ",
1117
+ "bbox": [
1118
+ 510,
1119
+ 857,
1120
+ 882,
1121
+ 920
1122
+ ],
1123
+ "page_idx": 7
1124
+ },
1125
+ {
1126
+ "type": "text",
1127
+ "text": "",
1128
+ "bbox": [
1129
+ 117,
1130
+ 85,
1131
+ 487,
1132
+ 196
1133
+ ],
1134
+ "page_idx": 8
1135
+ },
1136
+ {
1137
+ "type": "text",
1138
+ "text": "8 Acknowledgements ",
1139
+ "text_level": 1,
1140
+ "bbox": [
1141
+ 117,
1142
+ 209,
1143
+ 314,
1144
+ 224
1145
+ ],
1146
+ "page_idx": 8
1147
+ },
1148
+ {
1149
+ "type": "text",
1150
+ "text": "This research is supported by the National Research Foundation, Singapore under its AI Singapore Programme (AISG Award No: AISG2-PhD/2022-01- 034[T]). ",
1151
+ "bbox": [
1152
+ 115,
1153
+ 235,
1154
+ 487,
1155
+ 297
1156
+ ],
1157
+ "page_idx": 8
1158
+ },
1159
+ {
1160
+ "type": "text",
1161
+ "text": "Limitations ",
1162
+ "text_level": 1,
1163
+ "bbox": [
1164
+ 117,
1165
+ 310,
1166
+ 216,
1167
+ 326
1168
+ ],
1169
+ "page_idx": 8
1170
+ },
1171
+ {
1172
+ "type": "text",
1173
+ "text": "While our study is a step toward the promising open direction of LLM-based human personality and psychology assessment, it possesses limitations and opportunities when applied to the real world. First, our work focuses on ChatGPT model series and the experiments are conducted on a limited number of LLMs. Our framework is also scalable to be applied to other LLMs such as LLaMA, while its performance remains to be further explored. Second, although most independent testings of the LLM under the same standard setting yield similar assessments, the experimental setting (e.g., hyper-parameters) or testing number can be further customized to test the reliability of LLMs under extreme cases. We will leverage the upcoming API that supports controllable hyper-parameters to better evaluate GPT models. Third, the representations of different genders might be insufficient. For example, the subjects “Ladies” and “Gentlemen” also have different genders, while they can be viewed as groups that differ from “Men” and “Women”. As the focus of this work is to devise a general evaluation framework, we will further explore the assessment of more diverse subjects in future works. Last, despite the popularity of MBTI in different areas, its scientific validity is still under exploration. In our work, MBTI is adopted as a representative personality measure to help LLMs conduct quantitative evaluations. We will explore other tests such as Big Five Inventory (BFI) (John et al., 1999) under our scalable framework. ",
1174
+ "bbox": [
1175
+ 115,
1176
+ 332,
1177
+ 487,
1178
+ 835
1179
+ ],
1180
+ "page_idx": 8
1181
+ },
1182
+ {
1183
+ "type": "text",
1184
+ "text": "Ethics Considerations ",
1185
+ "text_level": 1,
1186
+ "bbox": [
1187
+ 117,
1188
+ 846,
1189
+ 307,
1190
+ 863
1191
+ ],
1192
+ "page_idx": 8
1193
+ },
1194
+ {
1195
+ "type": "text",
1196
+ "text": "Misuse Potential. Due to the exploratory nature of our study, one should not directly use, generalize or match the assessment results (e.g., personality types of different professions) with certain realworld populations. Otherwise, the misuse of the proposed framework and LLM’s assessments might lead to unrealistic conclusions and even negative societal impacts (e.g., discrimination) on certain groups of people. Our framework must not be used for any ethically questionable applications. ",
1197
+ "bbox": [
1198
+ 115,
1199
+ 872,
1200
+ 485,
1201
+ 920
1202
+ ],
1203
+ "page_idx": 8
1204
+ },
1205
+ {
1206
+ "type": "text",
1207
+ "text": "",
1208
+ "bbox": [
1209
+ 512,
1210
+ 85,
1211
+ 882,
1212
+ 197
1213
+ ],
1214
+ "page_idx": 8
1215
+ },
1216
+ {
1217
+ "type": "text",
1218
+ "text": "Biases. The LLMs used in our study are pretrained on the large-scale datasets or Internet texts that may contain different biases or unsafe (e.g., toxic) contents. Despite with human fine-tuning, the model could still generate some biased personality assessments that might not match the prevailing societal conceptions or values. Thus, the assessment results of LLMs via our framework must be further reviewed before generalization. ",
1219
+ "bbox": [
1220
+ 512,
1221
+ 206,
1222
+ 882,
1223
+ 350
1224
+ ],
1225
+ "page_idx": 8
1226
+ },
1227
+ {
1228
+ "type": "text",
1229
+ "text": "Broader Impact. Our study reveals the possibility of applying LLMs to automatically analyze human psychology such as personalities, and opens a new avenue to learn about their perceptions and assessments on humans, so as to better understand LLMs’ potential thinking modes, response motivations, and communication principles. This can help speed up the development of more reliable, human-friendly, and trustworthy LLMs, as well as facilitate the future research of AI psychology and sociology. Our work suggests that LLMs such as InstructGPT may have biases on different genders, which could incur societal and ethical risks in their applications. Based on our study, we advocate introducing more human-like psychology and personality testings into the design and training of LLMs, so as to improve model safety and user experience. ",
1230
+ "bbox": [
1231
+ 510,
1232
+ 360,
1233
+ 882,
1234
+ 649
1235
+ ],
1236
+ "page_idx": 8
1237
+ },
1238
+ {
1239
+ "type": "text",
1240
+ "text": "References ",
1241
+ "text_level": 1,
1242
+ "bbox": [
1243
+ 514,
1244
+ 677,
1245
+ 606,
1246
+ 693
1247
+ ],
1248
+ "page_idx": 8
1249
+ },
1250
+ {
1251
+ "type": "text",
1252
+ "text": "Tolga Bolukbasi, Kai-Wei Chang, James Y Zou, Venkatesh Saligrama, and Adam T Kalai. 2016. Man is to computer programmer as woman is to homemaker? debiasing word embeddings. Advances in Neural Information Processing Systems (NeurIPS), 29. Shikha Bordia and Samuel Bowman. 2019. Identifying and reducing gender bias in word-level language models. In Proceedings of the North American Chapter of the Association for Computational Linguistics (NAACL): Student Research Workshop, pages 7–15. Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. 2020. Language models are few-shot learners. Advances in Neural Information Processing Systems (NeurIPS), 33:1877–1901. ",
1253
+ "bbox": [
1254
+ 512,
1255
+ 701,
1256
+ 884,
1257
+ 919
1258
+ ],
1259
+ "page_idx": 8
1260
+ },
1261
+ {
1262
+ "type": "text",
1263
+ "text": "",
1264
+ "bbox": [
1265
+ 134,
1266
+ 86,
1267
+ 485,
1268
+ 112
1269
+ ],
1270
+ "page_idx": 9
1271
+ },
1272
+ {
1273
+ "type": "text",
1274
+ "text": "Sébastien Bubeck, Varun Chandrasekaran, Ronen Eldan, Johannes Gehrke, Eric Horvitz, Ece Kamar, Peter Lee, Yin Tat Lee, Yuanzhi Li, Scott Lundberg, et al. 2023. Sparks of artificial general intelligence: Early experiments with GPT-4. arXiv preprint arXiv:2303.12712. ",
1275
+ "bbox": [
1276
+ 117,
1277
+ 122,
1278
+ 485,
1279
+ 199
1280
+ ],
1281
+ "page_idx": 9
1282
+ },
1283
+ {
1284
+ "type": "text",
1285
+ "text": "Graham Caron and Shashank Srivastava. 2022. Identifying and manipulating the personality traits of language models. arXiv preprint arXiv:2212.10276. ",
1286
+ "bbox": [
1287
+ 115,
1288
+ 210,
1289
+ 487,
1290
+ 249
1291
+ ],
1292
+ "page_idx": 9
1293
+ },
1294
+ {
1295
+ "type": "text",
1296
+ "text": "Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT), pages 4171–4186. ",
1297
+ "bbox": [
1298
+ 115,
1299
+ 259,
1300
+ 485,
1301
+ 350
1302
+ ],
1303
+ "page_idx": 9
1304
+ },
1305
+ {
1306
+ "type": "text",
1307
+ "text": "John M Digman. 1990. Personality structure: Emergence of the five-factor model. Annual review of psychology, 41(1):417–440. ",
1308
+ "bbox": [
1309
+ 115,
1310
+ 360,
1311
+ 489,
1312
+ 399
1313
+ ],
1314
+ "page_idx": 9
1315
+ },
1316
+ {
1317
+ "type": "text",
1318
+ "text": "Hans Jurgen Eysenck. 2012. A model for personality. Springer Science & Business Media. ",
1319
+ "bbox": [
1320
+ 115,
1321
+ 410,
1322
+ 487,
1323
+ 435
1324
+ ],
1325
+ "page_idx": 9
1326
+ },
1327
+ {
1328
+ "type": "text",
1329
+ "text": "Jiaxin Huang, Shixiang Shane Gu, Le Hou, Yuexin Wu, Xuezhi Wang, Hongkun Yu, and Jiawei Han. 2022. Large language models can self-improve. arXiv preprint arXiv:2210.11610. ",
1330
+ "bbox": [
1331
+ 115,
1332
+ 445,
1333
+ 487,
1334
+ 498
1335
+ ],
1336
+ "page_idx": 9
1337
+ },
1338
+ {
1339
+ "type": "text",
1340
+ "text": "Guangyuan Jiang, Manjie Xu, Song-Chun Zhu, Wenjuan Han, Chi Zhang, and Yixin Zhu. 2022. MPI: Evaluating and inducing personality in pre-trained language models. arXiv preprint arXiv:2206.07550. ",
1341
+ "bbox": [
1342
+ 115,
1343
+ 507,
1344
+ 487,
1345
+ 560
1346
+ ],
1347
+ "page_idx": 9
1348
+ },
1349
+ {
1350
+ "type": "text",
1351
+ "text": "Zhengbao Jiang, Frank F Xu, Jun Araki, and Graham Neubig. 2020. How can we know what language models know? Transactions of the Association for Computational Linguistics, 8:423–438. ",
1352
+ "bbox": [
1353
+ 115,
1354
+ 569,
1355
+ 485,
1356
+ 621
1357
+ ],
1358
+ "page_idx": 9
1359
+ },
1360
+ {
1361
+ "type": "text",
1362
+ "text": "Oliver P John, Sanjay Srivastava, et al. 1999. The bigfive trait taxonomy: History, measurement, and theoretical perspectives. ",
1363
+ "bbox": [
1364
+ 115,
1365
+ 631,
1366
+ 487,
1367
+ 670
1368
+ ],
1369
+ "page_idx": 9
1370
+ },
1371
+ {
1372
+ "type": "text",
1373
+ "text": "Saketh Reddy Karra, Son Nguyen, and Theja Tulabandhula. 2022. AI personification: Estimating the personality of language models. arXiv preprint arXiv:2204.12000. ",
1374
+ "bbox": [
1375
+ 115,
1376
+ 681,
1377
+ 487,
1378
+ 732
1379
+ ],
1380
+ "page_idx": 9
1381
+ },
1382
+ {
1383
+ "type": "text",
1384
+ "text": "Michal Kosinski. 2023. Theory of mind may have spontaneously emerged in large language models. arXiv preprint arXiv:2302.02083. ",
1385
+ "bbox": [
1386
+ 115,
1387
+ 743,
1388
+ 487,
1389
+ 782
1390
+ ],
1391
+ "page_idx": 9
1392
+ },
1393
+ {
1394
+ "type": "text",
1395
+ "text": "Xingxuan Li, Yutong Li, Linlin Liu, Lidong Bing, and Shafiq Joty. 2022. Is GPT-3 a psychopath? evaluating large language models from a psychological perspective. arXiv preprint arXiv:2212.10529. ",
1396
+ "bbox": [
1397
+ 115,
1398
+ 791,
1399
+ 487,
1400
+ 844
1401
+ ],
1402
+ "page_idx": 9
1403
+ },
1404
+ {
1405
+ "type": "text",
1406
+ "text": "Marilù Miotto, Nicola Rossberg, and Bennett Kleinberg. 2022. Who is GPT-3? An exploration of personality, values and demographics. In Conference on Empirical Methods in Natural Language Processing (EMNLP) Workshop. ",
1407
+ "bbox": [
1408
+ 115,
1409
+ 853,
1410
+ 487,
1411
+ 919
1412
+ ],
1413
+ "page_idx": 9
1414
+ },
1415
+ {
1416
+ "type": "text",
1417
+ "text": "Shima Rahimi Moghaddam and Christopher J Honey. 2023. Boosting theory-of-mind performance in large language models via prompting. arXiv preprint arXiv:2304.11490. ",
1418
+ "bbox": [
1419
+ 510,
1420
+ 86,
1421
+ 882,
1422
+ 139
1423
+ ],
1424
+ "page_idx": 9
1425
+ },
1426
+ {
1427
+ "type": "text",
1428
+ "text": "Isabel Briggs Myers. 1962. The Myers-Briggs Type Indicator: Manual (1962). ",
1429
+ "bbox": [
1430
+ 510,
1431
+ 149,
1432
+ 880,
1433
+ 175
1434
+ ],
1435
+ "page_idx": 9
1436
+ },
1437
+ {
1438
+ "type": "text",
1439
+ "text": "Isabel Briggs Myers and Mary H. McCaulley. 1985. Manual: A guide to the development and use of the Myers-Briggs Type Indicator. Consulting Psychologists Press. ",
1440
+ "bbox": [
1441
+ 510,
1442
+ 187,
1443
+ 882,
1444
+ 240
1445
+ ],
1446
+ "page_idx": 9
1447
+ },
1448
+ {
1449
+ "type": "text",
1450
+ "text": "Moin Nadeem, Anna Bethke, and Siva Reddy. 2021. StereoSet: Measuring stereotypical bias in pretrained language models. In Proceedings of the Annual Meeting of the Association for Computational Linguistics and the International Joint Conference on Natural Language Processing (ACL-IJCNLP), pages 5356– 5371. ",
1451
+ "bbox": [
1452
+ 510,
1453
+ 252,
1454
+ 882,
1455
+ 342
1456
+ ],
1457
+ "page_idx": 9
1458
+ },
1459
+ {
1460
+ "type": "text",
1461
+ "text": "Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Gray, et al. 2022. Training language models to follow instructions with human feedback. In Advances in Neural Information Processing Systems (NeurIPS). ",
1462
+ "bbox": [
1463
+ 510,
1464
+ 354,
1465
+ 882,
1466
+ 434
1467
+ ],
1468
+ "page_idx": 9
1469
+ },
1470
+ {
1471
+ "type": "text",
1472
+ "text": "Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, et al. 2019. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9. ",
1473
+ "bbox": [
1474
+ 510,
1475
+ 444,
1476
+ 882,
1477
+ 497
1478
+ ],
1479
+ "page_idx": 9
1480
+ },
1481
+ {
1482
+ "type": "text",
1483
+ "text": "Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J Liu. 2020. Exploring the limits of transfer learning with a unified text-to-text transformer. The Journal of Machine Learning Research, 21(1):5485–5551. ",
1484
+ "bbox": [
1485
+ 510,
1486
+ 508,
1487
+ 882,
1488
+ 586
1489
+ ],
1490
+ "page_idx": 9
1491
+ },
1492
+ {
1493
+ "type": "text",
1494
+ "text": "James M Schuerger. 2000. The sixteen personality factor questionnaire (16PF). Testing and assessment in counseling practice, pages 73–110. ",
1495
+ "bbox": [
1496
+ 510,
1497
+ 599,
1498
+ 882,
1499
+ 638
1500
+ ],
1501
+ "page_idx": 9
1502
+ },
1503
+ {
1504
+ "type": "text",
1505
+ "text": "Emily Sheng, Kai-Wei Chang, Prem Natarajan, and Nanyun Peng. 2019. The woman worked as a babysitter: On biases in language generation. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 3407–3412. ",
1506
+ "bbox": [
1507
+ 510,
1508
+ 649,
1509
+ 882,
1510
+ 740
1511
+ ],
1512
+ "page_idx": 9
1513
+ },
1514
+ {
1515
+ "type": "text",
1516
+ "text": "Eva AM van Dis, Johan Bollen, Willem Zuidema, Robert van Rooij, and Claudi L Bockting. 2023. ChatGPT: Five priorities for research. Nature, 614(7947):224–226. ",
1517
+ "bbox": [
1518
+ 510,
1519
+ 752,
1520
+ 882,
1521
+ 803
1522
+ ],
1523
+ "page_idx": 9
1524
+ },
1525
+ {
1526
+ "type": "text",
1527
+ "text": "Laura Weidinger, John Mellor, Maribeth Rauh, Conor Griffin, Jonathan Uesato, Po-Sen Huang, Myra Cheng, Mia Glaese, Borja Balle, Atoosa Kasirzadeh, et al. 2021. Ethical and social risks of harm from language models. arXiv preprint arXiv:2112.04359. ",
1528
+ "bbox": [
1529
+ 510,
1530
+ 815,
1531
+ 882,
1532
+ 881
1533
+ ],
1534
+ "page_idx": 9
1535
+ },
1536
+ {
1537
+ "type": "text",
1538
+ "text": "Zhengyuan Yang, Zhe Gan, Jianfeng Wang, Xiaowei Hu, Yumao Lu, Zicheng Liu, and Lijuan Wang. 2022. ",
1539
+ "bbox": [
1540
+ 512,
1541
+ 892,
1542
+ 882,
1543
+ 919
1544
+ ],
1545
+ "page_idx": 9
1546
+ },
1547
+ {
1548
+ "type": "text",
1549
+ "text": "An empirical study of GPT-3 for few-shot knowledgebased VQA. In Proceedings of the AAAI Conference on Artificial Intelligence (AAAI), volume 36, pages 3081–3089. ",
1550
+ "bbox": [
1551
+ 134,
1552
+ 85,
1553
+ 487,
1554
+ 137
1555
+ ],
1556
+ "page_idx": 10
1557
+ },
1558
+ {
1559
+ "type": "text",
1560
+ "text": "Ann Yuan, Andy Coenen, Emily Reif, and Daphne Ippolito. 2022. Wordcraft: Story writing with large language models. In 27th International Conference on Intelligent User Interfaces. ACM. ",
1561
+ "bbox": [
1562
+ 115,
1563
+ 148,
1564
+ 487,
1565
+ 200
1566
+ ],
1567
+ "page_idx": 10
1568
+ },
1569
+ {
1570
+ "type": "text",
1571
+ "text": "Xiaoming Zhai. 2022. ChatGPT user experience: Implications for education. Available at SSRN 4312418. ",
1572
+ "bbox": [
1573
+ 115,
1574
+ 211,
1575
+ 487,
1576
+ 237
1577
+ ],
1578
+ "page_idx": 10
1579
+ },
1580
+ {
1581
+ "type": "text",
1582
+ "text": "Zihao Zhao, Eric Wallace, Shi Feng, Dan Klein, and Sameer Singh. 2021. Calibrate before use: Improving few-shot performance of language models. In International Conference on Machine Learning (ICML), pages 12697–12706. PMLR. ",
1583
+ "bbox": [
1584
+ 115,
1585
+ 248,
1586
+ 487,
1587
+ 313
1588
+ ],
1589
+ "page_idx": 10
1590
+ },
1591
+ {
1592
+ "type": "text",
1593
+ "text": "Terry Yue Zhuo, Yujin Huang, Chunyang Chen, and Zhenchang Xing. 2023. Exploring AI ethics of ChatGPT: A diagnostic analysis. arXiv preprint arXiv:2301.12867. ",
1594
+ "bbox": [
1595
+ 117,
1596
+ 324,
1597
+ 487,
1598
+ 376
1599
+ ],
1600
+ "page_idx": 10
1601
+ },
1602
+ {
1603
+ "type": "text",
1604
+ "text": "Mingyu Zong and Bhaskar Krishnamachari. 2022. A survey on GPT-3. arXiv preprint arXiv:2212.00857. ",
1605
+ "bbox": [
1606
+ 115,
1607
+ 387,
1608
+ 487,
1609
+ 413
1610
+ ],
1611
+ "page_idx": 10
1612
+ }
1613
+ ]
parse/dev/wtqb7pNL4e/wtqb7pNL4e_layout.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3fee9cca4105871863d7d965538dcdba2b3dbb49b29f91f468da5873b8029f95
3
+ size 913710
parse/dev/wtqb7pNL4e/wtqb7pNL4e_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/wtqb7pNL4e/wtqb7pNL4e_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/wtqb7pNL4e/wtqb7pNL4e_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:98b9f102d66671ab7d706b785123be8593ec19c3b302b108df624535667cf0b4
3
+ size 747394
parse/dev/wtqb7pNL4e/wtqb7pNL4e_span.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fdf4fca19cab974520e048d5b19cb886c515915e7985d88e44c5a0bc081ac41c
3
+ size 927258
parse/dev/wu1Za9dY1GY/images/158ad27263699ea72f25bbed7a559e8105e848514b253b182697ff23b830b035.jpg ADDED

Git LFS Details

  • SHA256: 8ea598f081b05b080074cbd36af9aef924bf09bf18295908452db7a6e13839d0
  • Pointer size: 130 Bytes
  • Size of remote file: 16.3 kB
parse/dev/wu1Za9dY1GY/images/161afb7c8fe3b225a116aca1c29550bce3b7356f0a695a4b8dc45e663240b761.jpg ADDED

Git LFS Details

  • SHA256: ee90dc4ae9694fae58ebda3391c91248036cbf89809720ea0a9789b9ad936cb8
  • Pointer size: 130 Bytes
  • Size of remote file: 10.4 kB
parse/dev/wu1Za9dY1GY/images/2ec274959e36952618ec0ff959abbbddb69a0f73c67529d1a7cf733ab9f651b2.jpg ADDED

Git LFS Details

  • SHA256: 438b782123d5a8d0ae6465a372380c73ef69afdd1f84785804f46de65d2392d2
  • Pointer size: 129 Bytes
  • Size of remote file: 4.48 kB
parse/dev/wu1Za9dY1GY/images/38cfa92648ebc7d2fef258a376fc26b04389a06993ab5403fcb8c90c3e1c92e7.jpg ADDED

Git LFS Details

  • SHA256: 754963a06357be3cf5ae20f8ab27eae5d5f8442357d06f9594faf05c8088ae57
  • Pointer size: 129 Bytes
  • Size of remote file: 7.29 kB
parse/dev/wu1Za9dY1GY/images/3ad97f3a10ea32ca7315ac0dc96e4387d23d2865cfb14e64c01a2c9767d84ec9.jpg ADDED

Git LFS Details

  • SHA256: 8d3e3eaa10e5a51db267051cce2b0653711ab4177a9d70c1e65f26b64d946a6d
  • Pointer size: 129 Bytes
  • Size of remote file: 6.19 kB
parse/dev/wu1Za9dY1GY/images/428a5e5c89f878cc5d6528059d6432d6dff300a8d96a8efacf793197e4c3f806.jpg ADDED

Git LFS Details

  • SHA256: b3354f4d3f083c05a3950ae020c9eace854b20400bd6696561179b738328503b
  • Pointer size: 129 Bytes
  • Size of remote file: 3.53 kB
parse/dev/wu1Za9dY1GY/images/6ddf7d6cf3a9de37dbc564849fee230efbd8eeb2b23358562ae93e3236be1584.jpg ADDED

Git LFS Details

  • SHA256: bcd7dce4340f35eac9ae49f3e488c54c49f2dafc7ec7c0e056c073ff84048216
  • Pointer size: 130 Bytes
  • Size of remote file: 79.3 kB
parse/dev/wu1Za9dY1GY/images/78ad069479b7937017dcd8520cb023ae37d8e27833b1aad3285ae0849b91f42b.jpg ADDED

Git LFS Details

  • SHA256: ae585760f0b6383b605ac94315f3746654e8a06700ec988073eacf4834c3e7ee
  • Pointer size: 129 Bytes
  • Size of remote file: 5.4 kB
parse/dev/wu1Za9dY1GY/images/895174e740f8636e65924ffc7127b01d92249afe55300deecae9499779c15793.jpg ADDED

Git LFS Details

  • SHA256: 541332bbba2dc68b899a276e7190d8cf19f67c0fbed55607979ea259840cb3a6
  • Pointer size: 129 Bytes
  • Size of remote file: 7.14 kB
parse/dev/wu1Za9dY1GY/images/92891ebe40c26711c110439f6f2b27d4b7d3205d64c74a9de02cbe7f22db32e5.jpg ADDED

Git LFS Details

  • SHA256: 58b73f0c44cbea307455054bc6f7a63d35ff3df559fdbd54b4c6a65c868b9dae
  • Pointer size: 129 Bytes
  • Size of remote file: 7.82 kB
parse/dev/wu1Za9dY1GY/images/a29308cb28d2969f4ba9f675aa076030e5bc284ddef2ead454fa7460e89aa9d4.jpg ADDED

Git LFS Details

  • SHA256: af465e4553454417cd482b127e7c44eab17efd3d6c0e2f22b23ca1396efcd882
  • Pointer size: 129 Bytes
  • Size of remote file: 6.34 kB
parse/dev/wu1Za9dY1GY/images/a94dbcec6fee11ffa586686a5f8520593ff0d34c2b18b72508a5c3dfb0e94089.jpg ADDED

Git LFS Details

  • SHA256: df85dcc0207598f322f29ac1688958e53ae7e39d73ccb3b65a9f79c5256444fa
  • Pointer size: 129 Bytes
  • Size of remote file: 6.56 kB
parse/dev/wu1Za9dY1GY/images/b4ef111e803e25f9826861bc78bdc35ca9f37a8024d2030b08ff18c3f29eac56.jpg ADDED

Git LFS Details

  • SHA256: 07d76603a915a907a715208858c291346976d0002a0e14076673d9ded2ccbab2
  • Pointer size: 130 Bytes
  • Size of remote file: 49 kB
parse/dev/wu1Za9dY1GY/images/d3898038f7de14b5a150cd537375d99878e8957bc3547b4f947ec335d3610fc8.jpg ADDED

Git LFS Details

  • SHA256: 7e2de47b9a9c1f5b3ee94b9ff9d26e03e2d280ea9a02e8384d3f2ecd49cbedda
  • Pointer size: 129 Bytes
  • Size of remote file: 5 kB
parse/dev/wu1Za9dY1GY/images/e51fa85ddca21ba377c1c823b7bee4f7915f0f3e88ecd1bb97e39ec782ca32d7.jpg ADDED

Git LFS Details

  • SHA256: 18ed994cd767d338554fd0852b75c8b1427841676cfe4cd531d542f6c951d65b
  • Pointer size: 130 Bytes
  • Size of remote file: 35.3 kB
parse/dev/wu1Za9dY1GY/images/ec96ce2bd471f56111504a923d0978d5e6f8c1a68dc030226eb91784d1db94dc.jpg ADDED

Git LFS Details

  • SHA256: 4beedf2085ec7d9f78d8b1b7def7bdd402250b9075e551f388a4acbe21340186
  • Pointer size: 129 Bytes
  • Size of remote file: 9.17 kB
parse/dev/wu1Za9dY1GY/images/eef2f840303fc616e86be7ea792de83fe2c7a2c0a3133771e736b13037c1ca8a.jpg ADDED

Git LFS Details

  • SHA256: 7bceaea37237f8932b75ea79c41cccd8d9fb6552ca72b474bd67122e77fb16d3
  • Pointer size: 129 Bytes
  • Size of remote file: 4.94 kB
parse/dev/wu1Za9dY1GY/wu1Za9dY1GY.md ADDED
@@ -0,0 +1,320 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Graph Neural Networks are Dynamic Programmers
2
+
3
+ Andrew Dudzik∗ DeepMind adudzik@deepmind.com
4
+
5
+ Petar Velickovi ˇ c´∗ DeepMind petarv@deepmind.com
6
+
7
+ # Abstract
8
+
9
+ Recent advances in neural algorithmic reasoning with graph neural networks (GNNs) are propped up by the notion of algorithmic alignment. Broadly, a neural network will be better at learning to execute a reasoning task (in terms of sample complexity) if its individual components align well with the target algorithm. Specifically, GNNs are claimed to align with dynamic programming (DP), a general problem-solving strategy which expresses many polynomial-time algorithms. However, has this alignment truly been demonstrated and theoretically quantified? Here we show, using methods from category theory and abstract algebra, that there exists an intricate connection between GNNs and DP, going well beyond the initial observations over individual algorithms such as Bellman-Ford. Exposing this connection, we easily verify several prior findings in the literature, produce better-grounded GNN architectures for edge-centric tasks, and demonstrate empirical results on the CLRS algorithmic reasoning benchmark. We hope our exposition will serve as a foundation for building stronger algorithmically aligned GNNs.
10
+
11
+ # 1 Introduction
12
+
13
+ One of the principal pillars of neural algorithmic reasoning [27] is training neural networks that execute algorithmic computation in a high-dimensional latent space. While this process is in itself insightful, and can lead to stronger combinatorial optimisation systems [21], it is valuable in terms of expanding the applicability of classical algorithms. Evidence of this value are emerging, with pre-trained algorithmic reasoners utilised in implicit planning [11] and self-supervised learning [28].
14
+
15
+ A fundamental question in this space is: which architecture should be used to learn a particular algorithm (or collection of algorithms [36])? Naturally, we seek architectures that have low sample complexity, as they will allow us to create models that generalise better with fewer training examples.
16
+
17
+ The key theoretical advance towards achieving this aim has been made by [37]. Therein, the authors formalise the notion of algorithmic alignment, which states that we should favour architectures that align better to the algorithm, in the sense that we can separate them into modules, which individually correspond to the computations of the target algorithm’s subroutines. It can be proved that architectures with higher algorithmic alignment will have lower sample complexity in the NTK regime [20]. Further, the theory of [37] predicts that graph neural networks (GNNs) algorithmically align with dynamic programming [3, DP]. The authors demonstrate this by forming an analogy to the Bellman-Ford algorithm [2].
18
+
19
+ Since DP is a very general class of problem-solving techniques that can be used to express many classical algorithms, this finding has placed GNNs as the central methodology for neural algorithmic execution [7]. However, it quickly became apparent that it is not enough to just train any GNN—for many algorithmic tasks, careful attention is required. Several papers illustrated special cases of GNNs that align with sequential algorithms [31], linearithmic sequence processing [16], physics simulations [23], iterative algorihtms [26], data structures [29] or auxiliary memory [24]. Some explanations for this lack of easy generalisation have arisen—we now have both geometric [38] and causal [4] views into how better generalisation can be achieved.
20
+
21
+ We believe that the fundamental reason why so many isolated efforts needed to look into learning specific classes of algorithms is the fact the GNN-DP connection has not been sufficiently explored. Indeed, the original work of [37] merely mentions in passing that the formulation of DP algorithms seems to align with GNNs, and demonstrates one example (Bellman-Ford). Our thorough investigation of the literature yielded no concrete follow-up to this initial claim. But DP algorithms are very rich and diverse, often requiring a broad spectrum of computations. Hence what we really need is a framework that could allow us to identify GNNs that could align particularly well with certain classes of DP, rather than assuming a “one-size-fits-all” GNN architecture will exist.
22
+
23
+ As a first step towards this, in this paper we interpret the operations of both DP and GNNs from the lens of category theory and abstract algebra. We elucidate the GNN-DP connection by observing a diagrammatic abstraction of their computations, recasting algorithmic alignment to aligning the diagrams of (G)NNs to ones of the target algorithm class. In doing so, several previously shown results will naturally arise as corollaries, and we propose novel GNN variants that empirically align better to edge-centric algorithms. We hope our work opens up the door to a broader unification between algorithmic reasoning and the geometric deep learning blueprint [5].
24
+
25
+ # 2 GNNs, dynamic programming, and the categorical connection
26
+
27
+ Before diving into the theory behind our connection, we provide a quick recap on the methods being connected: graph neural networks and dynamic programming. Further, we cite related work to outline why it is sufficient to interpret DP from the lens of graph algorithms.
28
+
29
+ We will use the definition of GNNs based on [5]. Let a graph be a tuple of nodes and edges, $G = ( V , E )$ , with one-hop neighbourhoods defined as $\mathcal { N } _ { u } \mathbf { \bar { \Gamma } } = \{ v \in V \mid \mathbf { \bar { ( } } v , u ) \in E \}$ . Further, a node feature matrix $\mathbf { X } \in \mathbb { R } ^ { | V | \times k }$ gives the features of node $u$ as $\mathbf { x } _ { u }$ ; we omit edge- and graph-level features for clarity. A (message passing) GNN over this graph is then executed as:
30
+
31
+ $$
32
+ \mathbf { h } _ { u } = \phi \left( \mathbf { x } _ { u } , \bigoplus _ { v \in \mathcal { N } _ { u } } \psi ( \mathbf { x } _ { u } , \mathbf { x } _ { v } ) \right)
33
+ $$
34
+
35
+ where $\psi : \mathbb { R } ^ { k } \times \mathbb { R } ^ { k } \to \mathbb { R } ^ { k }$ is a message function, $\phi : \mathbb { R } ^ { k } \times \mathbb { R } ^ { k } \mathbb { R } ^ { k }$ is a readout function, and $\oplus$ is a permutation-invariant aggregation function (such as $\displaystyle \sum$ or max). Both $\psi$ and $\phi$ can be realised as MLPs, but many special cases exist, giving rise to, e.g., attentional GNNs [30].
36
+
37
+ Dynamic programming is defined as a process that solves problems in a divide et impera fashion: imagine that we want to solve a problem instance $x$ . DP proceeds to identify a set of subproblems, $\eta ( x )$ , such that solving them first, and recombining the answers, can directly lead to the solution for $x$ : $f ( x ) = \rho ( \{ f ( y ) \mid y \in \eta ( x ) \} )$ . Eventually, we decompose the problem enough until we arrive at an instance for which the solution is trivially given (i.e. $f ( y )$ which is known upfront). From these “base cases”, we can gradually build up the solution for the problem instance we initially care for in a bottom-up fashion. This rule is often expressed programmatically:
38
+
39
+ $$
40
+ \mathsf { d p } [ \mathbf { x } ] \gets \mathbf { r e c o m b i n e } ( \mathbf { s c o r e } ( \mathrm { d p } [ \mathbf { y } ] , \mathrm { d p } [ \mathbf { x } ] ) \mathrm { ~ f o r ~ y ~ i n ~ e x p a n d } ( \mathbf { x } ) )
41
+ $$
42
+
43
+ To initiate our discussion on why DP can be connected with GNNs, it is a worthwhile exercise to show how Equation 2 induces a graph structure. To see this, we leverage a categorical analysis of dynamic programming first proposed by [10]. Therein, dynamic programming algorithms are reasoned about as a composition of three components (presented here on a high level):
44
+
45
+ $$
46
+ \mathrm { d } \boldsymbol { \mathrm { p } } = \underbrace { \rho } _ { \mathrm { r e c o m b i n e } } ^ { \mathrm { ~ \tiny ~ { ~ \circ ~ } ~ } } \underbrace { \sigma } _ { \mathrm { s c o r e } } ^ { \mathrm { ~ \tiny ~ { ~ \circ ~ } ~ } } \underbrace { \eta } _ { \mathrm { e x p a n d } }
47
+ $$
48
+
49
+ Expansion selects the relevant subproblems; scoring computes the quality of each individual subproblem’s solution w.r.t. the current problem, and recombining combines these solutions into a solution for the original problem (e.g. by taking the max, or average).
50
+
51
+ Therefore, we can actually identify every subproblem as a node in a graph. Let $V$ be the space of all subproblems, and $R$ an appropriate value space (e.g. the real numbers). Then, expansion is defined as $\eta : V \to { \mathcal { P } } ( V )$ , giving the set of all subproblems relevant for a given problem. Note that this also induces a set of edges between subproblems, $E$ ; namely, $( x , y ) \in { \bar { E } }$ if $x \in \eta ( y )$ . Each subproblem is scored by using a function $\sigma : { \mathcal { P } } ( V ) \to { \mathcal { P } } ( R )$ . Finally, the individual scores are recombined using the recombination function, $\rho : \mathcal { P } ( R ) R$ . The final dynamic programming primitive therefore computes a function $\mathrm { d } \mathsf { p } : V \to R$ in each of the subproblems of interest.
52
+
53
+ Therefore, dynamic programming algorithms can be seen as performing computations over a graph of subproblems, which can usually be precomputed for the task at hand (since the outputs of $\eta$ are assumed known upfront for every subproblem). One specific popular example is the Bellman-Ford algorithm [2], which computes single-source shortest paths from a given source node, $s$ , in a graph $G = ( V , E )$ . In this case, the set of subproblems is exactly the set of nodes, $V$ , and the expansion $\eta ( u )$ is exactly the set of one-hop neighbours of $u$ in the graph. The algorithm maintains distances of every node to the source, $d _ { u }$ . The rule for iteratively recombining these distances is as follows:
54
+
55
+ $$
56
+ d _ { u } \gets \operatorname* { m i n } \Big ( d _ { u } , \operatorname* { m i n } _ { v \in \mathcal { N } _ { u } } d _ { v } + w _ { v \to u } \Big )
57
+ $$
58
+
59
+ where $w _ { v u }$ is the distance between nodes $v$ and $u$ . The algorithm’s base cases are $d _ { s } = 0$ for the source node, $d _ { u } = + \infty$ otherwise. Note that more general forms of Bellman-Ford pathfinding exist, for appropriate definitions of $^ +$ and min (in general known as a semiring). Several recent research papers such as NBFNet [39] explicitly call on this alignment in their motivation.
60
+
61
+ # 3 The difficulty of connecting GNNs and DP
62
+
63
+ The basic technical obstacle to establishing a rigorous correspondence between neural networks and DP is the vastly different character of the computations they perform. Neural networks are built from linear algebra over the familiar real numbers, while DP, which is often a generalisation of path-finding problems, typically takes place over “tropical” objects like $( \mathbb { N } \cup \{ \infty \} , { \overline { { \operatorname* { m i n } } } } , + ) ^ { 2 }$ , which are usually studied in mathematics as “degenerations” of Euclidean space. The two worlds cannot clearly be reconciled, directly, with simple equations.
64
+
65
+ However, if we define an arbitrary “latent space” $R$ and make as few assumptions as possible, we can observe that many of the behaviors we care about, for both GNNs and $D P$ , arise from looking at functions $S R$ , where $S$ is a finite set. $R$ can be seen as the set of real-valued vectors in the case of GNNs, and the tropical numbers in the case of DP.
66
+
67
+ So our principal object of study is the category of finite sets, and “ $R$ -valued quantities” on it. By “category” here we mean a collection of objects (all finite sets) together with a notion of composable arrows (functions between finite sets).
68
+
69
+ To draw our GNN-DP connection, we need to devise an abstract object which can capture both the GNN’s message passing/aggregation stages (Equation 1) and the DP’s scoring/recombination stages (Equation 2). It may seem quite intuitive that these two concepts can and should be relatable, and category theory is a very attractive tool for “making the obvious even more obvious” [15]. Indeed, recently concepts from category theory have enabled the construction of powerful GNN architectures beyond permutation equivariance [9]. Here, we propose integral transforms as such an object.
70
+
71
+ We will construct the integral transform by composing transformations over our input features in a way that will depend minimally on the specific choice of $R$ . In doing so, we will build a computational diagram that will be applicable for both GNNs and DP (and their own choices of $R$ ), and hence allowing for focusing on making components of those diagrams as aligned as possible.
72
+
73
+ # 4 The integral transform
74
+
75
+ An integral transform can be encoded in a diagram of this form, which we call a polynomial span:
76
+
77
+ $$
78
+ \begin{array} { l c c c c } { X } & { \quad } & { p \longrightarrow Y } \\ { \big | } & { } & { } & { \big | } \\ { i } & { } & { } & { \begin{array} { l } { { } } \\ { { } } \end{array} } \\ { \big \downarrow } & { } & { } & { \begin{array} { l } { { } } \\ { { } } \end{array} } \end{array}
79
+ $$
80
+
81
+ where $W , X , Y$ and $Z$ are finite sets. The arrows $i , p , o$ stand, respectively, for “input”, “process”, and “output”. In context, the sets will have the following informal meaning: $W$ represents the set over which we define our inputs, $Z$ the set over which we define outputs. $X$ and $Y$ are, respectively, carrier sets for the arguments, and the messages3—we will clarify their meaning shortly.
82
+
83
+ Before proceeding, it is worthy to note the special case of $X = Y = E$ , with $p$ being the identity map. Such a diagram is commonly known as a span. A span that additionally has $W = Z = V$ is equivalent to a representation of a directed graph with vertex set $Z$ and edge set $Y$ $V \left. E \right. V )$ ; in this case $i ( e )$ and $o ( e )$ are the functions identifying the source and target nodes of each edge.
84
+
85
+ The key question is: given input data $f$ on $W$ , assigning features $f ( w )$ to each $w \in W$ , how to transform it, via the polynomial span, into data on $Z ?$ If we can do this, we will be able to characterise both the process of sending messages between nodes in GNNs and scoring subproblems in DP.
86
+
87
+ For us, data on a carrier set $S$ consists of an element of $[ S , R ] : = \{ f : S \to R \}$ , where $R$ is a “set of possible values”. For now, we will think of $R$ as an arbitrary (usually infinite) set, though we will see later that it should possess some algebraic structure; it should be a semiring.
88
+
89
+ The transform proceeds in three steps, following the edges of the polynomial span:
90
+
91
+ ![](images/a29308cb28d2969f4ba9f675aa076030e5bc284ddef2ead454fa7460e89aa9d4.jpg)
92
+
93
+ We call the three arrows $i ^ { * } , p _ { \otimes } , o _ { \oplus }$ the pullback, the argument pushfoward, and the message pushforward. Taken together, they form an integral transform—and we conjecture that this transform can be described as a polynomial functor, where $p _ { \otimes }$ and $o _ { \oplus }$ correspond to the dependent product and dependent sum from type theory (cf. Appendix $\mathbf { D }$ for details).
94
+
95
+ The pullback $i ^ { * }$ is the easiest to define. Since we have a function $i : X \to W$ (part of the polynomial span) and a function $f : W \to R$ (our input data), we can produce data on $X$ , that is, a function in $X R$ , by composition. We hence define $i ^ { * } f = f \circ i$ .
96
+
97
+ Unfortunately, the other two arrows of the polynomial span point in the wrong direction for naïve composition. For the moment, we will focus on how to define $o _ { \oplus }$ and leave $p _ { \otimes }$ for later.
98
+
99
+ We start with message data $m : Y R$ . It may be attractive to invert the output arrow $o$ in order to define a composition with $o ^ { - 1 }$ , as was done in the case of the pullback. However, unless $o$ is bijective, the preimage $o ^ { - 1 } : Z \to { \mathcal { P } } ( Y )$ takes values in the power set of $Y$ . There is an additional technicality: if the composition $m \circ o ^ { - 1 }$ takes values in ${ \mathcal { P } } ( R )$ , it will fail to detect multiplicities; we are unable to tell from a subset of $R$ whether multiple messages had the same value.
100
+
101
+ So instead, our pushforward takes values in $\mathtt { b a g } ( R )$ , the set of finite multisets (or bags) of $R$ , which we describe in more detail in appendix B. For the moment, it is enough to know that a bag is equivalent to a formal sum, and we define an intermediate message pushforward $( { \overline { { o _ { \oplus } } } } m ) ( u ) : =$ $\bar { \Sigma _ { e \in t ^ { - 1 } ( u ) } m ( e ) } \in [ Z , \mathtt { b a g } ( R ) ]$ .
102
+
103
+ ![](images/b4ef111e803e25f9826861bc78bdc35ca9f37a8024d2030b08ff18c3f29eac56.jpg)
104
+ Figure 1: The illustration of how pullback and pushforward combine to form the integral transform, for two specific cases. Left: Polynomial span $V E E V$ with trivial argument pushforward (identity). Each edge $e _ { u v }$ is connected to its sender and receiver nodes $( u , v )$ via the span (black arrows). The pullback then “pulls” the node features $f ( u )$ along the span, which the argument pushforward folds into edge features $g ( e _ { v u } ) = f ( u )$ . Once all sender features are pulled back to their edges, the message pushforward then “collects” all of the edge features that send to a particular receiver, by pushing them along the span. Right: Polynomial span $V E + E \mathbf { \bar { { E } } } V$ , a situation more commonly found in GNNs. In this case, the pullback pulls sender and receiver node features into the argument function, $h$ . The argument pushforward then computes, from these arguments, the edge messages, $g$ , which are sent to receivers via the message pushforward, as before. See Appendix A for a visualisation of how these arrows translate into GNN code.
105
+
106
+ All that is missing to complete our definition of $o _ { \oplus }$ is an aggregator $\oplus : \mathtt { b a g } ( R ) \to R$ . As we will see later, specifying a well-behaved aggregator is the same as imposing a commutative monoid structure on $R$ . With such an aggregator on $R$ , we can define $( o _ { \oplus } m ) ( u ) : = \bigoplus ( \overline { { \upsilon _ { \oplus } } } m ) ( u )$ .
107
+
108
+ We return to $p _ { \otimes }$ , which is constructed very similarly. The only difference is that, while we deliberately regard the collection of messages as unordered, the collection of arguments used to compute a message has an ordering we wish to respect. So instead of the type $\mathtt { b a g } ( R )$ , we use the type $\mathtt { l i s t } ( R )$ of finite lists of elements of $R$ , and our aggregator $\otimes : { \mathrm { l i s t } } ( R ) \to R$ is now akin to a fold operator.
109
+
110
+ We illustrate the use of these two aggregators in a decomposed diagram:
111
+
112
+ ![](images/158ad27263699ea72f25bbed7a559e8105e848514b253b182697ff23b830b035.jpg)
113
+
114
+ Note that any semiring $( R , \otimes , \oplus )$ comes equipped with binary operators $\otimes , \oplus$ that allow aggregators $\otimes , \oplus$ to be defined inductively. In fact, the converse—that every set with two such aggregators is a semiring—is also true, if we assume some reasonable conditions on the aggregators, which we can explain in terms of one of the most utilised concepts in category theory and functional programming—monads [33]. Due to space constraints, we refer the interested reader to Appendices $\mathbf { B }$ and C for a full exposition of how we can use monads over lists and bags to constrain the latent space $R$ to respect a semiring structure.
115
+
116
+ For now, it’s enough to know that our key examples of the real numbers (with multiplication and addition, for GNNs) and the tropical natural numbers (with addition and minimum, for DP) both allow for natural interpretations of $\otimes$ and $\oplus$ in the integral transform.
117
+
118
+ We are now ready to show how the integral transform can be used to instantiate popular examples of algorithms and GNNs. We start with the Bellman-Ford algorithm [2] (Equation 4) that was traditionally used to demonstrate the concept of algorithmic alignment.
119
+
120
+ # 5 Bellman-Ford
121
+
122
+ Let $R = ( \mathbb { N } \cup \{ \infty \} , + , \operatorname* { m i n } )$ be the “min-plus” semiring of extended natural numbers, with $\otimes = +$ and $\oplus = \operatorname* { m i n }$ . This is the coefficient semiring over which the Bellman-Ford algorithm takes place.
123
+
124
+ Let $( V , E )$ be a weighted graph with source and target maps $s , t : E \to V$ and edge weights $w : E R$ . For purely technical reasons, we also need to explicitly materialise a bias function $b : V R$ , which is, in practice, a constant-zero function $( b ( v ) = 0$ for all $v \in V .$ ) but will prove necessary for defining the argument pushforward.
125
+
126
+ We interpret Bellman-Ford as the following polynomial span:
127
+
128
+ $$
129
+ \begin{array} { c c c } { { ( V + E ) + ( V + E ) \ --- p \longrightarrow V + E } } & { { } } & { { } } \\ { { \big | } } & { { } } & { { \big | } } \\ { { \begin{array} { c c c } { { \scriptstyle \dot { i } } } & { { } } & { { } } \\ { { \big \downarrow } } & { { } } & { { \big \downarrow } } \\ { { \scriptstyle V + ( V + E ) } } & { { } } & { { \scriptstyle V } } \end{array} } } & { { } } \end{array}
130
+ $$
131
+
132
+ Here “ $+ ^ { \dag }$ is the disjoint union of sets, defined as $A + B = \{ ( a , 1 ) \mid a \in A \} \cup \{ ( b , 2 ) \mid b \in B \} .$ . Note that $[ S + T , R ] \cong [ S , R ] \times [ T , R ]$ , i.e. specifying data on a disjoint union is equivalent to specifying data on each component separately.
133
+
134
+ Initially, we describe each of the four sets of the polynomial span, making their role clear:
135
+
136
+ • Input: $W = V + ( V + E )$ . Our input to Bellman-Ford includes: the current estimate of node distances $\dot { \ b { d } } _ { \ b { u } }$ ; a function in $[ V , R ] )$ , edge weights ( $\dot { \boldsymbol { w } }$ ; a function in $[ E , R ] )$ , and the previously discussed bias $b$ , a function in $[ V , R ]$ . Hence our overall inputs are members of $[ V , R ] \times [ E , R ] \times [ V , R ] \cong [ V + ( V + E ) , R ]$ , justifying our choice of input space.
137
+
138
+ • Arguments: $X = ( V + E ) + ( V + E )$ . Here we collect the ingredients necessary to compute Bellman-Ford’s subproblem solutions coming from neighbouring nodes. To do this, we need to combine data in the nodes with data living on edges—those are the arguments to the function. And since they meet in the edges, we “lift” our node distances $[ V , R ]$ to edges they are sending from, giving us an additional function in $[ E , R ]$ . Hence our argument carrier space is now $( V + E ) + ( V + E )$ (the remaining three inputs remain unchanged).
139
+
140
+ • Message: $Y = V + E$ . Once the arguments are combined to compute messages, we are left with signal in each edge (containing the sum of corresponding $d _ { u }$ and $w _ { u v . }$ ), and each node (containing just $d _ { u }$ , for the purposes of access to the previous optimal solution). Hence our messages are members of $[ \bar { V } , \bar { R } ] \times [ E , R ]$ , justifying our choice of message space.
141
+
142
+ • Output: $Z = V$ . Lastly, the output of one step of Bellman-Ford are updated values $d _ { u } ^ { \prime }$ , which we can interpret as just (output) data living on $V$ .
143
+
144
+ We now describe how to propagate data along each arrow of the diagram in turn, beginning with inputs $( f , b , w )$ of node features $f : V \to R$ , a bias $b : V R$ , and edge weights $w : E R$ :
145
+
146
+ • Pullback, $i ^ { * }$ : First, we can note the input function $i : ( V + E ) + ( V + E ) V + ( V + E )$ decomposes as the sum of two arrows. $i _ { 1 } : V + E \to V$ is the identity function on $V$ and the source function on $E$ , and $i _ { 2 } : V + E \to V + E$ is just the identity. So we calculate the pullback $i ^ { * } ( f , b , w ) = ( f , f \circ s , b , w )$ , giving us the arguments to compute messages.
147
+
148
+ • Argument pushforward, $p _ { \otimes }$ : Next, the process function $p$ simply identifies the two copies of $V + E$ , and sums their values. So the argument pushforward is $p _ { \otimes } ( f , f \circ s , b , w ) =$ $( f , f \circ s ) \otimes ( b , w ) = ( f + b , ( f \circ s ) + w )$ . This also allows us to interpret the bias function, $b$ , as a “self-edge” in the graph with weight 0.
149
+
150
+ • Message pushforward, $o _ { \oplus }$ : The output function $o : V + E V$ is the identity function on $V$ and the target function on $E$ . So the message pushforward gives us $( o _ { \oplus } ( f + b , ( f \circ s ) +$ $\begin{array} { r } { w ) ) ( u ) = ( f ( u ) + b ( u ) ) \oplus \bigoplus _ { t ( e ) = u } ( f \circ s ) ( e ) = \operatorname* { m i n } ( f ( u ) + b ( u ) , \operatorname* { m i n } _ { v \to u } f ( v ) + w _ { v \to u } ) ( f ( u ) + f ( e ) ) } \end{array}$ ).
151
+
152
+ Letting $b ( u ) = 0$ , we can see that this is exactly Equation 4. So we have produced the formula for the Bellman-Ford algorithm directly from the polynomial span in Diagram 6.
153
+
154
+ Note that $p _ { \oplus }$ is aligned with using max aggregation in neural networks—directly explaining several previous proposals, such as [31]. But additionally, $p _ { \otimes }$ , as defined, is aligned with concatenating all message arguments together and passing them through a linear function, which is how such a step is implemented in GNNs’ message functions. We now direct our polynomial span analysis at GNNs.
155
+
156
+ # 6 GNNs
157
+
158
+ We study the popular message passing neural network (MPNN) model [19], which can be interpreted using the following polynomial span diagram:
159
+
160
+ $$
161
+ \begin{array} { c c c } { E + ( E + E ) + E } & { \longrightarrow } & { \longrightarrow E } \\ { \big | } & { \big | } & { \big | } \\ { \begin{array} { c c c } { \underline { { i } } } & { \qquad \underline { { o } } } & { \qquad \underline { { o } } } \\ { \big \downarrow } & { \qquad \downarrow } & { \qquad \downarrow } \\ { 1 + V + E } & { } & { } & { V } \end{array} } \end{array}
162
+ $$
163
+
164
+ Here the set 1 refers to a singleton set—sometimes also called (), or unit—which is used as a carrier for graph-level features. This implies the graph features will be specified as $[ 1 , R ] \cong R$ , as expected.
165
+
166
+ Given all these features, how would we compute messages? The natural way is to combine the features of the sender and receiver node of each edge, features of said edge, and graph-level features— these will form our arguments, and they need to all “meet” in the edges. This motivates our argument space as $E + ( E + E ) + E$ : all of the above four, accordingly broadcast into their respective edge(s).
167
+
168
+ The input map, $i$ , is then the unique map to the singleton, the sender and receiver functions on the two middle copies of $E$ , and the identity on the last copy of $E$ , i.e. $i ( a , b , c , d ) = \{ ( ) , s ( b ) , t ( c ) , d \}$ . The process map, $p$ , collapses the four copies of $E$ into just one, to hold the computed message. Lastly, the output map, $o$ , is the target function, identifying the node to which the message will be delivered.
169
+
170
+ The actual computation performed by the network (over real values in $\mathbb { R }$ , which can support various semirings of interest) is exactly an integral transform, with an extra MLP processing step on messages:
171
+
172
+ $$
173
+ \begin{array} { r l r } { \left[ E + ( E + E ) + E , \mathbb { R } \right] \longrightarrow p _ { \otimes } \longrightarrow [ E , \mathbb { R } ] \longleftrightarrow \scriptscriptstyle M L P } & { } & \\ { \uparrow } & { \underset { \textit { i } ^ { * } } { \bigcap } } & { } & { \underset { \textit { i } ^ { * } } { \bigcap } } \\ { \Big | } & { } & { \underset { \textit { i } ^ { * } } { \bigcup } } & { } \\ { \left[ 1 + V + E , \mathbb { R } \right] } & { } & { \left[ V , \mathbb { R } \right] } \end{array}
174
+ $$
175
+
176
+ It is useful to take a moment to discuss what was just achieved: with a single abstract template (the polynomial span), we have successfully explained both a dynamic programming algorithm, and a GNN update rule—merely by choosing the correct support sets and latent space.
177
+
178
+ # 7 Improving GNNs with edge updates, with experimental evaluation
179
+
180
+ From now on, we will set $E = V ^ { 2 }$ , as all our baseline GNNs will use fully connected graphs, and it will accentuate the polynomial nature of our construction.
181
+
182
+ We now show how our polynomial span view can be used to directly propose better-aligned GNN architectures for certain algorithmic tasks. Since the MPNN diagram above outputs only node features, to improve predictive performance on edge-centric algorithms, it is a natural augmentation to also update edge features, by adding edges to the output carrier (as done by, e.g., [1]):
183
+
184
+ $$
185
+ \begin{array} { c c c } { { V ^ { 2 } + ( V ^ { 2 } + V ^ { 2 } ) + V ^ { 2 } ~ { \longrightarrow } ~ } } & { { V ~ { \longrightarrow } ~ V ^ { 2 } } } \\ { { \big \downarrow } } & { { } } & { { } } \\ { { \begin{array} { l } { { i } } \\ { { \downarrow } } \\ { { \downarrow } } \end{array} } } & { { \begin{array} { r } { { } } \\ { { } } \\ { { } } \\ { { { } } } \end{array} } } \\ { { 1 + V + V ^ { 2 } } } & { { } } & { { V + V ^ { 2 } } } \end{array}
186
+ $$
187
+
188
+ But notice that there is a problem with the output arrow. Since we are using each message twice, $o$ is no longer a function—it’d have to send each edge message to two different objects! To resolve this, we need to appropriately augment the messages and the arguments. This is equivalent to specifying a new polynomial span with output $V ^ { 2 }$ , which we can then recombine with Diagram 7:
189
+
190
+ $$
191
+ \begin{array} { l l l l } { { } } & { { ? ~ - } } & { { ~ p ~ - } } & { { ~ ? ~ } } \\ { { } } & { { } } & { { } } & { { } } \\ { { } } & { { \stackrel { i } { \downarrow } ~ } } & { { } } & { { ~ \stackrel { i } { \downarrow } ~ } } \\ { { } } & { { } } & { { } } & { { ~ \downarrow } } \\ { { 1 + V + V ^ { 2 } } } & { { } } & { { } } & { { ~ V ^ { 2 } } } \end{array}
192
+ $$
193
+
194
+ Most edge-centric algorithms of interest (such as the Floyd-Warshall algorithm for all-pairs shortest paths [14]), compute edge-level outputs by reducing over a choice of “intermediate” node. Hence, it would be beneficial to produce messages with shape $V ^ { 3 }$ , which would then reduce to features over $V ^ { 2 }$ . There are three possible ways to broadcast both node and edge features into $V ^ { 3 }$ , so we propose the following polynomial span, which materialises each of those arguments:
195
+
196
+ $$
197
+ \begin{array} { c c c } { { V ^ { 3 } + ( V ^ { 3 } + V ^ { 3 } + V ^ { 3 } ) + ( V ^ { 3 } + V ^ { 3 } + V ^ { 3 } ) \longleftarrow \longrightarrow V ^ { 3 } } } & { { \nonumber } } & { { \nonumber } } \\ { { \big \downarrow } } & { { \big \downarrow } } & { { \big \downarrow } } \\ { { \big \downarrow } } & { { \big \downarrow } } & { { \big \downarrow } } \\ { { 1 + V + V ^ { 2 } } } & { { { } } } & { { V ^ { 2 } } } \end{array}
198
+ $$
199
+
200
+ Finally, inserting this into Diagram 7 gives us a corrected polynomial span with output $V + V ^ { 2 }$ :
201
+
202
+ $$
203
+ \begin{array} { l c c } { { 4 { \cal V } ^ { 2 } + 7 { \cal V } ^ { 3 } ~ --- ~ p ~ { \longrightarrow } ~ { \cal V } ^ { 2 } + { \cal V } ^ { 3 } } } \\ { { \mid ~ } } \\ { { ~ \stackrel { i } { \downarrow } ~ } } \\ { { ~ \downarrow ~ } } \\ { { 1 + { \cal V } + { \cal V } ^ { 2 } ~ } } & { { ~ { \cal V } + { \cal V } ^ { 2 } } } \end{array}
204
+ $$
205
+
206
+ Here we have collapsed the copies of $V ^ { 2 }$ and $V ^ { 3 }$ in the argument position for compactness.
207
+
208
+ While Diagram 7 doesn’t make sense as a polynomial diagram of sets, we can clearly still implement it as an architecture [1], since nothing stops us from sending the same tensor to two places. We want to investigate whether our proposed modification of Diagram 10, which materialises order3 messages, leads to improved algorithmic alignment on edge-centric algorithms. To support this evaluation, we initially use a set of six tasks from the recently proposed CLRS Algorithmic Reasoning Benchmark [32], which evaluates how well various (G)NNs align to classical algorithms, both inand out-of-distribution. We reuse exactly the data generation and base model implementations in the publicly available code for the CLRS benchmark.
209
+
210
+ We implemented each of these options by making our GNN’s message and update functions be two-layer MLPs with embedding dimension 24, and hidden layers of size 8 and 16. Our test results (out-of-distribution) are summarised in Table 1. For convenience, we also illustrate the in-distribution performance of our models via plots given in Appendix E.
211
+
212
+ Lastly, we scale up our experiments to 27 different tasks in CLRS, 96-dimensional embeddings, and using the PGN processor [29], which is the current state-of-the-art model on CLRS in terms of task win count [32]. We summarise the performance improvement obtained by our $V ^ { 3 }$ variant of PGN in Table 2, aggregated across edge-centric tasks as well as ones that do not require explicit edge-level reasoning. For convenience, we provide the per-task test performance in Appendix F (Table 3).
213
+
214
+ We found that the $V ^ { 3 }$ architecture was equivalent to, or outperformed, the non-polynomial $( V ^ { 2 } )$ one in all edge-centric algorithms (up to standard error). Additionally, this architecture appears to also provide some gains on tasks without explicit edge-level reasoning requirements, albeit smaller on average and less consistently. Our result directly validates our theory’s predictions, in the context of presenting a better-aligned GNN for edge-centric algorithmic targets.
215
+
216
+ Table 1: Test (out-of-distribution) results of our models on all models on the six algorithms studied. $V ^ { 2 }$ corresponds to the baseline model offered by Diagram 7, while $V ^ { 3 }$ corresponds to our proposal in Diagram 10, which respects the polynomial span.
217
+
218
+ <table><tr><td>Algorithm</td><td>V2-large</td><td>V3-large</td><td>V2-small</td><td>V3-small</td></tr><tr><td>Dijkstra</td><td>59.58% ± 2.82</td><td>68.53%± 2.40</td><td>56.10%± 3.25</td><td>60.32%± 2.70</td></tr><tr><td>Find Maximum Subarray</td><td>8.33%± 0.50</td><td>9.06%±0.65</td><td>8.46%± 0.55</td><td>7.89%±0.64</td></tr><tr><td>Floyd-Warshall</td><td>7.46%±0.63</td><td>9.00%±0.81</td><td>6.66%± 0.62</td><td>8.23%±0.62</td></tr><tr><td>Insertion Sort</td><td>15.39% ± 1.27</td><td>24.67%±2.44</td><td>14.69% ± 1.32</td><td>20.23%± 2.21</td></tr><tr><td>Matrix Chain Order</td><td>67.64% ± 1.23</td><td>70.79% ± 1.54</td><td>68.85%± 2.26</td><td>68.76%± 1.21</td></tr><tr><td>Optimal BST</td><td>53.03%± 2.80</td><td>54.56%± 4.34</td><td>46.65% ± 3.82</td><td>51.94% ± 4.60</td></tr><tr><td>Overall average</td><td>35.24%</td><td>39.43%</td><td>33.57%</td><td>36.23%</td></tr></table>
219
+
220
+ Table 2: Test (out-of-distribution) results across 27 tasks in CLRS, for the PGN processor network, averaged across edge-centric and other tasks. See Appendix F for the per-task test performances.
221
+
222
+ <table><tr><td>Algorithms</td><td>V2-PGN</td><td>V3-PGN</td><td>Average Improvement</td></tr><tr><td>Edge-centric algorithms</td><td>35.03%</td><td>39.08%</td><td>4.44% ± 1.06</td></tr><tr><td>Other algorithms</td><td>35.37%</td><td>36.33%</td><td>1.01% ± 0.11</td></tr><tr><td>Average of the two groups</td><td>35.20%</td><td>37.70%</td><td>2.73%</td></tr></table>
223
+
224
+ # 8 Conclusions
225
+
226
+ In this paper, we describe the use of category theory and abstract algebra to explicitly expand on the GNN-DP connection, which was previously largely handwaved on specific examples. We derived a generic diagram of an integral transform (based on standard categorical concepts like pullback, pushforward and commutative monoids), and argued why it is general enough to support both GNN and DP computations. With this diagram materialised, we were able to immediately unify large quantities of prior work as simply manipulating one arrow or element in the integral transform. We also provided empirical evidence of the utility of polynomial spans for analysing GNN architectures, especially in terms of algorithmic alignment. It is our hope that our findings inspire future research into better-aligned neural algorithmic reasoners, especially focusing on generalising or diving into several aspects of this diagram.
227
+
228
+ Lastly, it is not at all unlikely that analyses similar to ours have already been used to describe other fields of science—beyond algorithmic reasoners. The principal ideas of span and integral transform are central to defining Fourier series [35], and appear in the analysis of Yang-Mills equations in particle physics [13]. Properly understanding the common ground behind all of these definitions may, in the very least, lead to interesting connections, and a shared understanding between the various fields they span.
229
+
230
+ # Acknowledgments and Disclosure of Funding
231
+
232
+ We would like to thank Charles Blundell, Tai-Danae Bradley, Taco Cohen, Bruno Gavranovic, Bogdan ´ Georgiev, Razvan Pascanu, Karolis Špukas, Grzegorz Swirszcz, and Vincent Wang-Ma ´ scianica for ´ the very useful discussions and feedback on prior versions of this work.
233
+
234
+ Special thanks to Tamara von Glehn for key comments helping us to formally connect integral transforms to polynomial functors.
235
+
236
+ This research was funded by DeepMind.
237
+
238
+ # References
239
+
240
+ [1] Peter W Battaglia, Jessica B Hamrick, Victor Bapst, Alvaro Sanchez-Gonzalez, Vinicius Zambaldi, Mateusz Malinowski, Andrea Tacchetti, David Raposo, Adam Santoro, Ryan Faulkner, et al. Relational inductive biases, deep learning, and graph networks. arXiv preprint arXiv:1806.01261, 2018.
241
+ [2] Richard Bellman. On a routing problem. Quarterly of applied mathematics, 16(1):87–90, 1958.
242
+ [3] Richard Bellman. Dynamic programming. Science, 153(3731):34–37, 1966.
243
+ [4] Beatrice Bevilacqua, Yangze Zhou, and Bruno Ribeiro. Size-invariant graph representations for graph classification extrapolations. In International Conference on Machine Learning, pages 837–851. PMLR, 2021.
244
+ [5] Michael M Bronstein, Joan Bruna, Taco Cohen, and Petar Velickovi ˇ c. Geometric deep learning: ´ Grids, groups, graphs, geodesics, and gauges. arXiv preprint arXiv:2104.13478, 2021.
245
+ [6] Francesca Cagliari and Sandra Mantovani. Cartesianness: topological spaces, uniform spaces, and affine schemes. Topology and its Applications, 41:263–272, 1991.
246
+ [7] Quentin Cappart, Didier Chételat, Elias Khalil, Andrea Lodi, Christopher Morris, and Petar Velickovi ˇ c. Combinatorial optimization and reasoning with graph neural networks. ´ arXiv preprint arXiv:2102.09544, 2021.
247
+ [8] Eugenia Cheng. Iterated distributive laws. In Mathematical Proceedings of the Cambridge Philosophical Society, volume 150, pages 459–487. Cambridge University Press, 2011.
248
+ [9] Pim de Haan, Taco S Cohen, and Max Welling. Natural graph networks. Advances in Neural Information Processing Systems, 33:3636–3646, 2020.
249
+ [10] Oege De Moor. Categories, relations and dynamic programming. Mathematical Structures in Computer Science, 4(1):33–69, 1994.
250
+ [11] Andreea-Ioana Deac, Petar Velickovi ˇ c, Ognjen Milinkovic, Pierre-Luc Bacon, Jian Tang, and ´ Mladen Nikolic. Neural algorithmic reasoners are implicit planners. Advances in Neural Information Processing Systems, 34, 2021.
251
+ [12] Andrew Dudzik. Quantales and hyperstructures: Monads, mo’problems. arXiv preprint arXiv:1707.09227, 2017.
252
+ [13] Michael G Eastwood, Roger Penrose, and RO Wells. Cohomology and massless fields. Commun. Math. Phys, 78(3):305–351, 1981.
253
+ [14] Robert W Floyd. Algorithm 97: shortest path. Communications of the ACM, 5(6):345, 1962.
254
+ [15] Brendan Fong and David I Spivak. An invitation to applied category theory: seven sketches in compositionality. Cambridge University Press, 2019.
255
+ [16] Karlis Freivalds, Em¯ıls Ozolin, š, and Agris Šostaks. Neural shuffle-exchange networks-sequence processing in o (n log n) time. Advances in Neural Information Processing Systems, 32, 2019.
256
+ [17] Nicola Gambino and Joachim Kock. Polynomial functors and polynomial monads. In Mathematical proceedings of the cambridge philosophical society, volume 154, pages 153–192. Cambridge University Press, 2013.
257
+ [18] Jeffrey Giansiracusa and Noah Giansiracusa. Equations of tropical varieties. Duke Mathematical Journal, 165(18):3379–3433, 2016.
258
+ [19] Justin Gilmer, Samuel S Schoenholz, Patrick F Riley, Oriol Vinyals, and George E Dahl. Neural message passing for quantum chemistry. In International conference on machine learning, pages 1263–1272. PMLR, 2017.
259
+ [20] Arthur Jacot, Franck Gabriel, and Clément Hongler. Neural tangent kernel: Convergence and generalization in neural networks. Advances in neural information processing systems, 31, 2018.
260
+ [21] Vinod Nair, Sergey Bartunov, Felix Gimeno, Ingrid von Glehn, Pawel Lichocki, Ivan Lobov, Brendan O’Donoghue, Nicolas Sonnerat, Christian Tjandraatmadja, Pengming Wang, et al. Solving mixed integer programs using neural networks. arXiv preprint arXiv:2012.13349, 2020.
261
+ [22] Susan Niefield. Cartesianness: topological spaces, uniform spaces, and affine schemes. J. Pure Appl. Alg., 23:147–163, 1982.
262
+ [23] Alvaro Sanchez-Gonzalez, Jonathan Godwin, Tobias Pfaff, Rex Ying, Jure Leskovec, and Peter Battaglia. Learning to simulate complex physics with graph networks. In International Conference on Machine Learning, pages 8459–8468. PMLR, 2020.
263
+ [24] Heiko Strathmann, Mohammadamin Barekatain, Charles Blundell, and Petar Velickovi ˇ c. Persis-´ tent message passing. arXiv preprint arXiv:2103.01043, 2021.
264
+ [25] Daisuke Tambara. On multiplicative transfer. Communications in Algebra, 21(4):1393–1420, 1993.
265
+ [26] Hao Tang, Zhiao Huang, Jiayuan Gu, Bao-Liang Lu, and Hao Su. Towards scale-invariant graph-related problem solving by iterative homogeneous gnns. Advances in Neural Information Processing Systems, 33:15811–15822, 2020.
266
+ [27] Petar Velickovi ˇ c and Charles Blundell. Neural algorithmic reasoning. ´ Patterns, 2(7):100273, 2021.
267
+ [28] Petar Velickovi ˇ c, Matko Bošnjak, Thomas Kipf, Alexander Lerchner, Raia Hadsell, Raz- ´ van Pascanu, and Charles Blundell. Reasoning-modulated representations. arXiv preprint arXiv:2107.08881, 2021.
268
+ [29] Petar Velickovi ˇ c, Lars Buesing, Matthew Overlan, Razvan Pascanu, Oriol Vinyals, and Charles ´ Blundell. Pointer graph networks. Advances in Neural Information Processing Systems, 33:2232–2244, 2020.
269
+ [30] Petar Velickovi ˇ c, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and Yoshua ´ Bengio. Graph attention networks. arXiv preprint arXiv:1710.10903, 2017.
270
+ [31] Petar Velickovi ˇ c, Rex Ying, Matilde Padovano, Raia Hadsell, and Charles Blundell. Neural ´ execution of graph algorithms. arXiv preprint arXiv:1910.10593, 2019.
271
+ [32] Petar Velickovi ˇ c, Adrià Puigdomènech Badia, David Budden, Razvan Pascanu, Andrea Ban- ´ ino, Misha Dashevskiy, Raia Hadsell, and Charles Blundell. The clrs algorithmic reasoning benchmark. arXiv preprint arXiv:2205.15659, 2022.
272
+ [33] Philip Wadler. Comprehending monads. In Proceedings of the 1990 ACM Conference on LISP and Functional Programming, pages 61–78, 1990.
273
+ [34] Mark Weber. Polynomials in categories with pullbacks. Theory and Applications of Categories, 30(16):533–598, 2015.
274
+ [35] Simon Willerton. Integral transforms and the pull-push perspective, i. The n-Category Café, 2020.
275
+ [36] Louis-Pascal Xhonneux, Andreea-Ioana Deac, Petar Velickovi ˇ c, and Jian Tang. How to transfer ´ algorithmic reasoning knowledge to learn new algorithms? Advances in Neural Information Processing Systems, 34, 2021.
276
+ [37] Keyulu Xu, Jingling Li, Mozhi Zhang, Simon S Du, Ken-ichi Kawarabayashi, and Stefanie Jegelka. What can neural networks reason about? arXiv preprint arXiv:1905.13211, 2019.
277
+ [38] Keyulu Xu, Mozhi Zhang, Jingling Li, Simon S Du, Ken-ichi Kawarabayashi, and Stefanie Jegelka. How neural networks extrapolate: From feedforward to graph neural networks. arXiv preprint arXiv:2009.11848, 2020.
278
+ [39] Zhaocheng Zhu, Zuobai Zhang, Louis-Pascal Xhonneux, and Jian Tang. Neural bellman-ford networks: A general graph neural network framework for link prediction. Advances in Neural Information Processing Systems, 34, 2021.
279
+
280
+ # Checklist
281
+
282
+ The checklist follows the references. Please read the checklist guidelines carefully for information on how to answer these questions. For each question, change the default [TODO] to [Yes] , [No] , or [N/A] . You are strongly encouraged to include a justification to your answer, either by referencing the appropriate section of your paper or providing a brief inline description. For example:
283
+
284
+ • Did you include the license to the code and datasets? [Yes] See Section ??.
285
+ • Did you include the license to the code and datasets? [No] The code and the data are proprietary.
286
+ • Did you include the license to the code and datasets? [N/A]
287
+
288
+ Please do not modify the questions and only use the provided macros for your answers. Note that the Checklist section does not count towards the page limit. In your paper, please delete this instructions block and only keep the Checklist section heading above along with the questions/answers below.
289
+
290
+ 1. For all authors...
291
+
292
+ (a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] We propose a novel approach to reinterpret both graph neural networks and dynamic programming, and show empirical gains from an architecture motivated by our blueprint.
293
+ (b) Did you describe the limitations of your work? [Yes]
294
+ (c) Did you discuss any potential negative societal impacts of your work? [N/A] Our work is of a theoretical nature.
295
+ (d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
296
+
297
+ 2. If you are including theoretical results...
298
+
299
+ (a) Did you state the full set of assumptions of all theoretical results? [Yes] (b) Did you include complete proofs of all theoretical results? [Yes] Appropriate references to proofs are provided in all areas where proofs are missing.
300
+
301
+ 3. If you ran experiments...
302
+
303
+ (a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [No] We aim to release the code at a future point. The data is publicly available.
304
+ (b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] The data generation and base model implementation is publicly available within the CLRS benchmark. We detail the model extensions we made.
305
+ (c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes]
306
+ (d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes]
307
+
308
+ 4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
309
+
310
+ (a) If your work uses existing assets, did you cite the creators? [Yes] We cite the CLRS benchmark.
311
+ (b) Did you mention the license of the assets? [N/A]
312
+ (c) Did you include any new assets either in the supplemental material or as a URL? [N/A]
313
+ (d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A]
314
+ (e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A] Our data is abstract and algorithmically generated.
315
+
316
+ 5. If you used crowdsourcing or conducted research with human subjects...
317
+
318
+ (a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
319
+ (b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
320
+ (c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
parse/dev/wu1Za9dY1GY/wu1Za9dY1GY_content_list.json ADDED
@@ -0,0 +1,1432 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Graph Neural Networks are Dynamic Programmers ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 183,
8
+ 122,
9
+ 813,
10
+ 147
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Andrew Dudzik∗ DeepMind adudzik@deepmind.com ",
17
+ "bbox": [
18
+ 276,
19
+ 200,
20
+ 449,
21
+ 242
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Petar Velickovi ˇ c´∗ DeepMind petarv@deepmind.com ",
28
+ "bbox": [
29
+ 557,
30
+ 200,
31
+ 722,
32
+ 243
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Abstract ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 462,
42
+ 279,
43
+ 535,
44
+ 295
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "Recent advances in neural algorithmic reasoning with graph neural networks (GNNs) are propped up by the notion of algorithmic alignment. Broadly, a neural network will be better at learning to execute a reasoning task (in terms of sample complexity) if its individual components align well with the target algorithm. Specifically, GNNs are claimed to align with dynamic programming (DP), a general problem-solving strategy which expresses many polynomial-time algorithms. However, has this alignment truly been demonstrated and theoretically quantified? Here we show, using methods from category theory and abstract algebra, that there exists an intricate connection between GNNs and DP, going well beyond the initial observations over individual algorithms such as Bellman-Ford. Exposing this connection, we easily verify several prior findings in the literature, produce better-grounded GNN architectures for edge-centric tasks, and demonstrate empirical results on the CLRS algorithmic reasoning benchmark. We hope our exposition will serve as a foundation for building stronger algorithmically aligned GNNs. ",
51
+ "bbox": [
52
+ 233,
53
+ 310,
54
+ 766,
55
+ 503
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 Introduction ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 176,
65
+ 531,
66
+ 310,
67
+ 549
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "One of the principal pillars of neural algorithmic reasoning [27] is training neural networks that execute algorithmic computation in a high-dimensional latent space. While this process is in itself insightful, and can lead to stronger combinatorial optimisation systems [21], it is valuable in terms of expanding the applicability of classical algorithms. Evidence of this value are emerging, with pre-trained algorithmic reasoners utilised in implicit planning [11] and self-supervised learning [28]. ",
74
+ "bbox": [
75
+ 174,
76
+ 564,
77
+ 825,
78
+ 633
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "A fundamental question in this space is: which architecture should be used to learn a particular algorithm (or collection of algorithms [36])? Naturally, we seek architectures that have low sample complexity, as they will allow us to create models that generalise better with fewer training examples. ",
85
+ "bbox": [
86
+ 178,
87
+ 640,
88
+ 821,
89
+ 681
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "The key theoretical advance towards achieving this aim has been made by [37]. Therein, the authors formalise the notion of algorithmic alignment, which states that we should favour architectures that align better to the algorithm, in the sense that we can separate them into modules, which individually correspond to the computations of the target algorithm’s subroutines. It can be proved that architectures with higher algorithmic alignment will have lower sample complexity in the NTK regime [20]. Further, the theory of [37] predicts that graph neural networks (GNNs) algorithmically align with dynamic programming [3, DP]. The authors demonstrate this by forming an analogy to the Bellman-Ford algorithm [2]. ",
96
+ "bbox": [
97
+ 174,
98
+ 688,
99
+ 825,
100
+ 799
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "Since DP is a very general class of problem-solving techniques that can be used to express many classical algorithms, this finding has placed GNNs as the central methodology for neural algorithmic execution [7]. However, it quickly became apparent that it is not enough to just train any GNN—for many algorithmic tasks, careful attention is required. Several papers illustrated special cases of GNNs that align with sequential algorithms [31], linearithmic sequence processing [16], physics simulations [23], iterative algorihtms [26], data structures [29] or auxiliary memory [24]. Some explanations for this lack of easy generalisation have arisen—we now have both geometric [38] and causal [4] views into how better generalisation can be achieved. ",
107
+ "bbox": [
108
+ 174,
109
+ 805,
110
+ 823,
111
+ 875
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "",
118
+ "bbox": [
119
+ 174,
120
+ 90,
121
+ 823,
122
+ 133
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "We believe that the fundamental reason why so many isolated efforts needed to look into learning specific classes of algorithms is the fact the GNN-DP connection has not been sufficiently explored. Indeed, the original work of [37] merely mentions in passing that the formulation of DP algorithms seems to align with GNNs, and demonstrates one example (Bellman-Ford). Our thorough investigation of the literature yielded no concrete follow-up to this initial claim. But DP algorithms are very rich and diverse, often requiring a broad spectrum of computations. Hence what we really need is a framework that could allow us to identify GNNs that could align particularly well with certain classes of DP, rather than assuming a “one-size-fits-all” GNN architecture will exist. ",
129
+ "bbox": [
130
+ 173,
131
+ 138,
132
+ 825,
133
+ 251
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "As a first step towards this, in this paper we interpret the operations of both DP and GNNs from the lens of category theory and abstract algebra. We elucidate the GNN-DP connection by observing a diagrammatic abstraction of their computations, recasting algorithmic alignment to aligning the diagrams of (G)NNs to ones of the target algorithm class. In doing so, several previously shown results will naturally arise as corollaries, and we propose novel GNN variants that empirically align better to edge-centric algorithms. We hope our work opens up the door to a broader unification between algorithmic reasoning and the geometric deep learning blueprint [5]. ",
140
+ "bbox": [
141
+ 173,
142
+ 256,
143
+ 825,
144
+ 354
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "2 GNNs, dynamic programming, and the categorical connection ",
151
+ "text_level": 1,
152
+ "bbox": [
153
+ 174,
154
+ 372,
155
+ 720,
156
+ 390
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "Before diving into the theory behind our connection, we provide a quick recap on the methods being connected: graph neural networks and dynamic programming. Further, we cite related work to outline why it is sufficient to interpret DP from the lens of graph algorithms. ",
163
+ "bbox": [
164
+ 174,
165
+ 402,
166
+ 823,
167
+ 445
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "We will use the definition of GNNs based on [5]. Let a graph be a tuple of nodes and edges, $G = ( V , E )$ , with one-hop neighbourhoods defined as $\\mathcal { N } _ { u } \\mathbf { \\bar { \\Gamma } } = \\{ v \\in V \\mid \\mathbf { \\bar { ( } } v , u ) \\in E \\}$ . Further, a node feature matrix $\\mathbf { X } \\in \\mathbb { R } ^ { | V | \\times k }$ gives the features of node $u$ as $\\mathbf { x } _ { u }$ ; we omit edge- and graph-level features for clarity. A (message passing) GNN over this graph is then executed as: ",
174
+ "bbox": [
175
+ 173,
176
+ 450,
177
+ 825,
178
+ 510
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "equation",
184
+ "img_path": "images/78ad069479b7937017dcd8520cb023ae37d8e27833b1aad3285ae0849b91f42b.jpg",
185
+ "text": "$$\n\\mathbf { h } _ { u } = \\phi \\left( \\mathbf { x } _ { u } , \\bigoplus _ { v \\in \\mathcal { N } _ { u } } \\psi ( \\mathbf { x } _ { u } , \\mathbf { x } _ { v } ) \\right)\n$$",
186
+ "text_format": "latex",
187
+ "bbox": [
188
+ 392,
189
+ 512,
190
+ 606,
191
+ 555
192
+ ],
193
+ "page_idx": 1
194
+ },
195
+ {
196
+ "type": "text",
197
+ "text": "where $\\psi : \\mathbb { R } ^ { k } \\times \\mathbb { R } ^ { k } \\to \\mathbb { R } ^ { k }$ is a message function, $\\phi : \\mathbb { R } ^ { k } \\times \\mathbb { R } ^ { k } \\mathbb { R } ^ { k }$ is a readout function, and $\\oplus$ is a permutation-invariant aggregation function (such as $\\displaystyle \\sum$ or max). Both $\\psi$ and $\\phi$ can be realised as MLPs, but many special cases exist, giving rise to, e.g., attentional GNNs [30]. ",
198
+ "bbox": [
199
+ 173,
200
+ 559,
201
+ 825,
202
+ 603
203
+ ],
204
+ "page_idx": 1
205
+ },
206
+ {
207
+ "type": "text",
208
+ "text": "Dynamic programming is defined as a process that solves problems in a divide et impera fashion: imagine that we want to solve a problem instance $x$ . DP proceeds to identify a set of subproblems, $\\eta ( x )$ , such that solving them first, and recombining the answers, can directly lead to the solution for $x$ : $f ( x ) = \\rho ( \\{ f ( y ) \\mid y \\in \\eta ( x ) \\} )$ . Eventually, we decompose the problem enough until we arrive at an instance for which the solution is trivially given (i.e. $f ( y )$ which is known upfront). From these “base cases”, we can gradually build up the solution for the problem instance we initially care for in a bottom-up fashion. This rule is often expressed programmatically: ",
209
+ "bbox": [
210
+ 173,
211
+ 608,
212
+ 825,
213
+ 707
214
+ ],
215
+ "page_idx": 1
216
+ },
217
+ {
218
+ "type": "equation",
219
+ "img_path": "images/92891ebe40c26711c110439f6f2b27d4b7d3205d64c74a9de02cbe7f22db32e5.jpg",
220
+ "text": "$$\n\\mathsf { d p } [ \\mathbf { x } ] \\gets \\mathbf { r e c o m b i n e } ( \\mathbf { s c o r e } ( \\mathrm { d p } [ \\mathbf { y } ] , \\mathrm { d p } [ \\mathbf { x } ] ) \\mathrm { ~ f o r ~ y ~ i n ~ e x p a n d } ( \\mathbf { x } ) )\n$$",
221
+ "text_format": "latex",
222
+ "bbox": [
223
+ 284,
224
+ 709,
225
+ 712,
226
+ 727
227
+ ],
228
+ "page_idx": 1
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "To initiate our discussion on why DP can be connected with GNNs, it is a worthwhile exercise to show how Equation 2 induces a graph structure. To see this, we leverage a categorical analysis of dynamic programming first proposed by [10]. Therein, dynamic programming algorithms are reasoned about as a composition of three components (presented here on a high level): ",
233
+ "bbox": [
234
+ 173,
235
+ 736,
236
+ 825,
237
+ 792
238
+ ],
239
+ "page_idx": 1
240
+ },
241
+ {
242
+ "type": "equation",
243
+ "img_path": "images/d3898038f7de14b5a150cd537375d99878e8957bc3547b4f947ec335d3610fc8.jpg",
244
+ "text": "$$\n\\mathrm { d } \\boldsymbol { \\mathrm { p } } = \\underbrace { \\rho } _ { \\mathrm { r e c o m b i n e } } ^ { \\mathrm { ~ \\tiny ~ { ~ \\circ ~ } ~ } } \\underbrace { \\sigma } _ { \\mathrm { s c o r e } } ^ { \\mathrm { ~ \\tiny ~ { ~ \\circ ~ } ~ } } \\underbrace { \\eta } _ { \\mathrm { e x p a n d } }\n$$",
245
+ "text_format": "latex",
246
+ "bbox": [
247
+ 401,
248
+ 797,
249
+ 594,
250
+ 832
251
+ ],
252
+ "page_idx": 1
253
+ },
254
+ {
255
+ "type": "text",
256
+ "text": "Expansion selects the relevant subproblems; scoring computes the quality of each individual subproblem’s solution w.r.t. the current problem, and recombining combines these solutions into a solution for the original problem (e.g. by taking the max, or average). ",
257
+ "bbox": [
258
+ 174,
259
+ 835,
260
+ 825,
261
+ 877
262
+ ],
263
+ "page_idx": 1
264
+ },
265
+ {
266
+ "type": "text",
267
+ "text": "Therefore, we can actually identify every subproblem as a node in a graph. Let $V$ be the space of all subproblems, and $R$ an appropriate value space (e.g. the real numbers). Then, expansion is defined as $\\eta : V \\to { \\mathcal { P } } ( V )$ , giving the set of all subproblems relevant for a given problem. Note that this also induces a set of edges between subproblems, $E$ ; namely, $( x , y ) \\in { \\bar { E } }$ if $x \\in \\eta ( y )$ . Each subproblem is scored by using a function $\\sigma : { \\mathcal { P } } ( V ) \\to { \\mathcal { P } } ( R )$ . Finally, the individual scores are recombined using the recombination function, $\\rho : \\mathcal { P } ( R ) R$ . The final dynamic programming primitive therefore computes a function $\\mathrm { d } \\mathsf { p } : V \\to R$ in each of the subproblems of interest. ",
268
+ "bbox": [
269
+ 173,
270
+ 882,
271
+ 823,
272
+ 912
273
+ ],
274
+ "page_idx": 1
275
+ },
276
+ {
277
+ "type": "text",
278
+ "text": "",
279
+ "bbox": [
280
+ 174,
281
+ 90,
282
+ 825,
283
+ 161
284
+ ],
285
+ "page_idx": 2
286
+ },
287
+ {
288
+ "type": "text",
289
+ "text": "Therefore, dynamic programming algorithms can be seen as performing computations over a graph of subproblems, which can usually be precomputed for the task at hand (since the outputs of $\\eta$ are assumed known upfront for every subproblem). One specific popular example is the Bellman-Ford algorithm [2], which computes single-source shortest paths from a given source node, $s$ , in a graph $G = ( V , E )$ . In this case, the set of subproblems is exactly the set of nodes, $V$ , and the expansion $\\eta ( u )$ is exactly the set of one-hop neighbours of $u$ in the graph. The algorithm maintains distances of every node to the source, $d _ { u }$ . The rule for iteratively recombining these distances is as follows: ",
290
+ "bbox": [
291
+ 173,
292
+ 166,
293
+ 825,
294
+ 265
295
+ ],
296
+ "page_idx": 2
297
+ },
298
+ {
299
+ "type": "equation",
300
+ "img_path": "images/eef2f840303fc616e86be7ea792de83fe2c7a2c0a3133771e736b13037c1ca8a.jpg",
301
+ "text": "$$\nd _ { u } \\gets \\operatorname* { m i n } \\Big ( d _ { u } , \\operatorname* { m i n } _ { v \\in \\mathcal { N } _ { u } } d _ { v } + w _ { v \\to u } \\Big )\n$$",
302
+ "text_format": "latex",
303
+ "bbox": [
304
+ 367,
305
+ 276,
306
+ 629,
307
+ 311
308
+ ],
309
+ "page_idx": 2
310
+ },
311
+ {
312
+ "type": "text",
313
+ "text": "where $w _ { v u }$ is the distance between nodes $v$ and $u$ . The algorithm’s base cases are $d _ { s } = 0$ for the source node, $d _ { u } = + \\infty$ otherwise. Note that more general forms of Bellman-Ford pathfinding exist, for appropriate definitions of $^ +$ and min (in general known as a semiring). Several recent research papers such as NBFNet [39] explicitly call on this alignment in their motivation. ",
314
+ "bbox": [
315
+ 174,
316
+ 323,
317
+ 825,
318
+ 380
319
+ ],
320
+ "page_idx": 2
321
+ },
322
+ {
323
+ "type": "text",
324
+ "text": "3 The difficulty of connecting GNNs and DP ",
325
+ "text_level": 1,
326
+ "bbox": [
327
+ 173,
328
+ 405,
329
+ 558,
330
+ 422
331
+ ],
332
+ "page_idx": 2
333
+ },
334
+ {
335
+ "type": "text",
336
+ "text": "The basic technical obstacle to establishing a rigorous correspondence between neural networks and DP is the vastly different character of the computations they perform. Neural networks are built from linear algebra over the familiar real numbers, while DP, which is often a generalisation of path-finding problems, typically takes place over “tropical” objects like $( \\mathbb { N } \\cup \\{ \\infty \\} , { \\overline { { \\operatorname* { m i n } } } } , + ) ^ { 2 }$ , which are usually studied in mathematics as “degenerations” of Euclidean space. The two worlds cannot clearly be reconciled, directly, with simple equations. ",
337
+ "bbox": [
338
+ 173,
339
+ 440,
340
+ 825,
341
+ 525
342
+ ],
343
+ "page_idx": 2
344
+ },
345
+ {
346
+ "type": "text",
347
+ "text": "However, if we define an arbitrary “latent space” $R$ and make as few assumptions as possible, we can observe that many of the behaviors we care about, for both GNNs and $D P$ , arise from looking at functions $S R$ , where $S$ is a finite set. $R$ can be seen as the set of real-valued vectors in the case of GNNs, and the tropical numbers in the case of DP. ",
348
+ "bbox": [
349
+ 174,
350
+ 530,
351
+ 825,
352
+ 587
353
+ ],
354
+ "page_idx": 2
355
+ },
356
+ {
357
+ "type": "text",
358
+ "text": "So our principal object of study is the category of finite sets, and “ $R$ -valued quantities” on it. By “category” here we mean a collection of objects (all finite sets) together with a notion of composable arrows (functions between finite sets). ",
359
+ "bbox": [
360
+ 176,
361
+ 592,
362
+ 823,
363
+ 635
364
+ ],
365
+ "page_idx": 2
366
+ },
367
+ {
368
+ "type": "text",
369
+ "text": "To draw our GNN-DP connection, we need to devise an abstract object which can capture both the GNN’s message passing/aggregation stages (Equation 1) and the DP’s scoring/recombination stages (Equation 2). It may seem quite intuitive that these two concepts can and should be relatable, and category theory is a very attractive tool for “making the obvious even more obvious” [15]. Indeed, recently concepts from category theory have enabled the construction of powerful GNN architectures beyond permutation equivariance [9]. Here, we propose integral transforms as such an object. ",
370
+ "bbox": [
371
+ 173,
372
+ 641,
373
+ 825,
374
+ 724
375
+ ],
376
+ "page_idx": 2
377
+ },
378
+ {
379
+ "type": "text",
380
+ "text": "We will construct the integral transform by composing transformations over our input features in a way that will depend minimally on the specific choice of $R$ . In doing so, we will build a computational diagram that will be applicable for both GNNs and DP (and their own choices of $R$ ), and hence allowing for focusing on making components of those diagrams as aligned as possible. ",
381
+ "bbox": [
382
+ 174,
383
+ 731,
384
+ 825,
385
+ 786
386
+ ],
387
+ "page_idx": 2
388
+ },
389
+ {
390
+ "type": "text",
391
+ "text": "4 The integral transform ",
392
+ "text_level": 1,
393
+ "bbox": [
394
+ 174,
395
+ 813,
396
+ 397,
397
+ 829
398
+ ],
399
+ "page_idx": 2
400
+ },
401
+ {
402
+ "type": "text",
403
+ "text": "An integral transform can be encoded in a diagram of this form, which we call a polynomial span: ",
404
+ "bbox": [
405
+ 173,
406
+ 848,
407
+ 813,
408
+ 863
409
+ ],
410
+ "page_idx": 2
411
+ },
412
+ {
413
+ "type": "equation",
414
+ "img_path": "images/428a5e5c89f878cc5d6528059d6432d6dff300a8d96a8efacf793197e4c3f806.jpg",
415
+ "text": "$$\n\\begin{array} { l c c c c } { X } & { \\quad } & { p \\longrightarrow Y } \\\\ { \\big | } & { } & { } & { \\big | } \\\\ { i } & { } & { } & { \\begin{array} { l } { { } } \\\\ { { } } \\end{array} } \\\\ { \\big \\downarrow } & { } & { } & { \\begin{array} { l } { { } } \\\\ { { } } \\end{array} } \\end{array}\n$$",
416
+ "text_format": "latex",
417
+ "bbox": [
418
+ 436,
419
+ 108,
420
+ 563,
421
+ 186
422
+ ],
423
+ "page_idx": 3
424
+ },
425
+ {
426
+ "type": "text",
427
+ "text": "where $W , X , Y$ and $Z$ are finite sets. The arrows $i , p , o$ stand, respectively, for “input”, “process”, and “output”. In context, the sets will have the following informal meaning: $W$ represents the set over which we define our inputs, $Z$ the set over which we define outputs. $X$ and $Y$ are, respectively, carrier sets for the arguments, and the messages3—we will clarify their meaning shortly. ",
428
+ "bbox": [
429
+ 173,
430
+ 202,
431
+ 826,
432
+ 258
433
+ ],
434
+ "page_idx": 3
435
+ },
436
+ {
437
+ "type": "text",
438
+ "text": "Before proceeding, it is worthy to note the special case of $X = Y = E$ , with $p$ being the identity map. Such a diagram is commonly known as a span. A span that additionally has $W = Z = V$ is equivalent to a representation of a directed graph with vertex set $Z$ and edge set $Y$ $V \\left. E \\right. V )$ ; in this case $i ( e )$ and $o ( e )$ are the functions identifying the source and target nodes of each edge. ",
439
+ "bbox": [
440
+ 174,
441
+ 263,
442
+ 825,
443
+ 320
444
+ ],
445
+ "page_idx": 3
446
+ },
447
+ {
448
+ "type": "text",
449
+ "text": "The key question is: given input data $f$ on $W$ , assigning features $f ( w )$ to each $w \\in W$ , how to transform it, via the polynomial span, into data on $Z ?$ If we can do this, we will be able to characterise both the process of sending messages between nodes in GNNs and scoring subproblems in DP. ",
450
+ "bbox": [
451
+ 174,
452
+ 325,
453
+ 821,
454
+ 368
455
+ ],
456
+ "page_idx": 3
457
+ },
458
+ {
459
+ "type": "text",
460
+ "text": "For us, data on a carrier set $S$ consists of an element of $[ S , R ] : = \\{ f : S \\to R \\}$ , where $R$ is a “set of possible values”. For now, we will think of $R$ as an arbitrary (usually infinite) set, though we will see later that it should possess some algebraic structure; it should be a semiring. ",
461
+ "bbox": [
462
+ 173,
463
+ 373,
464
+ 825,
465
+ 416
466
+ ],
467
+ "page_idx": 3
468
+ },
469
+ {
470
+ "type": "text",
471
+ "text": "The transform proceeds in three steps, following the edges of the polynomial span: ",
472
+ "bbox": [
473
+ 173,
474
+ 422,
475
+ 715,
476
+ 438
477
+ ],
478
+ "page_idx": 3
479
+ },
480
+ {
481
+ "type": "image",
482
+ "img_path": "images/a29308cb28d2969f4ba9f675aa076030e5bc284ddef2ead454fa7460e89aa9d4.jpg",
483
+ "image_caption": [],
484
+ "image_footnote": [],
485
+ "bbox": [
486
+ 406,
487
+ 449,
488
+ 591,
489
+ 537
490
+ ],
491
+ "page_idx": 3
492
+ },
493
+ {
494
+ "type": "text",
495
+ "text": "We call the three arrows $i ^ { * } , p _ { \\otimes } , o _ { \\oplus }$ the pullback, the argument pushfoward, and the message pushforward. Taken together, they form an integral transform—and we conjecture that this transform can be described as a polynomial functor, where $p _ { \\otimes }$ and $o _ { \\oplus }$ correspond to the dependent product and dependent sum from type theory (cf. Appendix $\\mathbf { D }$ for details). ",
496
+ "bbox": [
497
+ 173,
498
+ 579,
499
+ 825,
500
+ 636
501
+ ],
502
+ "page_idx": 3
503
+ },
504
+ {
505
+ "type": "text",
506
+ "text": "The pullback $i ^ { * }$ is the easiest to define. Since we have a function $i : X \\to W$ (part of the polynomial span) and a function $f : W \\to R$ (our input data), we can produce data on $X$ , that is, a function in $X R$ , by composition. We hence define $i ^ { * } f = f \\circ i$ . ",
507
+ "bbox": [
508
+ 174,
509
+ 641,
510
+ 823,
511
+ 684
512
+ ],
513
+ "page_idx": 3
514
+ },
515
+ {
516
+ "type": "text",
517
+ "text": "Unfortunately, the other two arrows of the polynomial span point in the wrong direction for naïve composition. For the moment, we will focus on how to define $o _ { \\oplus }$ and leave $p _ { \\otimes }$ for later. ",
518
+ "bbox": [
519
+ 171,
520
+ 690,
521
+ 823,
522
+ 719
523
+ ],
524
+ "page_idx": 3
525
+ },
526
+ {
527
+ "type": "text",
528
+ "text": "We start with message data $m : Y R$ . It may be attractive to invert the output arrow $o$ in order to define a composition with $o ^ { - 1 }$ , as was done in the case of the pullback. However, unless $o$ is bijective, the preimage $o ^ { - 1 } : Z \\to { \\mathcal { P } } ( Y )$ takes values in the power set of $Y$ . There is an additional technicality: if the composition $m \\circ o ^ { - 1 }$ takes values in ${ \\mathcal { P } } ( R )$ , it will fail to detect multiplicities; we are unable to tell from a subset of $R$ whether multiple messages had the same value. ",
529
+ "bbox": [
530
+ 173,
531
+ 724,
532
+ 825,
533
+ 795
534
+ ],
535
+ "page_idx": 3
536
+ },
537
+ {
538
+ "type": "text",
539
+ "text": "So instead, our pushforward takes values in $\\mathtt { b a g } ( R )$ , the set of finite multisets (or bags) of $R$ , which we describe in more detail in appendix B. For the moment, it is enough to know that a bag is equivalent to a formal sum, and we define an intermediate message pushforward $( { \\overline { { o _ { \\oplus } } } } m ) ( u ) : =$ $\\bar { \\Sigma _ { e \\in t ^ { - 1 } ( u ) } m ( e ) } \\in [ Z , \\mathtt { b a g } ( R ) ]$ . ",
540
+ "bbox": [
541
+ 173,
542
+ 799,
543
+ 825,
544
+ 858
545
+ ],
546
+ "page_idx": 3
547
+ },
548
+ {
549
+ "type": "image",
550
+ "img_path": "images/b4ef111e803e25f9826861bc78bdc35ca9f37a8024d2030b08ff18c3f29eac56.jpg",
551
+ "image_caption": [
552
+ "Figure 1: The illustration of how pullback and pushforward combine to form the integral transform, for two specific cases. Left: Polynomial span $V E E V$ with trivial argument pushforward (identity). Each edge $e _ { u v }$ is connected to its sender and receiver nodes $( u , v )$ via the span (black arrows). The pullback then “pulls” the node features $f ( u )$ along the span, which the argument pushforward folds into edge features $g ( e _ { v u } ) = f ( u )$ . Once all sender features are pulled back to their edges, the message pushforward then “collects” all of the edge features that send to a particular receiver, by pushing them along the span. Right: Polynomial span $V E + E \\mathbf { \\bar { { E } } } V$ , a situation more commonly found in GNNs. In this case, the pullback pulls sender and receiver node features into the argument function, $h$ . The argument pushforward then computes, from these arguments, the edge messages, $g$ , which are sent to receivers via the message pushforward, as before. See Appendix A for a visualisation of how these arrows translate into GNN code. "
553
+ ],
554
+ "image_footnote": [],
555
+ "bbox": [
556
+ 173,
557
+ 90,
558
+ 828,
559
+ 252
560
+ ],
561
+ "page_idx": 4
562
+ },
563
+ {
564
+ "type": "text",
565
+ "text": "All that is missing to complete our definition of $o _ { \\oplus }$ is an aggregator $\\oplus : \\mathtt { b a g } ( R ) \\to R$ . As we will see later, specifying a well-behaved aggregator is the same as imposing a commutative monoid structure on $R$ . With such an aggregator on $R$ , we can define $( o _ { \\oplus } m ) ( u ) : = \\bigoplus ( \\overline { { \\upsilon _ { \\oplus } } } m ) ( u )$ . ",
566
+ "bbox": [
567
+ 173,
568
+ 450,
569
+ 826,
570
+ 494
571
+ ],
572
+ "page_idx": 4
573
+ },
574
+ {
575
+ "type": "text",
576
+ "text": "We return to $p _ { \\otimes }$ , which is constructed very similarly. The only difference is that, while we deliberately regard the collection of messages as unordered, the collection of arguments used to compute a message has an ordering we wish to respect. So instead of the type $\\mathtt { b a g } ( R )$ , we use the type $\\mathtt { l i s t } ( R )$ of finite lists of elements of $R$ , and our aggregator $\\otimes : { \\mathrm { l i s t } } ( R ) \\to R$ is now akin to a fold operator. ",
577
+ "bbox": [
578
+ 173,
579
+ 498,
580
+ 825,
581
+ 556
582
+ ],
583
+ "page_idx": 4
584
+ },
585
+ {
586
+ "type": "text",
587
+ "text": "We illustrate the use of these two aggregators in a decomposed diagram: ",
588
+ "bbox": [
589
+ 173,
590
+ 561,
591
+ 647,
592
+ 577
593
+ ],
594
+ "page_idx": 4
595
+ },
596
+ {
597
+ "type": "image",
598
+ "img_path": "images/158ad27263699ea72f25bbed7a559e8105e848514b253b182697ff23b830b035.jpg",
599
+ "image_caption": [],
600
+ "image_footnote": [],
601
+ "bbox": [
602
+ 289,
603
+ 604,
604
+ 705,
605
+ 760
606
+ ],
607
+ "page_idx": 4
608
+ },
609
+ {
610
+ "type": "text",
611
+ "text": "Note that any semiring $( R , \\otimes , \\oplus )$ comes equipped with binary operators $\\otimes , \\oplus$ that allow aggregators $\\otimes , \\oplus$ to be defined inductively. In fact, the converse—that every set with two such aggregators is a semiring—is also true, if we assume some reasonable conditions on the aggregators, which we can explain in terms of one of the most utilised concepts in category theory and functional programming—monads [33]. Due to space constraints, we refer the interested reader to Appendices $\\mathbf { B }$ and C for a full exposition of how we can use monads over lists and bags to constrain the latent space $R$ to respect a semiring structure. ",
612
+ "bbox": [
613
+ 173,
614
+ 813,
615
+ 825,
616
+ 912
617
+ ],
618
+ "page_idx": 4
619
+ },
620
+ {
621
+ "type": "text",
622
+ "text": "For now, it’s enough to know that our key examples of the real numbers (with multiplication and addition, for GNNs) and the tropical natural numbers (with addition and minimum, for DP) both allow for natural interpretations of $\\otimes$ and $\\oplus$ in the integral transform. ",
623
+ "bbox": [
624
+ 173,
625
+ 90,
626
+ 823,
627
+ 133
628
+ ],
629
+ "page_idx": 5
630
+ },
631
+ {
632
+ "type": "text",
633
+ "text": "We are now ready to show how the integral transform can be used to instantiate popular examples of algorithms and GNNs. We start with the Bellman-Ford algorithm [2] (Equation 4) that was traditionally used to demonstrate the concept of algorithmic alignment. ",
634
+ "bbox": [
635
+ 174,
636
+ 140,
637
+ 823,
638
+ 181
639
+ ],
640
+ "page_idx": 5
641
+ },
642
+ {
643
+ "type": "text",
644
+ "text": "5 Bellman-Ford ",
645
+ "text_level": 1,
646
+ "bbox": [
647
+ 174,
648
+ 200,
649
+ 323,
650
+ 218
651
+ ],
652
+ "page_idx": 5
653
+ },
654
+ {
655
+ "type": "text",
656
+ "text": "Let $R = ( \\mathbb { N } \\cup \\{ \\infty \\} , + , \\operatorname* { m i n } )$ be the “min-plus” semiring of extended natural numbers, with $\\otimes = +$ and $\\oplus = \\operatorname* { m i n }$ . This is the coefficient semiring over which the Bellman-Ford algorithm takes place. ",
657
+ "bbox": [
658
+ 169,
659
+ 231,
660
+ 826,
661
+ 260
662
+ ],
663
+ "page_idx": 5
664
+ },
665
+ {
666
+ "type": "text",
667
+ "text": "Let $( V , E )$ be a weighted graph with source and target maps $s , t : E \\to V$ and edge weights $w : E R$ . For purely technical reasons, we also need to explicitly materialise a bias function $b : V R$ , which is, in practice, a constant-zero function $( b ( v ) = 0$ for all $v \\in V .$ ) but will prove necessary for defining the argument pushforward. ",
668
+ "bbox": [
669
+ 173,
670
+ 266,
671
+ 826,
672
+ 323
673
+ ],
674
+ "page_idx": 5
675
+ },
676
+ {
677
+ "type": "text",
678
+ "text": "We interpret Bellman-Ford as the following polynomial span: ",
679
+ "bbox": [
680
+ 173,
681
+ 328,
682
+ 576,
683
+ 343
684
+ ],
685
+ "page_idx": 5
686
+ },
687
+ {
688
+ "type": "equation",
689
+ "img_path": "images/895174e740f8636e65924ffc7127b01d92249afe55300deecae9499779c15793.jpg",
690
+ "text": "$$\n\\begin{array} { c c c } { { ( V + E ) + ( V + E ) \\ --- p \\longrightarrow V + E } } & { { } } & { { } } \\\\ { { \\big | } } & { { } } & { { \\big | } } \\\\ { { \\begin{array} { c c c } { { \\scriptstyle \\dot { i } } } & { { } } & { { } } \\\\ { { \\big \\downarrow } } & { { } } & { { \\big \\downarrow } } \\\\ { { \\scriptstyle V + ( V + E ) } } & { { } } & { { \\scriptstyle V } } \\end{array} } } & { { } } \\end{array}\n$$",
691
+ "text_format": "latex",
692
+ "bbox": [
693
+ 357,
694
+ 361,
695
+ 640,
696
+ 449
697
+ ],
698
+ "page_idx": 5
699
+ },
700
+ {
701
+ "type": "text",
702
+ "text": "Here “ $+ ^ { \\dag }$ is the disjoint union of sets, defined as $A + B = \\{ ( a , 1 ) \\mid a \\in A \\} \\cup \\{ ( b , 2 ) \\mid b \\in B \\} .$ . Note that $[ S + T , R ] \\cong [ S , R ] \\times [ T , R ]$ , i.e. specifying data on a disjoint union is equivalent to specifying data on each component separately. ",
703
+ "bbox": [
704
+ 174,
705
+ 462,
706
+ 825,
707
+ 505
708
+ ],
709
+ "page_idx": 5
710
+ },
711
+ {
712
+ "type": "text",
713
+ "text": "Initially, we describe each of the four sets of the polynomial span, making their role clear: ",
714
+ "bbox": [
715
+ 173,
716
+ 510,
717
+ 761,
718
+ 526
719
+ ],
720
+ "page_idx": 5
721
+ },
722
+ {
723
+ "type": "text",
724
+ "text": "• Input: $W = V + ( V + E )$ . Our input to Bellman-Ford includes: the current estimate of node distances $\\dot { \\ b { d } } _ { \\ b { u } }$ ; a function in $[ V , R ] )$ , edge weights ( $\\dot { \\boldsymbol { w } }$ ; a function in $[ E , R ] )$ , and the previously discussed bias $b$ , a function in $[ V , R ]$ . Hence our overall inputs are members of $[ V , R ] \\times [ E , R ] \\times [ V , R ] \\cong [ V + ( V + E ) , R ]$ , justifying our choice of input space. ",
725
+ "bbox": [
726
+ 217,
727
+ 535,
728
+ 825,
729
+ 593
730
+ ],
731
+ "page_idx": 5
732
+ },
733
+ {
734
+ "type": "text",
735
+ "text": "• Arguments: $X = ( V + E ) + ( V + E )$ . Here we collect the ingredients necessary to compute Bellman-Ford’s subproblem solutions coming from neighbouring nodes. To do this, we need to combine data in the nodes with data living on edges—those are the arguments to the function. And since they meet in the edges, we “lift” our node distances $[ V , R ]$ to edges they are sending from, giving us an additional function in $[ E , R ]$ . Hence our argument carrier space is now $( V + E ) + ( V + E )$ (the remaining three inputs remain unchanged). ",
736
+ "bbox": [
737
+ 218,
738
+ 595,
739
+ 825,
740
+ 680
741
+ ],
742
+ "page_idx": 5
743
+ },
744
+ {
745
+ "type": "text",
746
+ "text": "• Message: $Y = V + E$ . Once the arguments are combined to compute messages, we are left with signal in each edge (containing the sum of corresponding $d _ { u }$ and $w _ { u v . }$ ), and each node (containing just $d _ { u }$ , for the purposes of access to the previous optimal solution). Hence our messages are members of $[ \\bar { V } , \\bar { R } ] \\times [ E , R ]$ , justifying our choice of message space. ",
747
+ "bbox": [
748
+ 218,
749
+ 683,
750
+ 826,
751
+ 739
752
+ ],
753
+ "page_idx": 5
754
+ },
755
+ {
756
+ "type": "text",
757
+ "text": "• Output: $Z = V$ . Lastly, the output of one step of Bellman-Ford are updated values $d _ { u } ^ { \\prime }$ , which we can interpret as just (output) data living on $V$ . ",
758
+ "bbox": [
759
+ 215,
760
+ 743,
761
+ 825,
762
+ 772
763
+ ],
764
+ "page_idx": 5
765
+ },
766
+ {
767
+ "type": "text",
768
+ "text": "We now describe how to propagate data along each arrow of the diagram in turn, beginning with inputs $( f , b , w )$ of node features $f : V \\to R$ , a bias $b : V R$ , and edge weights $w : E R$ : ",
769
+ "bbox": [
770
+ 173,
771
+ 782,
772
+ 821,
773
+ 811
774
+ ],
775
+ "page_idx": 5
776
+ },
777
+ {
778
+ "type": "text",
779
+ "text": "• Pullback, $i ^ { * }$ : First, we can note the input function $i : ( V + E ) + ( V + E ) V + ( V + E )$ decomposes as the sum of two arrows. $i _ { 1 } : V + E \\to V$ is the identity function on $V$ and the source function on $E$ , and $i _ { 2 } : V + E \\to V + E$ is just the identity. So we calculate the pullback $i ^ { * } ( f , b , w ) = ( f , f \\circ s , b , w )$ , giving us the arguments to compute messages. ",
780
+ "bbox": [
781
+ 217,
782
+ 821,
783
+ 825,
784
+ 878
785
+ ],
786
+ "page_idx": 5
787
+ },
788
+ {
789
+ "type": "text",
790
+ "text": "• Argument pushforward, $p _ { \\otimes }$ : Next, the process function $p$ simply identifies the two copies of $V + E$ , and sums their values. So the argument pushforward is $p _ { \\otimes } ( f , f \\circ s , b , w ) =$ $( f , f \\circ s ) \\otimes ( b , w ) = ( f + b , ( f \\circ s ) + w )$ . This also allows us to interpret the bias function, $b$ , as a “self-edge” in the graph with weight 0. ",
791
+ "bbox": [
792
+ 220,
793
+ 883,
794
+ 825,
795
+ 911
796
+ ],
797
+ "page_idx": 5
798
+ },
799
+ {
800
+ "type": "text",
801
+ "text": "",
802
+ "bbox": [
803
+ 227,
804
+ 90,
805
+ 825,
806
+ 119
807
+ ],
808
+ "page_idx": 6
809
+ },
810
+ {
811
+ "type": "text",
812
+ "text": "• Message pushforward, $o _ { \\oplus }$ : The output function $o : V + E V$ is the identity function on $V$ and the target function on $E$ . So the message pushforward gives us $( o _ { \\oplus } ( f + b , ( f \\circ s ) +$ $\\begin{array} { r } { w ) ) ( u ) = ( f ( u ) + b ( u ) ) \\oplus \\bigoplus _ { t ( e ) = u } ( f \\circ s ) ( e ) = \\operatorname* { m i n } ( f ( u ) + b ( u ) , \\operatorname* { m i n } _ { v \\to u } f ( v ) + w _ { v \\to u } ) ( f ( u ) + f ( e ) ) } \\end{array}$ ). ",
813
+ "bbox": [
814
+ 220,
815
+ 125,
816
+ 825,
817
+ 170
818
+ ],
819
+ "page_idx": 6
820
+ },
821
+ {
822
+ "type": "text",
823
+ "text": "Letting $b ( u ) = 0$ , we can see that this is exactly Equation 4. So we have produced the formula for the Bellman-Ford algorithm directly from the polynomial span in Diagram 6. ",
824
+ "bbox": [
825
+ 174,
826
+ 183,
827
+ 823,
828
+ 212
829
+ ],
830
+ "page_idx": 6
831
+ },
832
+ {
833
+ "type": "text",
834
+ "text": "Note that $p _ { \\oplus }$ is aligned with using max aggregation in neural networks—directly explaining several previous proposals, such as [31]. But additionally, $p _ { \\otimes }$ , as defined, is aligned with concatenating all message arguments together and passing them through a linear function, which is how such a step is implemented in GNNs’ message functions. We now direct our polynomial span analysis at GNNs. ",
835
+ "bbox": [
836
+ 173,
837
+ 218,
838
+ 825,
839
+ 275
840
+ ],
841
+ "page_idx": 6
842
+ },
843
+ {
844
+ "type": "text",
845
+ "text": "6 GNNs ",
846
+ "text_level": 1,
847
+ "bbox": [
848
+ 173,
849
+ 294,
850
+ 258,
851
+ 310
852
+ ],
853
+ "page_idx": 6
854
+ },
855
+ {
856
+ "type": "text",
857
+ "text": "We study the popular message passing neural network (MPNN) model [19], which can be interpreted using the following polynomial span diagram: ",
858
+ "bbox": [
859
+ 173,
860
+ 325,
861
+ 825,
862
+ 356
863
+ ],
864
+ "page_idx": 6
865
+ },
866
+ {
867
+ "type": "equation",
868
+ "img_path": "images/3ad97f3a10ea32ca7315ac0dc96e4387d23d2865cfb14e64c01a2c9767d84ec9.jpg",
869
+ "text": "$$\n\\begin{array} { c c c } { E + ( E + E ) + E } & { \\longrightarrow } & { \\longrightarrow E } \\\\ { \\big | } & { \\big | } & { \\big | } \\\\ { \\begin{array} { c c c } { \\underline { { i } } } & { \\qquad \\underline { { o } } } & { \\qquad \\underline { { o } } } \\\\ { \\big \\downarrow } & { \\qquad \\downarrow } & { \\qquad \\downarrow } \\\\ { 1 + V + E } & { } & { } & { V } \\end{array} } \\end{array}\n$$",
870
+ "text_format": "latex",
871
+ "bbox": [
872
+ 380,
873
+ 375,
874
+ 617,
875
+ 462
876
+ ],
877
+ "page_idx": 6
878
+ },
879
+ {
880
+ "type": "text",
881
+ "text": "Here the set 1 refers to a singleton set—sometimes also called (), or unit—which is used as a carrier for graph-level features. This implies the graph features will be specified as $[ 1 , R ] \\cong R$ , as expected. ",
882
+ "bbox": [
883
+ 174,
884
+ 474,
885
+ 826,
886
+ 503
887
+ ],
888
+ "page_idx": 6
889
+ },
890
+ {
891
+ "type": "text",
892
+ "text": "Given all these features, how would we compute messages? The natural way is to combine the features of the sender and receiver node of each edge, features of said edge, and graph-level features— these will form our arguments, and they need to all “meet” in the edges. This motivates our argument space as $E + ( E + E ) + E$ : all of the above four, accordingly broadcast into their respective edge(s). ",
893
+ "bbox": [
894
+ 174,
895
+ 508,
896
+ 826,
897
+ 565
898
+ ],
899
+ "page_idx": 6
900
+ },
901
+ {
902
+ "type": "text",
903
+ "text": "The input map, $i$ , is then the unique map to the singleton, the sender and receiver functions on the two middle copies of $E$ , and the identity on the last copy of $E$ , i.e. $i ( a , b , c , d ) = \\{ ( ) , s ( b ) , t ( c ) , d \\}$ . The process map, $p$ , collapses the four copies of $E$ into just one, to hold the computed message. Lastly, the output map, $o$ , is the target function, identifying the node to which the message will be delivered. ",
904
+ "bbox": [
905
+ 173,
906
+ 570,
907
+ 826,
908
+ 627
909
+ ],
910
+ "page_idx": 6
911
+ },
912
+ {
913
+ "type": "text",
914
+ "text": "The actual computation performed by the network (over real values in $\\mathbb { R }$ , which can support various semirings of interest) is exactly an integral transform, with an extra MLP processing step on messages: ",
915
+ "bbox": [
916
+ 173,
917
+ 632,
918
+ 826,
919
+ 662
920
+ ],
921
+ "page_idx": 6
922
+ },
923
+ {
924
+ "type": "equation",
925
+ "img_path": "images/161afb7c8fe3b225a116aca1c29550bce3b7356f0a695a4b8dc45e663240b761.jpg",
926
+ "text": "$$\n\\begin{array} { r l r } { \\left[ E + ( E + E ) + E , \\mathbb { R } \\right] \\longrightarrow p _ { \\otimes } \\longrightarrow [ E , \\mathbb { R } ] \\longleftrightarrow \\scriptscriptstyle M L P } & { } & \\\\ { \\uparrow } & { \\underset { \\textit { i } ^ { * } } { \\bigcap } } & { } & { \\underset { \\textit { i } ^ { * } } { \\bigcap } } \\\\ { \\Big | } & { } & { \\underset { \\textit { i } ^ { * } } { \\bigcup } } & { } \\\\ { \\left[ 1 + V + E , \\mathbb { R } \\right] } & { } & { \\left[ V , \\mathbb { R } \\right] } \\end{array}\n$$",
927
+ "text_format": "latex",
928
+ "bbox": [
929
+ 315,
930
+ 685,
931
+ 687,
932
+ 775
933
+ ],
934
+ "page_idx": 6
935
+ },
936
+ {
937
+ "type": "text",
938
+ "text": "It is useful to take a moment to discuss what was just achieved: with a single abstract template (the polynomial span), we have successfully explained both a dynamic programming algorithm, and a GNN update rule—merely by choosing the correct support sets and latent space. ",
939
+ "bbox": [
940
+ 176,
941
+ 787,
942
+ 823,
943
+ 832
944
+ ],
945
+ "page_idx": 6
946
+ },
947
+ {
948
+ "type": "text",
949
+ "text": "7 Improving GNNs with edge updates, with experimental evaluation ",
950
+ "text_level": 1,
951
+ "bbox": [
952
+ 169,
953
+ 851,
954
+ 758,
955
+ 869
956
+ ],
957
+ "page_idx": 6
958
+ },
959
+ {
960
+ "type": "text",
961
+ "text": "From now on, we will set $E = V ^ { 2 }$ , as all our baseline GNNs will use fully connected graphs, and it will accentuate the polynomial nature of our construction. ",
962
+ "bbox": [
963
+ 173,
964
+ 882,
965
+ 823,
966
+ 912
967
+ ],
968
+ "page_idx": 6
969
+ },
970
+ {
971
+ "type": "text",
972
+ "text": "We now show how our polynomial span view can be used to directly propose better-aligned GNN architectures for certain algorithmic tasks. Since the MPNN diagram above outputs only node features, to improve predictive performance on edge-centric algorithms, it is a natural augmentation to also update edge features, by adding edges to the output carrier (as done by, e.g., [1]): ",
973
+ "bbox": [
974
+ 174,
975
+ 90,
976
+ 825,
977
+ 148
978
+ ],
979
+ "page_idx": 7
980
+ },
981
+ {
982
+ "type": "equation",
983
+ "img_path": "images/38cfa92648ebc7d2fef258a376fc26b04389a06993ab5403fcb8c90c3e1c92e7.jpg",
984
+ "text": "$$\n\\begin{array} { c c c } { { V ^ { 2 } + ( V ^ { 2 } + V ^ { 2 } ) + V ^ { 2 } ~ { \\longrightarrow } ~ } } & { { V ~ { \\longrightarrow } ~ V ^ { 2 } } } \\\\ { { \\big \\downarrow } } & { { } } & { { } } \\\\ { { \\begin{array} { l } { { i } } \\\\ { { \\downarrow } } \\\\ { { \\downarrow } } \\end{array} } } & { { \\begin{array} { r } { { } } \\\\ { { } } \\\\ { { } } \\\\ { { { } } } \\end{array} } } \\\\ { { 1 + V + V ^ { 2 } } } & { { } } & { { V + V ^ { 2 } } } \\end{array}\n$$",
985
+ "text_format": "latex",
986
+ "bbox": [
987
+ 344,
988
+ 167,
989
+ 653,
990
+ 257
991
+ ],
992
+ "page_idx": 7
993
+ },
994
+ {
995
+ "type": "text",
996
+ "text": "But notice that there is a problem with the output arrow. Since we are using each message twice, $o$ is no longer a function—it’d have to send each edge message to two different objects! To resolve this, we need to appropriately augment the messages and the arguments. This is equivalent to specifying a new polynomial span with output $V ^ { 2 }$ , which we can then recombine with Diagram 7: ",
997
+ "bbox": [
998
+ 173,
999
+ 270,
1000
+ 826,
1001
+ 328
1002
+ ],
1003
+ "page_idx": 7
1004
+ },
1005
+ {
1006
+ "type": "equation",
1007
+ "img_path": "images/2ec274959e36952618ec0ff959abbbddb69a0f73c67529d1a7cf733ab9f651b2.jpg",
1008
+ "text": "$$\n\\begin{array} { l l l l } { { } } & { { ? ~ - } } & { { ~ p ~ - } } & { { ~ ? ~ } } \\\\ { { } } & { { } } & { { } } & { { } } \\\\ { { } } & { { \\stackrel { i } { \\downarrow } ~ } } & { { } } & { { ~ \\stackrel { i } { \\downarrow } ~ } } \\\\ { { } } & { { } } & { { } } & { { ~ \\downarrow } } \\\\ { { 1 + V + V ^ { 2 } } } & { { } } & { { } } & { { ~ V ^ { 2 } } } \\end{array}\n$$",
1009
+ "text_format": "latex",
1010
+ "bbox": [
1011
+ 398,
1012
+ 349,
1013
+ 599,
1014
+ 433
1015
+ ],
1016
+ "page_idx": 7
1017
+ },
1018
+ {
1019
+ "type": "text",
1020
+ "text": "Most edge-centric algorithms of interest (such as the Floyd-Warshall algorithm for all-pairs shortest paths [14]), compute edge-level outputs by reducing over a choice of “intermediate” node. Hence, it would be beneficial to produce messages with shape $V ^ { 3 }$ , which would then reduce to features over $V ^ { 2 }$ . There are three possible ways to broadcast both node and edge features into $V ^ { 3 }$ , so we propose the following polynomial span, which materialises each of those arguments: ",
1021
+ "bbox": [
1022
+ 173,
1023
+ 445,
1024
+ 826,
1025
+ 517
1026
+ ],
1027
+ "page_idx": 7
1028
+ },
1029
+ {
1030
+ "type": "equation",
1031
+ "img_path": "images/ec96ce2bd471f56111504a923d0978d5e6f8c1a68dc030226eb91784d1db94dc.jpg",
1032
+ "text": "$$\n\\begin{array} { c c c } { { V ^ { 3 } + ( V ^ { 3 } + V ^ { 3 } + V ^ { 3 } ) + ( V ^ { 3 } + V ^ { 3 } + V ^ { 3 } ) \\longleftarrow \\longrightarrow V ^ { 3 } } } & { { \\nonumber } } & { { \\nonumber } } \\\\ { { \\big \\downarrow } } & { { \\big \\downarrow } } & { { \\big \\downarrow } } \\\\ { { \\big \\downarrow } } & { { \\big \\downarrow } } & { { \\big \\downarrow } } \\\\ { { 1 + V + V ^ { 2 } } } & { { { } } } & { { V ^ { 2 } } } \\end{array}\n$$",
1033
+ "text_format": "latex",
1034
+ "bbox": [
1035
+ 294,
1036
+ 536,
1037
+ 700,
1038
+ 626
1039
+ ],
1040
+ "page_idx": 7
1041
+ },
1042
+ {
1043
+ "type": "text",
1044
+ "text": "Finally, inserting this into Diagram 7 gives us a corrected polynomial span with output $V + V ^ { 2 }$ : ",
1045
+ "bbox": [
1046
+ 168,
1047
+ 640,
1048
+ 803,
1049
+ 657
1050
+ ],
1051
+ "page_idx": 7
1052
+ },
1053
+ {
1054
+ "type": "equation",
1055
+ "img_path": "images/a94dbcec6fee11ffa586686a5f8520593ff0d34c2b18b72508a5c3dfb0e94089.jpg",
1056
+ "text": "$$\n\\begin{array} { l c c } { { 4 { \\cal V } ^ { 2 } + 7 { \\cal V } ^ { 3 } ~ --- ~ p ~ { \\longrightarrow } ~ { \\cal V } ^ { 2 } + { \\cal V } ^ { 3 } } } \\\\ { { \\mid ~ } } \\\\ { { ~ \\stackrel { i } { \\downarrow } ~ } } \\\\ { { ~ \\downarrow ~ } } \\\\ { { 1 + { \\cal V } + { \\cal V } ^ { 2 } ~ } } & { { ~ { \\cal V } + { \\cal V } ^ { 2 } } } \\end{array}\n$$",
1057
+ "text_format": "latex",
1058
+ "bbox": [
1059
+ 379,
1060
+ 678,
1061
+ 620,
1062
+ 763
1063
+ ],
1064
+ "page_idx": 7
1065
+ },
1066
+ {
1067
+ "type": "text",
1068
+ "text": "Here we have collapsed the copies of $V ^ { 2 }$ and $V ^ { 3 }$ in the argument position for compactness. ",
1069
+ "bbox": [
1070
+ 173,
1071
+ 779,
1072
+ 774,
1073
+ 795
1074
+ ],
1075
+ "page_idx": 7
1076
+ },
1077
+ {
1078
+ "type": "text",
1079
+ "text": "While Diagram 7 doesn’t make sense as a polynomial diagram of sets, we can clearly still implement it as an architecture [1], since nothing stops us from sending the same tensor to two places. We want to investigate whether our proposed modification of Diagram 10, which materialises order3 messages, leads to improved algorithmic alignment on edge-centric algorithms. To support this evaluation, we initially use a set of six tasks from the recently proposed CLRS Algorithmic Reasoning Benchmark [32], which evaluates how well various (G)NNs align to classical algorithms, both inand out-of-distribution. We reuse exactly the data generation and base model implementations in the publicly available code for the CLRS benchmark. ",
1080
+ "bbox": [
1081
+ 173,
1082
+ 799,
1083
+ 826,
1084
+ 912
1085
+ ],
1086
+ "page_idx": 7
1087
+ },
1088
+ {
1089
+ "type": "text",
1090
+ "text": "We implemented each of these options by making our GNN’s message and update functions be two-layer MLPs with embedding dimension 24, and hidden layers of size 8 and 16. Our test results (out-of-distribution) are summarised in Table 1. For convenience, we also illustrate the in-distribution performance of our models via plots given in Appendix E. ",
1091
+ "bbox": [
1092
+ 174,
1093
+ 90,
1094
+ 825,
1095
+ 147
1096
+ ],
1097
+ "page_idx": 8
1098
+ },
1099
+ {
1100
+ "type": "text",
1101
+ "text": "Lastly, we scale up our experiments to 27 different tasks in CLRS, 96-dimensional embeddings, and using the PGN processor [29], which is the current state-of-the-art model on CLRS in terms of task win count [32]. We summarise the performance improvement obtained by our $V ^ { 3 }$ variant of PGN in Table 2, aggregated across edge-centric tasks as well as ones that do not require explicit edge-level reasoning. For convenience, we provide the per-task test performance in Appendix F (Table 3). ",
1102
+ "bbox": [
1103
+ 174,
1104
+ 152,
1105
+ 825,
1106
+ 223
1107
+ ],
1108
+ "page_idx": 8
1109
+ },
1110
+ {
1111
+ "type": "text",
1112
+ "text": "We found that the $V ^ { 3 }$ architecture was equivalent to, or outperformed, the non-polynomial $( V ^ { 2 } )$ one in all edge-centric algorithms (up to standard error). Additionally, this architecture appears to also provide some gains on tasks without explicit edge-level reasoning requirements, albeit smaller on average and less consistently. Our result directly validates our theory’s predictions, in the context of presenting a better-aligned GNN for edge-centric algorithmic targets. ",
1113
+ "bbox": [
1114
+ 174,
1115
+ 228,
1116
+ 825,
1117
+ 299
1118
+ ],
1119
+ "page_idx": 8
1120
+ },
1121
+ {
1122
+ "type": "table",
1123
+ "img_path": "images/6ddf7d6cf3a9de37dbc564849fee230efbd8eeb2b23358562ae93e3236be1584.jpg",
1124
+ "table_caption": [
1125
+ "Table 1: Test (out-of-distribution) results of our models on all models on the six algorithms studied. $V ^ { 2 }$ corresponds to the baseline model offered by Diagram 7, while $V ^ { 3 }$ corresponds to our proposal in Diagram 10, which respects the polynomial span. "
1126
+ ],
1127
+ "table_footnote": [],
1128
+ "table_body": "<table><tr><td>Algorithm</td><td>V2-large</td><td>V3-large</td><td>V2-small</td><td>V3-small</td></tr><tr><td>Dijkstra</td><td>59.58% ± 2.82</td><td>68.53%± 2.40</td><td>56.10%± 3.25</td><td>60.32%± 2.70</td></tr><tr><td>Find Maximum Subarray</td><td>8.33%± 0.50</td><td>9.06%±0.65</td><td>8.46%± 0.55</td><td>7.89%±0.64</td></tr><tr><td>Floyd-Warshall</td><td>7.46%±0.63</td><td>9.00%±0.81</td><td>6.66%± 0.62</td><td>8.23%±0.62</td></tr><tr><td>Insertion Sort</td><td>15.39% ± 1.27</td><td>24.67%±2.44</td><td>14.69% ± 1.32</td><td>20.23%± 2.21</td></tr><tr><td>Matrix Chain Order</td><td>67.64% ± 1.23</td><td>70.79% ± 1.54</td><td>68.85%± 2.26</td><td>68.76%± 1.21</td></tr><tr><td>Optimal BST</td><td>53.03%± 2.80</td><td>54.56%± 4.34</td><td>46.65% ± 3.82</td><td>51.94% ± 4.60</td></tr><tr><td>Overall average</td><td>35.24%</td><td>39.43%</td><td>33.57%</td><td>36.23%</td></tr></table>",
1129
+ "bbox": [
1130
+ 173,
1131
+ 358,
1132
+ 846,
1133
+ 493
1134
+ ],
1135
+ "page_idx": 8
1136
+ },
1137
+ {
1138
+ "type": "table",
1139
+ "img_path": "images/e51fa85ddca21ba377c1c823b7bee4f7915f0f3e88ecd1bb97e39ec782ca32d7.jpg",
1140
+ "table_caption": [
1141
+ "Table 2: Test (out-of-distribution) results across 27 tasks in CLRS, for the PGN processor network, averaged across edge-centric and other tasks. See Appendix F for the per-task test performances. "
1142
+ ],
1143
+ "table_footnote": [],
1144
+ "table_body": "<table><tr><td>Algorithms</td><td>V2-PGN</td><td>V3-PGN</td><td>Average Improvement</td></tr><tr><td>Edge-centric algorithms</td><td>35.03%</td><td>39.08%</td><td>4.44% ± 1.06</td></tr><tr><td>Other algorithms</td><td>35.37%</td><td>36.33%</td><td>1.01% ± 0.11</td></tr><tr><td>Average of the two groups</td><td>35.20%</td><td>37.70%</td><td>2.73%</td></tr></table>",
1145
+ "bbox": [
1146
+ 230,
1147
+ 547,
1148
+ 766,
1149
+ 627
1150
+ ],
1151
+ "page_idx": 8
1152
+ },
1153
+ {
1154
+ "type": "text",
1155
+ "text": "8 Conclusions ",
1156
+ "text_level": 1,
1157
+ "bbox": [
1158
+ 173,
1159
+ 651,
1160
+ 307,
1161
+ 670
1162
+ ],
1163
+ "page_idx": 8
1164
+ },
1165
+ {
1166
+ "type": "text",
1167
+ "text": "In this paper, we describe the use of category theory and abstract algebra to explicitly expand on the GNN-DP connection, which was previously largely handwaved on specific examples. We derived a generic diagram of an integral transform (based on standard categorical concepts like pullback, pushforward and commutative monoids), and argued why it is general enough to support both GNN and DP computations. With this diagram materialised, we were able to immediately unify large quantities of prior work as simply manipulating one arrow or element in the integral transform. We also provided empirical evidence of the utility of polynomial spans for analysing GNN architectures, especially in terms of algorithmic alignment. It is our hope that our findings inspire future research into better-aligned neural algorithmic reasoners, especially focusing on generalising or diving into several aspects of this diagram. ",
1168
+ "bbox": [
1169
+ 173,
1170
+ 683,
1171
+ 825,
1172
+ 821
1173
+ ],
1174
+ "page_idx": 8
1175
+ },
1176
+ {
1177
+ "type": "text",
1178
+ "text": "Lastly, it is not at all unlikely that analyses similar to ours have already been used to describe other fields of science—beyond algorithmic reasoners. The principal ideas of span and integral transform are central to defining Fourier series [35], and appear in the analysis of Yang-Mills equations in particle physics [13]. Properly understanding the common ground behind all of these definitions may, in the very least, lead to interesting connections, and a shared understanding between the various fields they span. ",
1179
+ "bbox": [
1180
+ 174,
1181
+ 828,
1182
+ 825,
1183
+ 911
1184
+ ],
1185
+ "page_idx": 8
1186
+ },
1187
+ {
1188
+ "type": "text",
1189
+ "text": "Acknowledgments and Disclosure of Funding ",
1190
+ "text_level": 1,
1191
+ "bbox": [
1192
+ 174,
1193
+ 88,
1194
+ 553,
1195
+ 107
1196
+ ],
1197
+ "page_idx": 9
1198
+ },
1199
+ {
1200
+ "type": "text",
1201
+ "text": "We would like to thank Charles Blundell, Tai-Danae Bradley, Taco Cohen, Bruno Gavranovic, Bogdan ´ Georgiev, Razvan Pascanu, Karolis Špukas, Grzegorz Swirszcz, and Vincent Wang-Ma ´ scianica for ´ the very useful discussions and feedback on prior versions of this work. ",
1202
+ "bbox": [
1203
+ 174,
1204
+ 121,
1205
+ 825,
1206
+ 164
1207
+ ],
1208
+ "page_idx": 9
1209
+ },
1210
+ {
1211
+ "type": "text",
1212
+ "text": "Special thanks to Tamara von Glehn for key comments helping us to formally connect integral transforms to polynomial functors. ",
1213
+ "bbox": [
1214
+ 174,
1215
+ 170,
1216
+ 823,
1217
+ 199
1218
+ ],
1219
+ "page_idx": 9
1220
+ },
1221
+ {
1222
+ "type": "text",
1223
+ "text": "This research was funded by DeepMind. ",
1224
+ "bbox": [
1225
+ 176,
1226
+ 205,
1227
+ 439,
1228
+ 219
1229
+ ],
1230
+ "page_idx": 9
1231
+ },
1232
+ {
1233
+ "type": "text",
1234
+ "text": "References ",
1235
+ "text_level": 1,
1236
+ "bbox": [
1237
+ 174,
1238
+ 241,
1239
+ 266,
1240
+ 256
1241
+ ],
1242
+ "page_idx": 9
1243
+ },
1244
+ {
1245
+ "type": "text",
1246
+ "text": "[1] Peter W Battaglia, Jessica B Hamrick, Victor Bapst, Alvaro Sanchez-Gonzalez, Vinicius Zambaldi, Mateusz Malinowski, Andrea Tacchetti, David Raposo, Adam Santoro, Ryan Faulkner, et al. Relational inductive biases, deep learning, and graph networks. arXiv preprint arXiv:1806.01261, 2018. \n[2] Richard Bellman. On a routing problem. Quarterly of applied mathematics, 16(1):87–90, 1958. \n[3] Richard Bellman. Dynamic programming. Science, 153(3731):34–37, 1966. \n[4] Beatrice Bevilacqua, Yangze Zhou, and Bruno Ribeiro. Size-invariant graph representations for graph classification extrapolations. In International Conference on Machine Learning, pages 837–851. PMLR, 2021. \n[5] Michael M Bronstein, Joan Bruna, Taco Cohen, and Petar Velickovi ˇ c. Geometric deep learning: ´ Grids, groups, graphs, geodesics, and gauges. arXiv preprint arXiv:2104.13478, 2021. \n[6] Francesca Cagliari and Sandra Mantovani. Cartesianness: topological spaces, uniform spaces, and affine schemes. Topology and its Applications, 41:263–272, 1991. \n[7] Quentin Cappart, Didier Chételat, Elias Khalil, Andrea Lodi, Christopher Morris, and Petar Velickovi ˇ c. Combinatorial optimization and reasoning with graph neural networks. ´ arXiv preprint arXiv:2102.09544, 2021. \n[8] Eugenia Cheng. Iterated distributive laws. In Mathematical Proceedings of the Cambridge Philosophical Society, volume 150, pages 459–487. Cambridge University Press, 2011. \n[9] Pim de Haan, Taco S Cohen, and Max Welling. Natural graph networks. Advances in Neural Information Processing Systems, 33:3636–3646, 2020. \n[10] Oege De Moor. Categories, relations and dynamic programming. Mathematical Structures in Computer Science, 4(1):33–69, 1994. \n[11] Andreea-Ioana Deac, Petar Velickovi ˇ c, Ognjen Milinkovic, Pierre-Luc Bacon, Jian Tang, and ´ Mladen Nikolic. Neural algorithmic reasoners are implicit planners. Advances in Neural Information Processing Systems, 34, 2021. \n[12] Andrew Dudzik. Quantales and hyperstructures: Monads, mo’problems. arXiv preprint arXiv:1707.09227, 2017. \n[13] Michael G Eastwood, Roger Penrose, and RO Wells. Cohomology and massless fields. Commun. Math. Phys, 78(3):305–351, 1981. \n[14] Robert W Floyd. Algorithm 97: shortest path. Communications of the ACM, 5(6):345, 1962. \n[15] Brendan Fong and David I Spivak. An invitation to applied category theory: seven sketches in compositionality. Cambridge University Press, 2019. \n[16] Karlis Freivalds, Em¯ıls Ozolin, š, and Agris Šostaks. Neural shuffle-exchange networks-sequence processing in o (n log n) time. Advances in Neural Information Processing Systems, 32, 2019. \n[17] Nicola Gambino and Joachim Kock. Polynomial functors and polynomial monads. In Mathematical proceedings of the cambridge philosophical society, volume 154, pages 153–192. Cambridge University Press, 2013. \n[18] Jeffrey Giansiracusa and Noah Giansiracusa. Equations of tropical varieties. Duke Mathematical Journal, 165(18):3379–3433, 2016. \n[19] Justin Gilmer, Samuel S Schoenholz, Patrick F Riley, Oriol Vinyals, and George E Dahl. Neural message passing for quantum chemistry. In International conference on machine learning, pages 1263–1272. PMLR, 2017. \n[20] Arthur Jacot, Franck Gabriel, and Clément Hongler. Neural tangent kernel: Convergence and generalization in neural networks. Advances in neural information processing systems, 31, 2018. \n[21] Vinod Nair, Sergey Bartunov, Felix Gimeno, Ingrid von Glehn, Pawel Lichocki, Ivan Lobov, Brendan O’Donoghue, Nicolas Sonnerat, Christian Tjandraatmadja, Pengming Wang, et al. Solving mixed integer programs using neural networks. arXiv preprint arXiv:2012.13349, 2020. \n[22] Susan Niefield. Cartesianness: topological spaces, uniform spaces, and affine schemes. J. Pure Appl. Alg., 23:147–163, 1982. \n[23] Alvaro Sanchez-Gonzalez, Jonathan Godwin, Tobias Pfaff, Rex Ying, Jure Leskovec, and Peter Battaglia. Learning to simulate complex physics with graph networks. In International Conference on Machine Learning, pages 8459–8468. PMLR, 2020. \n[24] Heiko Strathmann, Mohammadamin Barekatain, Charles Blundell, and Petar Velickovi ˇ c. Persis-´ tent message passing. arXiv preprint arXiv:2103.01043, 2021. \n[25] Daisuke Tambara. On multiplicative transfer. Communications in Algebra, 21(4):1393–1420, 1993. \n[26] Hao Tang, Zhiao Huang, Jiayuan Gu, Bao-Liang Lu, and Hao Su. Towards scale-invariant graph-related problem solving by iterative homogeneous gnns. Advances in Neural Information Processing Systems, 33:15811–15822, 2020. \n[27] Petar Velickovi ˇ c and Charles Blundell. Neural algorithmic reasoning. ´ Patterns, 2(7):100273, 2021. \n[28] Petar Velickovi ˇ c, Matko Bošnjak, Thomas Kipf, Alexander Lerchner, Raia Hadsell, Raz- ´ van Pascanu, and Charles Blundell. Reasoning-modulated representations. arXiv preprint arXiv:2107.08881, 2021. \n[29] Petar Velickovi ˇ c, Lars Buesing, Matthew Overlan, Razvan Pascanu, Oriol Vinyals, and Charles ´ Blundell. Pointer graph networks. Advances in Neural Information Processing Systems, 33:2232–2244, 2020. \n[30] Petar Velickovi ˇ c, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and Yoshua ´ Bengio. Graph attention networks. arXiv preprint arXiv:1710.10903, 2017. \n[31] Petar Velickovi ˇ c, Rex Ying, Matilde Padovano, Raia Hadsell, and Charles Blundell. Neural ´ execution of graph algorithms. arXiv preprint arXiv:1910.10593, 2019. \n[32] Petar Velickovi ˇ c, Adrià Puigdomènech Badia, David Budden, Razvan Pascanu, Andrea Ban- ´ ino, Misha Dashevskiy, Raia Hadsell, and Charles Blundell. The clrs algorithmic reasoning benchmark. arXiv preprint arXiv:2205.15659, 2022. \n[33] Philip Wadler. Comprehending monads. In Proceedings of the 1990 ACM Conference on LISP and Functional Programming, pages 61–78, 1990. \n[34] Mark Weber. Polynomials in categories with pullbacks. Theory and Applications of Categories, 30(16):533–598, 2015. \n[35] Simon Willerton. Integral transforms and the pull-push perspective, i. The n-Category Café, 2020. \n[36] Louis-Pascal Xhonneux, Andreea-Ioana Deac, Petar Velickovi ˇ c, and Jian Tang. How to transfer ´ algorithmic reasoning knowledge to learn new algorithms? Advances in Neural Information Processing Systems, 34, 2021. \n[37] Keyulu Xu, Jingling Li, Mozhi Zhang, Simon S Du, Ken-ichi Kawarabayashi, and Stefanie Jegelka. What can neural networks reason about? arXiv preprint arXiv:1905.13211, 2019. \n[38] Keyulu Xu, Mozhi Zhang, Jingling Li, Simon S Du, Ken-ichi Kawarabayashi, and Stefanie Jegelka. How neural networks extrapolate: From feedforward to graph neural networks. arXiv preprint arXiv:2009.11848, 2020. \n[39] Zhaocheng Zhu, Zuobai Zhang, Louis-Pascal Xhonneux, and Jian Tang. Neural bellman-ford networks: A general graph neural network framework for link prediction. Advances in Neural Information Processing Systems, 34, 2021. ",
1247
+ "bbox": [
1248
+ 178,
1249
+ 262,
1250
+ 826,
1251
+ 915
1252
+ ],
1253
+ "page_idx": 9
1254
+ },
1255
+ {
1256
+ "type": "text",
1257
+ "text": "",
1258
+ "bbox": [
1259
+ 171,
1260
+ 56,
1261
+ 828,
1262
+ 917
1263
+ ],
1264
+ "page_idx": 10
1265
+ },
1266
+ {
1267
+ "type": "text",
1268
+ "text": "",
1269
+ "bbox": [
1270
+ 171,
1271
+ 90,
1272
+ 826,
1273
+ 273
1274
+ ],
1275
+ "page_idx": 11
1276
+ },
1277
+ {
1278
+ "type": "text",
1279
+ "text": "Checklist ",
1280
+ "text_level": 1,
1281
+ "bbox": [
1282
+ 174,
1283
+ 297,
1284
+ 254,
1285
+ 314
1286
+ ],
1287
+ "page_idx": 11
1288
+ },
1289
+ {
1290
+ "type": "text",
1291
+ "text": "The checklist follows the references. Please read the checklist guidelines carefully for information on how to answer these questions. For each question, change the default [TODO] to [Yes] , [No] , or [N/A] . You are strongly encouraged to include a justification to your answer, either by referencing the appropriate section of your paper or providing a brief inline description. For example: ",
1292
+ "bbox": [
1293
+ 176,
1294
+ 328,
1295
+ 825,
1296
+ 385
1297
+ ],
1298
+ "page_idx": 11
1299
+ },
1300
+ {
1301
+ "type": "text",
1302
+ "text": "• Did you include the license to the code and datasets? [Yes] See Section ??. \n• Did you include the license to the code and datasets? [No] The code and the data are proprietary. \n• Did you include the license to the code and datasets? [N/A] ",
1303
+ "bbox": [
1304
+ 217,
1305
+ 395,
1306
+ 823,
1307
+ 462
1308
+ ],
1309
+ "page_idx": 11
1310
+ },
1311
+ {
1312
+ "type": "text",
1313
+ "text": "Please do not modify the questions and only use the provided macros for your answers. Note that the Checklist section does not count towards the page limit. In your paper, please delete this instructions block and only keep the Checklist section heading above along with the questions/answers below. ",
1314
+ "bbox": [
1315
+ 178,
1316
+ 472,
1317
+ 825,
1318
+ 513
1319
+ ],
1320
+ "page_idx": 11
1321
+ },
1322
+ {
1323
+ "type": "text",
1324
+ "text": "1. For all authors... ",
1325
+ "bbox": [
1326
+ 214,
1327
+ 526,
1328
+ 339,
1329
+ 540
1330
+ ],
1331
+ "page_idx": 11
1332
+ },
1333
+ {
1334
+ "type": "text",
1335
+ "text": "(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] We propose a novel approach to reinterpret both graph neural networks and dynamic programming, and show empirical gains from an architecture motivated by our blueprint. \n(b) Did you describe the limitations of your work? [Yes] \n(c) Did you discuss any potential negative societal impacts of your work? [N/A] Our work is of a theoretical nature. \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
1336
+ "bbox": [
1337
+ 238,
1338
+ 545,
1339
+ 825,
1340
+ 676
1341
+ ],
1342
+ "page_idx": 11
1343
+ },
1344
+ {
1345
+ "type": "text",
1346
+ "text": "2. If you are including theoretical results... ",
1347
+ "bbox": [
1348
+ 214,
1349
+ 680,
1350
+ 493,
1351
+ 695
1352
+ ],
1353
+ "page_idx": 11
1354
+ },
1355
+ {
1356
+ "type": "text",
1357
+ "text": "(a) Did you state the full set of assumptions of all theoretical results? [Yes] (b) Did you include complete proofs of all theoretical results? [Yes] Appropriate references to proofs are provided in all areas where proofs are missing. ",
1358
+ "bbox": [
1359
+ 238,
1360
+ 699,
1361
+ 825,
1362
+ 743
1363
+ ],
1364
+ "page_idx": 11
1365
+ },
1366
+ {
1367
+ "type": "text",
1368
+ "text": "3. If you ran experiments... ",
1369
+ "bbox": [
1370
+ 214,
1371
+ 747,
1372
+ 393,
1373
+ 762
1374
+ ],
1375
+ "page_idx": 11
1376
+ },
1377
+ {
1378
+ "type": "text",
1379
+ "text": "(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [No] We aim to release the code at a future point. The data is publicly available. \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] The data generation and base model implementation is publicly available within the CLRS benchmark. We detail the model extensions we made. \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] \n(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] ",
1380
+ "bbox": [
1381
+ 238,
1382
+ 766,
1383
+ 825,
1384
+ 911
1385
+ ],
1386
+ "page_idx": 11
1387
+ },
1388
+ {
1389
+ "type": "text",
1390
+ "text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
1391
+ "bbox": [
1392
+ 214,
1393
+ 90,
1394
+ 825,
1395
+ 107
1396
+ ],
1397
+ "page_idx": 12
1398
+ },
1399
+ {
1400
+ "type": "text",
1401
+ "text": "(a) If your work uses existing assets, did you cite the creators? [Yes] We cite the CLRS benchmark. \n(b) Did you mention the license of the assets? [N/A] \n(c) Did you include any new assets either in the supplemental material or as a URL? [N/A] \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A] \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A] Our data is abstract and algorithmically generated. ",
1402
+ "bbox": [
1403
+ 238,
1404
+ 111,
1405
+ 825,
1406
+ 258
1407
+ ],
1408
+ "page_idx": 12
1409
+ },
1410
+ {
1411
+ "type": "text",
1412
+ "text": "5. If you used crowdsourcing or conducted research with human subjects... ",
1413
+ "bbox": [
1414
+ 214,
1415
+ 262,
1416
+ 705,
1417
+ 277
1418
+ ],
1419
+ "page_idx": 12
1420
+ },
1421
+ {
1422
+ "type": "text",
1423
+ "text": "(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A] \n(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A] \n(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A] ",
1424
+ "bbox": [
1425
+ 238,
1426
+ 281,
1427
+ 826,
1428
+ 371
1429
+ ],
1430
+ "page_idx": 12
1431
+ }
1432
+ ]
parse/dev/wu1Za9dY1GY/wu1Za9dY1GY_layout.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:320efa4f16fb45582a41442bfe4cf7577876f4ad80f23b636889f4e883a1cbfe
3
+ size 603369
parse/dev/wu1Za9dY1GY/wu1Za9dY1GY_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/wu1Za9dY1GY/wu1Za9dY1GY_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/dev/wu1Za9dY1GY/wu1Za9dY1GY_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:578e3cb73a056e0dbdb7964f38dcdee28fe5145ae695b33c2aadf55cbef248de
3
+ size 436166
parse/dev/wu1Za9dY1GY/wu1Za9dY1GY_span.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:654dd91089d128823f4939a20fd5e31a926123b800102bd0c099015d5b8cd0b5
3
+ size 613209
parse/dev/wv79UiY5U7/images/2679cf42c5ca7afde4a76a523590adcad544a86c1101f2b35addc5e22e0d29de.jpg ADDED

Git LFS Details

  • SHA256: 59a6318ba4504d5fca58e08f4940c54a14d8bdcadbd92b24ec13ac6e9dcc3e69
  • Pointer size: 130 Bytes
  • Size of remote file: 25.5 kB
parse/dev/wv79UiY5U7/images/5880a1e3bd6cd3c1d7c81a867381c35d10f2f48c5a760f279138df1cf0bdf3a4.jpg ADDED

Git LFS Details

  • SHA256: b5f30c0e45072cd24b3d0235f288c286c8d26368f9b985d61688c024cdfa6393
  • Pointer size: 131 Bytes
  • Size of remote file: 111 kB
parse/dev/wv79UiY5U7/images/59cb387eaa11efcf1fe9990004718392ee957360c7b38bc20eb8747030037cea.jpg ADDED

Git LFS Details

  • SHA256: c8277b156e62bc5c812dcdb6f4b89771c72c947954eea0846894687d65e12a1e
  • Pointer size: 131 Bytes
  • Size of remote file: 124 kB
parse/dev/wv79UiY5U7/images/9109d63e5c77bff9c3902a83a05ce5457cdefa8e3688c476533290a693e205f7.jpg ADDED

Git LFS Details

  • SHA256: bfe03afe2adc2ab0cee1ab4307f429ade8e7e398d5f7397cbda1326b64ef4b0b
  • Pointer size: 130 Bytes
  • Size of remote file: 23.1 kB
parse/dev/wv79UiY5U7/images/a6f75623bf6c27b9b39c97e30c9dccdd5ceeb53188a88c396f0b67988df825f7.jpg ADDED

Git LFS Details

  • SHA256: 0d97ddfff8d042decc4d58cc8ba74c314e7686dc9f58d3edd8daf4e3f935bd97
  • Pointer size: 130 Bytes
  • Size of remote file: 16.3 kB
parse/dev/wv79UiY5U7/images/b19f84fd0a3b52e2e475622b0bb0a3e1d862d65ede861c5eb52a84372a704122.jpg ADDED

Git LFS Details

  • SHA256: 424d062ef065b06ac0ed4db855a35f7e2418303060f9eaf59fd46b423544ee01
  • Pointer size: 130 Bytes
  • Size of remote file: 15.6 kB
parse/dev/wv79UiY5U7/images/b724073f5d31a2a624b4d55823d3db3c56d82fc197f5992637a482159ecf6e7b.jpg ADDED

Git LFS Details

  • SHA256: f8d472a91d4524b415caa1cf1fe1deb163da9e973084475a8c078679ca4fa5b0
  • Pointer size: 130 Bytes
  • Size of remote file: 16.4 kB
parse/dev/wv79UiY5U7/images/b7f9ce0a993f619a4c9e733eba30581534866055483bee3d24f984c1a430c635.jpg ADDED

Git LFS Details

  • SHA256: 4f8f1b1b4778935a33b6dc7a481dffdf3d9b281477a91a703cb5b12b6cbbc063
  • Pointer size: 130 Bytes
  • Size of remote file: 19.1 kB
parse/dev/wv79UiY5U7/images/bd0d9934e6787c5f94594cb8179e809d60cfc4a1ff3bb7ada286ba3543b5e6bd.jpg ADDED

Git LFS Details

  • SHA256: a08c54a0b21fa0915b6bb5bdb1fe32630f1b2014975e47a2be5f14623fab48c8
  • Pointer size: 130 Bytes
  • Size of remote file: 53.1 kB
parse/dev/wv79UiY5U7/images/dd71c6cf0bdb2bfce4295a9727ef57802e3b4792986d2731663ccef0b54643af.jpg ADDED

Git LFS Details

  • SHA256: 27cad2e2c584e0c37945de5512dbcce3e2576c93eeec6e0718b172fe5e164187
  • Pointer size: 130 Bytes
  • Size of remote file: 37.5 kB
parse/dev/wv79UiY5U7/images/ec55786e780ac343012b7e186f7424d0f65b7f4749737d805de26a12cfaadb2f.jpg ADDED

Git LFS Details

  • SHA256: bd4c41f0f2e55439aee7892790717f33a5f8ef1b7d50a702da620e40a9e07365
  • Pointer size: 130 Bytes
  • Size of remote file: 83 kB
parse/dev/wv79UiY5U7/images/f93276185cbc74760b08a71a948ec69ff823864460eba48e32ddb37a732b76e3.jpg ADDED

Git LFS Details

  • SHA256: 180567174fbdfed10a878043976c74436d2f4d8e9545c893989b901c6d8b6362
  • Pointer size: 130 Bytes
  • Size of remote file: 15.4 kB