betaFeedback

WorksComputer Science

The Bell Boundary of Shared Representations

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 ∣S∣≤2|S|\leq2. 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 ∣S∣>2|S|>2. As capacity further increases, these exceedances progressively disappear and SS 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.

Introduction

A key assumption underlying multi-task learning architecture is that multiple tasks can be supported by a shared latent representation [22, 19]. 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 [22] (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 [19], 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 [19], modular architectures [19], and mixture-of-experts models [19]. 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 [3]. In the standard CHSH setting [Clauser et al., 1969], one of the canonical Bell inequalities, two measurement branches AA and BB are considered. Branch AA has two possible settings a1a_1 and a2a_2, while branch BB has two possible settings b1b_1 and b2b_2. Under a classical hidden-variable model, if the four potential binary outcomes can be jointly accounted for by a common hidden variable λ∼ρ(λ)\lambda\sim\rho(\lambda), then their pairwise correlations satisfy the CHSH bound ∣S∣≤2|S| \le2, where S=E11+E12+E21−E22S = E_{11} + E_{12} + E_{21} - E_{22} and EijE_{ij} denotes the expectation of the product of the two binary outcomes for settings (ai,bj)(a_i,b_j), with i,j∈{1,2}i,j \in\{1,2\}. Thus, ∣S∣>2|S| > 2 implies that the four outcomes cannot be embedded into a joint probability distribution [11] (i.e., no hidden-variable distribution ρ(λ)\rho(\lambda) 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 x∼P(x)x \sim P(x) to a latent representation h=fθ(x)h = f_\theta(x), inducing a representation distribution h∼ρθ(h)h \sim\rho_\theta(h). We consider two

Image not extracted

Figure 1.

Overview of the Bell Boundary framework

Figure 1 (PDF p. 2). 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 SNNS_{\mathrm{NN}}. (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 AA and BB, each with two task settings a1a_1, a2a_2 and b1b_1, b2b_2. The corresponding binary task outcomes are denoted by A1(h)A_1(h), A2(h)A_2(h), B1(h)B_1(h), and B2(h)B_2(h), 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 Ai(h)A_i(h) and Bj(h)B_j(h) on the same latent space h∼ρ(h)h \sim\rho(h), 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 SNNS_{\mathrm{NN}}. If such a representation exists, their correlations must satisfy the CHSH compatibility bound. Conversely, ∣SNN∣>2\lvert S_{\mathrm{NN}}\rvert> 2 indicates that the four task-pair correlations cannot be jointly supported by a shared representation.

We interpret SNNS_{\mathrm{NN}} only when task performance exceeds chance level. Before this point, task outcomes are dominated by weak or noisy correlations, and SNNS_{\mathrm{NN}} mainly reflects underfitting rather than representation compatibility (see Sec. 2.4).

Once nontrivial task fitting emerges, ∣SNN∣>2\lvert S_{\mathrm{NN}}\rvert> 2 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 SNNS_{\mathrm{NN}}. 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 ∣SNN∣>2\lvert S_{\mathrm{NN}}\rvert> 2. As capacity further increases, task competition weakens, task correlations become jointly compatible, and SNNS_{\mathrm{NN}} returns to the bounded region ∣SNN∣≤2\lvert S_{\mathrm{NN}}\rvert\le2. We refer to this capacitydependent 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 SNN>2S_{\mathrm{NN}} > 2. Increasing representational capacity consistently returns SNNS_{\mathrm{NN}} 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 ∣SNN∣>2|S_{\mathrm{NN}}| > 2 to restored compatibility and ∣SNN∣≤2|S_{\mathrm{NN}}| \leq2, and validate it from toy networks to PLMs and LLMs.

Preliminaries

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 [3] (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 AA and BB. Branch AA has two settings a1a_1 and a2a_2, and branch BB has two settings b1b_1 and b2b_2. Under a local hidden-variable model, all potential outcomes are determined by a common hidden variable λ∼ρ(λ)\lambda\sim\rho(\lambda). We write these outcomes as Ai(λ)A_i(\lambda), Bj(λ)B_j(\lambda), where i,j∈{1,2}i,j \in\{1,2\}. Locality requires that Ai(λ)A_i(\lambda) depends only on aia_i and λ\lambda, while Bj(λ)B_j(\lambda) depends only on bjb_j and λ\lambda. Therefore, the four potential outcomes A1(λ)A_1(\lambda), A2(λ)A_2(\lambda), B1(λ)B_1(\lambda), and B2(λ)B_2(\lambda) are jointly defined and admit a common joint distribution P(A1,A2,B1,B2)P(A_1,A_2,B_1,B_2) [11]. For each pair of settings,

the correlation is the expectation of the product of the two outcomes:

Eij=∫Ai(λ)Bj(λ)ρ(λ) dλ(1)E_{ij} = \int A_i(\lambda)B_j(\lambda)\rho(\lambda)\,\mathrm{d}\lambda \tag*{(1)}

The CHSH statistic is then defined as:

S=E11+E12+E21−E22(2)S = E_{11} + E_{12} + E_{21} - E_{22} \tag*{(2)}

Since all outcomes are binary, any local hidden-variable model satisfies the classical CHSH bound: ∣S∣≤2|S| \leq2 [Clauser et al., 1969]. ∣S∣>2|S| > 2 implies that the observed pairwise correlations cannot be represented by a single common joint probability distribution consistent with the local hidden-variable assumptions [11].

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 [22, 19]. Given an input x∼P(x)x \sim P(x), the shared encoder maps it into a hidden representation h=fθ(x)h = f_\theta(x), where θ\theta denotes the shared parameters. The hidden representation also induces a distribution over the latent space, denoted by h∼ρθ(h)h \sim\rho_\theta(h). For each task kk, a task-specific head gϕkg_{\phi_k} produces the prediction:

y^k=gϕk(h)(3)\hat{y}_k = g_{\phi_k}(h) \tag*{(3)}

where ϕk\phi_k denotes the task-specific parameters.

The effectiveness of this formulation relies on the assumption that the shared representation hh 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 gk(t)=∇θLk(t)\mathbf{g}_k^{(t)} = \nabla_\theta\mathcal{L}_k^{(t)} and gl(t)=∇θLl(t)\mathbf{g}_l^{(t)} = \nabla_\theta\mathcal{L}_l^{(t)} denote the gradients of the two task losses with respect to the shared trainable parameters θ\theta at recorded training step tt. For nonzero gradients, their gradient cosine similarity is

ckl(t)=⟨gk(t),gl(t)⟩∥gk(t)∥2∥gl(t)∥2.(4)c_{kl}^{(t)}=\frac{\langle g_k^{(t)},g_l^{(t)}\rangle}{\lVert g_k^{(t)}\rVert_2\lVert g_l^{(t)}\rVert_2}. \tag*{(4)}

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:

Rkl=1T∑t=1T1[⟨gk(t),gl(t)⟩<0],(5)R_{kl}=\frac{1}{T}\sum_{t=1}^{T}\mathbb{1}\left[\langle g_k^{(t)},g_l^{(t)}\rangle<0\right], \tag*{(5)}

where TT is the number of recorded training steps and 1[⋅]\mathbb{1}[\cdot] is the indicator function. For nonzero gradients, the conflict criterion is equivalent to ckl(t)<0c_{kl}^{(t)}<0. Thus, cosine similarity measures directional alignment at each step, whereas the conflict rate measures how frequently conflict occurs over the recorded steps.

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 λ\lambda. In multi-task learning, the analogous question is whether multiple task outcomes can be jointly supported by a common hidden representation hh. This correspondence is summarized in Table 1.

CHSH settingMulti-task learning
Hidden variable λ∼ρ(λ)\lambda\sim\rho(\lambda)Shared representation h=fθ(x),h∼ρθ(h)h = f_\theta(x), h \sim\rho_\theta(h)
Measurement branches AA and BBTask families AA and BB
Measurement settings a1a_1, a2a_2 and b1b_1, b2b_2Task settings a1a_1, a2a_2 and b1b_1, b2b_2
Binary outcomes Ai(λ)A_i(\lambda), Bj(λ)B_j(\lambda)Binary task outcomes gϕAi(h),gϕBj(h)g_{\phi_{A_i}}(h), g_{\phi_{B_j}}(h)
Correlation EijE_{ij}Task correlation EijE_{ij}
CHSH statistic SSNeural CHSH statistic SNNS_{\mathrm{NN}}
Classical bound ∣S∣≤2|S| \leq2∣SNN∣≤2|S_{\mathrm{NN}}| \leq2
Violation ∣S∣>2|S| > 2∣SNN∣>2|S_{\mathrm{NN}}| > 2

Table 1. Correspondence between the CHSH setting and multi-task learning.

We consider two task families, denoted by AA and BB. Each family contains two task settings, written as a1a_1, a2a_2 for family AA and b1b_1, b2b_2 for family BB. Each task prediction is obtained from the shared representation h=fθ(x)h=f_\theta(x) and converted into a binary correctness outcome, denoted by AiA_i or BjB_j. Each outcome takes values in {−1,+1}\{-1,+1\}, with +1+1 indicating a correct prediction and −1-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 AiA_i and BjB_j depend only on the shared representation hh and their own task settings, and are independent of the joint training context (i,j)(i,j). When all four outcomes are jointly represented through h∼ρθ(h)h\sim\rho_\theta(h), the resulting task-response model has the form of a local hidden-variable (LHV) model, with hh 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 SIC≡S∧IC\mathrm{SIC}\equiv S\land\mathrm{IC}, where SS denotes sufficient representation resources and IC denotes independent convergence.

Under the task-specific decomposition assumed by SIC, let ϑAi\vartheta_{A_i} and ϑBj\vartheta_{B_j} denote the effective parameter blocks for the two active tasks. Their joint loss separates as

L=LAi(ϑAi)+LBj(ϑBj),∇ϑAiLBj=0,∇ϑBjLAi=0.(6)\mathcal{L}=\mathcal{L}_{A_i}(\vartheta_{A_i})+\mathcal{L}_{B_j}(\vartheta_{B_j}),\qquad \nabla_{\vartheta_{A_i}}\mathcal{L}_{B_j}=0,\qquad \nabla_{\vartheta_{B_j}}\mathcal{L}_{A_i}=0. \tag*{(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 parameter of task aia_i leaves its converged prediction function unchanged, and the same holds for task bjb_j, almost surely under the shared-representation distribution ρθ(h)\rho_\theta(h). With the same labeling rule for each task across pairs, the correctness outcomes are also unchanged. We therefore write the effective outcomes as Ai(h)A_i(h) and Bj(h)B_j(h) 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 h∼ρθ(h)h\sim\rho_\theta(h) as the hidden variable, for each pair (ai,bj)(a_i,b_j), define

Eij=Eh∼ρθ(h)[Ai(h)Bj(h)],(7)E_{ij}=\mathbb{E}_{h\sim\rho_\theta(h)}[A_i(h)B_j(h)], \tag*{(7)}

and SNN=E11+E12+E21−E22S_{\mathrm{NN}}=E_{11}+E_{12}+E_{21}-E_{22}.

Theorem 1 (Neural CHSH bound under SIC). Suppose the four task-pair models satisfy SIC: the networks have sufficient feature representation resources (SS), 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 Ai(h)A_i(h) and Bj(h)B_j(h) through a shared representation h∼ρθ(h)h\sim\rho_\theta(h), with the same labeling rule for each task across pairs, then ∣SNN∣≤2|S_{\mathrm{NN}}|\le2.

Proof. The four context-independent outcomes are functions of the shared representation hh on the same probability space. For ρθ\rho_\theta-almost every hh,

C(h)=A1B1+A1B2+A2B1−A2B2=A1(B1+B2)+A2(B1−B2),(8)C(h)=A_1B_1+A_1B_2+A_2B_1-A_2B_2 =A_1(B_1+B_2)+A_2(B_1-B_2), \tag*{(8)}

where the argument hh is omitted on the right-hand side. Since B1,B2∈{−1,+1}B_1,B_2\in\{-1,+1\}, exactly one of B1+B2B_1+B_2 and B1−B2B_1-B_2 is zero, while the other equals ±2\pm2. Hence ∣C(h)∣=2|C(h)|=2, and

∣SNN∣=∣Eh∼ρθ(h)[C(h)]∣≤Eh∼ρθ(h)[∣C(h)∣]=2.(9)|S_{\mathrm{NN}|}=|\mathbb{E}_{h\sim\rho_\theta(h)}[C(h)]|\le\mathbb{E}_{h\sim\rho_\theta(h)}[|C(h)|]=2. \tag*{(9)}

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 P(A1,A2,B1,B2)P(A_1,A_2,B_1,B_2) consistent with the observed pairwise correlations and indicates the failure of the SIC assumption, namely ¬SIC≡¬S∨¬IC\neg\mathrm{SIC}\equiv\neg S\lor\neg\mathrm{IC}. 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.

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 ∣SNN∣>2|S_{\mathrm{NN}}| > 2 to the non-exceeding regime ∣SNN∣≤2|S_{\mathrm{NN}}| \le2 with increasing representational capacity as the Bell Boundary of shared representations.

When is SNN Informative?

Let pip_i and qjq_j denote the accuracies of tasks aia_i and bjb_j, respectively. Since gϕAi(h)=+1g_{\phi_{A_i}}(h) = +1 for a correct prediction and −1-1 otherwise, we have E[gϕAi(h)]=pi−(1−pi)=2pi−1\mathbb{E}[g_{\phi_{A_i}}(h)] = p_i - (1 - p_i) = 2p_i - 1, and similarly E[gϕBj(h)]=2qj−1\mathbb{E}[g_{\phi_{B_j}}(h)] = 2q_j - 1.

When a model performs at or below chance-level performance on both tasks, pi≈qj≈0.5p_i \approx q_j \approx0.5, so E[gϕAi(h)]≈0\mathbb{E}[g_{\phi_{A_i}}(h)] \approx0 and E[gϕBj(h)]≈0\mathbb{E}[g_{\phi_{B_j}}(h)] \approx0. If the prediction outcomes of the two tasks are also independent, then:

Eij=Eh∼ρθ(h)[gϕAi(h)gϕBj(h)]≈E[gϕAi(h)]E[gϕBj(h)]≈0(10)E_{ij} = \mathbb{E}_{h \sim\rho_\theta(h)}[g_{\phi_{A_i}}(h)g_{\phi_{B_j}}(h)] \approx\mathbb{E}[g_{\phi_{A_i}}(h)]\mathbb{E}[g_{\phi_{B_j}}(h)] \approx0 \tag*{(10)}

and hence SNN≈0S_{\mathrm{NN}} \approx0. Therefore, in this case, SNN<2S_{\mathrm{NN}} < 2 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, SNNS_{\mathrm{NN}} becomes meaningful as a representation-compatibility statistic. In this regime, ∣SNN∣>2|S_{\mathrm{NN}}| > 2 can arise when the four task correlations become asymmetric. As a capacity further increases, all tasks can be fitted more consistently. In the ideal case, gϕA1(h)≈gϕA2(h)≈gϕB1(h)≈gϕB2(h)≈+1g_{\phi_{A_1}}(h) \approx g_{\phi_{A_2}}(h) \approx g_{\phi_{B_1}}(h) \approx g_{\phi_{B_2}}(h) \approx+1, so E11≈E12≈E21≈E22≈+1E_{11} \approx E_{12} \approx E_{21} \approx E_{22} \approx+1 and SNN≈+1+1+1−1=2S_{\mathrm{NN}} \approx+1+1+1-1 = 2. 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 hh among all four heads, then A1(h),A2(h),B1(h),B2(h)A_1(h), A_2(h), B_1(h), B_2(h) would be deterministic functions of the same hh and would admit a joint distribution induced by P(x)P(x); in this case ∣SNN∣≤2|S_{\mathrm{NN}}| \le2 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 (ai,bj)(a_i,b_j) we train an independent model MijM_{ij} and estimate EijE_{ij}, then combine the four correlations into SNNS_{\mathrm{NN}} to test whether representations of the given capacity can support all four task-pair combinations separately. This protocol is detailed in Sec. 4.4.

Related Work

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 [22] 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 [19]. 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.

Bell Inequalities and Machine Learning

Bell inequalities have been studied in machine learning primarily in the context of quantum information and nonlocal correlations. Deng et al. [8] use machine learning to detect Bell nonlocality in quantum many-body systems. Ma and Yung [19] 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. Krivachy et al. [Krivachy 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.

NCnet: A Toy Multi-task Model

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, x=(X1,X2,X3,X4)x = (X_1, X_2, X_3, X_4), where Xk∈0,1X_k \in0, 1. The first two features define two tasks on branch AA, and the last two features define two tasks on branch BB:

A:{a1=X1a2=X1⊕X2B:{b1=X3b2=X3⊕X4(11)A:\left\{\begin{aligned} a_1 &= X_1 \\ a_2 &= X_1 \oplus X_2 \end{aligned}\right. \qquad B:\left\{\begin{aligned} b_1 &= X_3 \\ b_2 &= X_3 \oplus X_4 \end{aligned}\right. \tag*{(11)}

Here, a1a_1 and b1b_1 are identity tasks, and a2a_2 and b2b_2 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 AA and BB correspond to the two CHSH measurement branches, while (a1,a2)(a_1, a_2) and (b1,b2)(b_1, b_2) 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.

NCnet Architecture

For each task-pair context (ai,bj)(a_i, b_j), NCnet is a minimal feed-forward multi-task network with one shared hidden layer and two task-specific output heads. Given an input xx, the shared hidden representation is computed as h=σ(Wx+c)h = \sigma(Wx + c), where WW and cc are shared by the two active tasks and σ(⋅)\sigma(\cdot) is the ReLU activation. Here, hh refers to the representation learned by the model MijM_{ij} for the active context. The two task heads produce predictions

a^i=gai(h),b^j=gbj(h).(12)\hat{a}_i = g_{a_i}(h), \qquad\hat{b}_j = g_{b_j}(h). \tag*{(12)}

The two active heads are jointly trained on the shared representation within each MijM_{ij}. 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 nn, i.e., the number of neurons in the shared hidden layer. We vary nn to examine how representational capacity affects task compatibility. When nn is small, the two active tasks must compete for a limited number of hidden dimensions. When nn increases, the shared layer can allocate more representational degrees of freedom to different task requirements.

Task Outcomes and CHSH Statistic

To compute the CHSH statistic, each task prediction is converted into a binary outcome. For task aia_i, the outcome is defined as:

Ai(h)={+1,if a^i is correct−1,otherwise(13)A_i(h) = \begin{cases} +1, & \text{if } \hat{a}_i \text{ is correct}\\ -1, & \text{otherwise} \end{cases} \tag*{(13)}

and for task bjb_j,

Bj(h)={+1,if b^j is correct−1,otherwise(14)B_j(h) = \begin{cases} +1, & \text{if } \hat{b}_j \text{ is correct}\\ -1, & \text{otherwise} \end{cases} \tag*{(14)}

For each task pair (ai,bj)(a_i, b_j), we define the task correlation as the expectation of the product of the two binary outcomes:

Eij=Eh∼ρθ(h)[Ai(h)Bj(h)].(15)E_{ij} = \mathbb{E}_{h \sim\rho_\theta(h)}[A_i(h)B_j(h)]. \tag*{(15)}

In experiments, this expectation is estimated by averaging over the test set:

Eij=1N∑m=1NAi(m)(h)Bj(m)(h).(16)E_{ij} = \frac{1}{N}\sum_{m=1}^{N} A_i^{(m)}(h)B_j^{(m)}(h). \tag*{(16)}

The neural CHSH statistic is then computed as:

SNN=E11+E12+E21−E22(17)S_{\mathrm{NN}} = E_{11} + E_{12} + E_{21} - E_{22} \tag*{(17)}

Training Protocol

NCnet is trained under four task-pair contexts: (a1,b1)(a_1, b_1), (a1,b2)(a_1, b_2), (a2,b1)(a_2, b_1), and (a2,b2)(a_2, b_2). For each context (ai,bj)(a_i, b_j), we train a separate NCnet instance MijM_{ij}. Each MijM_{ij} contains a shared hidden layer and two task-specific output heads, gϕAig_{\phi_{A_i}} and gϕBjg_{\phi_{B_j}}, for the active tasks aia_i and bjb_j. 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 n=1n = 1 to n=20n = 20. For each nn, every model MijM_{ij} is independently trained and evaluated 100 times with different random seeds. The outcomes produced by gϕAi(h)g_{\phi_{A_i}}(h) and gϕBj(h)g_{\phi_{B_j}}(h) are used to estimate Ai(h)A_i(h), Bj(h)B_j(h) and EijE_{ij}. The four correlations are then combined to compute SNNS_{\mathrm{NN}}. We report the mean and standard deviation of SNNS_{\mathrm{NN}}, the pairwise correlations EijE_{ij}, 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.

Results and Analysis

Figure 2 and Table 2 reveal a capacity-dependent transition. At n=1,2n = 1, 2, SNN<2S_{\mathrm{NN}} < 2 alone does not establish compatibility (§ 4.1). At n=3n = 3, all tasks exceed chance-level accuracy, yet SNNS_{\mathrm{NN}} peaks at 2.31±0.352.31 \pm0.35. The three correlations E11,E12,E21E_{11}, E_{12}, E_{21} are 0.910.91–1.001.00, whereas E22=0.53E_{22} = 0.53, 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.

ddA1B1A_1B_1A1B2A_1B_2A2B1A_2B_1A2B2A_2B_2SNNS_{\mathrm{NN}}P0P_0 (%)
EEAcc(AiA_i)Acc(BjB_j)EEAcc(AiA_i)Acc(BjB_j)EEAcc(AiA_i)Acc(BjB_j)EEAcc(AiA_i)Acc(BjB_j)
10.00±0.000.00 \pm0.000.72±0.250.72 \pm0.250.78±0.250.78 \pm0.250.02±0.070.02 \pm0.070.97±0.100.97 \pm0.100.52±0.070.52 \pm0.070.01±0.060.01 \pm0.060.52±0.060.52 \pm0.060.98±0.090.98 \pm0.090.06±0.060.06 \pm0.060.62±0.110.62 \pm0.110.64±0.110.64 \pm0.11−0.02±0.12-0.02 \pm0.120
21.00±0.001.00 \pm0.001.00±0.001.00 \pm0.001.00±0.001.00 \pm0.000.48±0.110.48 \pm0.111.00±0.001.00 \pm0.000.74±0.050.74 \pm0.050.47±0.100.47 \pm0.100.74±0.050.74 \pm0.051.00±0.001.00 \pm0.000.22±0.200.22 \pm0.200.76±0.170.76 \pm0.170.76±0.170.76 \pm0.171.74±0.241.74 \pm0.240
31.00±0.001.00 \pm0.001.00±0.001.00 \pm0.001.00±0.001.00 \pm0.000.91±0.210.91 \pm0.211.00±0.001.00 \pm0.000.95±0.100.95 \pm0.100.93±0.170.93 \pm0.170.96±0.090.96 \pm0.091.00±0.001.00 \pm0.000.53±0.240.53 \pm0.240.88±0.140.88 \pm0.140.86±0.150.86 \pm0.152.31±0.352.31 \pm0.350
41.00±0.001.00 \pm0.001.00±0.001.00 \pm0.001.00±0.001.00 \pm0.000.99±0.070.99 \pm0.071.00±0.001.00 \pm0.000.99±0.040.99 \pm0.040.98±0.100.98 \pm0.100.99±0.050.99 \pm0.051.00±0.001.00 \pm0.000.93±0.110.93 \pm0.110.98±0.040.98 \pm0.040.98±0.040.98 \pm0.042.04±0.162.04 \pm0.1653
51.00±0.001.00 \pm0.001.00±0.001.00 \pm0.001.00±0.001.00 \pm0.001.00±0.001.00 \pm0.001.00±0.001.00 \pm0.001.00±0.001.00 \pm0.001.00±0.001.00 \pm0.001.00±0.001.00 \pm0.001.00±0.001.00 \pm0.000.99±0.050.99 \pm0.051.00±0.021.00 \pm0.021.00±0.021.00 \pm0.022.01±0.052.01 \pm0.0595
61.00±0.001.00 \pm0.001.00±0.001.00 \pm0.001.00±0.001.00 \pm0.001.00±0.001.00 \pm0.001.00±0.001.00 \pm0.001.00±0.001.00 \pm0.001.00±0.001.00 \pm0.001.00±0.001.00 \pm0.001.00±0.001.00 \pm0.001.00±0.011.00 \pm0.011.00±0.001.00 \pm0.001.00±0.011.00 \pm0.012.00±0.012.00 \pm0.0199
7–201.00±0.001.00 \pm0.001.00±0.001.00 \pm0.001.00±0.001.00 \pm0.001.00±0.001.00 \pm0.001.00±0.001.00 \pm0.001.00±0.001.00 \pm0.001.00±0.001.00 \pm0.001.00±0.001.00 \pm0.001.00±0.001.00 \pm0.001.00±0.001.00 \pm0.001.00±0.001.00 \pm0.001.00±0.001.00 \pm0.002.00±0.002.00 \pm0.00100

Table 2. NCnet results across hidden dimensions d=1d = 1–20 (mean ±\pm std over 100 random seeds). EijE_{ij} denotes task-pair correlation, Acc denotes per-head training accuracy, and P0P_0 is the fraction of runs with near-zero mean best-loss. Bold SNNS_{\mathrm{NN}} values significantly exceed 2.

Figure 2. Capacity boundary and gradient conflict in NCnet. Top: SNNS_{\mathrm{NN}} (left axis) and average training loss (right axis) versus hidden width nn. Points and bands show individual seeds and mean ±\pm std; the dashed line marks SNN=2S_{\mathrm{NN}} = 2, and the inset shows its distribution at n=3n = 3. Bottom: gradient cosine similarity averaged over the four MijM_{ij} contexts and all training phases (green: alignment; red: conflict).

As capacity increases, fitting becomes more balanced and exceedances diminish. At n=4n = 4, E22E_{22} rises to 0.930.93, training loss drops sharply, and 53% of runs attain near-zero mean best-loss. The mean SNNS_{\mathrm{NN}} falls to 2.04±0.162.04 \pm0.16 at n=4n = 4 and 2.01±0.052.01 \pm0.05 at n=5n = 5, both still significantly above 2. At n=7n = 7–20, all runs attain near-zero mean best-loss, with Eij=1E_{ij} = 1 and SNN=2S_{\mathrm{NN}} = 2. 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 n=3n = 3 (approximately −0.812-0.812), coinciding with the CHSH peak. With further widening, it generally becomes less negative, although not monotonically, and remains negative even where SNN≈2S_{\mathrm{NN}} \approx2. Thus, the capacity-dependent reduction in CHSH exceedances accompanies weaker average gradient conflict, without implying that conflict disappears or that SIC is established.

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.

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.

Settinga1a_1a2a_2b1b_1b2b_2
Setting 1Left digit, predict 0Left digit, 10-classRight digit, predict 1Right digit, 10-class
Setting 2PAWS-X-enPAWS-X-frPAWS-X-jaPAWS-X-ko
Setting 3SST-2CommonsenseQAMRPCMathQA
Setting 4MathQAMATHRACE-MiddleLogiQA2.0

Table 3. Task assignments for each experimental setting.

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 {1,2,4,8,16,32,64,96}\{1, 2, 4, 8, 16, 32, 64, 96\} 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 rr over {1,2,4,8,16,32,64}\{1, 2, 4, 8, 16, 32, 64\}, 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 a1a_1, a2a_2, b1b_1, and b2b_2, then form each task pair (ai,bj)(a_i,b_j) 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 EijE_{ij}. We report the mean and standard deviation of task accuracy AccAcc, pairwise task correlations EijE_{ij}, and the CHSH statistic SNN. Full training details are provided in Appendix C.

Experimental Results

Vision (CNN). Table 4 shows that SNN 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 A2B2A_2B_2 is lowest for architectures near SNN = 2, while both the below-bound and above-bound groups exhibit stronger conflict. Together, these results associate the capacity-dependent boundary with persistent task competition; SNN < 2 alone does not establish compatibility, while exceedances indicate incompatibility with a context-independent joint probability model of task outcomes.

DepthChannel width
124816326496
1−1.02±0.57-1.02 \pm0.57−1.82±0.70-1.82 \pm0.70−1.30±0.04-1.30 \pm0.04−1.23±0.04-1.23 \pm0.04−1.13±0.03-1.13 \pm0.03−0.95±0.03-0.95 \pm0.03−0.80±0.02-0.80 \pm0.02−0.76±0.01-0.76 \pm0.01
2−1.56±0.50-1.56 \pm0.50−1.22±0.03-1.22 \pm0.03−1.08±0.04-1.08 \pm0.04−0.85±0.07-0.85 \pm0.07−0.56±0.01-0.56 \pm0.01−0.32±0.02-0.32 \pm0.02−0.07±0.05-0.07 \pm0.050.07±0.040.07 \pm0.04
3−1.18±0.03-1.18 \pm0.03−1.01±0.09-1.01 \pm0.09−0.68±0.05-0.68 \pm0.05−0.13±0.08-0.13 \pm0.080.62±0.060.62 \pm0.061.41±0.041.41 \pm0.041.93±0.041.93 \pm0.042.26±0.072.26 \pm0.07
4−0.89±0.05-0.89 \pm0.05−0.26±0.11-0.26 \pm0.110.68±0.090.68 \pm0.091.61±0.041.61 \pm0.042.46±0.072.46 \pm0.072.96±0.042.96 \pm0.042.06±0.022.06 \pm0.022.00±0.002.00 \pm0.00
5−0.08±0.09-0.08 \pm0.091.41±0.081.41 \pm0.082.64±0.062.64 \pm0.062.17±0.022.17 \pm0.022.00±0.002.00 \pm0.002.00±0.002.00 \pm0.002.00±0.002.00 \pm0.002.00±0.002.00 \pm0.00
61.15±0.181.15 \pm0.182.01±0.082.01 \pm0.082.01±0.012.01 \pm0.012.00±0.002.00 \pm0.002.00±0.002.00 \pm0.002.00±0.002.00 \pm0.002.00±0.002.00 \pm0.002.00±0.002.00 \pm0.00
71.77±0.111.77 \pm0.112.02±0.022.02 \pm0.022.00±0.002.00 \pm0.002.00±0.002.00 \pm0.002.00±0.002.00 \pm0.002.00±0.002.00 \pm0.002.00±0.002.00 \pm0.002.00±0.002.00 \pm0.00

Table 4. Train-phase SNNS_{\mathrm{NN}} (mean ±\pm std over 5 random seeds) for the multi-task CNN across shared-encoder depth (rows) and channel width (columns). Bold cells are significantly greater than the classical Bell bound S=2S = 2.

Conflict by SNN regimeConflict by depth and width

Figure 4. Gradient conflict rates for CNN task pair A2B2A_2B_2. (a) Rates grouped by mean SNN: < 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 SNN.

Language (PLM/LLM). Table 5 and Figure 3(b) show contrasting capacity-dependent patterns. BERT’s homogeneous tasks (Setting 2) approach SNN = 2 from below. Their shared paraphrase objective offers a plausible explanation for the four correlations improving together and remaining similar: when Eij≈cE_{ij} \approx c, SNN≈2c≤2S_{\mathrm{NN}} \approx2c \le2. 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 3. SNN versus Trainable Parameter Count Across Settings. (a) Mean SNN across five seeds for CNNs of varying depth and base channel width; values are shown in each heatmap cell. (b) Mean SNN versus LoRA rank rr for Settings 2, 3, and 4. Shaded bands show one standard deviation across three seeds, the dashed line marks SNN = 2.

rrE11E_{11}E12E_{12}E21E_{21}E22E_{22}SNNS_{\mathrm{NN}}
(a) Setting 2
10.743±0.0210.743\pm0.0210.695±0.0250.695\pm0.0250.689±0.0270.689\pm0.0270.661±0.0250.661\pm0.0251.466±0.0371.466\pm0.037
20.839±0.0170.839\pm0.0170.836±0.0080.836\pm0.0080.838±0.0180.838\pm0.0180.822±0.0180.822\pm0.0181.691±0.0281.691\pm0.028
40.936±0.0020.936\pm0.0020.915±0.0050.915\pm0.0050.918±0.0130.918\pm0.0130.896±0.0160.896\pm0.0161.872±0.0031.872\pm0.003
80.968±0.0040.968\pm0.0040.956±0.0070.956\pm0.0070.955±0.0080.955\pm0.0080.946±0.0020.946\pm0.0021.934±0.0041.934\pm0.004
160.969±0.0040.969\pm0.0040.961±0.0030.961\pm0.0030.957±0.0010.957\pm0.0010.951±0.0020.951\pm0.0021.936±0.0031.936\pm0.003
320.992±0.0060.992\pm0.0060.992±0.0070.992\pm0.0070.989±0.0030.989\pm0.0030.988±0.0050.988\pm0.0051.986±0.0031.986\pm0.003
640.996±0.0020.996\pm0.0020.996±0.0030.996\pm0.0030.995±0.0010.995\pm0.0010.994±0.0020.994\pm0.0021.993±0.0011.993\pm0.001
(b) Setting 3
10.993±0.0010.993\pm0.0010.262±0.0490.262\pm0.0490.792±0.0120.792\pm0.012−0.075±0.013-0.075\pm0.0132.122±0.0282.122\pm0.028
20.998±0.0000.998\pm0.0000.653±0.0480.653\pm0.0480.945±0.0090.945\pm0.0090.372±0.0350.372\pm0.0352.224±0.0472.224\pm0.047
40.999±0.0010.999\pm0.0010.908±0.0080.908\pm0.0080.984±0.0030.984\pm0.0030.794±0.0170.794\pm0.0172.097±0.0112.097\pm0.011
81.000±0.0011.000\pm0.0010.973±0.0020.973\pm0.0020.993±0.0020.993\pm0.0020.944±0.0050.944\pm0.0052.021±0.0042.021\pm0.004
161.000±0.0001.000\pm0.0000.989±0.0030.989\pm0.0030.993±0.0030.993\pm0.0030.981±0.0040.981\pm0.0042.001±0.0022.001\pm0.002
321.000±0.0001.000\pm0.0000.978±0.0150.978\pm0.0150.996±0.0000.996\pm0.0000.986±0.0070.986\pm0.0071.988±0.0181.988\pm0.018
641.000±0.0001.000\pm0.0000.992±0.0010.992\pm0.0010.994±0.0020.994\pm0.0020.990±0.0040.990\pm0.0041.996±0.0021.996\pm0.002
(c) Setting 4
10.943±0.0040.943\pm0.0040.902±0.0050.902\pm0.0050.352±0.0100.352\pm0.0100.234±0.0060.234\pm0.0061.963±0.0151.963\pm0.015
20.989±0.0030.989\pm0.0030.976±0.0030.976\pm0.0030.664±0.0080.664\pm0.0080.579±0.0070.579\pm0.0072.050±0.0162.050\pm0.016
40.991±0.0030.991\pm0.0030.988±0.0030.988\pm0.0030.830±0.0070.830\pm0.0070.756±0.0060.756\pm0.0062.052±0.0132.052\pm0.013
80.998±0.0020.998\pm0.0020.995±0.0020.995\pm0.0020.928±0.0050.928\pm0.0050.912±0.0050.912\pm0.0052.008±0.0102.008\pm0.010
161.000±0.0011.000\pm0.0010.997±0.0020.997\pm0.0020.981±0.0040.981\pm0.0040.983±0.0020.983\pm0.0021.994±0.0041.994\pm0.004
321.000±0.0011.000\pm0.0011.000±0.0011.000\pm0.0010.999±0.0010.999\pm0.0010.998±0.0010.998\pm0.0012.000±0.0022.000\pm0.002
641.000±0.0001.000\pm0.0000.999±0.0000.999\pm0.0001.000±0.0001.000\pm0.0000.999±0.0010.999\pm0.0012.000±0.0012.000\pm0.001

Table 5. Pairwise task correlations EijE_{ij} and CHSH statistic SNNS_{\mathrm{NN}} across LoRA ranks rr for (a) Setting 2, (b) Setting 3, and (c) Setting 4. Values are mean±\pmstd over three random seeds for Settings 2, 3, and 4. Bold SNNS_{\mathrm{NN}} values significantly exceed 2.

Figure 5 shows that gradient conflict generally decreases with increasing LoRA rank in Qwen but varies across task pairs in BERT. BERT’s A2B2A_{2}B_{2} conflict rate tends to increase with rr, 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

Figure 5. Gradient conflict across LoRA ranks rr. (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 A2B2A_2B_2 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.

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 (∣SNN∣>2|S_{\mathrm{NN}}| > 2). 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.

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 ∣SNN∣≤2|S_{\mathrm{NN}}| \le2. Experiments on CNets, CNNs, PLMs, and LLMs show that SNNS_{\mathrm{NN}} 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.sep? 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.

Significance Testing of the Bell-Type Statistic

For each hidden width dd, we use a right-tailed one-sample tt-test on SNNS_{\mathrm{NN}} values from 100 independent random seeds to assess whether their mean exceeds 2. Results with unadjusted p<0.05p < 0.05 are bolded in Table 2.

For Settings 1–4, we apply the same right-tailed one-sample tt-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 p<0.05p < 0.05 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 r∈{1,2,4,8}r \in\{1, 2, 4, 8\}, and Setting 4 at r∈{2,4}r \in\{2, 4\}; higher ranks show no significant exceedance.

Detailed Synthetic Experimental Setup

This appendix provides the full training details of the synthetic NCnet experiment summarized in § 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 24=162^4 = 16 binary inputs X∈{0,1}4X \in\{0,1\}^4. 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 a1=X1a_1 = X_1, a2=X1⊕X2a_2 = X_1 \oplus X_2, b1=X3b_1 = X_3, b2=X3⊕X4b_2 = X_3 \oplus X_4.

Architecture. Each two-task model is a one-hidden-layer feedforward network X∈R4→fc1h∈Rn→fc2y∈R2X \in\mathbb{R}^4 \xrightarrow{f_{c1}} h \in\mathbb{R}^n \xrightarrow{f_{c2}} y \in\mathbb{R}^2 with ReLU activations applied after both fc1f_{c1} and fc2f_{c2}, where n∈{1,…,20}n \in\{1,\ldots,20\} is the shared hidden width and the two output scalars are the Alice and Bob task heads. The hidden layer fc1f_{c1} 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 1×10−21 \times10^{-2}, default β\beta and weight decay), with early stopping once the training loss falls below 10−610^{-6}. Within each run, the checkpoint of lowest training loss is retained for evaluation.

Aggregation. For each task pair (ai,bj)(a_i,b_j) and hidden width nn, we train 100 independent models with random seeds 0,…,990,\ldots,99, each seed fixing both the torch and NumPy random number generators. The consistency indicator AiA_i (BjB_j) takes the value +1+1 when the corresponding head predicts the binary label correctly and −1-1 otherwise. For each seed ss, the pairwise correlation Eij(s)=⟨AiBj⟩E_{ij}^{(s)} = \langle A_iB_j\rangle is the arithmetic mean over the 16 inputs, and the per-seed CHSH statistic is SNN(s)=E11(s)+E12(s)+E21(s)−E22(s)S_{\mathrm{NN}}^{(s)} = E_{11}^{(s)} + E_{12}^{(s)} + E_{21}^{(s)} - E_{22}^{(s)}. 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 (fc1f_{c1}) and record the cosine similarity between the two resulting gradient vectors; values near −1-1 indicate strong conflict. This metric is sampled evevery 100 epochs. The lower panel of Figure 2 reports the mean over the four task-pair contexts and all training phases.

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.

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.

ParameterCNN Setting 1BERT Setting 2BERT Setting 3Qwen3-8B Setting 4
OptimizerAdamW—AdamWAdamW
Initial learning rate10−310^{-3}3×10−43 \times10^{-4}10−310^{-3} (LoRA)2×10−42 \times10^{-4}
Classification-head learning rate10−310^{-3}—2.5×10−32.5 \times10^{-3}—
Learning-rate decayCosinePlateauCosineCosine
Linear warmup5 epochs5%3%5%
Learning-rate floor010−610^{-6}10−610^{-6}10−610^{-6} or 10−510^{-5}
Weight decay10−410^{-4}—0.010.01
Gradient clipping normNone—1.01.0
Batch size5126464 pairs8 examples
Gradient accumulation steps1—13
Training epochs50At most 10020010
Maximum sequence length——192512
Training samples / cap4000500030003000
Evaluation sample cap—625 dev / 625 test1500500
LoRA scaling α\alpha—2r2r2r2r2r2r
LoRA dropout—0.0500
LoRA rank rr—1, 2, 4, 8, 16, 32, 641, 2, 4, 8, 16, 32, 641, 2, 4, 8, 16, 32, 64
Reported seed count5333

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.

Optimization. CNN, BERT Setting 3, and Qwen use PyTorch AdamW with its default moment coefficients (β1,β2)=(0.9,0.999)(\beta_1,\beta_2) = (0.9, 0.999) and numerical-stability constant ϵ=10−8\epsilon= 10^{-8}. 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 § 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 α/r=2\alpha/r = 2 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 10−310^{-3}, 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 10−510^{-5} for r=2r = 2, for A2B1A_2B_1 at r=4r = 4, and for A2B2A_2B_2 at r∈{4,8,16,32}r \in\{4, 8, 16, 32\}; the other available configurations use 10−610^{-6}.

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.

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 AiA_i and BjB_j columns correspond to train_acc_a and train_acc_b, respectively. Values are percentages, reported as mean ±\pm sample standard deviation over five random seeds (42–46; standard deviation computed with denominator 5−15 - 1).

Table 7: Task accuracy (%) for CNN in Setting 2 at shared-encoder depth 1. Each entry is mean ±\pm sample standard deviation over five random seeds.

Channel widthA1B1A_1B_1 A1A_1A1B1A_1B_1 B1B_1A1B2A_1B_2 A1A_1A1B2A_1B_2 B2B_2A2B1A_2B_1 A2A_2A2B1A_2B_1 B1B_1A2B2A_2B_2 A2A_2A2B2A_2B_2 B2B_2
190.00 ±\pm 0.0090.00 ±\pm 0.0074.00 ±\pm 35.7810.02 ±\pm 0.039.95 ±\pm 0.1390.00 ±\pm 0.0010.02 ±\pm 0.0310.07 ±\pm 0.16
274.00 ±\pm 35.7872.48 ±\pm 35.0888.35 ±\pm 3.699.52 ±\pm 1.059.30 ±\pm 0.8890.00 ±\pm 0.0010.07 ±\pm 0.459.62 ±\pm 0.71
485.69 ±\pm 4.9590.00 ±\pm 0.0089.99 ±\pm 0.0210.40 ±\pm 0.6610.57 ±\pm 1.3889.27 ±\pm 1.6310.25 ±\pm 0.7610.06 ±\pm 0.33
890.00 ±\pm 0.0090.00 ±\pm 0.0089.98 ±\pm 0.0410.70 ±\pm 1.1310.58 ±\pm 1.3890.00 ±\pm 0.0010.93 ±\pm 0.8910.49 ±\pm 1.18
1690.00 ±\pm 0.0090.00 ±\pm 0.0090.00 ±\pm 0.0012.80 ±\pm 1.1511.73 ±\pm 0.7490.00 ±\pm 0.0011.97 ±\pm 0.7813.28 ±\pm 1.10
3290.00 ±\pm 0.0090.00 ±\pm 0.0090.00 ±\pm 0.0015.39 ±\pm 1.2414.71 ±\pm 1.0290.00 ±\pm 0.0014.90 ±\pm 1.6115.32 ±\pm 0.59
6490.00 ±\pm 0.0090.00 ±\pm 0.0090.00 ±\pm 0.0016.93 ±\pm 0.2916.74 ±\pm 0.4090.00 ±\pm 0.0017.14 ±\pm 0.8318.01 ±\pm 0.47
9690.00 ±\pm 0.0090.00 ±\pm 0.0090.00 ±\pm 0.0018.13 ±\pm 0.2416.97 ±\pm 0.2090.00 ±\pm 0.0017.63 ±\pm 0.5018.67 ±\pm 0.46

Table 7. Task accuracy (%) for CNN in Setting 2 at shared-encoder depth 1. Each entry is mean ±\pm sample standard deviation over five random seeds.

Table 8: Task accuracy (%) for CNN in Setting 2 at shared-encoder depth 2. Each entry is mean ±\pm sample standard deviation over five random seeds.

Channel widthA1B1A_1B_1 A1A_1A1B1A_1B_1 B1B_1A1B2A_1B_2 A1A_1A1B2A_1B_2 B2B_2A2B1A_2B_1 A2A_2A2B1A_2B_1 B1B_1A2B2A_2B_2 A2A_2A2B2A_2B_2 B2B_2
172.50 ±\pm 35.1072.36 ±\pm 35.0486.07 ±\pm 5.1810.09 ±\pm 0.1310.08 ±\pm 0.1278.11 ±\pm 26.5910.13 ±\pm 0.229.61 ±\pm 0.67
290.00 ±\pm 0.0090.01 ±\pm 0.0189.84 ±\pm 0.3710.13 ±\pm 0.1611.14 ±\pm 1.9189.89 ±\pm 0.2511.51 ±\pm 1.9210.78 ±\pm 1.12
490.00 ±\pm 0.0090.00 ±\pm 0.0090.00 ±\pm 0.0011.72 ±\pm 0.9511.96 ±\pm 1.1590.00 ±\pm 0.0015.58 ±\pm 1.2813.91 ±\pm 1.30
890.00 ±\pm 0.0090.00 ±\pm 0.0090.00 ±\pm 0.0016.12 ±\pm 1.6915.04 ±\pm 1.7390.00 ±\pm 0.0018.20 ±\pm 0.9718.60 ±\pm 1.83
1690.00 ±\pm 0.0090.00 ±\pm 0.0090.00 ±\pm 0.0021.29 ±\pm 0.7619.79 ±\pm 0.7390.00 ±\pm 0.0021.86 ±\pm 0.2122.71 ±\pm 0.80
3290.00 ±\pm 0.0090.00 ±\pm 0.0090.00 ±\pm 0.0024.59 ±\pm 1.1323.00 ±\pm 0.7890.00 ±\pm 0.0025.25 ±\pm 0.4626.79 ±\pm 0.61
6490.00 ±\pm 0.0090.00 ±\pm 0.0090.00 ±\pm 0.0028.88 ±\pm 0.6827.24 ±\pm 0.9390.00 ±\pm 0.0029.01 ±\pm 0.9830.49 ±\pm 1.00
9690.00 ±\pm 0.0090.04 ±\pm 0.0590.00 ±\pm 0.0031.49 ±\pm 0.7429.97 ±\pm 0.6590.00 ±\pm 0.0030.92 ±\pm 0.8932.60 ±\pm 0.79

Table 8. Task accuracy (%) for CNN in Setting 2 at shared-encoder depth 2. Each entry is mean ±\pm sample standard deviation over five random seeds.

Channel widthA1B1A_1B_1A1B2A_1B_2A2B1A_2B_1A2B2A_2B_2
A1A_1B1B_1A1A_1B2B_2A2A_2B1B_1A2A_2B2B_2
190.00±0.0090.00 \pm0.0089.99±0.0289.99 \pm0.0289.83±0.3889.83 \pm0.3810.79±1.0110.79 \pm1.0111.69±2.3511.69 \pm2.3590.00±0.0090.00 \pm0.0012.58±0.7612.58 \pm0.7611.19±1.6511.19 \pm1.65
290.00±0.0090.00 \pm0.0090.00±0.0090.00 \pm0.0089.97±0.0889.97 \pm0.0813.74±2.2013.74 \pm2.2014.16±1.9014.16 \pm1.9089.99±0.0389.99 \pm0.0315.01±1.3715.01 \pm1.3715.09±1.8215.09 \pm1.82
490.00±0.0090.00 \pm0.0090.00±0.0090.00 \pm0.0090.00±0.0090.00 \pm0.0018.30±2.4718.30 \pm2.4718.75±1.7418.75 \pm1.7490.00±0.0090.00 \pm0.0020.82±1.5820.82 \pm1.5821.16±1.8621.16 \pm1.86
890.00±0.0090.00 \pm0.0090.00±0.0090.00 \pm0.0090.00±0.0090.00 \pm0.0027.00±2.3727.00 \pm2.3726.42±1.7226.42 \pm1.7290.00±0.0090.00 \pm0.0030.51±1.8730.51 \pm1.8731.81±2.5531.81 \pm2.55
1690.01±0.0290.01 \pm0.0290.00±0.0090.00 \pm0.0090.00±0.0090.00 \pm0.0041.44±3.0141.44 \pm3.0136.53±1.5836.53 \pm1.5890.00±0.0090.00 \pm0.0039.90±1.0039.90 \pm1.0042.64±0.7442.64 \pm0.74
3291.51±0.5391.51 \pm0.5390.88±0.1590.88 \pm0.1590.92±0.1190.92 \pm0.1152.97±1.1752.97 \pm1.1749.77±1.4049.77 \pm1.4090.90±0.0490.90 \pm0.0449.04±1.0949.04 \pm1.0951.01±1.0951.01 \pm1.09
6494.14±0.7694.14 \pm0.7692.70±0.3692.70 \pm0.3691.00±0.1591.00 \pm0.1564.26±1.6164.26 \pm1.6163.29±2.2963.29 \pm2.2991.01±0.0691.01 \pm0.0653.07±0.7753.07 \pm0.7755.66±0.7555.66 \pm0.75
9697.01±0.9297.01 \pm0.9295.06±0.8595.06 \pm0.8590.81±0.2190.81 \pm0.2173.45±1.9673.45 \pm1.9671.33±1.7871.33 \pm1.7890.83±0.1690.83 \pm0.1654.53±0.6354.53 \pm0.6356.86±0.6256.86 \pm0.62

Table 9. Task accuracy (%) for CNN in Setting 2 at shared-encoder depth 3. Each entry is mean ±\pm sample standard deviation over five random seeds.

Channel widthA1B1A_1B_1A1B2A_1B_2A2B1A_2B_1A2B2A_2B_2
A1A_1B1B_1A1A_1B2B_2A2A_2B1B_1A2A_2B2B_2
190.00±0.0090.00 \pm0.0089.99±0.0389.99 \pm0.0389.99±0.0289.99 \pm0.0215.66±2.3315.66 \pm2.3315.94±2.1515.94 \pm2.1590.00±0.0090.00 \pm0.0016.49±1.5316.49 \pm1.5317.09±1.7617.09 \pm1.76
290.00±0.0090.00 \pm0.0090.00±0.0090.00 \pm0.0090.00±0.0090.00 \pm0.0024.17±3.2624.17 \pm3.2621.59±2.2021.59 \pm2.2090.00±0.0090.00 \pm0.0028.97±2.8628.97 \pm2.8630.03±3.0330.03 \pm3.03
490.06±0.0690.06 \pm0.0690.46±0.4890.46 \pm0.4890.14±0.2790.14 \pm0.2740.38±2.7240.38 \pm2.7239.33±2.2739.33 \pm2.2790.44±0.3490.44 \pm0.3441.51±2.2741.51 \pm2.2744.13±3.2444.13 \pm3.24
892.26±0.6392.26 \pm0.6391.53±0.1691.53 \pm0.1690.95±0.1490.95 \pm0.1457.24±1.9257.24 \pm1.9255.01±1.4855.01 \pm1.4890.96±0.0890.96 \pm0.0851.32±0.9551.32 \pm0.9554.04±0.2954.04 \pm0.29
1698.34±0.5198.34 \pm0.5196.32±0.6796.32 \pm0.6790.32±0.1890.32 \pm0.1878.80±2.1378.80 \pm2.1375.95±2.0475.95 \pm2.0490.50±0.1090.50 \pm0.1054.10±0.2654.10 \pm0.2657.36±0.2657.36 \pm0.26
32100.00±0.00100.00 \pm0.0099.98±0.0299.98 \pm0.0292.31±1.3192.31 \pm1.3199.28±0.3499.28 \pm0.3498.79±0.6598.79 \pm0.6591.08±0.6791.08 \pm0.6761.91±0.6061.91 \pm0.6064.54±1.0064.54 \pm1.00
64100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.0099.99±0.0299.99 \pm0.02100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.0099.76±0.3999.76 \pm0.3998.33±0.5598.33 \pm0.5598.11±0.4798.11 \pm0.47
96100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00

Table 10. Task accuracy (%) for CNN in Setting 2 at shared-encoder depth 4. Each entry is mean ±\pm sample standard deviation over five random seeds.

Channel widthA1B1A_1B_1A1B2A_1B_2A2B1A_2B_1A2B2A_2B_2
A1A_1B1B_1A1A_1B2B_2A2A_2B1B_1A2A_2B2B_2
190.00±0.0090.00 \pm0.0090.33±0.4590.33 \pm0.4590.01±0.0290.01 \pm0.0230.58±1.7730.58 \pm1.7728.45±2.1228.45 \pm2.1290.13±0.2590.13 \pm0.2527.40±3.2527.40 \pm3.2528.66±2.7028.66 \pm2.70
292.48±0.8092.48 \pm0.8093.91±1.0593.91 \pm1.0590.37±0.3390.37 \pm0.3358.91±2.0958.91 \pm2.0954.17±3.0554.17 \pm3.0590.56±0.3090.56 \pm0.3045.57±1.3945.57 \pm1.3948.83±1.1448.83 \pm1.14
498.00±0.5798.00 \pm0.5798.71±0.7698.71 \pm0.7690.81±0.2490.81 \pm0.2488.21±0.8088.21 \pm0.8087.47±1.4287.47 \pm1.4291.67±0.6691.67 \pm0.6659.50±1.9759.50 \pm1.9763.40±1.4863.40 \pm1.48
8100.00±0.01100.00 \pm0.0199.98±0.0299.98 \pm0.0298.28±0.3798.28 \pm0.3799.75±0.1099.75 \pm0.1099.45±0.0599.45 \pm0.0598.24±0.5198.24 \pm0.5193.53±0.8993.53 \pm0.8993.47±0.3393.47 \pm0.33
16100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.01100.00 \pm0.01100.00±0.00100.00 \pm0.00
32100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00
64100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00
96100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00

Table 11. Task accuracy (%) for CNN in Setting 2 at shared-encoder depth 5. Each entry is mean ±\pm sample standard deviation over five random seeds.

Channel widthA1B1A_1B_1A1B2A_1B_2A2B1A_2B_1A2B2A_2B_2
A1A_1B1B_1A1A_1B2B_2A2A_2B1B_1A2A_2B2B_2
195.73±0.9295.73 \pm0.9298.33±0.6398.33 \pm0.6390.42±0.6390.42 \pm0.6351.35±9.8551.35 \pm9.8559.09±4.8959.09 \pm4.8994.13±1.1494.13 \pm1.1453.93±1.5153.93 \pm1.5154.85±3.2254.85 \pm3.22
299.85±0.0999.85 \pm0.0999.81±0.1099.81 \pm0.1096.75±1.0996.75 \pm1.0991.22±2.2391.22 \pm2.2390.58±1.4790.58 \pm1.4798.04±1.0798.04 \pm1.0786.73±2.3986.73 \pm2.3987.66±2.4787.66 \pm2.47
4100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.0099.95±0.0499.95 \pm0.04100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.0099.89±0.0699.89 \pm0.0699.75±0.1199.75 \pm0.1199.77±0.1899.77 \pm0.18
8100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00
16100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00
32100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00
64100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00
96100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00

Table 12. Task accuracy (%) for CNN in Setting 2 at shared-encoder depth 6. Each entry is mean ±\pm sample standard deviation over five random seeds.

Channel widthA1B1A_1B_1A1B2A_1B_2A2B1A_2B_1A2B2A_2B_2
A1A_1B1B_1A1A_1B2B_2A2A_2B1B_1A2A_2B2B_2
199.17±0.3199.17 \pm0.3199.68±0.1199.68 \pm0.1193.61±0.4193.61 \pm0.4176.49±4.3176.49 \pm4.3176.18±2.5776.18 \pm2.5798.76±0.4698.76 \pm0.4669.54±4.6869.54 \pm4.6871.84±2.8771.84 \pm2.87
2100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.0099.92±0.1299.92 \pm0.1299.95±0.0799.95 \pm0.0799.92±0.0399.92 \pm0.0399.83±0.0899.83 \pm0.0899.24±0.3699.24 \pm0.3699.24±0.4099.24 \pm0.40
4100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00
8100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00
16100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00
32100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00
64100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00
96100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00100.00±0.00100.00 \pm0.00

Table 13. Task accuracy (%) for CNN in Setting 2 at shared-encoder depth 7. Each entry is mean ±\pm sample standard deviation over five random seeds.

Detailed Language Task Accuracies

Tables 14–16 report the accuracy of each task separately in the four task-pair contexts across LoRA ranks rr. Each context has two columns for its active tasks AiA_i and BjB_j; the task assignments follow Table 3. Values are percentages, reported as mean ±\pm sample standard deviation over three random seeds (denominator 3−13-1), 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.

LoRA rank rrA1B1A_1B_1A1B2A_1B_2A2B1A_2B_1A2B2A_2B_2
A1A_1B1B_1A1A_1B2B_2A2A_2B1B_1A2A_2B2B_2
195.32±0.1495.32 \pm0.1490.85±0.8590.85 \pm0.8595.52±0.1895.52 \pm0.1889.15±0.9689.15 \pm0.9693.44±0.2193.44 \pm0.2191.50±0.4091.50 \pm0.4094.29±0.4394.29 \pm0.4389.98±0.9289.98 \pm0.92
297.24±0.3797.24 \pm0.3794.43±0.4594.43 \pm0.4597.42±0.1497.42 \pm0.1494.46±0.0594.46 \pm0.0596.22±0.0896.22 \pm0.0895.24±0.6095.24 \pm0.6096.25±0.0896.25 \pm0.0893.86±0.2793.86 \pm0.27
498.80±0.1198.80 \pm0.1197.88±0.2497.88 \pm0.2498.74±0.0698.74 \pm0.0697.36±0.1997.36 \pm0.1998.01±0.2298.01 \pm0.2297.52±0.2097.52 \pm0.2098.05±0.1198.05 \pm0.1196.89±0.3496.89 \pm0.34
899.51±0.0399.51 \pm0.0398.87±0.0898.87 \pm0.0899.27±0.0599.27 \pm0.0598.39±0.0198.39 \pm0.0198.92±0.0698.92 \pm0.0698.83±0.0798.83 \pm0.0798.99±0.1198.99 \pm0.1198.54±0.0398.54 \pm0.03
1699.52±0.0499.52 \pm0.0498.88±0.0898.88 \pm0.0899.38±0.0799.38 \pm0.0798.73±0.0598.73 \pm0.0598.98±0.0498.98 \pm0.0498.89±0.0598.89 \pm0.0598.93±0.0298.93 \pm0.0298.53±0.1098.53 \pm0.10
3299.92±0.0299.92 \pm0.0299.72±0.0599.72 \pm0.0599.97±0.0299.97 \pm0.0299.66±0.0399.66 \pm0.0399.74±0.0899.74 \pm0.0899.61±0.0199.61 \pm0.0199.63±0.0499.63 \pm0.0499.72±0.0399.72 \pm0.03
6499.97±0.0199.97 \pm0.0199.86±0.0299.86 \pm0.0299.99±0.0199.99 \pm0.0199.83±0.0199.83 \pm0.0199.87±0.0499.87 \pm0.0499.81±0.0199.81 \pm0.0199.82±0.0299.82 \pm0.0299.87±0.0199.87 \pm0.01

Table 14. Task accuracy (%) for BERT in Setting 2: A1A_1 = PAWS-X-en, A2A_2 = PAWS-X-fr, B1B_1 = PAWS-X-ja, and B2B_2 = PAWS-X-ko. Each entry is mean ±\pm sample standard deviation over three random seeds.

LoRA rank rrA1B1A_1B_1A1B2A_1B_2A2B1A_2B_1A2B2A_2B_2
A1A_1B1B_1A1A_1B2B_2A2A_2B1B_1A2A_2B2B_2
199.82±0.0899.82 \pm0.0899.81±0.1599.81 \pm0.1599.41±0.1099.41 \pm0.1063.37±2.4663.37 \pm2.4690.26±0.6490.26 \pm0.6499.19±0.1499.19 \pm0.1490.79±0.6390.79 \pm0.6345.68±0.8145.68 \pm0.81
299.96±0.0299.96 \pm0.0299.96±0.0499.96 \pm0.0499.66±0.0899.66 \pm0.0882.93±2.4682.93 \pm2.4697.41±0.4997.41 \pm0.4999.80±0.0999.80 \pm0.0995.63±0.5195.63 \pm0.5170.18±2.1470.18 \pm2.14
499.99±0.0299.99 \pm0.0299.98±0.0499.98 \pm0.0499.83±0.1099.83 \pm0.1095.57±0.2995.57 \pm0.2999.22±0.1899.22 \pm0.1899.93±0.0399.93 \pm0.0397.70±0.3897.70 \pm0.3891.53±0.5991.53 \pm0.59
899.99±0.0299.99 \pm0.0299.98±0.0399.98 \pm0.0399.90±0.0099.90 \pm0.0098.76±0.1098.76 \pm0.1099.68±0.0899.68 \pm0.0899.98±0.0299.98 \pm0.0299.30±0.2299.30 \pm0.2297.89±0.2297.89 \pm0.22
1699.99±0.0299.99 \pm0.0299.99±0.0299.99 \pm0.0299.99±0.0299.99 \pm0.0299.46±0.1399.46 \pm0.1399.68±0.1499.68 \pm0.1499.98±0.0299.98 \pm0.0299.61±0.1799.61 \pm0.1799.44±0.0599.44 \pm0.05
3299.99±0.0299.99 \pm0.0299.99±0.0199.99 \pm0.0199.96±0.0899.96 \pm0.0898.94±0.6798.94 \pm0.6799.81±0.0299.81 \pm0.0299.98±0.0499.98 \pm0.0499.82±0.1199.82 \pm0.1199.48±0.2599.48 \pm0.25
6499.99±0.0299.99 \pm0.02100.00±0.00100.00 \pm0.0099.98±0.0499.98 \pm0.0499.60±0.0399.60 \pm0.0399.74±0.1099.74 \pm0.1099.96±0.0299.96 \pm0.0299.79±0.1199.79 \pm0.1199.67±0.1299.67 \pm0.12

Table 15. Final-epoch training accuracy (%) for BERT in Setting 3: A1A_1 = SST-2, A2A_2 = CommonsenseQA, B1B_1 = MRPC, and B2B_2 = MathQA. Each entry is mean ±\pm sample standard deviation over three random seeds.

LoRA rank rrA1B1A_1B_1A1B2A_1B_2A2B1A_2B_1A2B2A_2B_2
A1A_1B1B_1A1A_1B2B_2A2A_2B1B_1A2A_2B2B_2
198.27±0.0998.27 \pm0.0998.89±0.1298.89 \pm0.1297.48±0.1797.48 \pm0.1797.58±0.0897.58 \pm0.0867.79±0.4567.79 \pm0.4599.00±0.0699.00 \pm0.0661.76±0.3361.76 \pm0.3399.07±0.0399.07 \pm0.03
299.92±0.0299.92 \pm0.0299.52±0.1299.52 \pm0.1299.78±0.0299.78 \pm0.0299.02±0.1499.02 \pm0.1483.39±0.4583.39 \pm0.4599.79±0.0599.79 \pm0.0579.22±0.2979.22 \pm0.2999.71±0.0799.71 \pm0.07
499.90±0.0399.90 \pm0.0399.63±0.1099.63 \pm0.1099.94±0.0299.94 \pm0.0299.48±0.1399.48 \pm0.1391.57±0.2891.57 \pm0.2899.92±0.0599.92 \pm0.0587.84±0.2787.84 \pm0.2799.97±0.0399.97 \pm0.03
899.98±0.0299.98 \pm0.0299.91±0.0799.91 \pm0.0799.98±0.0299.98 \pm0.0299.74±0.0799.74 \pm0.0796.52±0.2596.52 \pm0.2599.88±0.0299.88 \pm0.0295.72±0.2595.72 \pm0.2599.87±0.0099.87 \pm0.00
16100.00±0.00100.00 \pm0.0099.99±0.0299.99 \pm0.0299.99±0.0299.99 \pm0.0299.86±0.0599.86 \pm0.0599.10±0.1799.10 \pm0.1799.97±0.0099.97 \pm0.0099.22±0.0799.22 \pm0.0799.96±0.0299.96 \pm0.02
32100.00±0.00100.00 \pm0.0099.99±0.0299.99 \pm0.02100.00±0.00100.00 \pm0.0099.99±0.0299.99 \pm0.0299.94±0.0599.94 \pm0.05100.00±0.00100.00 \pm0.0099.93±0.0399.93 \pm0.0399.98±0.0299.98 \pm0.02
64100.00±0.00100.00 \pm0.0099.99±0.0299.99 \pm0.02100.00±0.00100.00 \pm0.0099.98±0.0299.98 \pm0.0299.99±0.0299.99 \pm0.02100.00±0.00100.00 \pm0.0099.97±0.0399.97 \pm0.0399.99±0.0299.99 \pm0.02

Table 16. Task accuracy (%) for Qwen3-8B in Setting 4: A1A_1 = MathQA, A2A_2 = MATH, B1B_1 = RACE-Middle, and B2B_2 = LogiQA2.0. Each entry is mean ±\pm sample standard deviation over three random seeds.

References

  1. [3][Bell, 1964] John Stewart Bell. On the einstein-podolsky-rosen paradox. Physics, 1:195–200, 1964.
  2. [8][Deng, 2018] Dong-Ling Deng. Machine learning detection of bell nonlocality in quantum many-body systems. Physical review letters, 120(24):240402, 2018.
  3. [11][Fine, 1982] Arthur Fine. Hidden variables, joint probability, and the bell inequalities. Physical Review Letters, 48(5):291, 1982.DOI
  4. [19][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.arxiv.org/abs/1705.00813
  5. [22][Sener and Koltun, 2018] Ozan Sener and Vladlen Koltun. Multi-task learning as multi-objective optimization. Advances in neural information processing systems, 31, 2018.arxiv.org/abs/1810.04650

Paper details

vlnc:W_zw4zrtng
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 11

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents