Manuscript Offprint
arXiv:2610.16828The Bell Boundary of Shared Representations
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
When does a shared representation become insufficient for jointly supporting multiple tasks? This question lies at the heart of multi-task learning models. Although task interference in shared representations has been widely observed, its onset, measurable form, and capacity boundary remain poorly understood. In this paper, we revisit this problem through the lens of Bell's theorem. We show that if four binary task outcomes can be jointly represented by a common shared representation, their correlations must satisfy the classical CHSH bound . We introduce NCnet, a controlled multi-task model for studying how representational capacity affects task compatibility. Experiments reveal a clear capacity-dependent transition. Once nontrivial task fitting emerges, constrained capacity can yield . As capacity further increases, these exceedances progressively disappear and S returns to the bounded region. This systematic pattern provides evidence that limited representational capacity is an important source of the observed incompatibility. We observe similar transitions across CNNs, PLMs, and LLMs, suggesting that the phenomenon extends beyond the controlled NCnet setting. We refer to this capacity-dependent transition as the Bell Boundary, providing a measurable diagnostic for representation bottlenecks, task incompatibility, and capacity allocation in multi-task models.
1 Introduction
A key assumption underlying multi-task learning architecture is that multiple tasks can be supported by a shared latent representation [Sener and Koltun, 2018; Ma et al., 2018]. This assumption forms the foundation of multi-task foundation models, large language models (LLMs), and world models (WMs) [Song et al., 2025b], where a latent shared representation is expected to generalize across a broad range of downstream tasks, ranging from language understanding and generation [Devlin et al., 2019; Achiam et al., 2023] to reasoning [Song et al., 2025a], planning [Song et al., 2025b], and action taking [Song et al., 2025b]. Despite the remarkable success of this paradigm, a fundamental question remains unexplored: When does a shared representation become insufficient for jointly supporting multiple tasks?
Existing studies have long recognized that shared representations may induce task interference [Sener and Koltun, 2018; Yu et al., 2020]. When representational capacity is limited, different tasks may impose conflicting optimization pressures on the shared parameters [Standley et al., 2020], leading to gradient conflict [Yu et al., 2020], negative transfer [Ma et al., 2018], and unstable training [Chen et al., 2018]. A large body of work has attempted to mitigate such effects through gradient balancing [Chen et al., 2018], task routing [Ma et al., 2018], modular architectures [Ma et al., 2018], and mixture-of-experts models [Ma et al., 2018]. However, these methods mainly focus on reducing task conflict after it appears, instead of characterizing when and why a shared representation becomes insufficient. Three questions remain open: when does task conflict emerge, how can its strength be measured at the representation level, and whether there exists a principled boundary beyond which a single shared representation can no longer jointly support multiple tasks?
In this paper, we revisit this problem through the lens of Bell's theorem [Bell, 1964]. In the standard CHSH setting [Clauser et al., 1969], one of the canonical Bell inequalities, two measurement branches A and B are considered. Branch A has two possible settings and , while branch B has two possible settings and . Under a classical hidden-variable model, if the four potential binary outcomes can be jointly accounted for by a common hidden variable , then their pairwise correlations satisfy the CHSH bound , where and denotes the expectation of the product of the two binary outcomes for settings , with . Thus, implies that the four outcomes cannot be embedded into a joint probability distribution [Fine, 1982] (i.e., no hidden-variable distribution can jointly account for all four outcomes.).
This formulation naturally connects to shared-representation learning, as illustrated in Fig. 1. In a multi-task neural network, a shared encoder maps an input to a latent representation , inducing a representation distribution . We consider two
Corresponding author.
Analogy

Shared
Input representation h
(4 neurons)
(3 neurons)
Outputs
(2 neurons)
Task definitions
Bell / CHSH experiment
Alice
(branch A)
Bob
(branch B)

Shared source
With a common shared representation
2 Experimental protocol
Train four context-specific models and compute


3 Scaling to larger models and settings
Four task settings

Setting 1: CNN (vision)
Left digit, predict 0
Right digit, predict 1
Left digit, 10-class
Right digit, 10-class
Setting 2: BERT / PLM (cross-lingual)
PAWS-X-en
PAWS-X-ja
PAWS-X-fr
PAWS-X-ko
Setting 3: BERT / PLM (NLP tasks)
SST-2
MRPC
CommonsenseQA
MathQA
Setting 4: Qwen / LLM (reasoning)
MathQA
RACE-Middle
MATH
LogiQA2.0
Bell boundary across model scales

Capacity
Figure 1: Overview of the Bell Boundary framework. (1) NCnet establishes a correspondence between shared-representation learning and the Bell/CHSH setting. (2) Four independently trained task-pair models provide the correlations used to compute . (3) The analysis extends to CNNs, PLMs, and LLMs under four experimental settings. The bottom-right schematic illustrates CHSH exceedances in a critical capacity regime and their disappearance as capacity increases.
task branches A and B, each with two task settings , and , . The corresponding binary task outcomes are denoted by , , , and , where each outcome indicates whether the prediction under the corresponding task setting is correct. We say that the four task contexts admit a common shared representation if their outcomes can be expressed as and on the same latent space , with each task outcome independent of its paired context. Hereafter, we refer to such a context-independent common representation simply as a shared representation. The central question is whether the four task-pair correlations can be jointly supported by a shared representation. We denote the CHSH statistic constructed from neural task-pair correlations by . If such a representation exists, their correlations must satisfy the CHSH compatibility bound. Conversely, indicates that the four task-pair correlations cannot be jointly supported by a shared representation.
We interpret only when task performance exceeds chance level. Before this point, task outcomes are dominated by weak or noisy correlations, and mainly reflects underfitting rather than representation compatibility (see Sec. 2.4). Once nontrivial task fitting emerges, indicates that the learned task-pair correlations cannot be jointly supported by a single context-independent shared representation.
Hence, we introduce NCnet, a controlled multi-task architecture designed to align shared-representation learning with the CHSH setting. NCnet consists of a shared hidden layer and task-specific output heads. The two branches correspond to the two CHSH branches, and each branch contains two task settings. Each task output is converted into a binary correctness outcome, and the four pairwise task correlations are combined to compute the CHSH statistic . By varying the number of hidden neurons, NCnet provides a controlled setting for studying how representational capacity affects task compatibility.
Experiments reveal a clear capacity-dependent transition. In low-capacity regimes, once the model achieves nontrivial task fitting, multiple tasks compete for the same representational dimensions, leading to strong gradient competition. The CHSH statistic can exceed the classical bound As capacity further increases, task competition weakens, task correlations become jointly compatible, and returns to the bounded region . We refer to this capacity-dependent transition as the Bell Boundary of shared representations.
The significance of this boundary is not limited to the controlled NCnet setting. We observe consistent patterns in larger neural architectures, including CNN, PLMs and LLMs: homogeneous tasks are more easily supported by shared representations, whereas heterogeneous tasks are more likely to produce a boundary region with . Increasing representational capacity consistently returns to the bounded region. These results suggest that the Bell Boundary captures a general capacity transition in shared representations: before sufficient capacity is available, learned task correlations may not be jointly supported by a single shared representation; after sufficient capacity is reached, task interactions become compatible within the shared representation.
The Bell Boundary offers a quantitative tool for locating representation bottlenecks, measuring task incompatibility, and analyzing whether additional capacity is needed. More broadly, it provides theoretical guidance for the design of large multi-task foundation models. Our contributions are summarized as follows:
-
We introduce the Bell Boundary as a measurable capacity boundary for shared representations.
-
We establish a formal correspondence between Bell inequalities and multi-task networks through NCnet.
-
We reveal a capacity-dependent transition from gradient competition and to restored compatibility and , and validate it from toy networks to PLMs and LLMs.
2 Preliminaries
2.1 Bell's Theorem and the CHSH Inequality
Bell's theorem states that any theory satisfying local realism imposes strict constraints on the correlations among measurement outcomes. Here, realism means that outcomes are determined by pre-existing variables, while locality means that the outcome at one measurement branch does not depend on the measurement setting chosen at the other branch [Bell, 1964; Brunner et al., 2014]. Bell inequalities therefore provide testable bounds on the correlations that can be generated by a local hidden-variable model. In this paper, we focus on the Clauser–Horne–Shimony–Holt (CHSH) inequality [Clauser et al., 1969], because it provides a simple criterion for whether four binary outcomes can be jointly represented through a common hidden variable.
In the standard CHSH setting, there are two measurement branches, denoted by and . Branch has two settings and , and branch has two settings and . Under a local hidden-variable model, all potential outcomes are determined by a common hidden variable . We write these outcomes as , , where . Locality requires that depends only on and , while depends only on and . Therefore, the four potential outcomes , , , and are jointly defined and admit a common joint distribution [Fine, 1982]. For each pair of settings, the correlation is the expectation of the product of the two outcomes:
Table 1: Correspondence between the CHSH setting and multi-task learning.
| CHSH setting | Multi-task learning |
|---|---|
| Hidden variable | Shared representation |
| Measurement branches and | Task families and |
| Measurement settings and | Task settings and |
| Binary outcomes , | Binary task outcomes |
| Correlation | Task correlation |
| CHSH statistic | Neural CHSH statistic |
| Classical bound | |
| Violation |
The CHSH statistic is then defined as:
Since all outcomes are binary, any local hidden-variable model satisfies the classical CHSH bound: [Clauser et al., 1969]. implies that the observed pairwise correlations cannot be represented by a single common joint probability distribution consistent with the local hidden-variable assumptions [Fine, 1982].
2.2 Multi-Task Learning with Shared Representations
Multi-task learning aims to train a single model to solve multiple tasks by sharing part of its parameters across tasks. A standard formulation consists of a shared encoder and a set of task-specific heads [Sener and Koltun, 2018; Ma et al., 2018]. Given an input , the shared encoder maps it into a hidden representation , where denotes the shared parameters. The hidden representation also induces a distribution over the latent space, denoted by . For each task , a task-specific head produces the prediction:
where denotes the task-specific parameters.
The effectiveness of this formulation relies on the assumption that the shared representation contains sufficient information to support all task-specific heads. However, when representational capacity is limited, multiple tasks may compete for the same hidden dimensions [Yu et al., 2020; Standley et al., 2020; Mao et al., 2024].
To quantify this competition, let and denote the gradients of the two task losses with respect to the shared trainable parameters at recorded training step . For nonzero gradients, their gradient cosine similarity is
Positive, zero, and negative values indicate aligned, orthogonal, and conflicting gradient directions, respectively [Yu et al., 2020]. The gradient conflict rate is the fraction of recorded steps with a negative gradient inner product:
where T is the number of recorded training steps and is the indicator function. For nonzero gradients, the conflict criterion is equivalent to . Thus, cosine similarity measures directional alignment at each step, whereas the conflict rate measures how frequently conflict occurs over the recorded steps.
2.3 A CHSH Formulation of Shared-Representation
In the CHSH setting, the central question is whether four potential measurement outcomes can be jointly represented through a common hidden variable . In multi-task learning, the analogous question is whether multiple task outcomes can be jointly supported by a common hidden representation h. This correspondence is summarized in Table 1.
We consider two task families, denoted by A and B. Each family contains two task settings, written as , for family A and , for family B. Each task prediction is obtained from the shared representation and converted into a binary correctness outcome, denoted by or . Each outcome takes values in , with +1 indicating a correct prediction and -1 an incorrect prediction.
Sufficient resources and independent convergence (SIC). The independent convergence (IC) assumption states that the task heads of a neural network can converge independently of one another, so that a multi-head network can be viewed as a collection of logically independent networks. Under IC, the converged task outcomes and depend only on the shared representation and their own task settings, and are independent of the joint training context . When all four outcomes are jointly represented through , the resulting task-response model has the form of a local hidden-variable (LHV) model, with as the hidden variable.
A key observation is that IC does not generally hold. However, when the network has sufficient feature representation resources, it is reasonable to expect IC to hold. We therefore formulate the sufficient-resources-and-independent-convergence (SIC) assumption as , where S denotes sufficient representation resources and IC denotes independent convergence.
Under the task-specific decomposition assumed by SIC, let and denote the effective parameter blocks for the two active tasks. Their joint loss separates as
(6)
Thus, each task’s optimization depends only on its own parameter block, and the two minimization problems decouple. Different minimizers may nevertheless implement different functions; IC explicitly requires functional equivalence across converged runs. Consequently, replacing the partner of task leaves its converged prediction function unchanged, and the same holds for task , almost surely under the shared-representation distribution . With the same labeling rule for each task across pairs, the correctness outcomes are also unchanged. We therefore write the effective outcomes as and without context indices. This requires equality of task functions, not of network parameters. Optimization independence does not require statistical independence of the outcomes, which may remain correlated through the shared representation.
Taking the shared representation as the hidden variable, for each pair , define
and .
Theorem 1 (Neural CHSH bound under SIC). Suppose the four task-pair models satisfy SIC: the networks have sufficient feature representation resources (S), and their task heads can converge independently of one another, with the converged task functions independent of the joint training context (IC). If the four correctness outcomes can be jointly represented as and through a shared representation , with the same labeling rule for each task across pairs, then .
Proof. The four context-independent outcomes are functions of the shared representation h on the same probability space. For -almost every h,
(8)
where the argument is omitted on the right-hand side. Since , exactly one of and is zero, while the other equals . Hence , and
The observed violation of the neural CHSH inequality does not arise from quantum effects and involves no nonlocal correlations in the physical sense. It only rules out a joint probability distribution consistent with the observed pairwise correlations and indicates the failure of the SIC assumption, namely . To minimize the influence of random initialization and differences in optimization trajectories across individual runs, we repeat each experimental configuration with different random seeds and report the mean and standard deviation of the resulting statistics. Across our extensive experiments, we observe that the violation disappears as shared representational resources increase. This systematic capacity-dependent pattern further supports insufficient representational capacity as one of the important causes of the observed inequality violation.
Table 2: NCnet results across hidden dimensions (mean std over 100 random seeds). denotes task-pair correlation, Acc denotes per-head training accuracy, and is the fraction of runs with near-zero mean best-loss. Bold values significantly exceed 2.
| d | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| E | Acc() | Acc() | E | Acc() | Acc() | E | Acc() | Acc() | E | Acc() | Acc() | |||
| 1 | 0.00±0.00 | 0.72±0.25 | 0.78±0.25 | 0.02±0.07 | 0.97±0.10 | 0.52±0.07 | 0.01±0.06 | 0.52±0.06 | 0.98±0.09 | 0.06±0.06 | 0.62±0.11 | 0.64±0.11 | -0.02±0.12 | 0 |
| 2 | 1.00±0.00 | 1.00±0.00 | 1.00±0.00 | 0.48±0.11 | 1.00±0.00 | 0.74±0.05 | 0.47±0.10 | 0.74±0.05 | 1.00±0.00 | 0.22±0.20 | 0.76±0.17 | 0.76±0.17 | 1.74±0.24 | 0 |
| 3 | 1.00±0.00 | 1.00±0.00 | 1.00±0.00 | 0.91±0.21 | 1.00±0.00 | 0.95±0.10 | 0.93±0.17 | 0.96±0.09 | 1.00±0.00 | 0.53±0.24 | 0.88±0.14 | 0.86±0.15 | 2.31±0.35 | 0 |
| 4 | 1.00±0.00 | 1.00±0.00 | 1.00±0.00 | 0.99±0.07 | 1.00±0.00 | 0.99±0.04 | 0.98±0.10 | 0.99±0.05 | 1.00±0.00 | 0.93±0.11 | 0.98±0.04 | 0.98±0.04 | 2.04±0.16 | 53 |
| 5 | 1.00±0.00 | 1.00±0.00 | 1.00±0.00 | 1.00±0.00 | 1.00±0.00 | 1.00±0.00 | 1.00±0.00 | 1.00±0.00 | 1.00±0.00 | 0.99±0.05 | 1.00±0.02 | 1.00±0.02 | 2.01±0.05 | 95 |
| 6 | 1.00±0.00 | 1.00±0.00 | 1.00±0.00 | 1.00±0.00 | 1.00±0.00 | 1.00±0.00 | 1.00±0.00 | 1.00±0.00 | 1.00±0.00 | 1.00±0.01 | 1.00±0.00 | 1.00±0.01 | 2.00±0.01 | 99 |
| 7-20 | 1.00±0.00 | 1.00±0.00 | 1.00±0.00 | 1.00±0.00 | 1.00±0.00 | 1.00±0.00 | 1.00±0.00 | 1.00±0.00 | 1.00±0.00 | 1.00±0.00 | 1.00±0.00 | 1.00±0.00 | 2.00±0.00 | 100 |
The neural CHSH bound therefore provides a criterion for detecting SIC failure at a given representational capacity, although satisfying the bound does not establish SIC. We refer to the observed return from the CHSH-exceeding regime to the non-exceeding regime with increasing representational capacity as the Bell Boundary of shared representations.
2.4 When is Informative?
Let and denote the accuracies of tasks and , respectively. Since for a correct prediction and otherwise, we have , and similarly .
When a model performs at or below chance-level performance on both tasks, , so and . If the prediction outcomes of the two tasks are also independent, then:
and hence . Therefore, in this case, should not be interpreted as evidence of representation compatibility. It only means that the task heads have not yet extracted task information from the shared representation
After the model exceeds chance-level performance, becomes meaningful as a representation-compatibility statistic. In this regime, can arise when the four task correlations become asymmetric. As capacity further increases, all tasks can be fitted more consistently. In the ideal case, , so and . Thus, the Bell Boundary marks the point at which the model has moved beyond chance-level prediction, but shared representations of the given capacity are still insufficient to support all four task-pair combinations separately.
A subtlety deserves clarification. If a single feedforward network shared one representation among all four heads, then would be deterministic functions of the same and would admit a joint distribution induced by ; in this case holds as an algebraic identity and cannot be exceeded. We therefore do not claim that a single network violates the bound. Instead, we adopt a pairwise training protocol: for each task pair we train an independent model and estimate , then combine the four correlations into to test whether repre- sentations of the given capacity can support all four task-pair combinations separately. This protocol is detailed in Sec. 4.4.
3 Related Work
3.1 Task Conflict in Multi-Task Learning
Multi-task learning is built on the premise that related tasks can benefit from shared representations. In practice, however, parameter sharing can also induce negative transfer when task objectives are poorly aligned or when shared capacity is insufficient. Prior work has studied this issue from the perspective of multi-objective optimization and gradient interference. Sener and Koltun [Sener and Koltun, 2018] formulate multi-task learning as a multi-objective optimization problem, where different task losses may impose competing optimization directions. Yu et al. [Yu et al., 2020] further identify detrimental gradient interference as a key obstacle in multi-task optimization. These studies show that task conflict is not merely an implementation artifact, but a structural difficulty in shared-parameter learning.
Most existing methods address this difficulty by modifying the training dynamics or the sharing structure. GradNorm [Chen et al., 2018] balances task training rates by adapting gradient magnitudes. PCGrad [Yu et al., 2020] projects conflicting task gradients to reduce destructive interference. CA-Grad [Liu et al., 2021] constructs conflict-averse update directions that improve the average objective while controlling worst-case task degradation. Other approaches relax hard parameter sharing through routing, modularization, or expert-based architectures, such as multi-gate mixture-of-experts [Ma et al., 2018]. These methods are effective for mitigating conflict, but they mainly operate after conflict has already appeared.
Our work is complementary to this line of research. Instead of proposing another conflict-mitigation algorithm, we ask a more diagnostic question: when does a shared representation become insufficient for jointly supporting multiple tasks? Existing methods typically measure conflict through gradients, losses, or downstream performance. We introduce a CHSH-based statistic to characterize task compatibility at the representation level, allowing us to identify a measurable capacity boundary of shared representations.
3.2 Bell Inequalities and Machine Learning
Bell inequalities have been studied in machine learning primarily in the context of quantum information and nonlocal
Table 3: Task assignments for each experimental setting.
| Setting | ||||
|---|---|---|---|---|
| Setting 1 | Left digit, predict 0 | Left digit, 10-class | Right digit, predict 1 | Right digit, 10-class |
| Setting 2 | PAWS-X-en | PAWS-X-fr | PAWS-X-ja | PAWS-X-ko |
| Setting 3 | SST-2 | CommonsenseQA | MRPC | MathQA |
| Setting 4 | MathQA | MATH | RACE-Middle | LogiQA2.0 |

Figure 2: Capacity boundary and gradient conflict in NCnet. Top: (left axis) and average training loss (right axis) versus hidden width . Points and bands show individual seeds and mean std; the dashed line marks , and the inset shows its distribution at . Bottom: gradient cosine similarity averaged over the four contexts and all training phases (green: alignment; red: conflict).
correlations. Deng et al. [Deng, 2018] use machine learning to detect Bell nonlocality in quantum many-body systems. Ma and Yung [Ma and Yung, 2018] combine Bell-inequality information with machine learning to classify quantum states and detect entanglement. Canabarro et al. [Canabarro et al., 2019] apply machine-learning methods to detect and quantify nonlocal correlations when direct Bell-inequality analysis becomes computationally difficult. Kriváchy et al. [Kriváchy et al., 2020] introduce a neural-network oracle for nonlocality problems in quantum networks. In these studies, neural networks are mainly used as computational tools for analyzing quantum correlations or approximating classical and quantum strategies.
Different from them, we do not use neural networks to study quantum nonlocality, nor do we claim that classical neural networks exhibit quantum behavior. Instead, we use the CHSH inequality as a probabilistic criterion for studying task interference, representation bottlenecks, and capacity transitions in multi-task neural networks.
4 NCnet: A Toy Multi-task Model
4.1 Task Construction
We construct a multi-task toy model whose variables can be directly mapped to the CHSH framework. Each input sample consists of four binary features, , where . The first two features define two tasks on branch , and the last two features define two tasks on branch :
Here, and are identity tasks, and and are XOR tasks. This design creates a simple but nontrivial capacity requirement: identity tasks can be represented with relatively simple features, whereas XOR tasks require nonlinear feature composition. By varying the number of hidden neurons, we can directly control whether the shared representation has sufficient capacity to support all four tasks.
The four tasks correspond to the four CHSH measurement settings. Branches A and B correspond to the two CHSH measurement branches, while and correspond to the two settings on each branch. For each context, NCnet is trained and evaluated on the corresponding two-task problem. The purpose is to estimate the four pairwise task correlations required by the CHSH statistic and then test whether these correlations can be jointly explained by a common shared representation.
4.2 NCnet Architecture
For each task-pair context , NCnet is a minimal feedforward multi-task network with one shared hidden layer and two task-specific output heads. Given an input , the shared hidden representation is computed as , where and are shared by the two active tasks and is the ReLU activation. Here, refers to the representation learned by the model for the active context. The two task heads produce predictions
The two active heads are jointly trained on the shared representation within each . The four models are trained separately, so their learned representations and task heads may differ across contexts. Their pairwise correlations are combined to test compatibility with a context-independent joint representation, as described in Sec. 2.4.
The key capacity parameter of NCnet is the hidden width , i.e., the number of neurons in the shared hidden layer. We vary to examine how representational capacity affects task
Table 4: Train-phase (mean std over 5 random seeds) for the multi-task CNN across shared-encoder depth (rows) and channel width (columns). cells are significantly greater than the classical Bell bound
| Depth | Channel width | |||||||
|---|---|---|---|---|---|---|---|---|
| 1 | 2 | 4 | 8 | 16 | 32 | 64 | 96 | |
| 1 | ||||||||
| 2 | ||||||||
| 3 | ||||||||
| 4 | ||||||||
| 5 | ||||||||
| 6 | ||||||||
| 7 | ||||||||
compatibility. When n is small, the two active tasks must compete for a limited number of hidden dimensions. When n increases, the shared layer can allocate more representational degrees of freedom to different task requirements.
4.3 Task Outcomes and CHSH Statistic
To compute the CHSH statistic, each task prediction is converted into a binary outcome. For task , the outcome is defined as:
and for task ,
For each task pair , we define the task correlation as the expectation of the product of the two binary outcomes:
In experiments, this expectation is estimated by averaging over the test set:
The neural CHSH statistic is then computed as:
4.4 Training Protocol
NCnet is trained under four task-pair contexts: , , , and . For each context , we train a separate NCnet instance . Each contains a shared hidden layer and two task-specific output heads, and , for the active tasks and . The training objective is the sum of the two active task losses. All four models use the same architecture, hidden width, input distribution, optimizer, training schedule, and evaluation protocol, and the only difference is the active task pair.
The hidden width is varied from to . For each , every model is independently trained and evaluated 100 times with different random seeds. The outcomes produced by and are used to estimate , and . The four correlations are then combined to compute . We report the mean and standard deviation of , the pairwise correlations , and the training loss over 100 runs.
This setup is intentionally minimal. By controlling the number of hidden neurons, NCnet provides a direct testbed for observing when a shared representation becomes insufficient for jointly supporting multiple tasks.
4.5 Results and Analysis
Figure 2 and Table 2 reveal a capacity-dependent transition. At , alone does not establish compatibility (Sec. 2.4). At , all tasks exceed chance-level accuracy, yet peaks at . The three correlations are 0.91–1.00, whereas , reflecting the difficulty of jointly fitting two XOR tasks. This exceedance rules out a context-independent joint representation of the observed correlations and indicates SIC failure.
As capacity increases, fitting becomes more balanced and exceedances diminish. At , rises to 0.93, training loss drops sharply, and of runs attain near-zero mean best-loss. The mean falls to at and at , both still significantly above 2. At , all runs attain near-zero mean best-loss, with and . This progression identifies the Bell Boundary and supports limited shared capacity as an important source of the observed incompatibility.
The lower panel of Figure 2 provides complementary evidence of task competition. Mean gradient cosine similarity is most negative at (approximately -0.812), coinciding with the CHSH peak. With further widening, it generally becomes less negative, although not monotonically, and remains negative even where . Thus, the capacity-dependent reduction in CHSH exceedances accompanies weaker average gradient conflict, without implying that conflict disappears or that SIC is established.
5 Scaling the Bell Boundary to Large Foundation Models
We examine whether the same capacity-dependent pattern appears in larger neural networks, including CNN, PLMs, and LLMs.

(a) across CNN depths and widths
(b) versus rank r across settings
Figure 3: versus Trainable Parameter Count Across Settings. (a) Mean across five seeds for CNNs of varying depth and base channel width; values are shown in each heatmap cell. (b) Mean versus LoRA rank r for Settings 2, 3, and 4. Shaded bands show one standard deviation across three seeds, the dashed line marks .

(a) Conflict by regime
(b) Conflict by depth and width
Figure 4: Gradient conflict rates for CNN task pair . (a) Rates grouped by mean : < 1.97, 1.97–2.03, and > 2.03. Points denote architectures, boxes show medians and interquartile ranges, and diamonds mark group means. (b) Rates by shared-encoder depth and base channel width; cell labels show final-epoch mean .
5.1 Experimental Setup
Models. We evaluate three classes of models with increasing scale and representational complexity. First, we use a multi-task CNN for vision experiments, consisting of a shared convolutional encoder and task-specific classification heads. Second, we use a BERT-based multi-task model [Devlin et al., 2019], where BERT serves as the shared text encoder and each task has an independent classification head. Third, we extend the same protocol to decoder-only LLMs (i.e., Qwen3-8B [Yang et al., 2025]), where LoRA adapters [Hu et al., 2022] are inserted into attention projection layers and trained on instruction-style classification and reasoning tasks.
Tasks and datasets. For vision experiments (Setting 1), we construct a two-digit image dataset based on MNIST [LeCun et al., 1998]. Each image contains two digits, one on the left and one on the right. The tasks combine binary digit detection and 10-class digit recognition on the two sides.
For language experiments, Setting 2 uses multilingual paraphrase identification on PAWS-X [Yang et al., 2019], representing a relatively homogeneous multi-task scenario. Setting 3 combines sentiment classification [Socher et al., 2013], paraphrase identification [Wang et al., 2018; Dolan and Brockett, 2005], commonsense reasoning [Talmor et al., 2019], and mathematical reasoning [Amini et al., 2019], forming a heterogeneous scenario with different objectives and reasoning requirements. Setting 4 combines mathematical reasoning on MathQA [Amini et al., 2019] and MATH [Hendrycks et al., 2021], reading comprehension on RACE-Middle [Lai et al., 2017], and logical reasoning on LogiQA2.0 [Liu et al., 2023] to examine shared-representation constraints in a decoder-only LLM. Detailed task assignments are summarized in Table 3.
Capacity control. In the vision experiments, we vary the capacity of the shared convolutional encoder by adjusting its depth through the number of convolutional layers and its width through the number of channels. Specifically, we vary the channel width over and the depth from 1 to 7, thereby changing the number of trainable parameters available for shared feature extraction. In both the BERT and Qwen3-8B experiments, we vary the LoRA rank r over , which controls the effective number of trainable adaptation parameters.
Training and evaluation. All models are trained in a multi-task setting using the sum of task losses. All tasks are formulated as classification tasks and trained using cross-entropy loss. CNN models are trained for 50 epochs, with each experiment repeated 5 times using different random seeds. BERT models are trained for 100 epochs in Setting 2 and 200 epochs in Setting 3, while Qwen3-8B is trained for 10 epochs in Setting 4. Each BERT and Qwen3-8B experiment is repeated 3 times using different random seeds. For Settings 2, 3, and 4, examples are randomly paired across tasks. We independently shuffle the training datasets for , , , and , then form each task pair by drawing examples sequentially from the corresponding shuffled datasets. When a dataset has insufficient examples, repeated sampling supplies the additional examples needed for pairing. The product of the two binary correctness outcomes is computed for each sampled pair and averaged to obtain . We report the mean and standard deviation of task accuracy Acc., pairwise task correlations , and the CHSH statistic . Full training details are provided in Appendix C.
5.2 Experimental Results
Vision (CNN). Table 4 shows that remains below 2 at low CNN capacities, significantly exceeds 2 at intermediate capacities, and returns to approximately 2 as capacity further increases. The intermediate-capacity exceedance thus delineates a clear Bell Boundary region. This Bell Boundary region shifts toward smaller channel widths as encoder depth increases. Figure 4 shows that gradient conflict in is lowest for architectures near , while both the below-bound and above-bound groups exhibit stronger conflict. Together, these results associate the capacity-dependent boundary with persistent task competition; alone does not establish compatibility, while exceedances indicate incompatibility with a context-independent joint probability model of task outcomes.
Language (PLM/LLM). Table 5 and Figure 3(b) show contrasting capacity-dependent patterns. BERT's homogeneous tasks (Setting 2) approach from below. Their shared paraphrase objective offers a plausible explanation for the four correlations improving together and remaining sim-
Table 5: Pairwise task correlations and CHSH statistic across LoRA ranks for (a) Setting 2, (b) Setting 3, and (c) Setting 4. Values are mean±std over three random seeds for Settings 2, 3, and 4. Bold values significantly exceed 2.
| r | |||||
|---|---|---|---|---|---|
| (a) Setting 2 | |||||
| 1 | 0.743±0.021 | 0.695±0.025 | 0.689±0.027 | 0.661±0.025 | 1.466±0.037 |
| 2 | 0.839±0.017 | 0.836±0.008 | 0.838±0.018 | 0.822±0.018 | 1.691±0.028 |
| 4 | 0.936±0.002 | 0.915±0.005 | 0.918±0.013 | 0.896±0.016 | 1.872±0.003 |
| 8 | 0.968±0.004 | 0.956±0.007 | 0.955±0.008 | 0.946±0.002 | 1.934±0.004 |
| 16 | 0.969±0.004 | 0.961±0.003 | 0.957±0.001 | 0.951±0.002 | 1.936±0.003 |
| 32 | 0.992±0.006 | 0.992±0.007 | 0.989±0.003 | 0.988±0.005 | 1.986±0.003 |
| 64 | 0.996±0.002 | 0.996±0.003 | 0.995±0.001 | 0.994±0.002 | 1.993±0.001 |
| (b) Setting 3 | |||||
| 1 | 0.993±0.001 | 0.262±0.049 | 0.792±0.012 | -0.075±0.013 | 2.122±0.028 |
| 2 | 0.998±0.000 | 0.653±0.048 | 0.945±0.009 | 0.372±0.035 | 2.224±0.047 |
| 4 | 0.999±0.001 | 0.908±0.008 | 0.984±0.003 | 0.794±0.017 | 2.097±0.011 |
| 8 | 1.000±0.001 | 0.973±0.002 | 0.993±0.002 | 0.944±0.005 | 2.021±0.004 |
| 16 | 1.000±0.000 | 0.989±0.003 | 0.993±0.003 | 0.981±0.004 | 2.001±0.002 |
| 32 | 1.000±0.000 | 0.978±0.015 | 0.996±0.000 | 0.986±0.007 | 1.988±0.018 |
| 64 | 1.000±0.000 | 0.992±0.001 | 0.994±0.002 | 0.990±0.004 | 1.996±0.002 |
| (c) Setting 4 | |||||
| 1 | 0.943±0.004 | 0.902±0.005 | 0.352±0.010 | 0.234±0.006 | 1.963±0.015 |
| 2 | 0.989±0.003 | 0.976±0.003 | 0.664±0.008 | 0.579±0.007 | 2.050±0.016 |
| 4 | 0.991±0.003 | 0.988±0.003 | 0.830±0.007 | 0.756±0.006 | 2.052±0.013 |
| 8 | 0.998±0.002 | 0.995±0.002 | 0.928±0.005 | 0.912±0.005 | 2.008±0.010 |
| 16 | 1.000±0.001 | 0.997±0.002 | 0.981±0.004 | 0.983±0.002 | 1.994±0.004 |
| 32 | 1.000±0.001 | 1.000±0.001 | 0.999±0.001 | 0.998±0.001 | 2.000±0.002 |
| 64 | 1.000±0.000 | 0.999±0.000 | 1.000±0.000 | 0.999±0.001 | 2.000±0.001 |
ilar: when , . Homogeneity alone, however, does not guarantee this bound. BERT's heterogeneous tasks (Setting 3) exceed the bound at limited adaptation capacity. Qwen3-8B (Setting 4) exhibits a smaller exceedance at intermediate LoRA ranks, extending the Bell Boundary observation to a large decoder-only model. In both heterogeneous settings, exceedances diminish as adaptation capacity increases and pairwise correlations become more balanced.
Figure 5 shows that gradient conflict generally decreases with increasing LoRA rank in Qwen but varies across task pairs in BERT. BERT's conflict rate tends to increase with , which can be interpreted in light of SIC. Under the task-specific decomposition assumed by SIC, the two tasks occupy independent, orthogonal effective parameter subspaces, so their nonzero gradients have zero inner product and hence zero cosine similarity. The narrowing central spread and the center shifting toward zero in Figure 5(b) are consistent with increasing capacity allowing the tasks to approach this orthogonal configuration. Exact orthogonality yields no gradient conflict; during finite training, however, small deviations from orthogonality can produce slightly negative cosine values. As the distribution shifts toward zero from the positive side, such values can become more frequent even as their typical magnitudes decrease. Since the conflict rate records only whether the gradient inner product is negative, its increase does not by itself establish stronger task competition.
Together, the CNN, BERT, and Qwen results suggest that the Bell Boundary depends on both available capacity and task composition, and extends across vision and language models. Increasing shared capacity reduces CHSH exceedances and can alleviate gradient conflict. These findings suggest that limited shared representational capacity may sustain gradient competition between tasks, which could contribute to the observed violations of the neural CHSH bound ( ). The recurrence of this capacity-dependent pattern across distinct architectures, modalities, and task settings provides evidence that the Bell Boundary reflects a general constraint on shared representations in multi-task learning.
6 Conclusion
This paper introduces the Bell Boundary as a measurable capacity boundary of shared representations. We show that, under the adopted CHSH construction, task correlations jointly supported by a common shared representation should satisfy . Experiments on NCnet, CNNs, PLMs, and LLMs show that can identify the capacity range where a shared representation is insufficient to support multiple task contexts. Homogeneous tasks are easier to support, while heterogeneous tasks more clearly expose the boundary before sufficient capacity is reached.
This study has several limitations. First, the CHSH statistic is meaningful only after the model exceeds chance-level

(a) BERT conflict
(b) BERT
Cosine similarity distribution
(c) Qwen conflict
Figure 5: Gradient conflict across LoRA ranks r. (a, c) Training-averaged conflict rates for the four task pairs in BERT and Qwen, respectively; error bars show standard deviations across seeds. (b) Gradient cosine similarity distributions for BERT's pair: violins show density, boxes show medians and interquartile ranges, and black circles mark means. The red dashed line marks the zero-cosine conflict boundary.
prediction. Second, the construction requires task outcomes to be converted into binary correctness variables, which may lose information in tasks with richer output structures. Third, the boundary depends on task grouping, capacity control, and evaluation protocol, so its location should not be viewed as a fixed property of a model. Future work can extend this framework to more complex task structures, continuous outputs, adaptive task grouping, and practical training strategies that use the Bell Boundary to guide capacity expansion or modularization.
A Significance Testing of the Bell-Type Statistic
For each hidden width d, we use a right-tailed one-sample t-test on values from 100 independent random seeds to assess whether their mean exceeds 2. Results with unadjusted p < 0.05 are bolded in Table 2.
For Settings 1–4, we apply the same right-tailed one-sample t-test against the bound 2 at each capacity configuration, using five random seeds for Setting 1 and three for Settings 2–4. We use unadjusted without correction for multiple comparisons. Setting 1 shows significant exceedances at intermediate CNN capacities, whereas Setting 2 shows none at any tested LoRA rank. Setting 3 significantly exceeds 2 at , and Setting 4 at ; higher ranks show no significant exceedance.
B Detailed Synthetic Experimental Setup
This appendix provides the full training details of the synthetic NCnet experiment summarized in Section 4. All results are produced by the released script bell_nn_experiment.py (driven by run_all_n.py), which we summarize below.
Data. The synthetic dataset is the complete set of binary inputs . Each input appears twice in the training set (32 training samples) and once in the evaluation set (16 samples); since the input space is fully enumerated, the training and evaluation sets coincide and we report training-set statistics. The Alice/Bob labels are , , , .
Architecture. Each two-task model is a one-hidden-layer feedforward network with ReLU activations applied after both and , where is the shared hidden width and the two output scalars are the Alice and Bob task heads. The hidden layer is the only shared representation; the two heads share no parameters beyond it.
Training. Each model is trained for up to 20000 epochs with binary cross-entropy (averaged over both heads and all samples) under the Adam optimizer (learning rate , default and weight decay), with early stopping once the training loss falls below . Within each run, the checkpoint of lowest training loss is retained for evaluation.
Aggregation. For each task pair and hidden width , we train 100 independent models with random seeds , each seed fixing both the torch and NumPy random number generators. The consistency indicator takes the value +1 when the corresponding head predicts the binary label correctly and -1 otherwise. For each seed , the pairwise correlation is the arithmetic mean over the 16 inputs, and the per-seed CHSH statistic is . We report the mean and standard deviation over the 100 seeds. Figure 2 additionally reports the average training loss and the gradient cosine similarity defined below.
Gradient competition metric. To quantify gradient competition, we backpropagate each head's loss separately through the shared hidden layer ( ) and record the cosine similarity between the two resulting gradient vectors; values near -1 indicate strong conflict. This metric is sampled ev-ery 100 epochs. The lower panel of Figure 2 reports the mean over the four task-pair contexts and all training phases.
C Training Details for Large Foundation Models
Table 6 summarizes the optimization and adaptation hyperparameters for Settings 1–4. Each task-pair context is trained separately. We report the settings used by the corresponding training pipelines, including differences between the original PAWS-X pipeline and the later BERT and Qwen pipelines.
Optimization. CNN, BERT Setting 3, and Qwen use PyTorch AdamW with its default moment coefficients and numerical-stability constant . Their learning rates follow a half-cycle cosine decay after linear warmup; the schedule advances after each optimizer update. The CNN training set contains 4000 images covering 100 left-right digit combinations, with 40 images per combination. CNN uses encoder dropout 0.1 and linear task heads, with the depth and channel-width sweep specified in Section 5. BERT Setting 3 and Qwen run for the fixed epoch budgets in the table without early stopping.
PAWS-X (Setting 2). The original multilingual BERT pipeline uses hard parameter sharing and equally weighted task losses. LoRA targets the attention query and value projections, with and dropout 0.05. After 5% warmup, the learning-rate scheduler reduces the rate by a factor of 0.5 on a plateau, with patience 10, relative threshold , and cooldown 3 epochs. The early-stopping configuration has patience 10, minimum improvement 0, and equal task weights (0.5, 0.5). The training budget is at most 100 epochs, with the separate development and test caps listed in the table.
Mixed-task BERT (Setting 3). We use BERT-base-uncased with frozen pretrained encoder weights and train LoRA modules on the query and value projections in every attention layer, together with task-specific heads. Each head has a 128-dimensional hidden layer, ReLU activation, and zero head dropout. Classification and multiple-choice tasks use cross-entropy, and the two active task losses are summed with unit weights. A batch contains 64 paired examples, hence 64 examples from each active task. Training uses bfloat16 autocast.
Qwen3-8B (Setting 4). We freeze the pretrained transformer and language-model output head and train only LoRA modules on the attention query and value projections (q_proj and v_proj), using a bfloat16 backbone, float32 adapters, and gradient checkpointing. Each microbatch contains four examples from each active task; three microbatches are accumulated, giving an effective batch size of 24 and 250 optimizer updates per epoch (2500 in total). Supervised fine-tuning minimizes next-token cross-entropy on the answer and end-of-turn tokens, with prompt tokens masked from the loss. At the 1:1 task mixture, the implemented objective is the sum of the two task-wise mean answer-token losses. The 512-token limit covers the prompt and answer together; long passages are truncated while retaining the question, options, and answer. Available saved runs use a learning-rate floor of for , for at , and for at ; the other available configurations use .
Measurement protocol. CNN and BERT Setting 3 statistics use the final-epoch training outcomes. Qwen correlations use a fixed probe drawn from the training pool, with 3000 examples per task, probe seed 1234, and paired probe batches of size 8, evaluated at each epoch end. Correctness on this probe is computed by parsing teacher-forced answer-position argmax predictions, and the task outcomes are paired by probe order. Separate held-out Qwen evaluation uses greedy decoding with at most 128 new tokens and exact matching of the parsed answer. Gradient competition is measured on the trainable shared parameters once per epoch for CNN, BERT Setting 3, and Qwen; Qwen averages the metrics over paired probe batches. Seed counts in the table refer to the reported result summaries.
D Detailed CNN Training Accuracies
Tables 7–13 report final-epoch training accuracies for each task in the four CNN task-pair contexts across channel widths, with one table per shared-encoder depth. Within each context, the and columns correspond to train_acc_a and train_acc_b, respectively. Values are percentages, reported as mean ± sample standard deviation over five random seeds (42–46; standard deviation computed with denominator 5 – 1).
Table 6: Training hyperparameters for Settings 1–4. CNN uses its full training set; language sample caps are per task. A dash indicates an inapplicable parameter or one not recorded in the available training logs. The Qwen learning-rate floors are specified below.
| Parameter | CNN Setting 1 | BERT Setting 2 | BERT Setting 3 | Qwen3-8B Setting 4 |
|---|---|---|---|---|
| Optimizer | AdamW | — | AdamW | AdamW |
| Initial learning rate | (LoRA) | |||
| Classification-head learning rate | — | — | ||
| Learning-rate decay | Cosine | Plateau | Cosine | Cosine |
| Linear warmup | 5 epochs | 5% | 3% | 5% |
| Learning-rate floor | 0 | or | ||
| Weight decay | — | 0.01 | 0.01 | |
| Gradient clipping norm | None | — | 1.0 | 1.0 |
| Batch size | 512 | 64 | 64 pairs | 8 examples |
| Gradient accumulation steps | 1 | — | 1 | 3 |
| Training epochs | 50 | At most 100 | 200 | 10 |
| Maximum sequence length | — | — | 192 | 512 |
| Training samples / cap | 4000 | 5000 | 3000 | 3000 |
| Evaluation sample cap | — | 625 dev / 625 test | 1500 | 500 |
| LoRA scaling | — | 2r | 2r | 2r |
| LoRA dropout | — | 0.05 | 0 | 0 |
| LoRA rank | — | 1, 2, 4, 8, 16, 32, 64 | 1, 2, 4, 8, 16, 32, 64 | 1, 2, 4, 8, 16, 32, 64 |
| Reported seed count | 5 | 3 | 3 | 3 |
Table 7: Task accuracy (%) for CNN in Setting 2 at shared-encoder depth 1. Each entry is mean ± sample standard deviation over five random seeds.
| Channel width | ||||||||
|---|---|---|---|---|---|---|---|---|
| 1 | 90.00 ± 0.00 | 90.00 ± 0.00 | 74.00 ± 35.78 | 10.02 ± 0.03 | 9.95 ± 0.13 | 90.00 ± 0.00 | 10.02 ± 0.03 | 10.07 ± 0.16 |
| 2 | 74.00 ± 35.78 | 72.48 ± 35.08 | 88.35 ± 3.69 | 9.52 ± 1.05 | 9.30 ± 0.88 | 90.00 ± 0.00 | 10.07 ± 0.45 | 9.62 ± 0.71 |
| 4 | 85.69 ± 4.95 | 90.00 ± 0.00 | 89.99 ± 0.02 | 10.40 ± 0.66 | 10.57 ± 1.38 | 89.27 ± 1.63 | 10.25 ± 0.76 | 10.06 ± 0.33 |
| 8 | 90.00 ± 0.00 | 90.00 ± 0.00 | 89.98 ± 0.04 | 10.70 ± 1.13 | 10.58 ± 1.38 | 90.00 ± 0.00 | 10.93 ± 0.89 | 10.49 ± 1.18 |
| 16 | 90.00 ± 0.00 | 90.00 ± 0.00 | 90.00 ± 0.00 | 12.80 ± 1.15 | 11.73 ± 0.74 | 90.00 ± 0.00 | 11.97 ± 0.78 | 13.28 ± 1.10 |
| 32 | 90.00 ± 0.00 | 90.00 ± 0.00 | 90.00 ± 0.00 | 15.39 ± 1.24 | 14.71 ± 1.02 | 90.00 ± 0.00 | 14.90 ± 1.61 | 15.32 ± 0.59 |
| 64 | 90.00 ± 0.00 | 90.00 ± 0.00 | 90.00 ± 0.00 | 16.93 ± 0.29 | 16.74 ± 0.40 | 90.00 ± 0.00 | 17.14 ± 0.83 | 18.01 ± 0.47 |
| 96 | 90.00 ± 0.00 | 90.00 ± 0.00 | 90.00 ± 0.00 | 18.13 ± 0.24 | 16.97 ± 0.20 | 90.00 ± 0.00 | 17.63 ± 0.50 | 18.67 ± 0.46 |
Table 8: Task accuracy (%) for CNN in Setting 2 at shared-encoder depth 2. Each entry is mean ± sample standard deviation over five random seeds.
| Channel width | ||||||||
|---|---|---|---|---|---|---|---|---|
| 1 | 72.50 ± 35.10 | 72.36 ± 35.04 | 86.07 ± 5.18 | 10.09 ± 0.13 | 10.08 ± 0.12 | 78.11 ± 26.59 | 10.13 ± 0.22 | 9.61 ± 0.67 |
| 2 | 90.00 ± 0.00 | 90.01 ± 0.01 | 89.84 ± 0.37 | 10.13 ± 0.16 | 11.14 ± 1.91 | 89.89 ± 0.25 | 11.51 ± 1.92 | 10.78 ± 1.12 |
| 4 | 90.00 ± 0.00 | 90.00 ± 0.00 | 90.00 ± 0.00 | 11.72 ± 0.95 | 11.96 ± 1.15 | 90.00 ± 0.00 | 15.58 ± 1.28 | 13.91 ± 1.30 |
| 8 | 90.00 ± 0.00 | 90.00 ± 0.00 | 90.00 ± 0.00 | 16.12 ± 1.69 | 15.04 ± 1.73 | 90.00 ± 0.00 | 18.20 ± 0.97 | 18.60 ± 1.83 |
| 16 | 90.00 ± 0.00 | 90.00 ± 0.00 | 90.00 ± 0.00 | 21.29 ± 0.76 | 19.79 ± 0.73 | 90.00 ± 0.00 | 21.86 ± 0.21 | 22.71 ± 0.80 |
| 32 | 90.00 ± 0.00 | 90.00 ± 0.00 | 90.00 ± 0.00 | 24.59 ± 1.13 | 23.00 ± 0.78 | 90.00 ± 0.00 | 25.25 ± 0.46 | 26.79 ± 0.61 |
| 64 | 90.00 ± 0.00 | 90.00 ± 0.00 | 90.00 ± 0.00 | 28.88 ± 0.68 | 27.24 ± 0.93 | 90.00 ± 0.00 | 29.01 ± 0.98 | 30.49 ± 1.00 |
| 96 | 90.00 ± 0.00 | 90.04 ± 0.05 | 90.00 ± 0.00 | 31.49 ± 0.74 | 29.97 ± 0.65 | 90.00 ± 0.00 | 30.92 ± 0.89 | 32.60 ± 0.79 |
Table 9: Task accuracy (%) for CNN in Setting 2 at shared-encoder depth 3. Each entry is mean ± sample standard deviation over five random seeds.
| Channel width | ||||||||
|---|---|---|---|---|---|---|---|---|
| 1 | 90.00 ± 0.00 | 89.99 ± 0.02 | 89.83 ± 0.38 | 10.79 ± 1.01 | 11.69 ± 2.35 | 90.00 ± 0.00 | 12.58 ± 0.76 | 11.19 ± 1.65 |
| 2 | 90.00 ± 0.00 | 90.00 ± 0.00 | 89.97 ± 0.08 | 13.74 ± 2.20 | 14.16 ± 1.90 | 89.99 ± 0.03 | 15.01 ± 1.37 | 15.09 ± 1.82 |
| 4 | 90.00 ± 0.00 | 90.00 ± 0.00 | 90.00 ± 0.00 | 18.30 ± 2.47 | 18.75 ± 1.74 | 90.00 ± 0.00 | 20.82 ± 1.58 | 21.16 ± 1.86 |
| 8 | 90.00 ± 0.00 | 90.00 ± 0.00 | 90.00 ± 0.00 | 27.00 ± 2.37 | 26.42 ± 1.72 | 90.00 ± 0.00 | 30.51 ± 1.87 | 31.81 ± 2.55 |
| 16 | 90.01 ± 0.02 | 90.00 ± 0.00 | 90.00 ± 0.00 | 41.44 ± 3.01 | 36.53 ± 1.58 | 90.00 ± 0.00 | 39.90 ± 1.00 | 42.64 ± 0.74 |
| 32 | 91.51 ± 0.53 | 90.88 ± 0.15 | 90.92 ± 0.11 | 52.97 ± 1.17 | 49.77 ± 1.40 | 90.90 ± 0.04 | 49.04 ± 1.09 | 51.01 ± 1.09 |
| 64 | 94.14 ± 0.76 | 92.70 ± 0.36 | 91.00 ± 0.15 | 64.26 ± 1.61 | 63.29 ± 2.29 | 91.01 ± 0.06 | 53.07 ± 0.77 | 55.66 ± 0.75 |
| 96 | 97.01 ± 0.92 | 95.06 ± 0.85 | 90.81 ± 0.21 | 73.45 ± 1.96 | 71.33 ± 1.78 | 90.83 ± 0.16 | 54.53 ± 0.63 | 56.86 ± 0.62 |
Table 10: Task accuracy (%) for CNN in Setting 2 at shared-encoder depth 4. Each entry is mean ± sample standard deviation over five random seeds.
| Channel width | ||||||||
|---|---|---|---|---|---|---|---|---|
| 1 | 90.00 ± 0.00 | 89.99 ± 0.03 | 89.99 ± 0.02 | 15.66 ± 2.33 | 15.94 ± 2.15 | 90.00 ± 0.00 | 16.49 ± 1.53 | 17.09 ± 1.76 |
| 2 | 90.00 ± 0.00 | 90.00 ± 0.00 | 90.00 ± 0.00 | 24.17 ± 3.26 | 21.59 ± 2.20 | 90.00 ± 0.00 | 28.97 ± 2.86 | 30.03 ± 3.03 |
| 4 | 90.06 ± 0.06 | 90.46 ± 0.48 | 90.14 ± 0.27 | 40.38 ± 2.72 | 39.33 ± 2.27 | 90.44 ± 0.34 | 41.51 ± 2.27 | 44.13 ± 3.24 |
| 8 | 92.26 ± 0.63 | 91.53 ± 0.16 | 90.95 ± 0.14 | 57.24 ± 1.92 | 55.01 ± 1.48 | 90.96 ± 0.08 | 51.32 ± 0.95 | 54.04 ± 0.29 |
| 16 | 98.34 ± 0.51 | 96.32 ± 0.67 | 90.32 ± 0.18 | 78.80 ± 2.13 | 75.95 ± 2.04 | 90.50 ± 0.10 | 54.10 ± 0.26 | 57.36 ± 0.26 |
| 32 | 100.00 ± 0.00 | 99.98 ± 0.02 | 92.31 ± 1.31 | 99.28 ± 0.34 | 98.79 ± 0.65 | 91.08 ± 0.67 | 61.91 ± 0.60 | 64.54 ± 1.00 |
| 64 | 100.00 ± 0.00 | 100.00 ± 0.00 | 99.99 ± 0.02 | 100.00 ± 0.00 | 100.00 ± 0.00 | 99.76 ± 0.39 | 98.33 ± 0.55 | 98.11 ± 0.47 |
| 96 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 |
Table 11: Task accuracy (%) for CNN in Setting 2 at shared-encoder depth 5. Each entry is mean ± sample standard deviation over five random seeds.
| Channel width | ||||||||
|---|---|---|---|---|---|---|---|---|
| 1 | 90.00 ± 0.00 | 90.33 ± 0.45 | 90.01 ± 0.02 | 30.58 ± 1.77 | 28.45 ± 2.12 | 90.13 ± 0.25 | 27.40 ± 3.25 | 28.66 ± 2.70 |
| 2 | 92.48 ± 0.80 | 93.91 ± 1.05 | 90.37 ± 0.33 | 58.91 ± 2.09 | 54.17 ± 3.05 | 90.56 ± 0.30 | 45.57 ± 1.39 | 48.83 ± 1.14 |
| 4 | 98.00 ± 0.57 | 98.71 ± 0.76 | 90.81 ± 0.24 | 88.21 ± 0.80 | 87.47 ± 1.42 | 91.67 ± 0.66 | 59.50 ± 1.97 | 63.40 ± 1.48 |
| 8 | 100.00 ± 0.01 | 99.98 ± 0.02 | 98.28 ± 0.37 | 99.75 ± 0.10 | 99.45 ± 0.05 | 98.24 ± 0.51 | 93.53 ± 0.89 | 93.47 ± 0.33 |
| 16 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.01 | 100.00 ± 0.00 |
| 32 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 |
| 64 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 |
| 96 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 |
Table 12: Task accuracy (%) for CNN in Setting 2 at shared-encoder depth 6. Each entry is mean ± sample standard deviation over five random seeds.
| Channel width | ||||||||
|---|---|---|---|---|---|---|---|---|
| 1 | 95.73 ± 0.92 | 98.33 ± 0.63 | 90.42 ± 0.63 | 51.35 ± 9.85 | 59.09 ± 4.89 | 94.13 ± 1.14 | 53.93 ± 1.51 | 54.85 ± 3.22 |
| 2 | 99.85 ± 0.09 | 99.81 ± 0.10 | 96.75 ± 1.09 | 91.22 ± 2.23 | 90.58 ± 1.47 | 98.04 ± 1.07 | 86.73 ± 2.39 | 87.66 ± 2.47 |
| 4 | 100.00 ± 0.00 | 100.00 ± 0.00 | 99.95 ± 0.04 | 100.00 ± 0.00 | 100.00 ± 0.00 | 99.89 ± 0.06 | 99.75 ± 0.11 | 99.77 ± 0.18 |
| 8 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 |
| 16 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 |
| 32 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 |
| 64 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 |
| 96 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 | 100.00 ± 0.00 |
Table 13: Task accuracy (%) for CNN in Setting 2 at shared-encoder depth 7. Each entry is mean sample standard deviation over five random seeds.
| Channel width | ||||||||
|---|---|---|---|---|---|---|---|---|
| 1 | ||||||||
| 2 | ||||||||
| 4 | ||||||||
| 8 | ||||||||
| 16 | ||||||||
| 32 | ||||||||
| 64 | ||||||||
| 96 | ||||||||
E Detailed Language Task Accuracies
Tables 14–16 report the accuracy of each task separately in the four task-pair contexts across LoRA ranks . Each context has two columns for its active tasks and ; the task assignments follow Table 3. Values are percentages, reported as mean sample standard deviation over three random seeds (denominator ), rounded to two decimal places. The seeds are 1, 2, 3 for Setting 2, 42, 43, 44 for Setting 3, and 42, 123, 2026 for Setting 4. Setting 3 uses the final-epoch training accuracies corresponding to the reported pairwise correlations.
Table 14: Task accuracy (%) for BERT in Setting 2: , , , and . Each entry is mean sample standard deviation over three random seeds.
| LoRA rank | ||||||||
|---|---|---|---|---|---|---|---|---|
| 1 | ||||||||
| 2 | ||||||||
| 4 | ||||||||
| 8 | ||||||||
| 16 | ||||||||
| 32 | ||||||||
| 64 | ||||||||
Table 15: Final-epoch training accuracy (%) for BERT in Setting 3: , , , and . Each entry is mean sample standard deviation over three random seeds.
| LoRA rank | ||||||||
|---|---|---|---|---|---|---|---|---|
| 1 | ||||||||
| 2 | ||||||||
| 4 | ||||||||
| 8 | ||||||||
| 16 | ||||||||
| 32 | ||||||||
| 64 | ||||||||
Table 16: Task accuracy (%) for Qwen3-8B in Setting 4: , , , and . Each entry is mean sample standard deviation over three random seeds.
| LoRA rank | ||||||||
|---|---|---|---|---|---|---|---|---|
| 1 | ||||||||
| 2 | ||||||||
| 4 | ||||||||
| 8 | ||||||||
| 16 | ||||||||
| 32 | ||||||||
| 64 | ||||||||
References
[Achiam et al., 2023] Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. Gpt-4 technical report. arXiv preprint arXiv:2303.08774, 2023.
[Amini et al., 2019] Aida Amini, Saadia Gabriel, Shanchuan Lin, Rik Koncel-Kedziorski, Yejin Choi, and Hannaneh Hajishirzi. Mathqa: Towards interpretable math word problem solving with operation-based formalisms. In North American Chapter of the Association for Computational Linguistics, 2019.
[Bell, 1964] John Stewart Bell. On the einstein-podolsky-rosen paradox. Physics, 1:195–200, 1964.
[Brunner et al., 2014] Nicolas Brunner, Daniel Cavalcanti, Stefano Pironio, Valerio Scarani, and Stephanie Wehner. Bell nonlocality. Reviews of modern physics, 86(2):419–478, 2014.
[Canabarro et al., 2019] Askery Canabarro, Samurai Brito, and Rafael Chaves. Machine learning nonlocal correlations. Physical review letters, 122(20):200401, 2019.
[Chen et al., 2018] Zhao Chen, Vijay Badrinarayanan, Chen-Yu Lee, and Andrew Rabinovich. Gradnorm: Gradient normalization for adaptive loss balancing in deep multitask networks. In International conference on machine learning, pages 794–803. PMLR, 2018.
[Clauser et al., 1969] John F Clauser, Michael A Horne, Abner Shimony, and Richard A Holt. Proposed experiment to test local hidden-variable theories. Physical review letters, 23(15):880, 1969.
[Deng, 2018] Dong-Ling Deng. Machine learning detection of bell nonlocality in quantum many-body systems. Physical review letters, 120(24):240402, 2018.
[Devlin et al., 2019] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 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 2019), pages 4171–4186, 2019.
[Dolan and Brockett, 2005] William B. Dolan and Chris Brockett. Automatically constructing a corpus of sentential paraphrases. In Proceedings of the Third International Workshop on Paraphrasing (IWP2005), 2005.
[Fine, 1982] Arthur Fine. Hidden variables, joint probability, and the bell inequalities. Physical Review Letters, 48(5):291, 1982.
[Hendrycks et al., 2021] Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the MATH dataset. arXiv preprint arXiv:2103.03874, 2021.
[Hu et al., 2022] Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang,
Weizhu Chen, et al. Lora: Low-rank adaptation of large language models. ICLR, 1(2):3, 2022.
[Kriváchy et al., 2020] Tamás Kriváchy, Yu Cai, Daniel Cavalcanti, Arash Tavakoli, Nicolas Gisin, and Nicolas Brunner. A neural network oracle for quantum nonlocality problems in networks. npj Quantum Information, 6(1):70, 2020.
[Lai et al., 2017] Guokun Lai, Qizhe Xie, Hanxiao Liu, Yiming Yang, and Eduard Hovy. RACE: Large-scale ReAding comprehension dataset from examinations. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pages 785–794, 2017.
[LeCun et al., 1998] Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998.
[Liu et al., 2021] Bo Liu, Xingchao Liu, Xiaojie Jin, Peter Stone, and Qiang Liu. Conflict-averse gradient descent for multi-task learning. Advances in neural information processing systems, 34:18878–18890, 2021.
[Liu et al., 2023] Hanmeng Liu, Jian Liu, Leyang Cui, Zhiyang Teng, Nan Duan, Ming Zhou, and Yue Zhang. LogiQA 2.0—an improved dataset for logical reasoning in natural language understanding. IEEE/ACM Transactions on Audio, Speech, and Language Processing, 31:2947–2962, 2023.
[Ma and Yung, 2018] Yue-Chi Ma and Man-Hong Yung. Transforming bell's inequalities into state classifiers with machine learning. npj Quantum Information, 4(1):34, 2018.
[Ma et al., 2018] Jiaqi Ma, Zhe Zhao, Xinyang Yi, Jilin Chen, Lichan Hong, and Ed H Chi. Modeling task relationships in multi-task learning with multi-gate mixture-of-experts. In Proceedings of the 24th ACM SIGKDD international conference on knowledge discovery & data mining, pages 1930–1939, 2018.
[Mao et al., 2024] Dayou Mao, Yuhao Chen, Yifan Wu, Maximilian Gilles, and Alexander Wong. Rethinking resource competition in multi-task learning: From shared parameters to shared representation. IEEE Access, 12:128717–128728, 2024.
[Sener and Koltun, 2018] Ozan Sener and Vladlen Koltun. Multi-task learning as multi-objective optimization. Advances in neural information processing systems, 31, 2018.
[Socher et al., 2013] Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D. Manning, Andrew Ng, and Christopher Potts. Recursive deep models for semantic compositionality over a sentiment treebank. In Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, pages 1631–1642, 2013.
[Song et al., 2025a] Changhao Song, Yazhou Zhang, Hui Gao, Kaiyun Huang, and Peng Zhang. Emotion-01: Adaptive long reasoning for emotion understanding in llms. arXiv preprint arXiv:2505.22548, 2025.
[Song et al., 2025b] Changhao Song, Yazhou Zhang, Hui Gao, Chang Yang, and Peng Zhang. Large emotional world model. arXiv preprint arXiv:2512.24149, 2025.
[Standley et al., 2020] Trevor Standley, Amir Zamir, Dawn Chen, Leonidas Guibas, Jitendra Malik, and Silvio Savarese. Which tasks should be learned together in multi-task learning? In Proceedings of the 37th International Conference on Machine Learning, volume 119, pages 9120–9132. PMLR, 2020.
[Talmor et al., 2019] Alon Talmor, Jonathan Herzig, Nicholas Lourie, and Jonathan Berant. Commonsenseqa: A question answering challenge targeting commonsense knowledge. ArXiv, abs/1811.00937, 2019.
[Wang et al., 2018] Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel Bowman. GLUE: A multi-task benchmark and analysis platform for natural language understanding. In Proceedings of the 2018 EMNLP Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP, pages 353–355, 2018.
[Yang et al., 2019] Yinfei Yang, Yuan Zhang, Chris Tar, and Jason Baldridge. Paws-x: A cross-lingual adversarial dataset for paraphrase identification. arXiv preprint arXiv:1908.11828, 2019.
[Yang et al., 2025] An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, et al. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025.
[Yu et al., 2020] Tianhe Yu, Saurabh Kumar, Abhishek Gupta, Sergey Levine, Karol Hausman, and Chelsea Finn. Gradient surgery for multi-task learning. Advances in neural information processing systems, 33:5824–5836, 2020.