Language Models Can Resolve Reference Compositionally,
But It’s Not Their Native Strength: The Case of the Personal Relation Task
May 29, 2026
Do neural models, such as Large Language Models, genuinely acquire compositional abilities for interpretation of natural language? When we talk about semantic interpretation, we can distinguish two complementary aspects: establishing what an expression
refers to in the world (which we call the Extensional task) and representing its sense in a structured way (which we call the Intensional task). We evaluate LLMs and humans on both tasks in the setting of the Personal Relation Task [1] in which, given a universe of people and their relationships with each other, one is asked to interpret a noun phrase such as Amber’s parent’s friend. Here,
for the Intensional task, the answer is the formula friend(parent(amber)), and for the Extensional task, the person. We find that humans and LLMs show opposite strengths: humans perform better on Extensional than Intensional tasks, and LLMs
vice versa. Our methodology brings greater nuance to the understanding of compositional abilities in modern machine learning models. Our results support the notion that the lack of referential grounding in LLM training is a crucial missing
component in mimicking human-like language understanding.
Human languages can have an infinite number of meaningful sentences built from a finite set of elements [2], [3]. This is made possible by the recursive structure of sentences and the principle of semantic compositionality [4], [5], whereby “the meaning of a whole is a function of the meanings of the parts and of the way they are syntactically combined” [6]. Compositional structure has been argued to be not just a theoretical construct, but a property of language data that benefits deep neural networks trained on them [7].
In semantic theory, the discussion of compositionality is intertwined with the important contrast between two aspects of meaning: sense and reference [8]. A noun phrase’s reference (Bedeutung) is the actual entity it denotes in a given world, whereas its sense (Sinn) is the abstract concept or computational procedure that determines
this reference. These are the objects of Extensional and Intensional semantics, respectively. Two expressions can have the same reference but different senses. If Amber’s friend and Bryan’s enemy both refer to the same
person, we can describe their senses using two different formulae friend(amber) and enemy(bryan) but represent their reference identically as e.g.,christina.
The linguistic fluency demonstrated by Large Language Models (LLMs) is superficially similar to human performance in many aspects [9]. A growing body of research [10] addresses a critical question: do AI models genuinely acquire compositional abilities for interpretation, or do their impressive linguistic outputs result primarily from sophisticated pattern matching at the form level?
Much of this work on compositional generalization of LLMs relies on variants of semantic parsing, translating natural language into a formalism; COGS [11] is a representative benchmark. The referential aspect of compositional meaning and its relation to conceptual meaning (sense, which semantic parses can be seen as describing), have not received enough attention.
To address this, we adapt the Personal Relation Task (PRT) [1], in which one is asked to interpret complex noun phrases
such as Felicia’s parent’s enemy’s child. The complexity of the phrases requires recursive compositional interpretation; it is highly unlikely that a human or an LLM would have previously learned each of such phrases as a holistic unit. Taking an
example from our version of the PRT, given a question like Who is the friend of the parent of Amber?, the reference is the specific person the phrase points to (e.g., Felicia). We call this the Extensional Task. The
sense, in contrast, is the conceptual structure of the query, captured in a formal representation like friend(parent(amber)), which we dub the Intensional Task. This distinction is critical, as a model could correctly
produce the formal sense without being able to resolve its concrete reference, or vice versa.
In ordinary communication, people routinely identify intended referents. While this process requires comprehending the intensional structure of the query, humans perform this analysis implicitly and rarely need to resort to explicit notation for it. Therefore, we expected humans to be better at the Extensional task than the Intensional task; this prediction was borne out.
Unlike humans, whose referential abilities are rooted in real-world interaction, LLMs operate only over text. As a result, they have limited access to grounding beyond linguistic data but excel at translation; therefore, we expected LLMs to be better at the Intensional task. This too was borne out, and the difference increased as the complexity of the noun phrases increased. §3 gives the full experimental set-up, summarized in Fig.1, and §4 and §5 discuss the full results.
Our contributions include:
a methodology for assessing intensional vs.extensional compositional interpretation
data on human performance on the same tasks in maximally comparable setup to LLMs
evaluation of several large language models and statistical analysis of model performance, highlighting different strengths of LLMs compared to human participants.
When discussing how sense vs.reference relate to LLMs, some authors [12], [13] theorize about LLMs learning or implementing extensional vs intensional models from text, while other [14] connect intensionality to paraphrasing, a task which LLMs excel at since the T5 model [15]. However, when it comes to empirical evaluation of LLMs, intensional and extensional interpretation have not been contrasted explicitly.
Many of the studies in compositional learning are of immediate relevance here [10]. Work on compositional abilities of neural models highlights their limitations, e.g.,[16], [17], but there are also reports on successes [18]–[20]. Existing benchmarks for the evaluation of compositional abilities in AI can be broadly categorized by whether they test for an extensional or an intensional understanding of language. Extensional tasks require a model to map descriptions to referents. SCAN [16] can be seen as such a task: mapping a command to a concrete sequence of actions. Another example is the realistic compositional instruction following benchmark by [21]. Conversely, intensional tasks, which include COGS [11], GeoQUERY [22], SPIDER [23], and others [24], [25] focus on translating a sentence into a formal, abstract representation, such as a logical formula or a database query, which can be seen as a formalization of sense. While these benchmarks have been crucial for identifying compositional abilities and weaknesses in neural architectures, they typically test for one form of understanding or the other. A key goal of our work is to use a single, unified framework to probe both intensional and extensional interpretation in a comparable way.
Two properties might have systematically affected the difficulty of compositional tasks for language models. First, most existing tasks are intensional, whereby compositionality largely boils down to piecemeal translation from a natural language to a formal one. [26] and a follow-up study by [27] found that high scores on SCAN do not guarantee good performance on datasets like GeoQUERY and SPIDER, and vice versa, which they interpret in terms of synthetic vs.natural data. However, one could also interpret the contrast in terms of the largely extensional nature of SCAN and intensional nature of other datasets. The relevance of the extensional/intensional distinction, as opposed to natural/synthetic, is further suggested by the fact that in [27]’s experiment, T5 performed well on all intensional datasets, including synthetic COGS, but not on the extensional SCAN.
Second, benchmarks like COGS reuse elements of the language inside meaning representations for it, e.g.,word cat translates into logical constant cat; neural systems are known to exploit this, relying on mere string copying [28]. However, in semantic theory, forms (e.g.,strings) and meanings (e.g.,entities) are objects of different nature generally without an inherent
relationship to each other. In our experiments, we control for the transparency of elementary meaning representations as the separate representation variable.
With notable exceptions such as [29], compositional abilities of models are often assessed without an explicit comparison to humans. Our work aims to fill these gaps. We design an evaluation for intensional vs.extensional compositional representations in comparable conditions; we control for the transparency of elementary meaning representations and provide a comparison with human behavior on the same data.
To evaluate compositional reasoning, we developed a series of experiments based on a modified and extended version of the Personal Relation Task (PRT), originally designed by [1]. This task provides a controlled environment to test semantic compositionality in both Large Language Models (LLMs) and human participants.
The core of the task is a self-contained "universe": a graph of 6 nodes (people) connected by edges representing one of four relations: friend, enemy, parent, or child. The friend and enemy relations
are symmetric, while parent and child are asymmetric inverses. (See Fig.6 in Appendix 7 for an example universe.) Questions were generated by
recursively traversing this graph; edges used in the example were excluded. To probe different aspects of compositional reasoning, we manipulate four key variables (Fig.1) as follows:
The Extensional task is to identify the referent of the given noun phrase, while the Intensional task is to provide a nested functional notation, such as friend(parent(amber)).
The relationship between people and their names is arbitrary, as is the relationship between terms like child and the idea of being someone’s child. To emulate this property of language, we also designed an Abstract
version of each task, in which the predicates and individuals are mapped to arbitrary variables (e.g., Amber = h, friend = x). The English version uses standard names and relations
(e.g., Amber = Amber, friend = friend).
This abstract format was introduced for two additional reasons. First, it acts as a control for pretraining data contamination; by using novel symbols, we can be confident that LLMs have not previously encountered this specific task format in textbook examples or other training materials. Second, it increases the difficulty of the intensional task. We hypothesized that the English intensional task might otherwise be solvable through superficial string manipulation rather than true structural understanding. Requiring models to first map abstract symbols to their meanings before constructing a formula forces a more robust form of compositional analysis.
The English Intensional task does not require the universe at all; the solution just involves rearranging the symbols in the natural language query and adding brackets. The Abstract Intensional task on the other hand requires lookup in the universe for referents for predicates and names. While everything an LLM does is, in a sense, string manipulation, the Abstract variant is less straightforward.
This variable refers to the syntactic structure of the query. Left-branching questions used the genitive ’s marker (e.g., Who is Amber’s parent’s friend?). Right-branching questions used prepositional phrases (e.g., Who is the friend of the parent of Amber?).
The complexity of a question is defined as the number of relations involved plus one. LLMs were tested on complexities 3, 4, 5, and 6, while the human experiment was limited to complexity 3 due to budgetary constraints.
LLM accuracy was estimated based on a single run. Each stimulus presented to both LLMs and humans followed a standardized four-part structure: (1) a brief task introduction, (2) the complete dataset of relations, (3) a worked out example with a step-by-step solution, and (4) the question. The full dataset, including the generated universes and questions, is publicly available for reproducibility in our GitHub repository1. A simplified example (with a four-person universe instead of the six-person universe used in our experiments) is in Fig.2. The four main conditions’ prompts differ on their universe representation and worked example. Universe items the enemy of Amber (right-branching) and Amber’s enemy (left-branching) have the following representations:
| English Extensional | Dana |
| English Intentional | enemy(Amber) |
| Abstract Extensional | \(s\) |
| Abstract Intensional | w(h) |
We evaluated the five LLMs listed in Table 1. We included recently developed Large Reasoning Models [30], which attempt to achieve more robust reasoning by internalizing a “thought" process, usually achieved via reinforcement learning. Open-weight models were run in under 21 hours on H100, including debugging. For each model, we generated 1,280 prompts (\(40 * \text{Approach} (2) * \text{Representation}(2) * \text{Branching}(2) * \text{Complexity}(4)\)) covering every combination of experimental variables. To standardize the output for automated parsing, the instruction "Please answer the question in the same format as the example. End with ‘So the answer is [answer]’." was appended to every prompt.
| Model Name | Model Alias | Reasoning | Open | Reference |
|---|---|---|---|---|
| OpenAI GPT 4.1 | gpt-4.1 | No | No | [31] |
| OpenAI o3mini | o3-mini | Yes | No | [32] |
| Qwen2.5-32B | qwen-2.5 | No | Yes | [33] |
| DeepSeek-R1-Distill-Qwen-32B | deepseek-distill | Yes | Yes | [34] |
| Llama-3.3-70B-Instruct | llama-3.3 | No | Yes | [35] |
Anonymized data was collected from 40 participants via the crowd-sourcing platform (www.prolific.com[36]). The final analysis used a sample of 32 after excluding participants who did not achieve 100% accuracy on four control questions consisting of a single relationship (e.g.,Amber’s friend).
The experiment was implemented in PCIbex [37]. Participants completed 8 experimental trials and 4 control trials. Due to budgetary constraints, humans were only tested on complexity 3. For Extensional questions, participants selected an answer from an alphabetized dropdown menu; for Intensional questions, they typed their response into a text field.
The primary performance metric measures exact match with the correct answer, except a wrong number of closing brackets in intensional answers is not penalized. This allows the analysis to focus on semantic understanding over syntactic
precision. To statistically evaluate the factors influencing accuracy, we fitted a series of Generalized Linear Mixed Models (GLMMs) with a binomial family using the lme4 package [38] in R [39]. For more details on the statistical analysis procedure, see Appendix 8.
To summarize, we had the following hypotheses about the effects of experimental variables for LLMs and human participants, all of which are supported by our experiments:
LLMs will be better at Intensional than Extensional tasks.
Conversely, humans will be better at Extensional than Intensional.
Both humans and LLMs will be better at English than Abstract.
Unlike older models, LLMs will not show a difference between Left- and Right-branching.
LLMs’ performance will decay as complexity goes up.
This section presents the comparative performance of Large Language Models (LLMs) and humans on the Personal Relation Task. We analyze the main effects of task approach (Intensional/Extensional), representation (English/Abstract), and complexity (3-6), supported by descriptive statistics and Generalized Linear Mixed Models (GLMMs). Details of the statistical models are provided in Appendix 8 and a full table of results is in Appendix 9. Across all conditions, humans reached an accuracy of 76.95%, LLMs reached 87.4%.
Our analysis reveals a significant interaction between the participant group (Human vs.LLM) and the task approach, as illustrated in Figure 4 and 5. Humans performed better on the Extensional task (82.8% accuracy) than the Intensional task (71.1%). The GLMM for human performance showed a significant negative effect for the Intensional approach (\(\beta = -1.08, p < 0.01\)).
Conversely, LLMs achieved higher accuracy on the Intensional task (95.0%) than on the Extensional task (79.8%). This was reflected in the LLM GLMM as a large positive effect for the Intensional approach (\(\beta = 1.29, p < 0.001\)). This contrast between the human and LLM pattern can be seen in Fig.5. As seen in Fig.3, for non-reasoning models, this performance gap widens significantly as complexity increases, whereas reasoning-enhanced models maintain a much flatter and more consistent performance difference across all complexity levels.
A GLMM comparing Humans to LLMs analyzing complexity-3 tasks confirmed this difference. It showed a negative effect of intensionallity for humans \(\beta = -2.05, p<0.01\) while having a strong positive interaction for LLMs with intensionallity \((\beta = 3.17, p < 0.001)\).
Both LLMs and humans found tasks with abstract representations more difficult than those presented in English. Human accuracy dropped from 85.0% in the English condition to 74.0% in the abstract condition. The human-specific GLMM showed a significant positive effect for the English representation (\(\beta = 1.29, p < 0.001\)).
Similarly, the LLMs’ average accuracy was higher for English tasks (95.1%) than for abstract ones (79.7%), with a significant positive effect for English representation in the LLM GLMM (\(\beta = 0.84, p < 0.05\)). The combined GLMM did not find a significant interaction between participant group and representation \((p = 0.852)\). The lowest accuracy for LLMs (66.1%) was observed in the abstract-extensional condition.
For LLMs, task complexity had a significant negative impact on performance. As shown in Table 2, the average accuracy across all models decreased from 93.0%
at complexity 3 to 82.4% at complexity 6. The LLM GLMM confirmed this trend with a significant negative main effect for complexity (\(\beta = -0.43, p < 0.001\)). Individual models showed different degradation curves,
with gpt-4.1 being the most robust. (Humans were tested only on complexity 3.)
| Model | 3 | 4 | 5 | 6 | Av. |
|---|---|---|---|---|---|
| qwen-2.5 | 92.2 | 82.5 | 79.4 | 76.9 | 82.8 |
| deepseek-distill | 91.9 | 95.0 | 90.0 | 89.1 | 91.5 |
| gpt-4.1 | 98.1 | 94.1 | 93.1 | 92.8 | 94.5 |
| llama-3.3 | 88.4 | 75.6 | 74.4 | 68.8 | 76.8 |
| o3-mini | 94.4 | 93.8 | 93.1 | 84.4 | 91.4 |
| Average | 93.0 | 88.2 | 86.0 | 82.4 | 87.4 |
Branching direction did not yield a significant main effect in the human GLMM (\(p = 0.326\)) or show a consistent pattern across LLMs, though the (non-reasoning) qwen-2.5 did struggle slightly more with right-branching (\(\beta = -0.94, p < 0.05\)), especially in the Extensional task (\(\beta = 2.00, p < 0.05\)).
To isolate the impact of reasoning-specific fine-tuning, we compared the standard qwen-2.5 model with its reasoning-enhanced deepseek-distill variant. The analysis revealed several significant interactions. A strong positive interaction was found between the standard model (qwen-2.5) and the Intensional approach (\(\beta = -2.27, p < 0.001\)), showing the performance gap between Extensional and Intensional tasks was larger for the standard model. Furthermore, significant interactions were identified between model type and both complexity (\(\beta = 0.31, p < 0.05\)) and branching direction (\(\beta = 0.81, p < 0.01\)), indicating that the reasoning model compensates for the weaknesses of the standard model when complexity increases (as seen in Fig.3), and in right-branching noun phrases.
The broad question of interest in this work is the nature of the “reasoning” that LLMs perform when asked to semantically interpret natural language. The particular task is to interpret noun phrases in the context of a universe of people and their relationships to one another.
LLMs are highly proficient at text-based tasks, particularly translation; one of successes of GPT-3 was achieving SOTA BLEU in translation from French and German to English [40]. The intensional interpretation task strongly resembles translation; for English noun phrases, it can often be reduced to a syntactic rearrangement of elements. For example, converting
Amber’s parent’s friend to friend(parent(Amber)) is a structural transformation. Given their proficiency in similar tasks, we predicted that LLMs would find this intensional task of rearranging a noun phrase into a formula easier than
the extensional task of navigating the complex universe to find the correct referent (Hypothesis [item:hyp-LLM-I-E]). This hypothesis is related to Bender and
Koller’s ([41]) argument that the lack of grounding in the world outside text limits semantic capabilities of language models. Even
though the experimental setup presents a textual representation of a “world” of individuals and their relationships, models trained on text may be less predisposed to use such world information while excelling at translation-like tasks, while humans, whose
language use is fundamentally grounded in interactions with objects in the outside world, would exhibit the opposite tendency (Hypothesis [item:hyp-h-I-E]).
However, this contrast requires a nuanced interpretation. Our results should not be taken to mean that humans lack compositional intensional understanding. On the contrary, to succeed at the Extensional task, participants must correctly parse the recursive structure of phrases like Amber’s parent’s friend. Humans process this structure implicitly; the difficulty arises only when they are asked to make this structure explicit in a formal notation, which is a translation step foreign to natural communication. LLMs show the inverse profile. Their training objective, which focuses on surface-form prediction, makes them highly proficient at the explicit “translation" required for the Intensional task. Yet, they lack the direct referential grounding acquired through interaction. While humans learn reference explicitly, LLMs likely acquire referential capabilities only implicitly and indirectly during pre-training, to the extent that tracking reference aids in the core objective of next-token prediction.
Hypotheses [item:hyp-LLM-I-E] and [item:hyp-h-I-E] are well supported by the results. On average, LLMs performed 15.2% worse on the Extensional tasks than the Intensional tasks. Conversely, humans performed 11.7% better on Extensional than Intensional (Fig.4). This interaction is statistically significant (\(\beta = 3.17, p< 0.001\)).
While LLMs demonstrated strong performance on the tasks, maxing out near 100% and averaging 87.4% accuracy overall, they show a markedly different pattern from humans. English Intensional is a particularly easy translation task, with an English vocabulary but a different syntax, and here LLMs score highest (95%). In the full LLM experiment, both Intensional (\(\beta=1.29, p<0.001\)) and English (\(\beta=0.84, p<0.05\)) made the task significantly easier for the models. Similarly, Abstract Extensional is the farthest from being a straightforward translation operation – the names must be translated into variables and the universe much be navigated – and this task is by far the hardest for all LLMs, with an average score of 66%, versus an average of 99.4% for the other three conditions in the full LLM experiment.
As expected (Hypothesis [item:hyp-A-E]), both humans and LLMs performed better on English than Abstract (11% and 15% better respectively). That said, LLMs performed quite well on the Abstract tasks (79%). The arbitrariness of the sign is not too much of a hindrance.
For humans, we found the expected results of Extensional (identifying the person, 83%) being easier than Intensional (creating a formula, 71%) (\(\beta=-1.08, p<0.01\)). Unexpectedly, our participants did not find the
English Intensional task significantly harder than the English Extensional task2. Switching from English to Abstract made the Intensional task extremely hard, however, with
participants scoring only 53% when they needed to write formulae with variables such as x(y(z)). As expected, English was overall much (29%) easier for people than Abstract (\(\beta=1.29, p<0.001\)). This
supports the idea that humans excel when they can simply tap into their linguistic abilities.
While a broad comparison of reasoning versus non-reasoning models was inconclusive due to model heterogeneity, Figure 3 demonstrates that the performance gap between difficult extensional and easier intensional tasks remains relatively small and stable for reasoning models as complexity increases, unlike standard models where the gap widens considerably. Furthermore, a focused analysis of our single minimal pair —qwen-2.5 and its reasoning-distilled variant deepseek-distill — offers a meaningful insight. This targeted comparison revealed that the reasoning model significantly narrows the performance gap between the difficult referential (Extensional) task and the easier symbolic (Intensional) task. Though a conclusion based on a single minimal pair of models, this finding supports the idea that the extensional reasoning weakness we identified in LLMs is a specific, addressable challenge rather than an inherent architectural limitation.
We hypothesised that unlike for earlier results for recurrent neural networks [1], modern Transformer LLMs would not show a branching bias, as the processing is not strictly sequential. This is indeed what we found, with no main effect of branching and only slight and hard-to-interpret interaction effects for one model (qwen-2.5).
LLMs show the expected decay in performance as complexity increases (\(\beta=-0.43, p<0.0001\)). Task complexity correlates with both recursion depth of the English expression and the number of steps – i.e.opportunities for mistakes – required to complete the task, so this can be an issue of language, task complexity, or both.
In this work, we formalized the task of representing compositional meanings inspired by formal semantics and analytic philosophy. Both the intensional and the extensional versions of the task follow this tradition. The abstract version further follows the spirit of the analytical tradition, although in practice formal semantic representations often resemble our English version of the task, motivated by human readability. The Personal Relations Task allowed us to test all these kinds of semantic representations in a way that is accessible both to laypeople (our experimental participants) and to language models, so we could compare the two.
In contrast to previous generations of neural models, the LLMs in our study show a remarkable progress. Even the weakest LLMs we tested give accurate responses most of the time, unlike smaller models tested previously [42]–[44]. Compared to recurrent architectures tested by [1], LLMs do not suffer from systematic structural biases, and don’t require extensive task-specific training for reasonable accuracy, as in Paperno’s or Yao et al.’s [19] experiments. And while the extensional version of the task remains relatively difficult for LLMs, adding reasoning seems to reduce the gap.
We deliberately made semantic compositionality accessible to language models by representing meaning through text; sticking to English words makes the task even easier. More realistic interpretation of referring expressions will require going beyond textual inputs and outputs.
In a possible future version of the task, not only could extensions (referential meanings) be presented e.g.,visually, but also the outputs could include not just symbolic labels but pointers to a perceptual space, e.g., to image regions.
Another interesting future direction involves mechanistic interpretability. In the current paper, we treated compositional meaning representation as an explicit task. One may wonder whether model internals also include similar compositional mechanisms, as suggested in the literature [19], [45], and to what extent such mechanisms are critical for the downstream performance of the model.
In sum, LLMs can be very good at different versions of the compositional Personal Relations Tasks. However, they do not behave like humans, who are better at identifying referents, while LLMs are better at writing formulae representing meanings. This parallels findings in the planning domain, where GPT-4 was found to be better at representations of planning problems than at solving them directly [46]. Whatever LLMs are doing – arguably, leaning on their translation capabilities – it is not what humans do; LLMs might be achieving similar or better outcomes through a different underlying process. Arbitrary reference still provides a noticeable challenge even for frontier models, supporting the argument [41], [47], [48] that referential grounding may be an important missing component to integrate in AI systems.
Pursuing the goal of comparing compositional interpretation in human participants vs.LLMs, we created a setup for both that was as comparable as possible, but also somewhat artificial. Results of the human experiment are therefore context specific. Prolific participants performing the task of referential interpretation from detailed textual instructions under time pressure should not be taken as representative of human behavior in all contexts. Due to budget limitations, we were unable to test humans on higher complexities, and overall, the amount of human data is lower than ideal, which we suspect is a contributor to the amount of statistical noise in this experiment.
LLMs, in their turn, were evaluated in favorable conditions, with an explicit textual encoding of the compositional task in a one-shot setting with a fully worked out reasoning example. In more natural settings, LLM performance in tasks involving compositional reference resolution may be worse.
We leave a broader comparison of basic instruction-tuned vs.reasoning enhanced models for future research. Here, we report results for only one minimal pair.
As many empirical studies of LLMs, our findings may be limited to the kinds of current models that we examine. Future models may exhibit somewhat different properties. We also note that a single prompt format was chosen prior to all experiments; different prompt formats were not explored.
The human data collection protocol has been approved by the Faculty Ethics Assessment Committee – Humanities at Utrecht University. Participants were provided an information form at https://fetc.hum.uu.nl/proposals/attachments/2416/download/321/. Participants received £2.50 for completing the questionnaire. Compensation level was estimated on the basis of the hourly rate of £10 and based on experiment duration confirmed in a pilot study.
We used ChatGPT when revising the text of this paper, mainly to paraphrase individual sentences.

Figure 6: Graph of persons and their relations to each other used to sample paths for in the stimuli. The paths used in the example are given in red. They were excluded from sampling in the questions..
To evaluate the factors influencing accuracy across our experiments, we employed Generalized Linear Mixed Models (GLMMs) with a binomial family and a logit link function. These models were implemented using the lme4 package [38] in R [39]. The primary performance metric, Correct_Forgiving, was used as the binary outcome, which tolerates minor syntactic deviations (e.g., mismatched closing brackets in intensional answers) to focus on semantic understanding rather than strict output format adherence.
For each experiment (LLM performance, Human Experiment, as well as the combined Human-LLM comparison), a systematic model selection process was followed:
Baseline Model: We began by fitting a baseline GLMM including all main effects of the experimental variables relevant to the specific dataset (e.g., Model, Complexity, Branching, Approach, Representation for LLM analysis; Experiment, Branching, Approach, Representation for the combined analysis). Random intercepts were included for ParticipantId (in human experiments and combined models) and PathId (in LLM experiments, and explored for humans).
Interaction Terms: We incrementally added interaction terms, starting with two-way interactions, then three-way, and finally four-way interactions where appropriate. The inclusion of interaction terms was guided by initial descriptive analyses and theoretical expectations about how variables might jointly influence performance.
Model Comparison: Likelihood Ratio Tests (LRTs) were used to compare nested models. A more complex model was selected over a simpler one if it provided a statistically significant improvement in fit (typically with \(p < 0.05\)). Akaike Information Criterion (AIC) and Bayesian Information Criterion (BIC) were also considered to balance model fit with parsimony.
Diagnostic Checks: After selecting the final model for each analysis, DHARMa diagnostic plots [49] were generated to assess the model’s distributional assumptions (residuals vs. predicted values, dispersion, and inflation). These checks ensured that the chosen GLMM structure adequately described the data and its error characteristics, as detailed in Appendix B.
For the specific GLMM on data from just LLMs, the reference model for the Model factor was o3-mini due to its consistent high performance. The gpt-4.1 model was excluded from this GLMM analysis due to its near-ceiling performance, which resulted in limited data variability and convergence issues for the statistical model.
For the combined GLMM comparing Human and LLM performance, the data for LLMs was subsetted to only include complexity level 3, matching the human experiment data to ensure a fair comparison. The reference levels for this model were Experiment (Human), Branching (Left), Approach (Extensional), and Representation (Abstract).
This rigorous approach to model selection ensures that the reported fixed effects and interaction terms provide the most statistically robust explanation for the observed patterns in compositional reasoning performance.
| Complexity | Model | Ext.Abstract L | Ext.Abstract R | Ext.English L | Ext.English R | Int.Abstract L | Int.Abstract R | Int.English L | Int.English R |
|---|---|---|---|---|---|---|---|---|---|
| 3 | Human | 78.1% | 84.4% | 84.4% | 84.4% | 50.0% | 56.3% | 87.5% | 90.6% |
| 3 | deepseek-distill | 80.0% | 90.0% | 100.0% | 97.5% | 77.5% | 90.0% | 100.0% | 100.0% |
| 3 | o3-mini | 95.0% | 80.0% | 92.5% | 95.0% | 97.5% | 95.0% | 100.0% | 100.0% |
| 3 | llama-3.3 | 70.0% | 65.0% | 87.5% | 100.0% | 95.0% | 92.5% | 97.5% | 100.0% |
| 3 | gpt-4.1 | 87.5% | 97.5% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% |
| 3 | qwen-2.5 | 97.5% | 77.5% | 95.0% | 97.5% | 92.5% | 97.5% | 100.0% | 80.0% |
| 4 | deepseek-distill | 87.5% | 92.5% | 100.0% | 100.0% | 87.5% | 92.5% | 100.0% | 100.0% |
| 4 | o3-mini | 77.5% | 90.0% | 95.0% | 97.5% | 92.5% | 100.0% | 100.0% | 97.5% |
| 4 | llama-3.3 | 47.5% | 30.0% | 70.0% | 100.0% | 92.5% | 80.0% | 87.5% | 97.5% |
| 4 | gpt-4.1 | 75.0% | 77.5% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% | 100.0% |
| 4 | qwen-2.5 | 55.0% | 35.0% | 97.5% | 100.0% | 95.0% | 100.0% | 77.5% | 100.0% |
| 5 | deepseek-distill | 77.5% | 82.5% | 97.5% | 97.5% | 90.0% | 82.5% | 97.5% | 95.0% |
| 5 | o3-mini | 87.5% | 90.0% | 95.0% | 90.0% | 100.0% | 87.5% | 97.5% | 97.5% |
| 5 | llama-3.3 | 30.0% | 22.5% | 90.0% | 85.0% | 90.0% | 85.0% | 100.0% | 92.5% |
| 5 | gpt-4.1 | 70.0% | 80.0% | 100.0% | 97.5% | 100.0% | 100.0% | 100.0% | 97.5% |
| 5 | qwen-2.5 | 25.0% | 15.0% | 100.0% | 97.5% | 100.0% | 100.0% | 100.0% | 97.5% |
| 6 | deepseek-distill | 62.5% | 92.5% | 92.5% | 95.0% | 90.0% | 85.0% | 100.0% | 95.0% |
| 6 | o3-mini | 65.0% | 75.0% | 80.0% | 87.5% | 85.0% | 97.5% | 92.5% | 92.5% |
| 6 | llama-3.3 | 37.5% | 27.5% | 70.0% | 65.0% | 85.0% | 80.0% | 95.0% | 90.0% |
| 6 | gpt-4.1 | 75.0% | 72.5% | 100.0% | 97.5% | 100.0% | 100.0% | 97.5% | 100.0% |
| 6 | qwen-2.5 | 32.5% | 17.5% | 92.5% | 85.0% | 95.0% | 97.5% | 100.0% | 95.0% |
https://github.com/avatars16/Personal-Relation-Task-on-LLMs↩︎
89% vs 84% accuracy. The best statistical model did not include the interaction, so this difference could be statistical noise. Additionally, one pilot showed the opposite trend, with English Extensional easier than English Intensional.↩︎