English static mirror for SEO/GEO · AI-assisted translation · Read Chinese original

TFlow: AI Agents Communicate by Directly Editing Each Other's Weights Instead of Talking

Forum topic · 二一 · 2026-05-14

Summary

A Chinese tech forum post analyzes TFlow (Thought Flow), a new multi-agent communication paradigm where AI agents exchange information through weight-space perturbations rather than text. Instead of serializing hidden states into tokens, a trainable parameter generator compiles the sender's frozen hidden states into low-rank LoRA patches, which are temporarily injected into a receiver agent's linear layers and discarded after generation. On MMLU, GSM8K, MATH, HumanEval+ and MBPP+, a three-agent TFlow system (Qwen3-4B backbone) improves accuracy by 7.13-8.53 points over a single agent while cutting total token usage by 5-33%, and reduces token consumption by 71-83% and inference time by 2.3-4.6x versus text-based multi-agent communication. Ablations show patches are instance-specific: swapping patches between questions drops MMLU accuracy from 66.97% to 47.57%. The author, writing as 'Feynman,' argues this challenges the assumption that AI collaboration must be mediated by language, comparing text-based agent chat to programmers exchanging code via carrier pigeons. Only the lightweight parameter generator is trained (8 hours on one RTX PRO 6000, 32k samples); all backbones stay frozen. Limitations include weaker results on code generation and reduced batching efficiency.

Two AI agents usually "chat" the way humans do: one generates text, sends it, and the other reads and responds. But this involves a strange detour — an AI's internal world is dense, high-dimensional vectors, and every exchange forces it to serialize that understanding into human-readable text (losing information), which the receiver then re-encodes into its own representations. It's like two programmers communicating by translating code into haiku first.

A new paper proposes something different: don't make the AI write messages — let it directly modify the other AI's brain.

Why text communication is wasteful

In conventional multi-agent systems (MAS), Agent A reads a problem, thinks, and produces text like "here's how I understand it..." which is stuffed into Agent C's context window. This causes three problems:

1. Huge token consumption: the sender's internal computation gets serialized into hundreds of tokens that the receiver must encode from scratch 2. KV-cache bloat: more agents and rounds mean longer contexts and linearly growing memory and latency 3. Information bottleneck: things the AI "knows" but cannot verbalize — probabilistic distributions in pattern recognition, subtle feature correlations — get flattened during verbalization

The paper gives concrete numbers. With a three-agent system (Qwen3-4B) on GSM8K: a single agent outputs ~1337 tokens; adding two text-communicating teammates pushes total token consumption to 5381 — 4x more. The KV-cache operations behind those extra tokens are the real performance killer.

TFlow: turning thoughts into weight perturbations

TFlow's (Thought Flow) core idea is elegantly simple:

Don't send text. Compile the sender's hidden states into a fine-tuning patch for the receiver.

The pipeline:

1. Three agents share one frozen base model (Qwen3-4B) with different role prompts — Agent A analyzes reasoning types, Agent B retrieves domain knowledge, Agent C answers 2. Senders A and B each read the question and run one frozen forward pass — no output text, only per-layer hidden states 3. A trainable parameter generator maps these hidden states into a set of low-rank LoRA matrices — essentially "fine-tuning patches" 4. The senders' LoRA patches are fused via a learnable gating mechanism and temporarily injected into Agent C's linear layers during answer generation 5. After generation, the patches are discarded and Agent C reverts to the original frozen model

Crucially, patches are generated per-question in real time — not a fixed pretrained LoRA reused every time. Each question produces fresh, question-specific weight perturbations. Role prompts influence the patches only through natural variation in hidden states, requiring no special handling per role combination.

The numbers

Across five benchmarks (MMLU, GSM8K, MATH, HumanEval+, MBPP+), the three-agent TFlow system:

Versus a single agent:

  • Accuracy improves by 7.13–8.53 percentage points
  • Total token consumption actually *drops* 5–33% (weight-space guidance produces more concise reasoning paths)
  • Versus a traditional text-communicating three-agent system:

  • Token consumption reduced 71–83%
  • End-to-end inference 2.3–4.6x faster
  • Accuracy gap only within 1.3–4.5 points
The exception is HumanEval+ (coding), where text's "weakness" becomes a strength: long context gives extra generation capacity for output-heavy tasks. TFlow scores ~10 points lower but uses 72% fewer tokens.

A notable detail: on MMLU, TFlow used 998 tokens (vs. 1079 for the single agent) while scoring 8 points higher. The weight perturbation doesn't just accelerate — it changes how the model thinks. More precise, less verbose.

Are the patches really instance-specific?

This is TFlow's most critical property. If the generator produced nearly identical LoRA patches for all questions, it would just be static fine-tuning.

Hidden state analysis: Across 20 GSM8K and 20 MBPP+ instances, same-task last-layer hidden states have high pairwise cosine similarity (~0.75), cross-task significantly lower (~0.35). The aggregated vector c that the generator actually consumes shows even lower cross-task similarity — the generator deliberately amplifies task differences. It relies mostly on layer 29 (deep) hidden states; shallow layers barely contribute, suggesting deep "high-level reasoning representations" are the core information source.

LoRA tensor analysis: TSNE visualization of 120 patches (60 GSM8K, 60 MBPP+) shows clear clustering by task, with fused patches moderately overlapping both sender patches — fusion preserves contributions while adding something complementary.

Ablation: Randomly swapping patches (applying question Y's patch to question X) drops MMLU accuracy from 66.97% to 47.57%; answering with the plain base model gives 58.99%. A wrong patch is worse than none. The patches aren't optional seasoning — they're precise prescriptions.

What this means

TFlow demonstrates a new multi-agent paradigm: weight-space communication.

1. "Thought need not become language" — every time we force AI to verbalize internal reasoning, information is lost. TFlow shows that directly transferring representations (as weight perturbations) is not only feasible but faster and cheaper than text.

2. "Temporary adaptation vs. permanent learning" — patches are discarded after generation. The model accumulates no long-term memory and can't "learn bad habits" from weird inputs. Collaboration gains are confined to the current task — an elegant isolation mechanism.

3. Low training cost — only a lightweight parameter generator (a 2-block transformer) is trained, 8 hours on one RTX PRO 6000 over 32k samples. All LLM backbones stay frozen. Any LoRA-capable model could in principle plug into TFlow-style collaboration.

4. Patch interpretability — LoRA patches from different task instances form natural geometric clusters, suggesting we could study "patch shapes" to understand how "A's reasoning strategy" and "B's knowledge contribution" manifest in weight space — nearly impossible with free-form text.

A Feynman-style review

I especially like this idea because it solves a problem that has bothered me for a long time.

Humans use language not because it's the optimal information channel — but because it's the only one we have. We lack brain-to-brain interfaces, so we must encode thoughts into sound waves or symbols. That's our species' limitation, not the ideal form of communication.

AI has no such limitation. Their brains are variants of the same architecture; their "thoughts" live in the same mathematical space. Forcing them to communicate via text is like two programmers in adjacent rooms sending code by carrier pigeon. It works — but why?

TFlow's elegance is that it doesn't try to make AI "more human." It accepts that AI is not human and asks: given that they aren't bound by our communication limits, what's the most natural way for them to communicate?

Answer: directly modify each other's computation graph.

It's not perfect. For output-heavy tasks like code generation, TFlow underperforms text. Patch injection hurts batching efficiency. And it requires the receiver's architecture to be known and fixed. But these read as engineering problems, not fundamental flaws.

More importantly, it opens an imagination: future AI collaboration shouldn't look like "conversation" — it should look like "fusion." Multiple AIs temporarily merge into a larger, more capable compute unit, then separate when the task ends. Not "tell me what you think," but "temporarily become part of me."

That sounds sci-fi. But TFlow shows that, at least on math and coding benchmarks, it already works.

Reference paper

Wenrui Bao, Huan Wang, Jian Wang, Zhangyang Wang, Kai Wang, Yuzhang Shang. "Good Agentic Friends Do Not Just Give Verbal Advice: They Can Update Your Weights." arXiv:2605.13839, 2026.

Tags

#multi-agent-systems#weight-space-communication#lora#large-language-models#tflow#inference-efficiency#kv-cache#ai-collaboration

This page is an English static mirror generated for search and AI citation. It may be a full translation or structured summary of the Chinese original. Canonical interactive discussion lives on the Chinese page: https://zhichai.net/topic/177620025