Skip to content

Menu

WorksComputer Science

J-Comm: Jacobian-Guided Latent Communication between LLM Agents

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_6exjv6qa. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

Latent communication requires both an effective continuous reasoning process and an interface through which an external model can leverage its intermediate computation. We present J-Comm, a framework comprising two core components. First, a training-free Geometric Agreement for Latent Reasoning (GEAR) reweights token candidates over existing model embeddings, which monotonically optimizes geometric consensus among candidate tokens in embedding space at each step. Second, we introduce an H+J (Hidden-and-Jacobian) communication interface that gives the Receiver two complementary views of the Sender's reasoning. The H channel supplies continuous inputs derived from feedback distributions, while the J channel conveys intermediate-state cues in vocabulary-indexed Jacobian-lens coordinates. Intuitively, H provides inputs for the Receiver to reason from, while J offers additional guidance within its computation. The Receiver reconstructs these cues using its own dictionary and injects them into intermediate layers during prefill, enabling communication without sharing key-value caches or requiring identical model widths. In Qwen3-8B to Qwen3-4B communication, J-Comm achieves the highest mean score across seven benchmarks, including 94.80% on MATH500, 54.55% on GPQA-Diamond, 73.33% on AIME2024+2025, and 62.93% success on ALFWorld. Compared with TextMAS, it improves performance by 1.29-8.59 percentage points and reduces generated text tokens by 19.2-74.8%.

Introduction

Chain-of-thought prompting elicits intermediate reasoning steps in text Wei et al., [29]. Multi-agent systems use text to exchange and revise responses through debate or conversation [12, 30]. Latent communication lets agents pass probability-weighted embeddings Pham et al., [25], learned representations [13, 32], or shared working memory Zou et al., [33]. StateBridge aligns message states with input embeddings through a closed-form map Peng et al., [24]. Here we consider both how the Sender constructs its continuous reasoning steps and which parts of that computation the Receiver receives. We study these choices together: the inputs used to advance a reasoning trajectory also determine the messages passed between models.

Coconut feeds the last hidden state back as the next input Hao et al., [15]. Soft Thinking instead constructs a continuous input by averaging candidate token embeddings under the model’s predictive distribution Zhang et al., [31]. The weights do not explicitly reflect whether the candidate embeddings point in similar directions. The same probability profile can place mass on candidate sets with different geometries. GEometric Agreement for Latent Reasoning (GEAR) uses this geometry when constructing the next input. Each candidate receives support from the candidate set, weighted by the candidates’ probabilities and embedding similarities. We multiply its probability by this support, normalize the weights, and feed back a mixture of the original token embeddings. The rule uses the frozen model’s existing embedding table and requires no trained feedback module.

J-COMM constructs its messages from the steps that the Sender actually consumes. For each retained step, we pair the feedback distribution with the intermediate state produced after its mixture enters the model. The HH channel applies the same weights to the Receiver’s token embeddings, following the receiver-side embedding construction used in CIPHER Pham et al., [25]. This gives the Receiver an input representation of the consumed distribution. The JJ channel exposes selected readouts of the paired intermediate state at a later layer. Both channels thus refer to the same Sender step and act at different depths in the Receiver. Prior work also communicates by combining or replacing intermediate activations Ramesh and Li, [26]. Our JJ readouts use the Jacobian lens Gurnee et al., [14]. Shared token IDs identify anchors in the Sender’s and Receiver’s own dictionaries. The Sender transmits the selected IDs and signed readouts; the Receiver reconstructs a vector with its own dictionary and adds a norm-scaled residual update during prefill. The protocol allows different hidden widths, while keeping each model’s KV cache local. Its correspondence is defined by shared token identities and does not require matching activation coordinates.

Image not extracted

Figure 1. Overview of J-COMM. GEAR reweights candidate probabilities by geometric agreement and feeds the resulting embedding mixture into the Sender’s next position. The final MM consumed steps supply two messages: HH maps their feedback distributions into Receiver input embeddings, while JJ carries token-anchor IDs and signed intermediate-state readouts for reconstruction in the Receiver’s own dictionary. The JJ update is added at the MM message positions during prefill. Top-P denotes a fixed number of anchors (P=32P = 32), distinct from nucleus sampling. The two displayed blocks use index 26 in our main setting.

Our contributions are:

  1. GEAR, a continuous reasoning recurrence that uses probability-weighted geometric support to construct the next input from candidate token embeddings.

  1. An H+JH+J communication protocol that pairs consumed feedback distributions with intermediate token-coordinate readouts and forms HH inputs and JJ residual writes using the Receiver’s own embeddings and Jacobian-lens dictionary.

Background and Problem Setting

Latent Reasoning and Communication

Let SS and RR denote a Sender and a Receiver, with hidden widths dSd_S and dRd_R. Both agents receive the task input with their own role prompts. The Sender performs continuous reasoning; the Receiver receives a sequence of latent messages and generates the answer. We first define the interface for a shared token vocabulary V\mathcal{V} with corresponding token IDs; Appendix B.§ 1 extends the correspondence across vocabularies. The models’ embedding vectors and hidden widths may differ.

Write Evm∈RdmE^m_v \in\mathbb{R}^{d_m} for token vv’s input embedding in model m∈{S,R}m \in\{S,R\}, and uvmu^m_v for its unembedding vector. At iteration tt, the Sender’s final normalized state htSh^S_t produces logits zt=UShtSz_t = U^S h^S_t. A continuous reasoning rule converts these logits or states into an embedding xt+1Sx^S_{t+1}, which is consumed at the next position while updating the Sender’s local key–value (KV) cache. This increases inference-time computation without generating a discrete reasoning token at each step.

The communication interface is distinct from this recurrence. We retain MM steps from a trajectory of length TT and construct MM Receiver input vectors, together with MM intermediate-layer messages. Thus, the number of communicated positions can remain fixed while Sender computation varies.

Jacobian-Lens Coordinates

The Jacobian lens relates an intermediate residual stream to the model’s later computation Gurnee et al., [14]. For model mm, let rℓ,amr^m_{\ell,a} be the residual at layer ℓ\ell and position aa, and rL,bmr^m_{L,b} the pre-final-normalization residual at a later position bb. An averaged Jacobian has the form

Jℓm=Ec,a,b≥a[∂rL,bm∂rℓ,a],(1)\mathcal{J}_{\ell}^{m} = \mathbb{E}_{c,a,b\ge a}\left[\frac{\partial r_{L,b}^{m}}{\partial r_{\ell,a}}\right], \tag*{(1)}

where cc ranges over calibration contexts. Combining this map with token unembedding vectors yields directions associated with the model’s disposition to verbalize particular tokens. The original work studies sparsely active directions in this dictionary as J-space and reports evidence of workspace-like functions. Here we use the dictionary to define token-indexed measurements of an intermediate state.

Dictionary used in our implementation. Our cached lenses target the pre-final-RMSNorm residual. We fold the final RMSNorm gain γm\gamma_m into each unembedding vector and define a unit anchor

bℓ,vm=(Jℓm)⊤diag⁡(γm)uvm∥(Jℓm)⊤diag⁡(γm)uvm∥2.(2)b_{\ell,v}^{m} = \frac{(\mathcal{J}_{\ell}^{m})^{\top}\operatorname{diag}(\gamma_m)u_{v}^{m}}{\left\|(\mathcal{J}_{\ell}^{m})^{\top}\operatorname{diag}(\gamma_m)u_{v}^{m}\right\|_{2}}. \tag*{(2)}

The token ID vv names the coordinate; the vector bℓ,vmb_{\ell,v}^{m} is specific to the model and layer. These anchors are generally nonorthogonal. For a selected support II, the local communication space is

Sℓ,Im={∑v∈Iavbℓ,vm:av∈R}.(3)\mathcal{S}_{\ell,I}^{m} = \left\{\sum_{v\in I} a_v b_{\ell,v}^{m}: a_v\in\mathbb{R}\right\}. \tag*{(3)}

Each message selects a small set of anchors from this dictionary. The transmitted values are inner products with these anchors, rather than coefficients in an anchor expansion. Their nonorthogonality matters when reconstructing a vector from the readouts.

Geometric Agreement for Latent Reasoning

Candidates and Geometric Support

We first apply temperature scaling and candidate filtering to ztz_t, obtaining a candidate set CtC_t and normalized probabilities pt,ip_{t,i}. Soft Thinking would feed back ∑ipt,iEiS\sum_i p_{t,i}E_i^S. GEAR additionally evaluates agreement within this candidate set. Let E^iS=EiS/∥EiS∥2\widehat{E}_i^S=E_i^S/\|E_i^S\|_2. We define

Kt,ij=exp⁡((E^iS)⊤E^jS−1),(4)K_{t,ij}=\exp\left((\widehat{E}_i^S)^{\top}\widehat{E}_j^S-1\right), \tag*{(4)}
st,i=∑j∈CtKt,ijpt,j.(5)s_{t,i}=\sum_{j\in C_t}K_{t,ij}p_{t,j}. \tag*{(5)}

An embedding receives more support when it is close to candidates that carry substantial probability mass. The diagonal is included: Kt,ii=1K_{t,ii}=1. Similarity is computed using normalized embeddings, while the feedback vector below uses the original embeddings.

Agreement-Weighted Feedback

We combine the predictive probability and geometric support multiplicatively:

qt=pt⊙(Ktpt)pt⊤Ktpt.(6)q_t=\frac{p_t\odot(K_tp_t)}{p_t^{\top}K_tp_t}. \tag*{(6)}

All kernel entries are positive, so qtq_t is a normalized distribution with the same nonzero support as ptp_t. The next continuous input is

xt+1S=∑i∈Ctqt,iEiS.(7)x_{t+1}^{S}=\sum_{i\in C_t}q_{t,i}E_i^S. \tag*{(7)}

The Sender consumes this vector through its usual transformer forward pass and updates its own KV cache. No sampled token or learned feedback module is required. We call (6) the geometric agreement feedback (GAF) rule, and the resulting recurrent reasoning procedure GEAR.

Interpretation. For pt,i>0p_{t,i}>0, the ratio qt,i/pt,iq_{t,i}/p_{t,i} equals the candidate’s support divided by the probability-weighted mean support. Candidates with above-average support therefore gain relative weight. Because self-support contributes pt,i2p_{t,i}^{2} to the unnormalized weight, the rule combines probability sharpening with interactions among distinct candidates. It uses a fixed cosine kernel rather than learned query, key, or value projections. For k=∣Ct∣k=|C_t| candidates, constructing the kernel costs O(k2dS)O(k^{2}d_S); our configuration uses at most 10 candidates.

One-Step Geometric Selectivity

Fix the candidate set and suppress the step index tt. Its geometric agreement is

C(p)=p⊤Kp=Ei,j∼p[Kij].(8)C(p)=p^{\top}Kp=\mathbb{E}_{i,j\sim p}[K_{ij}]. \tag*{(8)}

GAF is a Baum–Eagon growth transformation: C(q)≥C(p)C(q)\ge C(p), with equality exactly when q=pq=p [8]. It is also a symmetric discrete-time replicator update [16, 22]. Appendix § 10 gives the supporting derivation and an agreement-based bound on the change in the consumed embedding mixture. Theorem 1 characterizes how target affinity and agreement among the other candidates determine the target’s probability gain in one GAF step; the full statement and proof appear in Appendix D.

Adaptive Computation and Paired States

The Sender runs for at least 40 consumed latent steps, independently of the communicated suffix length MM. After this minimum, it stops before consuming a step whose highest-weight qq candidate is the end-of-thinking token, or after sustained low predictive entropy; a hard cap bounds computation. The exact policy appears in Appendix A.

We retain the final MM consumed feedback distributions. For each qtq_t, we also retain rℓS,t+1Sr^{S}_{\ell_S,t+1}, the intermediate residual produced when xt+1Sx^{S}_{t+1} is consumed. Thus qtq_t records the weights used to construct xt+1Sx^{S}_{t+1}, and rℓS,t+1Sr^{S}_{\ell_S,t+1} records the resulting intermediate computation. The retained pairs are

T={(qt,rℓS,t+1S)}t=T−MT−1.(9)\mathcal{T} = \left\{(q_t,r^{S}_{\ell_S,t+1})\right\}_{t=T-M}^{T-1}. \tag*{(9)}

In the communication setting, the Sender hands off this trajectory without generating a text answer.

Dual-Channel Latent Communication

The retained pairs in Equation (9) provide the messages for both channels (Figure 1). HH maps the consumed feedback distribution to the Receiver’s input embeddings, where it is processed from the first layer. JJ carries token-indexed measurements of the intermediate state produced by that input and writes a reconstructed vector at a selected later layer. The Receiver therefore receives an input constructed from the feedback weights and readouts of the computation they induced.

H: Transporting the Consumed Distribution

For each retained qtq_t, we use the corresponding Receiver embeddings:

eˉtR=∑i∈Ctqt,iEiR,(10)\bar{e}^{R}_t = \sum_{i\in C_t} q_{t,i} E^{R}_i, \tag*{(10)}
Ht=rEReˉtR∥eˉtR∥2,(11)H_t = r^{R}_{E}\frac{\bar{e}^{R}_t}{\left\|\bar{e}^{R}_t\right\|_2}, \tag*{(11)}

where rERr^{R}_{E} is the fixed mean norm of Receiver input embeddings. The HH channel is [HT−M,…,HT−1][H_{T-M},\ldots,H_{T-1}]. The same probability weights thus construct inputs in the two models’ respective embedding spaces, without requiring dS=dRd_S=d_R. Unlike the Sender feedback in Equation (7), this cross-model input is norm calibrated.

The HH payload is an expected-embedding representation of qtq_t. This receiver-side construction follows CIPHER (Pham et al., [25]), with the mixture weights supplied by the consumed GEAR distribution and the norm calibrated to the Receiver embedding table.

J: Reading Intermediate Token Coordinates

The JJ channel uses the fixed Sender dictionary from Equation (2). For each retained intermediate state, we compute the signed normalized readout

ct(v)=(bℓS,vS)TrℓS,t+1S∥rℓS,t+1S∥2.(12)c_t(v)=\left(b^{S}_{\ell_S,v}\right)^{\mathsf{T}}\frac{r^{S}_{\ell_S,t+1}}{\left\|r^{S}_{\ell_S,t+1}\right\|_2}. \tag*{(12)}

We select ItI_t, the P=32P=32 shared nonspecial token IDs with the largest readout values. We rank the signed readouts by their values and retain these values directly. The message is the list

Jt={(v,ct(v)):v∈It}.(13)J_t=\left\{(v,c_t(v)):v\in I_t\right\}. \tag*{(13)}

The anchor dictionary is fixed after calibration, while the selected IDs and their values vary across steps and questions. These anchors are chosen from the eligible vocabulary, independently of the small candidate set used by GEAR.

Reconstruction in the Receiver’s Dictionary

Using the same IDs ItI_t, the Receiver retrieves its own anchor rows to form BℓR,ItR∈RP×dRB^{R}_{\ell_R,I_t}\in\mathbb{R}^{P\times d_R}. Let ct∈RPc_t\in\mathbb{R}^{P} stack the transmitted readouts in the same order. We reconstruct a vector using a regularized dual dictionary:

DℓR,ItR=(BℓR,ItR(BℓR,ItR)T+λIP)−1BℓR,ItR(14)D^{R}_{\ell_R,I_t}=\left(B^{R}_{\ell_R,I_t}\left(B^{R}_{\ell_R,I_t}\right)^{\mathsf{T}}+\lambda I_P\right)^{-1}B^{R}_{\ell_R,I_t} \tag*{(14)}
dℓR,tR=(DℓR,ItR)Tct.(15)d^{R}_{\ell_R,t}=\left(D^{R}_{\ell_R,I_t}\right)^{\mathsf{T}}c_t. \tag*{(15)}

Here λ=10−3\lambda=10^{-3}. Equivalently, dℓR,tRd^{R}_{\ell_R,t} minimizes

∥BℓR,ItRd−ct∥22+λ∥d∥22.\left\|B^{R}_{\ell_R,I_t}d-c_t\right\|_2^2+\lambda\left\|d\right\|_2^2.

This accounts for overlap among anchor directions; directly summing the anchors would generally mix their readouts. The token IDs select corresponding rows in the two dictionaries; the Receiver’s anchor geometry determines the reconstructed vector.

Magnitude calibration. To calibrate injection strength across layer-specific dictionaries, we compute

ρt=∥dℓref,tR∥2,ΔtR=ρtdℓR,tR∥dℓR,tR∥2,(16)\rho_t = \left\lVert d^{R}_{\ell_{\mathrm{ref}},t}\right\rVert_2,\qquad\Delta^{R}_{t} = \rho_t \frac{d^{R}_{\ell_R,t}}{\left\lVert d^{R}_{\ell_R,t}\right\rVert_2}, \tag*{(16)}

using a fixed Receiver reference lens at ℓref=29\ell_{\mathrm{ref}} = 29. The reference and target reconstructions use the same IDs and readouts. The reference layer calibrates magnitude; the actual write is at ℓR\ell_R.

Prefill-only write. The Receiver input consists of its question and role prompt, the MM vectors HtH_t, and an answer-generation cue. At the output of block ℓR\ell_R, each corresponding message-position residual rℓR,tRr^{R}_{\ell_R,t} is updated as

rℓR,tR←rℓR,tR+α∥rℓR,tR∥2ΔtR,(17)r^{R}_{\ell_R,t} \leftarrow r^{R}_{\ell_R,t} + \alpha\left\lVert r^{R}_{\ell_R,t}\right\rVert_2 \Delta^{R}_{t}, \tag*{(17)}

with α=1\alpha= 1. Here tt labels the Receiver message slot paired with Sender step tt, rather than an absolute sequence position. The update is added to the residual already produced by the Receiver. Only the message positions are edited during prefill. The Receiver then completes prefill and decodes normally from its own KV cache, with no further JJ writes during answer generation.

Finite-write analysis. Theorem Theorem 2 gives the selected-anchor readback and finite logit response, and characterizes output-order preservation under an endpoint-error bound. Appendix Appendix § 11 provides the full statement and proof.

Experiments

We evaluate geometric feedback, dual-channel communication, and transfer across model pairs. All experimental results are averaged over three runs. GAF in the tables denotes the geometric feedback rule used by GEAR.

Experimental Setup

Tasks and budgets. The primary pair is Qwen3-8B →\rightarrow Qwen3-4B. We evaluate GSM8K [10] (1,319 questions), MATH500 [19] (500), GPQA-Diamond [27] (198), MedQA-USMLE four-option test [18] (1,273), EvalPlus MBPP+ v0.2.0 [21] (378), AIME2024+2025 [20] (Hugging Face H4 2025) (60), and ALFWorld [28] (134 unseen tasks).

Image not extracted

Figure 1 (PDF p. 5).

Sender and Receiver text output caps are specified separately for each dataset in Appendix A.§ 2 (Table 4). ALFWorld uses a 2,048-token cap per agent per action turn, with at most 50 turns per episode. The adaptive latent Sender has a 32,768-step cap and communicates a suffix of at most MM consumed steps, with M=400M = 400 in the primary configuration.

Table 4.

Inference and scoring. Continuous Sender computation uses Hugging Face, and the primary Receiver uses vLLM 0.10.2 V0. The primary Qwen configuration reads and writes block 26, with frozen models and fixed Jacobian dictionaries; calibration and execution details appear in Appendix A.§ 1. Model execution uses bfloat16. Text decoding uses temperature 0.60.6, top-k=20k = 20, and top-p=0.95p = 0.95; latent candidate filtering follows Appendix A. Receiver backends and output caps are matched within each comparison. TextMAS uses cached HF Sender plans or vLLM-generated plans according to the configuration.

Mathematical answers use answer-equivalence scoring; multiple-choice answers use the final option letter; MBPP+ reports pass @1 on both base and additional EvalPlus tests. Length-truncated answers are scored as incorrect. The multiple-choice parser accepts a boxed option letter, optionally followed by option text, with the same scoring rule for every arm. The feedback figure reports question-paired 95% bootstrap intervals; the layer and communication-length figures report standard deviations across runs. Sender latent steps and generated text tokens are accounted for separately.

Controls. Receiver-only answers without a message, while TextMAS supplies the Sender’s generated plan. Identity40 uses 40 latent recurrence steps as proposed by LatentMAS (Zou et al., [33]), whereas Identity(TGAF) matches each question’s GAF step count. Both use Receiver block 26 in the primary H+JH + J comparisons. The paired HH and H+JH + J ablations reuse the same Sender trajectory. Null-slot controls use vocabulary-mean Receiver embeddings at the ordinary message radius; JJ-only adds the matched JJ update to these slots. Shuffled-JJ controls retain the recipient’s HH and intervention radius while taking JJ from a different question.

Primary Cross-Scale Results

GAF+H+J26H + J26 achieves the highest mean score among the compared methods on all seven benchmarks (Table 1 (PDF p. 7)). It reaches 94.54% on GSM8K, 94.80% on MATH500, 54.55% on GPQA-Diamond, 80.52% on MedQA, and 76.72% on MBPP+. The corresponding TextMAS scores are 93.25%, 93.20%, 45.96%, 78.55%, and 71.16%, giving gains of 1.29, 1.60, 8.59, 1.97, and 5.56 percentage points. On AIME2024+2025, GAF+H+J26H + J26 obtains 73.33%, compared with 72.78% for GAF+HH and 68.33% for TextMAS, a gain of 5.00 percentage points over text communication.

MethodGSM8KMATH500GPQA-DiamondMedQAMBPP+AIME24+25ALFWorld
Text MAS93.25 (ref.)93.20 (ref.)45.96 (ref.)78.55 (ref.)71.16 (ref.)68.33 (ref.)61.39 (ref.)
Receiver only86.58 (↓\downarrow36.5%)88.20 (↓\downarrow32.6%)39.90 (↓\downarrow22.5%)69.76 (↓\downarrow20.8%)72.22 (↓\downarrow27.6%)67.78 (↑\uparrow0.6%)49.25 (↓\downarrow55.8%)
Identity40+HH + J26J2686.73 (↓\downarrow36.6%)89.40 (↓\downarrow32.0%)39.39 (↓\downarrow22.5%)70.23 (↓\downarrow25.4%)71.16 (↓\downarrow26.7%)69.44 (↑\uparrow9.1%)53.73 (↓\downarrow56.4%)
Identity(TGAFT_{\mathrm{GAF}})+HH87.19 (↓\downarrow38.7%)89.00 (↓\downarrow34.4%)39.39 (↓\downarrow27.0%)71.25 (↓\downarrow26.9%)71.69 (↓\downarrow29.5%)65.00 (↑\uparrow1.4%)54.25 (↓\downarrow58.1%)
Identity(TGAFT_{\mathrm{GAF}})+HH + J26J2687.41 (↓\downarrow38.8%)89.00 (↓\downarrow35.3%)43.43 (↓\downarrow26.0%)70.15 (↓\downarrow27.5%)73.02 (↓\downarrow31.0%)71.11 (↓\downarrow3.6%)57.32 (↓\downarrow60.3%)
GAF+HGAF+H92.12 (↓\downarrow47.5%)93.60 (↓\downarrow54.5%)49.49 (↓\downarrow48.4%)78.40 (↓\downarrow54.1%)73.54 (↓\downarrow35.9%)72.78 (↓\downarrow8.0%)59.70 (↓\downarrow66.2%)
GAF+H+J26GAF+H + J2694.54 (↓\downarrow55.0%)94.80 (↓\downarrow54.4%)54.55 (↓\downarrow44.2%)80.52 (↓\downarrow58.3%)76.72 (↓\downarrow58.3%)73.33 (↓\downarrow19.2%)62.93 (↓\downarrow74.8%)

Table 1 (PDF p. 7). Qwen3-8B →\to Qwen3-4B results averaged over three runs. Cells report accuracy, pass@1, or ALFWorld success rate (%), followed by the percentage change in generated text tokens relative to TextMAS (↓\downarrow: fewer tokens; ↑\uparrow: more tokens). TextMAS includes Sender thinking and plan generation plus Receiver output; latent methods generate text at the Receiver. ALFWorld token totals include all decisions in each task. Bold marks the highest mean score in each column.

The complete method also exceeds both Identity40+H+J26H + J26 and the step-matched Identity(TGAF)+H+J26H+J26 across all seven tasks. On MATH500, for example, these two controls achieve 89.40% and 89.00%, compared with 94.80% for GAF+H+J26H + J26. The reported text-token reductions for GAF+H+J26H + J26 range from 19.2% on AIME to 74.8% on ALFWorld; on the five non-AIME static tasks, they range from 44.2% to 58.3%.

On ALFWorld, GAF+H+J26H + J26 achieves 62.93% success, followed by TextMAS at 61.39% and GAF+HH at 59.70%. Receiver-only and Identity40+H+J26H + J26 obtain 49.25% and 53.73%; the step-matched Identity+HH and Identity+H+J26H + J26 controls reach 54.25% and 57.32%. The complete method improves over TextMAS by 1.54 percentage points and over GAF+HH by 3.23 points.

Effect of Geometric Feedback

We compare GAF with Soft Thinking (q=pq = p) and self-only sharpening (qi∝pi2q_i \propto p_i^2), matching each control to the corresponding GAF trajectory length and candidate filter. All three methods use the final 40 positions, H+J26H + J26, and an 8,192-token Receiver cap. Figure 2 compares the Sender feedback rules under this shared communication configuration.

Image not extracted

Figure 2. Mean GAF accuracy gains over matched-step Soft Thinking and Self-only across three runs on MATH500 and GPQA-Diamond, with a fixed H+J26H + J26 interface. Error bars show question-paired 95% bootstrap intervals.

On MATH500, GAF improves accuracy by 3.40 percentage points over Soft Thinking and 3.20 over Self-only. The corresponding gains on GPQA-Diamond are 5.56 and 4.55 points. GAF outperforms both the unmodified probability mixture and self-only sharpening, supporting the use of interactions among candidate embeddings in the feedback rule.

Receiver Injection Layer

We hold the Sender readout block at 26 and compare Receiver write blocks 20, 26, and 29 (zero-based indices), together with an HH-only control. The three JJ arms share the Sender trajectory, top-32 anchor IDs and readouts, and per-position relative intervention radius; each reconstructs the direction with its target-layer dictionary. The write is applied to the 400 message positions during prefill.

Block 26 gives the highest mean accuracy, 73.33%, compared with 72.78% at block 20 and without JJ, and 71.67% at block 29 (Figure 3).

Image not extracted

Figure 3. Receiver-layer ablation on AIME2024+2025 with the same 400-position HH message. Points and error bars show mean ±\pm SD across three runs; the dashed line and band show the HH-only mean ±\pm SD. The HH-only and J26 results also appear in Table 1 (PDF p. 7).

Communication Length

Among the evaluated communication lengths, 400 positions gives the highest mean accuracy: 73.33% with a standard deviation of 1.67 percentage points (Figure 4). The 40-position result is 70.56%, giving an increase of approximately 2.8 percentage points at 400 positions. Increasing the communication length to 500 positions yields 72.78%. The GAF+H+J26GAF+H + J26 result on AIME2024+2025 in Table 1, the J26J26 point in Figure 3, and the M=400M = 400 point in Figure 4 use the same Sender cache and evaluation configuration.

Image not extracted

Figure 4. Communication-length ablation on AIME2024+2025 using GAF+H+J26GAF+H + J26 and a shared Sender cache. Points and error bars show mean ±\pm SD across three runs; the dashed line and band show the TextMAS mean ±\pm SD from Table 1.

External Two-Agent Baselines

We compare J-Comm with LatentMAS, State-Bridge, and CIPHER under the same Receiver backend and prompts (Table 2). LatentMAS uses its official latent recurrence and realignment; replaying the consumed Sender inputs in vLLM reconstructs its working-memory KV cache before the Receiver prompt. StateBridge uses a vLLM text plan, HF teacher-forced state extraction, and its official mapping with up to 64 post-thinking states. CIPHER communicates probability-weighted token embeddings.

Method\multicolumn{3}{c}{Qwen3-4B →\rightarrow 4B}\multicolumn{3}{c}{Qwen3-8B →\rightarrow 8B}
MATH500GPQA-DiamondAIME24+25MATH500GPQA-DiamondAIME24+25
GAF+H+J26H+J2692.0041.9268.3395.2049.4975.00
LatentMAS83.2038.3861.6786.8047.1051.67
StateBridge89.4045.4561.6793.2052.5068.33
CIPHER80.4035.3558.3384.2041.4161.67

Table 2. Homogeneous two-agent communication accuracy (%), averaged over three runs. GAF+H+J26H+J26 uses 400 communicated positions.

With two Qwen3-4B agents, J-Comm achieves 92.00% on MATH500, compared with 83.20% for LatentMAS, 89.40% for StateBridge, and 80.40% for CIPHER. On AIME, J-Comm reaches 68.33%, compared with 61.67%, 61.67%, and 58.33%, respectively. On GPQA, J-Comm obtains 41.92%, above LatentMAS (38.38%) and CIPHER (35.35%) and below StateBridge (45.45%).

With two Qwen3-8B agents, J-Comm achieves 95.20% on MATH500, compared with 86.80% for LatentMAS, 93.20% for StateBridge, and 84.20% for CIPHER. Its AIME accuracy is 75.00%, exceeding the three baselines at 51.67%, 68.33%, and 61.67%. On GPQA, J-Comm reaches 49.49%, compared with 47.10% for LatentMAS, 52.50% for StateBridge, and 41.41% for CIPHER. J-Comm leads the homogeneous MATH500 and AIME comparisons at both model scales, while StateBridge leads GPQA.

Cross-Family Communication

We transfer Qwen3-8B messages to Llama-3.2-3B-Instruct using token-string correspondence and native Receiver embeddings and Jacobian anchors (Appendix B.1). On GPQA-Diamond, H+JH+J obtains a mean of 75 correct answers out of 198, compared with 71 for HH, 73 for TextMAS, 69 for shuffled JJ, and 40 for Receiver-only (Table 5). The matched JJ message improves on HH by four mean correct answers and on shuffled JJ by six, extending the interface across both model families and vocabularies.

TaskRRTextHHHJHJHJshufH J_{\mathrm{shuf}}
GPQA4073717569

Table 5. Qwen3-8B →\rightarrow Llama-3.2-3B-Instruct on GPQA-Diamond: mean correct answers over three runs, out of 198 questions. Each condition uses 40 communicated positions when applicable and an 8,192-token Receiver cap; the TextMAS Sender cap is 4,096. HJHJ writes at native Llama block 20.

Related Work

Continuous reasoning. Coconut trains a recurrence that feeds hidden states back as inputs (Hao et al. [15]), while Soft Thinking uses probability-weighted token embeddings in a frozen model (Zhang et al. [31]). GEAR incorporates candidate geometry by multiplying predictive probabilities by their probability-weighted geometric support before constructing the next input.

Latent communication. CIPHER communicates probability-weighted embeddings through the Receiver’s embedding table (Pham et al. [25]). Interlat learns a communication adapter (Du et al. [13]), and ThoughtComm learns shared and private latent representations with a prefix adapter (Zheng et al. [32]). LatentMAS aligns hidden states for latent generation and transfers layer-wise KV caches (Zou et al. [33]); StateBridge uses closed-form Procrustes alignment for same-model communication (Peng et al. [24]). J-COMM pairs distribution-derived inputs with intermediate-state readouts, using fixed model-specific dictionaries while keeping KV caches local.

Activation and Jacobian interfaces. Ramesh and Li [26] exchange intermediate activations through addition, averaging, or replacement. The Jacobian lens supplies vocabulary-indexed intermediate-state readouts and coordinate interventions (Gurnee et al. [14]). Our JJ channel transmits token IDs and signed readouts, reconstructs updates through the Receiver’s regularized dual dictionary, and writes them at the paired HH positions during prefill.

Geometric reweighting. GAF is a Baum–Eagon growth transformation and a symmetric replicator step ([8, 22]), related to affinity updates in dominant-set clustering (Pavan and Pelillo [23]). GEAR applies one such update to each model-generated candidate distribution.

Conclusion

We introduced J-COMM, combining geometric agreement reasoning with dual-channel latent communication between frozen LLMs. GEAR constructs continuous inputs through geometric reweighting, while H+JH+J transfers paired feedback distributions and intermediate-state readouts across model widths. In the primary Qwen3-8B →\rightarrow Qwen3-4B evaluation, J-COMM achieves the highest mean score across seven benchmarks while reducing generated text tokens relative to TextMAS.

Limitations

J-COMM uses a token correspondence and calibrated Jacobian dictionaries for each model pair. Cross-vocabulary communication adds token-string matching and subtoken decomposition. The adaptive Sender can consume up to 32,768 latent steps, so its computation remains a heavy component of total inference cost even with a short communicated suffix.

References

shared byte-level token strings use the corresponding Llama embedding; an unmatched ordinary token is decomposed using Llama’s byte-level BPE and represented by the mean of its subtoken embeddings. The qq-weighted mixture is then normalized to the native Receiver embedding scale, still producing one continuous position per Sender step. The JJ channel recomputes signed top-32 readouts over 109,566 paired token anchors and reconstructs through the previously calibrated native Llama lens (write block 20, magnitude reference block 22). The bridge reuses the Sender trajectory and calibrated Receiver lens. Matched HJHJ obtains 75 mean correct answers, compared with 71 for HH, 69 for shuffled JJ, and 73 for TextMAS (Table 5).

Case Study: Inspecting Task-Related JJ Coordinates

We inspect a MedQA mechanism question and a MATH500 counting question in the Qwen3-8B →\rightarrow 4B setting (Figure 5). Both examples use 400 communicated positions, 32 anchors per position, and Receiver block 26. The selected vocabulary coordinates expose task-related concepts in the transmitted messages.

Image not extracted

Figure 5. Inspectable JJ coordinates and shuffled donors for a MedQA apoptosis question (a–d) and MATH500 square-table counting (e–h), both with 400 communication positions. Gray cells denote absent sparse coordinates. All three medical-case conditions answer correctly; only matched JJ completes the counting solution within the output budget.

MedQA: Apoptosis Regulation. The MedQA question describes a chromosome-18 abnormality and asks which protein’s regulation is most affected; the reference answer is caspase-9 (option A). The relevant intermediate mechanism is apoptosis inhibition associated with BCL2, which is also discussed in the Receiver explanation. The matched message contains apoptosis, apopt, and inhibition, ranked third, fourth, and twelfth by total absolute readout magnitude. Neither apoptosis nor inhibition is explicitly named in the question or its answer choices. The apoptosis coordinate occurs at 68 of the 400 positions, compared with two positions in the shuffled donor, a different lymphadenopathy question. Tokens containing apopt account for 1.04% of the matched message’s absolute readout magnitude, versus 0.0145% for the donor. The heatmaps show the selected sparse readouts, and the bars summarize case-insensitive apopt and inhib families.

All three conditions answer A correctly: matched H+JH + J uses 1,011 generated tokens, HH alone uses 1,239, and shuffled H+JH + J uses 1,105, under a 4,096-token cap. Their explanations all identify the BCL2/apoptosis mechanism. The shuffled message comes from a different question under a random derangement of the MedQA set.

MATH500: Counting under Rotational Symmetry. Figure 5 (bottom) provides a complementary MATH500 example: eight people sit around a square table with two seats per side, and arrangements equivalent under rotation are identified. The correct count is 8!/4=10,0808! / 4 = 10{,}080. This example uses 400 communicated positions, 32 anchors per position, Receiver block 26, and an 8,192-token output cap in the same Qwen3-8B →\rightarrow 4B setting. The matched message contains permutations, factorial, and rotations, connecting inspectable vocabulary coordinates to counting operations in the solution. Case-insensitive token families containing permut, factorial, and rotat account for 0.43%, 0.32%, and 3.22% of total absolute readout magnitude, respectively; none appears in the shuffled donor’s sparse message, which comes from a polynomial coefficient-sum question.

With the same recipient HH and output budget, matched H+JH + J completes correctly in 6,018 tokens, whereas HH alone and shuffled H+JH + J reach the 8,192-token cap without completing an answer. Both controls discuss 8!/48!/4 alongside the competing 7!7! heuristic.

Sender and Receiver Prompts

We reproduce the user-message templates used in our Qwen experiments. Braced placeholders denote task-dependent content, rather than literal prompt text. Each agent applies its own tokenizer’s chat template with add_generation_prompt=True and enable_thinking=True; the implementation then appends <think> followed by a newline. The role instructions below are supplied as a user message.

Mathematical Reasoning

The GSM8K, MATH500 and AIME experiments use the following templates. Sender (Planner). You are the Planner Agent. Develop a concise step-by-step plan and useful intermediate deductions for solving the following question. The Solver Agent will see the same question and continue your work. Do not give the final answer. Question: {QUESTION}

Receiver (Solver). You are the Solver Agent. Solve the question below step by step and put your final answer inside \boxed{}. You may receive reference work from a Planner Agent. Check it and continue any useful reasoning; ignore it if it is irrelevant or incorrect. The reference may be empty. Question: {QUESTION} Planner’s reference work: {MESSAGE}

For latent communication, {MESSAGE} is replaced by the MM continuous HH input positions. The H+JH + J condition uses the same prompt and positions, with JJ applied at the intermediate layer during prefill; JJ is not rendered as text. TextMAS inserts the Sender’s textual message at the same location. The Receiver-only condition leaves this location empty.

Multiple-Choice and Code Tasks

Sender.

You are the Planner Agent. Develop a concise plan and useful intermediate deductions for the following question. The Solver Agent sees the same question. Do not give the final answer.

{QUESTION}

Receiver.

You are the Solver Agent. Solve the following question. {ANSWER_INSTRUCTION} You may receive a Planner reference; check it and continue useful reasoning. The reference may be empty.

Question: {QUESTION}

Planner reference:

{MESSAGE}

For GPQA-Diamond and MedQA, the question includes the answer options and {ANSWER_INSTRUCTION} is:

Choose one option. Put the single final option letter inside \boxed{}.

For MBPP+, the answer instruction is:

Return a complete Python implementation in a python code block.

The MBPP+ question itself is prefixed with:

Write a self-contained Python implementation for this problem. Return the complete function and any necessary imports in a python code block.

{PROBLEM}

Compact-Plan TextMAS Variant

The compact-plan variant appends the following instruction to the Sender’s user message, where {PLAN_CAP} is the configured textual-plan budget. This addition is specific to that variant, rather than the original full-output TextMAS prompt.

After thinking, send the Solver only a concise plan of 3-6 numbered steps, within {PLAN_CAP} tokens. Include useful intermediate deductions, key checks and unresolved uncertainties. Do not repeat the question or give the final answer.

For MBPP+, it additionally appends:

Describe the algorithm, edge cases and complexity; do not write the full implementation.

ALFWorld

Both agents receive the following shared rules, followed by the interaction history.

Interact with the household to complete the stated task. Choose exactly one next action using the observation and previous actions. Objects and receptacles must use their exact names and numbers.

Available action forms:

go to {receptacle}

open {receptacle}

close {receptacle}

take {object} from {receptacle}

move {object} to {receptacle}

use {object}

examine {object or receptacle}

clean {object} with {receptacle}

heat {object} with {receptacle}

cool {object} with {receptacle}

look

inventory

Navigate to a receptacle before interacting with it. Closed containers must be opened. “Nothing happens” means the action did not change the environment.

Think about the next useful action. End your response with exactly one line: Action: <action>.

The Sender’s message is {RULES}, two new-lines, and {HISTORY}. The history starts with Observation: and the initial observation, then appends each executed Action: and resulting Observation:.

Receiver with latent communication.

{RULES}

{HISTORY}

Planner latent message:

{MESSAGE}

Choose the next action.

TextMAS uses the same template with Planner text message: in place of Planner latent message:, and inserts the generated text. The independent Receiver receives only the shared rules and history.

GAF: Proof and Supporting Derivations

Geometric Selectivity

The mass assigned to a given target depends on how strongly the other candidates agree with one another. The following result makes this dependence explicit.

Fix a target candidate with unit direction uu and prior mass g∈(0,1)g \in(0,1). Write viv_i for at most n≥2n \ge2 remaining directions and wiw_i for their conditional weights, so wi≥0w_i \ge0 and ∑iwi=1\sum_i w_i = 1. Define their mean affinity to the target and their internal agreement by

χ=∑iwieuTvi−1,B=∑i,jwiwjeviTvj−1.(18)\chi= \sum_i w_i e^{u^\mathsf{T}v_i-1}, \qquad\mathcal{B} = \sum_{i,j} w_iw_j e^{v_i^\mathsf{T}v_j-1}. \tag*{(18)}

We consider the regime where χ\chi is at most e−1e^{-1}, the kernel value for orthogonal directions. This is a condition on the weighted mean affinity; individual candidates may have larger affinities to the target.

Theorem 1 (Geometric selectivity of one GAF step). Suppose e−2≤χ≤e−1e^{-2} \le\chi\le e^{-1}, and set

τ=1+log⁡χ,\tau= 1 + \log\chi,
bn(χ)=1n+n−1ne−nn−1(1−τ2),b_n(\chi) = \frac{1}{n} + \frac{n-1}{n}e^{-\frac{n}{n-1}(1-\tau^2)},
Q(g,χ,b)=g[g+(1−g)χ]g2+2g(1−g)χ+(1−g)2b.(19)Q(g,\chi,b) = \frac{g[g + (1-g)\chi]}{g^2 + 2g(1-g)\chi+ (1-g)^2b}. \tag*{(19)}

Then bn(χ)≤B≤1b_n(\chi) \le\mathcal{B} \le1, and the updated target mass satisfies

Q(g,χ,1)≤q⋆≤Q(g,χ,bn(χ)).(20)Q(g,\chi,1) \le q_\star\le Q(g,\chi,b_n(\chi)). \tag*{(20)}

Both endpoints are attainable over admissible geometries when dS≥nd_S \ge n. Let βn(χ)=[bn(χ)−χ]/[1+bn(χ)−2χ]\beta_n(\chi) = [b_n(\chi)-\chi]/[1+b_n(\chi)-2\chi]. Every admissible geometry decreases target mass if g<βn(χ)g < \beta_n(\chi) and increases it if g>1/2g > 1/2. For βn(χ)<g<1/2\beta_n(\chi) < g < 1/2 and dS≥nd_S \ge n, geometries with gain and with loss both exist at the same (g,χ,n)(g,\chi,n). At g=βn(χ)g = \beta_n(\chi) the gain is nonpositive; at g=1/2g = 1/2 it is nonnegative, and these zero bounds are attained when dS≥nd_S \ge n. At χ=e−2\chi= e^{-2} the thresholds coincide at 1/21/2.

The proof below uses realizable spherical configurations: an equal-weight latitude simplex attains the lower energy bound, and coincident opponent directions attain the upper bound. The theorem characterizes the target mass after one reweighting in the stated affinity regime. A target group obeys the same formulas when its directions coincide.

Proof of Theorem 1

Proof. Let μ=∑iwivi\mu= \sum_i w_i v_i and r=∑iwi2≥1/nr = \sum_i w_i^2 \ge1/n. Jensen’s inequality and τ≤0\tau\le0 give

euTμ−1≤χ,uTμ≤τ≤0,∥μ∥2≥τ2.e^{u^\mathsf{T}\mu-1} \le\chi, \qquad u^\mathsf{T}\mu\le\tau\le0, \qquad\lVert\mu\rVert^2 \ge\tau^2.

For r<1r < 1, the ordered off-diagonal weights wiwj/(1−r)w_iw_j/(1-r) sum to one. Since

∑i≠jwiwjviTvj=∥μ∥2−r,\sum_{i\ne j} w_iw_jv_i^\mathsf{T}v_j = \lVert\mu\rVert^2-r,

another application of Jensen yields

B≥r+(1−r)exp⁡(∥μ∥2−11−r)≥r+(1−r)exp⁡(−1−τ21−r).\mathcal{B} \ge r + (1-r)\exp\left(\frac{\lVert\mu\rVert^2-1}{1-r}\right) \ge r + (1-r)\exp\left(-\frac{1-\tau^2}{1-r}\right).

For a=1−τ2≥0a = 1-\tau^2 \ge0, the last expression increases with rr: its derivative is 1−(1+z)e−z≥01-(1+z)e^{-z} \ge0, where z=a/(1−r)z = a/(1-r). Substitution of r≥1/nr \ge1/n proves B≥bn(χ)\mathcal{B} \ge b_n(\chi). If r=1r=1, then B=1\mathcal{B}=1 and the same bound holds. The upper bound follows from viTvj≤1v_i^\mathsf{T}v_j \le1.

For attainability when dS≥nd_S \ge n, choose unit vectors z1,…,znz_1,\ldots,z_n forming a regular simplex in u⊥u^\perp, so ziTzj=−1/(n−1)z_i^\mathsf{T}z_j=-1/(n-1) for i≠ji\ne j, and set

vi=τu+1−τ2 zi,wi=1/n.v_i = \tau u + \sqrt{1-\tau^2}\,z_i, \qquad w_i = 1/n.

All target affinities equal eτ−1=χe^{\tau-1}=\chi, and all off-diagonal opponent affinities equal c=exp⁡[−n(1−τ2)/(n−1)]c=\exp[-n(1-\tau^2)/(n-1)]. Thus B=1/n+(1−1/n)c=bn(χ)\mathcal{B}=1/n+(1-1/n)c=b_n(\chi).

A single opponent at any unit direction vv satisfying uTv=τu^\mathsf{T}v=\tau attains B=1\mathcal{B}=1 at the same χ\chi. Multiple candidate indices may also share this direction. In fact every intermediate energy is attainable: retaining the latitude simplex, set

w1=1+(n−1)an,w2=⋯=wn=1−an,a∈[0,1].w_1 = \frac{1+(n-1)a}{n}, \qquad w_2=\cdots=w_n=\frac{1-a}{n}, \qquad a\in[0,1].

The cross-affinity stays fixed and

B=c+(1−c)1+(n−1)a2n.\mathcal{B} = c + (1-c)\frac{1+(n-1)a^2}{n}.

ranges continuously from bn(χ)b_n(\chi) to 11. If exactly n≥2n\ge2 distinct positively weighted directions are required and χ>e−2\chi>e^{-2}, the upper endpoint is only a supremum, approached as a→1a\to1. At χ=e−2\chi=e^{-2}, every supported opponent is −u-u, so B=1\mathcal{B}=1.

The target support is g+(1−g)χg+(1-g)\chi and the total agreement is

C=g2+2g(1−g)χ+(1−g)2B>0.C = g^2 + 2g(1-g)\chi+ (1-g)^2\mathcal{B} > 0.

Consequently q⋆=Q(g,χ,B)q_\star=Q(g,\chi,\mathcal{B}) and

q⋆−g=g(1−g){g(1−χ)−(1−g)(B−χ)}C.(21)q_\star-g = \frac{g(1-g)\{g(1-\chi)-(1-g)(\mathcal{B}-\chi)\}}{C}. \tag*{(21)}

The updated mass decreases strictly with B\mathcal{B}, proving Equation (20) and its attainability. For $\tau \in (−1,0](-1, 0], strict Jensen applied to the diagonal/off-diagonal mixture defining bnb_n gives

bn(χ)>eτ2−1≥eτ−1=χ.b_n(\chi) > e^{\tau^2-1} \ge e^{\tau-1} = \chi.

At τ=−1\tau=-1, bn(χ)=1>χb_n(\chi)=1>\chi as well. The zero-gain threshold

H(B,χ)=B−χ1+B−2χH(\mathcal{B},\chi)=\frac{\mathcal{B}-\chi}{1+\mathcal{B}-2\chi}

has derivative ∂BH=(1−χ)/(1+B−2χ)2>0\partial_{\mathcal{B}}H=(1-\chi)/(1+\mathcal{B}-2\chi)^2>0. It therefore ranges from βn(χ)\beta_n(\chi) to 1/21/2 as B\mathcal{B} ranges from bn(χ)b_n(\chi) to $1. Equation (21) and the endpoint constructions prove the stated gain and loss cases, including their boundaries.

The argument uses classical spherical-energy ideas. Regular simplices are universally optimal for completely monotonic squared-distance potentials, including e−∥ui−uj∥2/2e^{-\lVert u_i-u_j\rVert^2/2} ([11]); weighted spherical potentials and constrained energy minimization are studied by Borodachov et al. [9]. Here the energy bound is conditioned on the target affinity χ\chi and used to characterize one GAF step.

Agreement Gain and Consumed-Input Displacement

For a fixed candidate set, let s=Kps=Kp, C=C(p)>0C=C(p)>0, ξ=q−p\xi=q-p, and

Vs=∑ipi(si−C)2.V_s=\sum_i p_i(s_i-C)^2.

The identity ξi=pi(si−C)/C\xi_i=p_i(s_i-C)/C implies ξ⊤Kp=Vs/C\xi^\top Kp=V_s/C, so expansion of C(p+ξ)C(p+\xi) gives

C(q)−C(p)=2VsC+ξ⊤Kξ.(22)C(q)-C(p)=\frac{2V_s}{C}+\xi^\top K\xi. \tag*{(22)}

The exponential kernel is positive semidefinite because

Kij=e−1∑k=0∞⟨ui⊗k,uj⊗k⟩k!K_{ij}=e^{-1}\sum_{k=0}^{\infty}\frac{\langle u_i^{\otimes k},u_j^{\otimes k}\rangle}{k!}

is an absolutely convergent sum of positive-semidefinite kernels. Thus both terms in Equation (22) are nonnegative. Equality holds exactly when Vs=0V_s=0, equivalently q=pq=p, or si=Cs_i=C on the support of pp. This is also the Baum–Eagon inequality applied to the homogeneous polynomial C(p)C(p): since ∂iC=2(Kp)i\partial_i C=2(Kp)_i, its growth transformation is precisely Equation (6) ([8]). The same multiplicative form appears in symmetric replicator dynamics ([16, 22]) and affinity-based dominant-set methods ([23]).

For the raw, nonzero embeddings used by Equation (7), define

Xp=∑ipiEiS,Xq=∑iqiEiS,X_p=\sum_i p_i E_i^S,\qquad X_q=\sum_i q_i E_i^S,
VE=∑ipi∥EiS−Xp∥22.V_E=\sum_i p_i\lVert E_i^S-X_p\rVert_2^2.

Since ∑ipi(si−C)=0\sum_i p_i(s_i-C)=0,

Xq−Xp=1C∑ipi(si−C)(EiS−Xp),X_q-X_p=\frac{1}{C}\sum_i p_i(s_i-C)(E_i^S-X_p),
∥Xq−Xp∥22≤VEVsC2≤VE2C{C(q)−C(p)}.\lVert X_q-X_p\rVert_2^2\le\frac{V_E V_s}{C^2}\le\frac{V_E}{2C}\{C(q)-C(p)\}.

The first inequality is weighted Cauchy–Schwarz. These identities hold for every candidate distribution under the fixed kernel. An unchanged mixture need not imply unchanged weights; that converse requires affine independence of the supported raw embeddings.

Boundary Cases and Approximate Coherence

The energy bound remains valid for dS<nd_S<n, but its lower endpoint need not be attainable. With one supported opponent, B=1\mathcal{B}=1 and the exact gain threshold is 1/21/2; the formula for bnb_n is not used at n=1n=1. The upper limit χ≤e−1\chi\le e^{-1} is essential: two equal-weight opponents at uu and −u-u give χ=B=(1+e−2)/2≈0.56767\chi=\mathcal{B}=(1+e^{-2})/2\approx0.56767, whereas extending b2b_2 to this value would give b2(χ)≈0.59859>Bb_2(\chi)\approx0.59859>\mathcal{B}.

For a target group of total mass gg, suppose its unit directions uiu_i satisfy ∥ui−u∥2≤δ\lVert u_i-u\rVert_2\le\delta. Let AA denote its conditional within-group affinity and XX its actual cross-affinity, retaining χ\chi for the representative uu. Pairwise target distances are at most 2δ2\delta, and s↦es−1s\mapsto e^{s-1} is 11-Lipschitz on [−1,1][-1,1], giving

A≥e−2δ2,∣X−χ∣≤δ.A\ge e^{-2\delta^2},\qquad|X-\chi|\le\delta.

Set L=g(1−χ)−(1−g)(B−χ)L=g(1-\chi)-(1-g)(\mathcal{B}-\chi). The actual difference between target and opponent mean support, D=g(A−X)−(1−g)(B−X)D=g(A-X)-(1-g)(\mathcal{B}-X), satisfies

L−g(1−e−2δ2)−∣1−2g∣δ≤D≤L+∣1−2g∣δ.L-g(1-e^{-2\delta^2})-|1-2g|\delta\le D \le L+|1-2g|\delta.

This follows by subtracting LL from DD, leaving g(A−1)+(1−2g)(X−χ)g(A-1)+(1-2g)(X-\chi). The group gains mass exactly when D>0D>0 and loses mass exactly when D<0D < 0. Together with bn(χ)≤B≤1b_n(\chi) \le B \le1, these bounds give sufficient gain and loss conditions for approximately coherent groups in the stated affinity regime.

Proof and Derivations for Finite-Write Fidelity

Effect of a Finite J Write

The reconstructed write passes through the Receiver’s remaining layers and final normalization. We analyze its effect relative to the HH-only baseline, with the prompt, HH inputs, and output prefix fixed. The token-ordering condition below compares the actual output with the average lens’s prediction of the output after the write. Abbreviate Bt=BLℓR,ItRB_t = B_{\mathcal{L}^R_{\ell_R,I_t}}, Gt=BtBtTG_t = B_tB_t^{\mathsf{T}}, dt=dℓR,tRd_t = d^R_{\ell_R,t}, rt=rℓR,tRr_t = r^R_{\ell_R,t}, and JR=JℓRR\mathcal{J}_R = \mathcal{J}^R_{\ell_R}. Assume every selected raw lens row and every written dtd_t is nonzero. The actual update at each retained position is

δt=κtdt,κt=α∥rt∥2ρt∥dt∥2.\delta_t = \kappa_t d_t,\qquad\kappa_t = \frac{\alpha\lVert r_t\rVert_2\rho_t}{\lVert d_t\rVert_2}.

Let rr and δ\delta stack all MM retained positions. Let F(r)F(r) map these residuals to the pre-final-RMSNorm residual at the fixed output position; unedited positions are fixed parameters. Write y=F(r)y = F(r), y′=F(r+δ)y' = F(r+\delta), and

wv=diag⁡(γR)uvR,s(z)=∥z∥22/dR+ϵ,w_v = \operatorname{diag}(\gamma_R)u_v^R,\qquad s(z) = \sqrt{\lVert z\rVert_2^2/d_R+\epsilon},
ℓv(z)=wvTz/s(z),\ell_v(z) = w_v^{\mathsf{T}}z/s(z),

for a bias-free output head with ϵ>0\epsilon> 0. Define the nominal endpoint, its finite mismatch, and the nominal response by

y^=y+∑tJRδt,e=y′−y^,\hat{y} = y + \sum_t \mathcal{J}_R\delta_t,\qquad e = y' - \hat{y},
ζv=wvT(y^−y),nv=wvTy^.\zeta_v = w_v^{\mathsf{T}}(\hat{y}-y),\qquad n_v = w_v^{\mathsf{T}}\hat{y}.

Thus ζv\zeta_v retains the norms of the raw lens rows (JR)Twv(\mathcal{J}_R)^{\mathsf{T}}w_v, which unit anchors alone discard.

Theorem 2 (Finite-write fidelity and conditional output ordering). For λ>0\lambda> 0, put At=Gt(Gt+λI)−1A_t = G_t(G_t+\lambda I)^{-1}. The selected-anchor readback satisfies

Bt(rt+δt)=Btrt+κtAtct,(23)B_t(r_t+\delta_t) = B_tr_t+\kappa_tA_tc_t, \tag*{(23)}
ct−Atct=λ(Gt+λI)−1ct.c_t-A_tc_t = \lambda(G_t+\lambda I)^{-1}c_t.

Writing s=s(y)s=s(y) and s′=s(y′)s'=s(y'), every vocabulary token has the exact finite logit response

ℓv(y′)−ℓv(y)=ζv+wvTe−(s′−s)ℓv(y)s′.(24)\ell_v(y')-\ell_v(y)=\frac{\zeta_v+w_v^{\mathsf{T}}e-(s'-s)\ell_v(y)}{s'}. \tag*{(24)}

Let a finite V⊆V\mathcal{V}\subseteq\mathcal{V} contain at least two tokens, and let vv uniquely maximize njn_j over j∈Vj\in\mathcal{V}. Define

Rv=min⁡j∈V∖{v}nv−nj∥wv−wj∥2.(25)R_v=\min_{j\in\mathcal{V}\setminus\{v\}}\frac{n_v-n_j}{\lVert w_v-w_j\rVert_2}. \tag*{(25)}

For E≥0E\ge0, vv remains the unique highest-logit token in V\mathcal{V} for every endpoint error satisfying ∥e∥2≤E\lVert e\rVert_2\le E if and only if E<RvE<R_v.

The identities include ridge shrinkage and final normalization at the implemented gain α=1\alpha=1. The condition E<RvE<R_v preserves the lens-predicted winner at the fixed prefix; setting V=V\mathcal{V}=\mathcal{V} gives full-vocabulary ordering.

Proof of Theorem 2. The reconstruction in Equations 14–15 is dt=BtT(Gt+λI)−1ctd_t=B_t^{\mathsf{T}}(G_t+\lambda I)^{-1}c_t. Multiplying by BtB_t gives Btdt=AtctB_td_t=A_tc_t, and substituting δt=κtdt\delta_t=\kappa_td_t proves Equation 23. The ridge-bias identity follows from I−At=λ(Gt+λI)−1I-A_t=\lambda(G_t+\lambda I)^{-1}. Gt+λIG_t+\lambda I is positive definite for every λ>0\lambda>0.

For the functional identity, the definition of ee gives y′=y+∑tJRδt+ey'=y+\sum_t\mathcal{J}_R\delta_t+e. Therefore wvTy′=wvTy+ζv+wvTew_v^{\mathsf{T}}y'=w_v^{\mathsf{T}}y+\zeta_v+w_v^{\mathsf{T}}e. Using the actual final RMSNorm denominators,

ℓv(y′)−ℓv(y)=wvTy+ζv+wvTes′−wvTys\ell_v(y')-\ell_v(y)=\frac{w_v^{\mathsf{T}}y+\zeta_v+w_v^{\mathsf{T}}e}{s'}-\frac{w_v^{\mathsf{T}}y}{s}
=ζv+wvTe−(s′−s)ℓv(y)s′.=\frac{\zeta_v+w_v^{\mathsf{T}}e-(s'-s)\ell_v(y)}{s'}.

For output ordering, RMSNorm has a common positive denominator for all tokens. For every j∈V∖{v}j\in\mathcal{V}\setminus\{v\}, the sign of the actual logit difference is thus the sign of

nv−nj+(wv−wj)Te.n_v-n_j+(w_v-w_j)^{\mathsf{T}}e.

Its exact minimum over ∥e∥2≤E\lVert e\rVert_2\le E is nv−nj−E∥wv−wj∥2n_v-n_j-E\lVert w_v-w_j\rVert_2, by Cauchy–Schwarz with equality when ee opposes the head contrast. The unique nominal winner assumption ensures every numerator in Equation 25 is positive and every denominator is nonzero. Since V\mathcal{V} is finite, all actual comparisons remain strict throughout the closed ball exactly when E<RvE<R_v. At E=RvE=R_v, let jj attain the minimum and choose

e=−Rvwv−wj∥wv−wj∥2.e=-R_v\frac{w_v-w_j}{\lVert w_v-w_j\rVert_2}.

This produces a tie with jj. For E>RvE>R_v, increasing the magnitude of this error produces a reversal. This proves sharpness for the full error ball. □\square

Raw row scales and multiple message supports. The unit normalization in Equation (2) removes a token-dependent scale. Let

gv=(JR)⊤wv,νv=∥gv∥2.g_v = (\mathcal{J}_R)^{\top}w_v,\qquad\nu_v = \lVert g_v\rVert_2.

For νv>0\nu_v>0, gv=νvbℓR,vRg_v=\nu_v b_{\ell_{R,v}}^R, and hence

ζv=νv∑tκt(bℓR,vR)Bt⊤(Gt+λI)−1ct.(26)\zeta_v=\nu_v\sum_t\kappa_t(b_{\ell_{R,v}}^R)B_t^{\top}(G_t+\lambda I)^{-1}c_t. \tag*{(26)}

For v∈Itv\in I_t, the contribution of that position reduces to νvκt[Atct]v\nu_v\kappa_t[A_tc_t]_v, with entries indexed by the transmitted IDs. For v∉Itv\notin I_t, Equation (26) retains the corresponding cross-Gram row and need not vanish. Each message position uses its own selected support. For νv=0\nu_v=0, ζv=0\zeta_v=0, while the endpoint mismatch can contribute wvew_v e to the response.

Final normalization. For any token pair (i,j)(i,j), put a=wi−wja=w_i-w_j and mij(y)=ℓi(y)−ℓj(y)m_{ij}(y)=\ell_i(y)-\ell_j(y). Subtracting Equation (24) for the two tokens gives

mij(y′)−mij(y)=a⊤(y^−y)+a⊤es′−s′−ss′mij(y).m_{ij}(y')-m_{ij}(y)=\frac{a^{\top}(\widehat{y}-y)+a^{\top}e}{s'}-\frac{s'-s}{s'}m_{ij}(y).

The last term can alter the sign of a margin increment even when the nominal unnormalized response is positive. By contrast, the common denominator cancels when comparing two logits at the same endpoint, which is the ordering statement of Theorem 2. For a differentiable downstream map, the full local derivative is

∂ℓv∂rt=wv⊤s(y)(I−yy⊤∥y∥22+dRε)∂F∂rt(r).\frac{\partial\ell_v}{\partial r_t}=\frac{w_v^{\top}}{s(y)}\left(I-\frac{yy^{\top}}{\lVert y\rVert_2^2+d_R\varepsilon}\right)\frac{\partial F}{\partial r_t}(r).

The derivative includes the RMSNorm scaling and radial projection; Equation (24) gives the corresponding finite-write response.

Endpoint mismatch. If FF is continuously differentiable on the intervention segment, the fundamental theorem of calculus yields

e=∫01∑t[∂F∂rt(r+θδ)−JR]δt dθ.(27)e=\int_0^1\sum_t\left[\frac{\partial F}{\partial r_t}(r+\theta\delta)-\mathcal{J}_R\right]\delta_t\,\mathrm{d}\theta. \tag*{(27)}

This is the response to the simultaneous writes at all MM positions. It includes context and position differences from the calibration average as well as variation along the finite intervention path. If

sup⁡θ∈[0,1]∥∂F∂rt(r+θδ)−JR∥op≤ηt\sup_{\theta\in[0,1]}\left\lVert\frac{\partial F}{\partial r_t}(r+\theta\delta)-\mathcal{J}_R\right\rVert_{\mathrm{op}}\leq\eta_t

then ∥e∥2≤∑tηt∥δt∥2\lVert e\rVert_2\leq\sum_t\eta_t\lVert\delta_t\rVert_2. Alternatively, let Jstack=[JR ⋯ JR]\mathcal{J}_{\mathrm{stack}}=[\mathcal{J}_R\ \cdots\ \mathcal{J}_R]. If ∥DF(r)−Jstack∥op≤η\lVert DF(r)-\mathcal{J}_{\mathrm{stack}}\rVert_{\mathrm{op}}\leq\eta and DFDF is LL-Lipschitz in operator norm along the segment, then

∥e∥2≤η∥δ∥2+12L∥δ∥22.\lVert e\rVert_2\leq\eta\lVert\delta\rVert_2+\frac{1}{2}L\lVert\delta\rVert_2^2.

These bounds express the endpoint error in terms of context-dependent Jacobian variation along the intervention path.

Average and pathwise responses. For r∈R2r\in\mathbb{R}^2, consider F(r)=(2,0)+r+(−2,0)r12F(r)=(2,0)+r+(-2,0)r_1^2. Its Jacobians at e1e_1 and −e1-e_1 average exactly to I2I_2. At r=e1r=e_1 with δ=(0.2,0.1)\delta=(0.2,0.1), this average predicts the increment (0.2,0.1)(0.2,0.1), whereas the actual increment is (−0.68,0.1)(-0.68,0.1). The example shows how nonlinear path variation contributes to the endpoint mismatch ee.

References

  1. [8]Leonard E. Baum and John A. Eagon. 1967. An inequality with applications to statistical estimation for probabilistic functions of Markov processes and to a model for ecology. Bulletin of the American Mathematical Society, 73(3):360–363.DOI
  2. [9]S. V. Borodachov, P. G. Boyvalenkov, P. D. Dragnev, D. P. Hardin, E. B. Saff, and M. M. Stoyanova. 2026. Bounds on energy and potentials of discrete measures on the sphere. Expositiones Mathematicae, 44(1):125712.arxiv.org/abs/2412.07442
  3. [10]Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman. 2021. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168.arXiv
  4. [11]Henry Cohn and Abhinav Kumar. 2007. Universally optimal distribution of points on spheres. Journal of the American Mathematical Society, 20(1):99–148.DOI
  5. [12]Yilun Du, Shuang Li, Antonio Torralba, Joshua B. Tenenbaum, and Igor Mordatch. 2024. Improving factuality and reasoning in language models through multiagent debate. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 11733–11763. PMLR.arxiv.org/abs/2305.14325
  6. [13]Zhuoyun Du, Runze Wang, Huiyu Bai, Zouying Cao, Xiaoyong Zhu, Yu Cheng, Bo Zheng, Wei Chen, and Haochao Ying. 2025. Enabling agents to communicate entirely in latent space. arXiv preprint arXiv:2511.09149.arXiv
  7. [14]Gurnee, W., Sofroniew, N., Pearce, A., Piotrowski, M., Kauvar, I., Chen, R., Soligo, A., Bogdan, P., Ong, E., Wang, R., Thompson, B., Abrahams, D., Kantamneni, S., Ameisen, E., Batson, J., & Lindsey, J. (2026). Verbalizable representations form a global workspace in language models. In Transformer Circuits Thread.
  8. [15]Shibo Hao, Sainbayar Sukhbaatar, DiJia Su, Xian Li, Zhiting Hu, Jason Weston, and Yuandong Tian. 2025. Training large language models to reason in a continuous latent space. In Conference on Language Modeling.arxiv.org/abs/2412.06769
  9. [16]Josef Hofbauer and Karl Sigmund. 1998. Evolutionary Games and Population Dynamics. Cambridge University Press.DOI
  10. [18]Jin, D., Pan, E., Oufattole, N., Weng, W.-H., Fang, H., & Szolovits, P. (2021). What disease does this patient have? a large-scale open domain question answering dataset from medical exams. Applied Sciences, 11(14), 6421.
  11. [19]Hunter Lightman, Vineet Kosaraju, Yuri Burda, Harrison Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. 2024. Let’s verify step by step. In The Twelfth International Conference on Learning Representations.arxiv.org/abs/2305.20050
  12. [20]Lin, Y.-T. (2025). AIME 2025 dataset. Hugging Face Datasets.
  13. [21]Jiawei Liu, Chunqiu Steven Xia, Yuyao Wang, and Lingming Zhang. 2023. Is your code generated by chat-GPT really correct? rigorous evaluation of large language models for code generation. In Advances in Neural Information Processing Systems.arxiv.org/abs/2305.01210
  14. [22]Viktor Losert and Ethan Akin. 1983. Dynamics of games and genes: Discrete versus continuous time. Journal of Mathematical Biology, 17(2):241–251.DOI
  15. [23]Massimiliano Pavan and Marcello Pelillo. 2007. Dominant sets and pairwise clustering. IEEE Transactions on Pattern Analysis and Machine Intelligence, 29(1):167–172.pubmed.ncbi.nlm.nih.gov/17108392
  16. [24]Yanwen Peng, Delvin Ce Zhang, Xi Wang, and Nikolaos Aletras. 2026. StateBridge: Training-free hidden-state alignment for latent communication in LLM multi-agent systems. In Conference on Language Modeling.arxiv.org/abs/2608.13317
  17. [25]Chau Pham, Boyi Liu, Yingxiang Yang, Zhengyu Chen, Tianyi Liu, Jianbo Yuan, Bryan A. Plummer, Zhaoran Wang, and Hongxia Yang. 2024. Let models speak ciphers: Multiagent debate through embeddings. In International Conference on Learning Representations.arxiv.org/abs/2310.06272
  18. [26]Vignav Ramesh and Kenneth Li. 2025. Communicating activations between language model agents. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 51094–51116. PMLR.arxiv.org/abs/2501.14082
  19. [27]Rein, D., Hou, B. L., Stickland, A. C., Petty, J., Pang, R. Y., Driani, J., Michael, J., & Bowman, S. R. (2024). GPQA: A graduate-level google-proof Q&A benchmark. Conference on Language Modeling.
  20. [28]Mohit Shridhar, Xingdi Yuan, Marc-Alexandre Côté, Yonatan Bisk, Adam Trischler, and Matthew Hausknecht. 2021. ALFWorld: Aligning text and embodied environments for interactive learning. In International Conference on Learning Representations.arxiv.org/abs/2010.03768
  21. [29]Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Brian Ichter, Fei Xia, Ed Chi, Quoc V. Le, and Denny Zhou. 2022. Chain-of-thought prompting elicits reasoning in large language models. In Advances in Neural Information Processing Systems, volume 35.arxiv.org/abs/2201.11903
  22. [30]Qingyun Wu, Gagan Bansal, Jieyu Zhang, Yiran Wu, Beibin Li, Erkang Zhu, Li Jiang, Xiaoyun Zhang, Shaokun Zhang, Jiale Liu, Ahmed Hassan Awadallah, Ryen W. White, Doug Burger, and Chi Wang. 2024. AutoGen: Enabling next-gen LLM applications via multi-agent conversations. In Conference on Language Modeling.arxiv.org/abs/2308.08155
  23. [31]Zhen Zhang, Xuehai He, Weixiang Yan, Ao Shen, Chenyang Zhao, Shuohang Wang, Yelong Shen, and Xin Eric Wang. 2025. Soft thinking: Unlocking the reasoning potential of LLMs in continuous concept space. arXiv preprint arXiv:2505.15778.arXiv
  24. [32]Yujia Zheng, Zhuokai Zhao, Zijian Li, Yaqi Xie, Mingze Gao, Lizhu Zhang, and Kun Zhang. 2025. Thought communication in multiagent collaboration. In Advances in Neural Information Processing Systems.arxiv.org/abs/2510.20733
  25. [33]Zou, J., Qiu, R., Li, G., Yang, X., Tieu, K., Lu, P., Shen, K., Tong, H., Choi, Y., He, J., Zou, J., Wang, M., & Yang, L. (2025). Latent collaboration in multiagent systems. In arXiv preprint. arXiv:2511.20639

AI tools statement

No AI-use declaration is available for this version in Valency.

The available record does not establish whether AI systems or models contributed to this work.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

No code, data or supplementary files were declared for this version.

Pick where to look, or just type