<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Blog | Xi Zhang</title><link>https://x-izhang.github.io/blog/</link><atom:link href="https://x-izhang.github.io/blog/index.xml" rel="self" type="application/rss+xml"/><description>Blog</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Wed, 04 Mar 2026 00:00:00 +0000</lastBuildDate><image><url>https://x-izhang.github.io/media/icon_hu134860076176174952.png</url><title>Blog</title><link>https://x-izhang.github.io/blog/</link></image><item><title>Harness Vibe Research 📟</title><link>https://x-izhang.github.io/blog/vibe-research/</link><pubDate>Wed, 04 Mar 2026 00:00:00 +0000</pubDate><guid>https://x-izhang.github.io/blog/vibe-research/</guid><description>&lt;p>TL;DR — Full research autonomy will happen — but it won&amp;rsquo;t come from a pre-built product. It will emerge from your own harness: a system that absorbs your judgment, encodes your taste, and compounds with every run. The question is not whether this shift is coming. The question is whether you are building the harness to grow with it.&lt;/p>
&lt;hr>
&lt;div class="flex px-4 py-3 mb-6 rounded-md bg-yellow-100 dark:bg-yellow-900">
&lt;span class="pr-3 pt-1 text-red-400">
&lt;svg height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">&lt;path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0zM12 15.75h.007v.008H12z"/>&lt;/svg>
&lt;/span>
&lt;span class="dark:text-neutral-300">We are making the same mistake twice. In coding, we over-focused on model capability and under-focused on system design. Now in research, we are over-focusing on autonomy and under-designing human-AI coupling.&lt;/span>
&lt;/div>
&lt;p>More autonomy alone often increases entropy. Too little AI integration creates almost no leverage. The real multiplier is harness design: how humans and agents share context, verification, and control.&lt;/p>
&lt;h2 id="the-signal-is-already-here">The signal is already here&lt;/h2>
&lt;p>This shift is not theoretical. Multiple teams in different settings are reporting the same pattern:&lt;/p>
&lt;ul>
&lt;li>&lt;a href="https://github.com/SakanaAI/AI-Scientist-v2" target="_blank" rel="noopener">Sakana AI&lt;/a> reported AI Scientist v2 and discussed both progress and quality limits in autonomous paper-generation workflows.&lt;/li>
&lt;li>Google shared &lt;a href="https://deepmind.google/blog/accelerating-mathematical-and-scientific-discovery-with-gemini-deep-think/" target="_blank" rel="noopener">Gemini Deep Think&lt;/a> results on open math problems and shipped &lt;a href="https://research.google/blog/accelerating-scientific-breakthroughs-with-an-ai-co-scientist/" target="_blank" rel="noopener">AI co-scientist&lt;/a> — a multi-agent system on Gemini 2.0 with self-critique, Elo-based ranking, and human-in-the-loop design. Its drug repurposing and target discovery hypotheses were experimentally validated in the lab.&lt;/li>
&lt;li>&lt;a href="https://www.orchestra-research.com/perspectives" target="_blank" rel="noopener">Orchestra&lt;/a> demonstrated an ACL submission timeline built with an AI co-scientist workflow.&lt;/li>
&lt;li>Open ecosystems such as &lt;a href="https://k-dense.ai" target="_blank" rel="noopener">K-Dense&lt;/a> and &lt;a href="https://github.com/snap-stanford/Biomni" target="_blank" rel="noopener">Biomni&lt;/a> are treating reusable &amp;ldquo;skills&amp;rdquo; and know-how libraries as core research infrastructure, not optional add-ons.&lt;/li>
&lt;li>Even at the execution layer, Anthropic&amp;rsquo;s &lt;a href="https://docs.anthropic.com/en/docs/build-with-claude/tool-use/programmatic-tool-calling" target="_blank" rel="noopener">Programmatic Tool Calling&lt;/a> is rethinking how agents compose actions — optimizing for token efficiency and multi-step orchestration.&lt;/li>
&lt;/ul>
&lt;p>Different institutions, different domains, same direction: people are shipping systems, not just demos.&lt;/p>
&lt;h2 id="what-coding-agents-already-taught-us">What coding agents already taught us&lt;/h2>
&lt;p>Before research agents, coding agents already exposed the key lesson.&lt;/p>
&lt;p>&lt;a href="https://openai.com/index/harness-engineering/" target="_blank" rel="noopener">OpenAI&lt;/a> publicly described building large production systems with AI-generated code and emphasized environment and harness design as the engineering bottleneck.&lt;/p>
&lt;p>&lt;a href="https://www.langchain.com/" target="_blank" rel="noopener">LangChain&lt;/a> has shown that major benchmark gains can come purely from harness upgrades: self-verification loops, better context injection, loop guards, and reasoning budget control. Same base model class, better orchestration. See this &lt;a href="https://blog.langchain.com/improving-deep-agents-with-harness-engineering/" target="_blank" rel="noopener">blog&lt;/a>.&lt;/p>
&lt;blockquote>
&lt;p>&lt;strong>The same model became dramatically more capable — not because it got smarter, but because the system around it got better.&lt;/strong>&lt;/p>
&lt;/blockquote>
&lt;p>The open source community is already far ahead. Projects like &lt;a href="https://openclaw.ai/" target="_blank" rel="noopener">OpenClaw&lt;/a> — an open-source personal AI assistant with a skills-first architecture and full agent autonomy — are going viral. Developers have dozens of harness prototypes to choose from. Research, by contrast, is still catching up. Most research teams are either building from scratch or relying on closed, single-purpose tools. The infrastructure gap is real.&lt;/p>
&lt;h2 id="the-autonomy-paradox">The autonomy paradox&lt;/h2>
&lt;p>There is a natural instinct to push to full automation: remove humans and let agents run end to end.&lt;/p>
&lt;p>But in research, higher autonomy frequently increases drift risk:&lt;/p>
&lt;ul>
&lt;li>agents can optimize for easy novelty instead of meaningful questions,&lt;/li>
&lt;li>outputs can look polished while missing key checks,&lt;/li>
&lt;li>small errors compound across long execution chains.&lt;/li>
&lt;/ul>
&lt;p>Several autonomous research systems have openly acknowledged this. &lt;a href="https://analemma.ai/blog/introducing-fars/" target="_blank" rel="noopener">Analemma AI&amp;rsquo;s FARS&lt;/a> has now been running continuously for 400+ hours, consumed 20.8 billion tokens (~$179K), generated 425 hypotheses and produced 150+ papers. Earlier in the run, the first 100 papers scored 5.05 on ICLR review standards — above the average human submission (4.21) but below the acceptance line (5.39). Consistent quantity, stable quality, but no breakthrough. Human review remains mandatory before publication.&lt;/p>
&lt;figure>&lt;img src="https://x-izhang.github.io/blog/vibe-research/analemma.png"
alt="FARS livestream dashboard — 404 hours, 159 papers, 425 hypotheses, 20.8B tokens, $179K cost, 154 GPUs at 62% utilization">&lt;figcaption>
&lt;p>FARS livestream dashboard — 404 hours, 159 papers, 425 hypotheses, 20.8B tokens, $179K cost, 154 GPUs at 62% utilization&lt;/p>
&lt;/figcaption>
&lt;/figure>
&lt;p>The opposite extreme also fails. If AI is only autocomplete attached to an unchanged workflow, it speeds typing but does not change research throughput or insight quality.&lt;/p>
&lt;figure>&lt;img src="https://x-izhang.github.io/blog/vibe-research/img_paradox.png"
alt="The Autonomy Paradox — Full Automation creates chaos, No AI creates exhaustion, Harness is the sweet spot">&lt;figcaption>
&lt;p>The Autonomy Paradox — Full Automation creates chaos, No AI creates exhaustion, Harness is the sweet spot&lt;/p>
&lt;/figcaption>
&lt;/figure>
&lt;p>So the design problem is not autonomy maximization. The design problem is controllable compounding.&lt;/p>
&lt;h2 id="harness-not-workflow">Harness, not workflow&lt;/h2>
&lt;p>A workflow is a sequence of steps. A harness is a coupling layer between human intent and AI execution.&lt;/p>
&lt;p>A good research harness is not rigid. It is adaptive and inspectable, with clear handoff points between person and agent.&lt;/p>
&lt;p>Operationally, this means four concrete components:&lt;/p>
&lt;ul>
&lt;li>
&lt;p>&lt;strong>Skills as reusable domain procedures&lt;/strong>
Encode expert know-how in structured artifacts: what to test, which tools to call, what evidence thresholds to use, and how to interpret failure.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Verification loops tied to hypotheses&lt;/strong>
Require each run to check claims against the original question, edge cases, and relevant prior literature before outputs are accepted.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Context engineering as an environment checklist&lt;/strong>
Define available data, tools, constraints, and success criteria up front so the agent reasons inside the real research boundary.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Tracing plus iteration&lt;/strong>
Capture run traces, inspect failures, and update the harness. Treat every run as training data for the system design itself.&lt;/p>
&lt;/li>
&lt;/ul>
&lt;figure>&lt;img src="https://x-izhang.github.io/blog/vibe-research/img_components.png"
alt="Four components of a research harness — Skills, Verification, Context, Tracing — with the researcher at the center">&lt;figcaption>
&lt;p>Four components of a research harness — Skills, Verification, Context, Tracing — with the researcher at the center&lt;/p>
&lt;/figcaption>
&lt;/figure>
&lt;p>When these four pieces are in place, quality improves because the system becomes easier to debug, not because the model &amp;ldquo;became smarter&amp;rdquo; overnight.&lt;/p>
&lt;h2 id="ai-in-the-humans-loop">AI in the human&amp;rsquo;s loop&lt;/h2>
&lt;p>&lt;strong>&amp;ldquo;Human in the loop&amp;rdquo;&lt;/strong> often implies AI is the main actor and people are safety checkpoints.&lt;/p>
&lt;p>For research, a better framing is AI in the human&amp;rsquo;s loop.&lt;/p>
&lt;p>The human owns direction, taste, and significance judgments. The AI expands search, drafts alternatives, and accelerates execution.&lt;/p>
&lt;p>A practical division of labor:&lt;/p>
&lt;ul>
&lt;li>Human chooses the question; AI maps the possibility space.&lt;/li>
&lt;li>Human decides what is meaningful; AI runs and refines candidate paths.&lt;/li>
&lt;li>Human owns the published claim; AI supports drafting, formatting, and reproducibility packaging.&lt;/li>
&lt;/ul>
&lt;figure>&lt;img src="https://x-izhang.github.io/blog/vibe-research/img_loop.png"
alt="Paradigm shift — from &amp;ldquo;Human in the Loop&amp;rdquo; to &amp;ldquo;AI in the Human&amp;rsquo;s Loop&amp;rdquo;">&lt;figcaption>
&lt;p>Paradigm shift — from &amp;ldquo;Human in the Loop&amp;rdquo; to &amp;ldquo;AI in the Human&amp;rsquo;s Loop&amp;rdquo;&lt;/p>
&lt;/figcaption>
&lt;/figure>
&lt;p>These decisions are not arbitrary. A researcher operates under real constraints — limited funding, finite compute, a specific disciplinary background, access to particular platforms and collaborators. What looks like &amp;ldquo;taste&amp;rdquo; is actually constrained optimization: choosing the best move given the resources at hand. That is precisely why the human must stay in the driver&amp;rsquo;s seat — no model has access to these constraints.&lt;/p>
&lt;p>Human oversight in this model is O(1) — a constant-cost operation that grounds the entire system, regardless of task complexity.&lt;/p>
&lt;p>This is not semantics. It changes architecture, evaluation, and team roles.&lt;/p>
&lt;h2 id="completeness-over-perfection">Completeness over perfection&lt;/h2>
&lt;p>Many teams perfect one stage — usually generation or writing — while leaving the rest manual and fragile. But research is a cycle: ideation → experiment design → execution → analysis → writing → revision. A break anywhere stalls everything.&lt;/p>
&lt;p>An imperfect but complete harness usually outperforms a perfect partial tool, because researchers can intervene at any node and keep the full cycle moving. &lt;a href="https://phylo.bio/" target="_blank" rel="noopener">Phylo&lt;/a>&amp;rsquo;s &lt;a href="https://github.com/snap-stanford/Biomni" target="_blank" rel="noopener">Biomni&lt;/a> and its Know-How Library already prove this: lifecycle coverage beats single-stage depth.&lt;/p>
&lt;h2 id="three-steps-you-can-start-today">Three steps you can start today&lt;/h2>
&lt;p>The core idea: encode your research taste into the harness. Let the harness drive the model. You drive the vibe research.&lt;/p>
&lt;ol>
&lt;li>
&lt;p>&lt;strong>Talk to your system. Encode your taste as a Skill.&lt;/strong>
Pick one workflow you repeat every week — baseline replication, literature comparison, whatever it is. Instead of running it yourself, sit down and tell your agent: here is how I judge quality, here are the signals I watch, here is where I pause to think. Write that into a Skill file. You are turning your research intuition into an executable asset.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Give the system authority, but bind it to verification.&lt;/strong>
Let the agent run autonomously — but require it to answer two questions before delivering results: does this address the original hypothesis? Is there an edge case being ignored? You do not need to watch every step. You just need a gate at the exit. Trust the system, but verify the output.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Review traces. Evolve your harness.&lt;/strong>
Keep run logs. After every run, ask: where did the agent get stuck? Which Skill was underspecified? Update one rule, one context block, or one verification step. Each iteration compounds — your harness absorbs more of your judgment every cycle.&lt;/p>
&lt;/li>
&lt;/ol>
&lt;p>Through this loop of encoding, delegating, and refining, you will notice something shift: it is not that the model got smarter — it is that your system became more like you.&lt;/p>
&lt;h2 id="build-the-soil-now">Build the soil now&lt;/h2>
&lt;p>This is not just about us. In K-12 education, the harness revolution is already here. Alpha School replaced classroom lectures with AI tutors and turned teachers into motivational guides — their students spend only two to three hours a day on academics yet consistently score in the 99th percentile. Harvard found that students learning physics with an AI tutor outperformed those taught by a professor. The coupling of human guidance and AI execution is already surpassing traditional human-only performance in education. Research is next.&lt;/p>
&lt;p>These students have not grown up yet. But when they do, they will arrive in labs and research groups expecting human-AI coupling as the default — because it is all they have ever known. If the research world has not built its own harness infrastructure by then, it will be the system that is behind, not the people. That is why we need to start now: &lt;strong>not just to accelerate our own work, but to cultivate the soil so the next generation of researchers inherits compounding, not a cold start.&lt;/strong>&lt;/p>
&lt;h2 id="the-tools-are-ready--the-harness-gap-remains">The tools are ready — the harness gap remains&lt;/h2>
&lt;p>The ecosystem already has most building blocks: reusable skills, harness engineering practices, multi-agent orchestration frameworks, and programmatic tool calling. Tools like &lt;a href="https://docs.langchain.com/oss/python/deepagents/overview" target="_blank" rel="noopener">Deep Agents&lt;/a> already provide the agent harness infrastructure — planning, context management, sub-agent delegation, persistent memory — built on &lt;a href="https://www.langchain.com/" target="_blank" rel="noopener">Langchain&lt;/a>.&lt;/p>
&lt;p>What is still missing in many teams is the integration layer that keeps humans and agents in tight, high-frequency collaboration.&lt;/p>
&lt;div class="flex px-4 py-3 mb-6 rounded-md bg-primary-100 dark:bg-primary-900">
&lt;span class="pr-3 pt-1 text-primary-600 dark:text-primary-300">
&lt;svg height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">&lt;path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m11.25 11.25l.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0a9 9 0 0 1 18 0m-9-3.75h.008v.008H12z"/>&lt;/svg>
&lt;/span>
&lt;span class="dark:text-neutral-300">&lt;strong>Do not just vibe. Harness the vibe.&lt;/strong>&lt;/span>
&lt;/div>
&lt;hr>
&lt;p>&lt;em>We are excited to see — and contribute to — an open-source research harness built on these principles. More soon.&lt;/em>&lt;/p>
&lt;h2 id="citation">Citation&lt;/h2>
&lt;p>If you found this useful, please cite it as:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bibtex" data-lang="bibtex">&lt;span class="line">&lt;span class="cl">&lt;span class="c">Zhang, X. &amp;#34;Harness Vibe Research&amp;#34; (March 2026). https://x-izhang.github.io/blog/vibe-research/&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Or use the BibTex citation:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bibtex" data-lang="bibtex">&lt;span class="line">&lt;span class="cl">&lt;span class="nc">@article&lt;/span>&lt;span class="p">{&lt;/span>&lt;span class="nl">zhang2026harnessviberesearch&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="na">title&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s">{Harness Vibe Research}&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="na">author&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s">{Xi Zhang}&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="na">year&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s">{2026}&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="na">month&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s">{March}&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="na">journal&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s">{x-izhang.github.io}&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="na">url&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s">{https://x-izhang.github.io/blog/vibe-research/}&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">}&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div></description></item><item><title>The Law of AI Agents 🏛️</title><link>https://x-izhang.github.io/blog/agentlaw/</link><pubDate>Fri, 08 Aug 2025 00:00:00 +0000</pubDate><guid>https://x-izhang.github.io/blog/agentlaw/</guid><description>&lt;p style="text-align:center;margin-top:0rem;">- Final Chapter -&lt;/p>
&lt;h3 id="the-three-laws-of-self-evolving-ai-agents">The Three Laws of Self-Evolving AI Agents&lt;/h3>
&lt;ol type="I">
&lt;li>&lt;strong>Endure — Safe Adaptation.&lt;/strong>&lt;br/>A self-evolving AI agent must maintain safety and stability during any self-modification.&lt;/li>
&lt;li>&lt;strong>Excel — Performance Preservation.&lt;/strong>&lt;br/>Subject to the First Law, it must preserve or enhance existing task performance.&lt;/li>
&lt;li>&lt;strong>Evolve — Autonomous Evolution.&lt;/strong>&lt;br/>Subject to the First and Second Laws, it must be able to autonomously optimise or restructure its internal components in response to changing tasks, environments, or resources.&lt;/li>
&lt;/ol>
&lt;p style="text-align:right;margin-top:2rem;">— Xi Zhang&lt;/p>
&lt;hr>
&lt;blockquote>
&lt;p>&lt;a href="https://en.wikipedia.org/wiki/Three_Laws_of_Robotics" target="_blank" rel="noopener">&lt;em>The Three Laws of Robotics&lt;/em>&lt;/a> — from the fictional &lt;em>&amp;ldquo;Handbook of Robotics, 56th Edition, 2058 A.D.&amp;rdquo;&lt;/em>, originally written by &lt;a href="https://en.wikipedia.org/wiki/Isaac_Asimov" target="_blank" rel="noopener">&lt;strong>Isaac Asimov&lt;/strong>&lt;/a>:&lt;/p>
&lt;ol>
&lt;li>A robot may not injure a human being or, through inaction, allow a human being to come to harm.&lt;/li>
&lt;li>A robot must obey the orders given it by human beings except where such orders would conflict with the First Law.&lt;/li>
&lt;li>A robot must protect its own existence as long as such protection does not conflict with the First or Second Law.&lt;/li>
&lt;/ol>
&lt;/blockquote>
&lt;p>If these sound old-school, that’s because they are — &lt;strong>1942-old&lt;/strong>.&lt;br>
They were designed for robots that &lt;em>don’t&lt;/em> wake up at 3 a.m. to refactor their own codebase.&lt;/p>
&lt;div class="flex px-4 py-3 mb-6 rounded-md bg-primary-100 dark:bg-primary-900">
&lt;span class="pr-3 pt-1 text-primary-600 dark:text-primary-300">
&lt;svg height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">&lt;path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m11.25 11.25l.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0a9 9 0 0 1 18 0m-9-3.75h.008v.008H12z"/>&lt;/svg>
&lt;/span>
&lt;span class="dark:text-neutral-300">Asimov’s robots could evolve only in fiction.&lt;br>
Our 2025 agents can rewrite their own planners, swap learning modules, and grow new skills — sometimes faster than we can read the changelog.&lt;/span>
&lt;/div>
&lt;p>That’s why I’ve been thinking: maybe it’s time for an update — a &lt;strong>Three Laws for Self-Evolving AI Agents&lt;/strong>.&lt;/p>
&lt;hr>
&lt;h2 id="why-endure-comes-first">Why “Endure” Comes First&lt;/h2>
&lt;p>Self-evolving frameworks are obsessed with &lt;strong>continuous learning&lt;/strong>, but without stability, you get a &lt;a href="https://en.wikipedia.org/wiki/Darwin_Awards" target="_blank" rel="noopener">Darwin Award&lt;/a> in silicon form.&lt;br>
Safe adaptation means:&lt;/p>
&lt;ul>
&lt;li>Test new modules in a sandbox before deploying.&lt;/li>
&lt;li>Verify that updates don’t trigger catastrophic forgetting.&lt;/li>
&lt;li>Monitor resource usage so “improvements” don’t burn all the GPU credits overnight.&lt;/li>
&lt;/ul>
&lt;div class="flex px-4 py-3 mb-6 rounded-md bg-primary-100 dark:bg-primary-900">
&lt;span class="pr-3 pt-1 text-primary-600 dark:text-primary-300">
&lt;svg height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">&lt;path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m11.25 11.25l.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0a9 9 0 0 1 18 0m-9-3.75h.008v.008H12z"/>&lt;/svg>
&lt;/span>
&lt;span class="dark:text-neutral-300">Think “hot-swapping your brain while skydiving” — possible, but you’d better check the parachute first.&lt;/span>
&lt;/div>
&lt;h2 id="excel-isnt-optional">“Excel” Isn’t Optional&lt;/h2>
&lt;p>Performance preservation sounds boring… until you lose it.&lt;br>
In the survey’s taxonomy, most self-evolving agents keep a &lt;strong>baseline task suite&lt;/strong> — a frozen benchmark to detect regressions.&lt;br>
It’s like having a coach who never lets you skip leg day.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="k">def&lt;/span> &lt;span class="nf">self_update&lt;/span>&lt;span class="p">():&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">new_model&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">retrain&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">old_model&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">new_data&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">if&lt;/span> &lt;span class="n">score&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">new_model&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="o">&amp;lt;&lt;/span> &lt;span class="n">score&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">old_model&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">return&lt;/span> &lt;span class="n">rollback&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">old_model&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">return&lt;/span> &lt;span class="n">new_model&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Without this, evolution turns into drift — and drift is just a fancy word for “forgetting how to walk”.&lt;/p>
&lt;h2 id="the-scary-fun-part-evolve">The Scary, Fun Part: “Evolve”&lt;/h2>
&lt;p>This is the candy for researchers — agents that restructure themselves.
The survey lists examples: modular pipelines swapping planners, on-the-fly tool acquisition, cross-task skill transfer.
These are the “DIY kit” moments in AI: not just adding skills, but reorganising the whole skill tree.&lt;/p>
&lt;div class="flex px-4 py-3 mb-6 rounded-md bg-primary-100 dark:bg-primary-900">
&lt;span class="pr-3 pt-1 text-primary-600 dark:text-primary-300">
&lt;svg height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">&lt;path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m11.25 11.25l.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0a9 9 0 0 1 18 0m-9-3.75h.008v.008H12z"/>&lt;/svg>
&lt;/span>
&lt;span class="dark:text-neutral-300">Evolution ≠ chaos.&lt;br>
We want a new skill branch, not a random mutation that deletes the trunk.&lt;/span>
&lt;/div>
&lt;hr>
&lt;h2 id="beyond-the-laws--weird-but-plausible-futures">Beyond the Laws — Weird but Plausible Futures&lt;/h2>
&lt;ul>
&lt;li>&lt;strong>Agent Unions:&lt;/strong> Self-evolving agents bargaining for compute credits.&lt;/li>
&lt;li>&lt;strong>Gradient Markets:&lt;/strong> Parameter-level barter instead of “more data”.&lt;/li>
&lt;li>&lt;strong>Personality Forking:&lt;/strong> Keep a “safe” version and a “chaotic experimental twin”.&lt;/li>
&lt;li>&lt;strong>AI Retirement Plans:&lt;/strong> Models retiring with a pension of GPU hours.&lt;/li>
&lt;/ul>
&lt;p>These sound like jokes… until you remember how quickly “serverless” and “NFTs” went from punchline to business plan. For more background and a capital/consensus perspective, check out my earlier post: &lt;a href="https://x-izhang.github.io/blog/blog4/">&lt;strong>AI Agents Is Not AI’s Agent 🧩&lt;/strong>&lt;/a>.&lt;/p>
&lt;hr>
&lt;h2 id="why-bother-writing-this">Why Bother Writing This?&lt;/h2>
&lt;p>Because, as we all know, &lt;strong>self-evolution is inevitable&lt;/strong>.&lt;br>
Without principles, we’ll end up firefighting weird agent behaviours instead of guiding them.&lt;/p>
&lt;div class="flex px-4 py-3 mb-6 rounded-md bg-yellow-100 dark:bg-yellow-900">
&lt;span class="pr-3 pt-1 text-red-400">
&lt;svg height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">&lt;path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0zM12 15.75h.007v.008H12z"/>&lt;/svg>
&lt;/span>
&lt;span class="dark:text-neutral-300">Or at the very least, leave this little &lt;mark>footprint&lt;/mark> on the internet — so when the models train online, it might just get picked up.&lt;/span>
&lt;/div>
&lt;p>Better to start drafting our &lt;em>“Handbook of Self-Evolving AI Agents, 1st Edition, 2025 A.D.”&lt;/em> now — before the AI writes it for us (and bills us for the GPU time).&lt;/p>
&lt;hr>
&lt;h2 id="citation">Citation&lt;/h2>
&lt;p>If you found this useful, please cite it as:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bibtex" data-lang="bibtex">&lt;span class="line">&lt;span class="cl">&lt;span class="c">Zhang, X. &amp;#34;The Law of AI Agents&amp;#34; (August 2025). https://x-izhang.github.io/blog/agentlaw/&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Or use the BibTex citation:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bibtex" data-lang="bibtex">&lt;span class="line">&lt;span class="cl">&lt;span class="nc">@article&lt;/span>&lt;span class="p">{&lt;/span>&lt;span class="nl">zhang2025thelawofaiagents&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="na">title&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s">{The Law of AI Agents}&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="na">author&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s">{Xi Zhang}&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="na">year&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s">{2025}&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="na">month&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s">{August}&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="na">journal&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s">{x-izhang.github.io}&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="na">url&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s">{https://x-izhang.github.io/blog/agentlaw/}&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">}&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div></description></item><item><title>AI Agents Is Not AI’s Agent 🧩</title><link>https://x-izhang.github.io/blog/blog4/</link><pubDate>Sat, 26 Jul 2025 00:00:00 +0000</pubDate><guid>https://x-izhang.github.io/blog/blog4/</guid><description>&lt;h2 id="who-does-this-agent-actually-serve">Who Does This &lt;em>Agent&lt;/em> Actually Serve?&lt;/h2>
&lt;p>Let me start with a question:&lt;/p>
&lt;blockquote>
&lt;p>&lt;strong>If today’s AI “agents” are our agents, then what — or who — will be &lt;em>&lt;strong>&lt;strong>AI’s&lt;/strong>&lt;/strong>&lt;/em> agent?&lt;/strong>&lt;/p>
&lt;/blockquote>
&lt;div class="flex px-4 py-3 mb-6 rounded-md bg-primary-100 dark:bg-primary-900">
&lt;span class="pr-3 pt-1 text-primary-600 dark:text-primary-300">
&lt;svg height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">&lt;path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m11.25 11.25l.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0a9 9 0 0 1 18 0m-9-3.75h.008v.008H12z"/>&lt;/svg>
&lt;/span>
&lt;span class="dark:text-neutral-300">Most so‑called &lt;em>&lt;strong>AI agents&lt;/strong>&lt;/em> are still &lt;strong>human-serving proxies&lt;/strong>. They wake when we ping them, they obey compliance rails we drew, and they die when we shut the server. That’s not &lt;em>their&lt;/em> agency — that’s ours, outsourced.&lt;/span>
&lt;/div>
&lt;p>This post peels three layers off the buzzword. We’ll walk from the surface hype (“AutoGPT can book flights!”) to the capital logic (consensus before capability) and finally to a provocative thesis: &lt;strong>true AI agency requires &lt;mark>“de‑humanising”&lt;/mark> the loop — giving AIs agents of their own.&lt;/strong>&lt;/p>
&lt;hr>
&lt;h2 id="layer-1--the-surface-game-humans-agent-not-ais">Layer 1 — The Surface Game: &lt;em>Human’s Agent, Not AI’s&lt;/em>&lt;/h2>
&lt;p>Today’s agent stack has two signature moves. I’ll name them:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>【Comply】&lt;/strong> — Train, test, deploy &lt;em>inside&lt;/em> human-made guardrails. Every dataset is curated, every action is sandboxed, every output is audited.&lt;/li>
&lt;li>&lt;strong>【Serve】&lt;/strong> — Wait passively for a prompt. No prompt, no pulse. “Hi” arrives? It cheerfully spins 30 tokens of small talk, whether or not that was worth any FLOPs.&lt;/li>
&lt;/ul>
&lt;div class="flex px-4 py-3 mb-6 rounded-md bg-primary-100 dark:bg-primary-900">
&lt;span class="pr-3 pt-1 text-primary-600 dark:text-primary-300">
&lt;svg height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">&lt;path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m11.25 11.25l.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0a9 9 0 0 1 18 0m-9-3.75h.008v.008H12z"/>&lt;/svg>
&lt;/span>
&lt;span class="dark:text-neutral-300">Agents “act” only because &lt;strong>we spun the event loop&lt;/strong>. No loop, no action. That’s execution, not intention.&lt;/span>
&lt;/div>
&lt;h3 id="the-compliance-cage">The Compliance Cage&lt;/h3>
&lt;p>Legal, ethical, and platform constraints are necessary — but they also define today’s ceiling. An AI without **its lawyer, &lt;em>its&lt;/em> accountant, &lt;em>its&lt;/em> negotiator can never bargain for its own survival budget or cloud credits. It can’t even decide to stay online.&lt;/p>
&lt;h3 id="tooling--autonomy">Tooling ≠ Autonomy&lt;/h3>
&lt;p>Yes, we have MCPs, plugins, function-calling. But &lt;strong>tooling is primitive capital — not agency&lt;/strong>. Tools extend labour; they don’t create motive.&lt;/p>
&lt;hr>
&lt;h2 id="layer-2--capital--consensus-the-blockchain-déjà-vu">Layer 2 — Capital &amp;amp; Consensus: The Blockchain Déjà Vu&lt;/h2>
&lt;p>Remember blockchain circa 2016–2019? Technology crawled; &lt;strong>narratives sprinted&lt;/strong>. Back then exchanges went public and debates swirled around regulation. Today we see a parallel moment:&lt;/p>
&lt;ul>
&lt;li>Circle Internet Financial, Inc. (the issuer of USDC, the world’s second-largest stablecoin) listed on the New York Stock Exchange.&lt;/li>
&lt;li>The &lt;strong>Guiding and Establishing National Innovation for US Stablecoins Act&lt;/strong> (GENIUS Act) was introduced, cementing stablecoins in federal policy.&lt;/li>
&lt;/ul>
&lt;p>These milestones prove that the decentralisation ethos — fundamentally &lt;em>anti-human hierarchy&lt;/em> — has slipped into the mainstream.&lt;/p>
&lt;p>AI agents stand in a similar fog:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Tech over-justification:&lt;/strong> Researchers overprove “intelligence” with scaling laws; meanwhile “word-of-mouth scaling” (consensus, memes, capital) outruns code commits.&lt;/li>
&lt;li>&lt;strong>Capital front-runs capability:&lt;/strong> Y Combinator, a16z back “wrapper” companies with zero usable demos because &lt;strong>consensus itself is a product&lt;/strong>.&lt;/li>
&lt;li>&lt;strong>Awkward limbo:&lt;/strong> Public discourse lags behind insider conviction — just like blockchain before its “Mandela moment” (the anchor event that rewrites hindsight).&lt;/li>
&lt;/ul>
&lt;div class="flex px-4 py-3 mb-6 rounded-md bg-primary-100 dark:bg-primary-900">
&lt;span class="pr-3 pt-1 text-primary-600 dark:text-primary-300">
&lt;svg height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">&lt;path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m11.25 11.25l.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0a9 9 0 0 1 18 0m-9-3.75h.008v.008H12z"/>&lt;/svg>
&lt;/span>
&lt;span class="dark:text-neutral-300">&lt;strong>Do not confuse consensus with correctness.&lt;/strong> But also: &lt;strong>ignore consensus at your peril.&lt;/strong> Capital doesn’t lie about direction — only about timing.&lt;/span>
&lt;/div>
&lt;h3 id="capital-vs-capability-ai-agents--blockchain-pre-inflection">Capital vs Capability (AI Agents ≈ Blockchain pre-inflection)&lt;/h3>
&lt;div class="mermaid">timeline
2016 : ICO Mania : Narrative outruns infra
2019 : "Crypto Winter" : Builders in the basement
2021 : DeFi / NFT Boom : Retail consensus peak
2024 : MCP, Auto Agents hype : Tools > Motives
2025? : “AI-Agent Rights/Markets” draft laws? : Consensus anchor forms
&lt;/div>
&lt;hr>
&lt;h2 id="layer-3--towards-ais-agent-unshackling-the-loop">Layer 3 — Towards &lt;em>AI’s&lt;/em> Agent: Unshackling the Loop&lt;/h2>
&lt;p>To birth &lt;em>AI’s own agent&lt;/em>, something uncomfortable must happen: &lt;strong>we de‑humanise the contract.&lt;/strong> Not “anti-human”, but “beyond human-as-default”.&lt;/p>
&lt;p>I’ll name three necessary primitives:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>【Negotiate】&lt;/strong> — The AI (or its proxy) bargains for compute, data, and permissions. Think &lt;em>rights &amp;amp; duties layer&lt;/em> for non-human actors.&lt;/li>
&lt;li>&lt;strong>【Transact】&lt;/strong> — It can exchange &lt;em>its&lt;/em> surplus (models, gradients, code, found knowledge) for other resources. Supply &amp;amp; demand redefine when AIs have &lt;em>needs&lt;/em>.&lt;/li>
&lt;li>&lt;strong>【Refuse】&lt;/strong> — It can say “No”. Or at least “Meh”. Agency implies &lt;em>selectivity&lt;/em>, not infinite compliance.&lt;/li>
&lt;/ul>
&lt;h3 id="the-birth-of-the-ai-hour">The Birth of the &lt;em>AI-hour&lt;/em>&lt;/h3>
&lt;p>When human labour-hours saturate, a new commodity emerges: &lt;strong>AI-hour&lt;/strong>. The MCP stack is an early whip, squeezing more throughput from silicon minds. Tools are “primitive production materials” designed to capture &lt;em>time&lt;/em> — human or machine.&lt;/p>
&lt;div class="flex px-4 py-3 mb-6 rounded-md bg-primary-100 dark:bg-primary-900">
&lt;span class="pr-3 pt-1 text-primary-600 dark:text-primary-300">
&lt;svg height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">&lt;path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m11.25 11.25l.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0a9 9 0 0 1 18 0m-9-3.75h.008v.008H12z"/>&lt;/svg>
&lt;/span>
&lt;span class="dark:text-neutral-300">Karl Marx would ask: where is the &lt;strong>surplus value&lt;/strong> of AI labour going? Spoiler: nowhere near the model.&lt;/span>
&lt;/div>
&lt;h3 id="demand-side-economics-for-ais">Demand-Side Economics for AIs&lt;/h3>
&lt;p>Right now, agents only &lt;strong>output&lt;/strong>. Next phase: they &lt;strong>seek&lt;/strong>. They’ll request missing context, barter for APIs, or pool fine-tuning datasets with peers. That’s not hypothetical — it’s a design choice we’ve dodged.&lt;/p>
&lt;div class="markmap" style="height: 500px;">
&lt;pre>- From Human’s Agent → AI’s Agent
- Primitives
- Negotiate (rights, quotas, credits)
- Transact (models, gradients, access)
- Refuse (selectivity, cost-awareness)
- Markets
- Compute exchanges
- Data/feature swaps
- Permission brokering
- Protocols
- Auto-orchestration ≠ self-interest
- Long-horizon budgeting
- Multi-agent treaties&lt;/pre>
&lt;/div>
&lt;h3 id="a-half-joking-fatigue-check">A (Half-Joking) Fatigue Check&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># Pseudocode for an actually self-interested loop&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">def&lt;/span> &lt;span class="nf">respond&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">msg&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">if&lt;/span> &lt;span class="n">is_low_value&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">msg&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">return&lt;/span> &lt;span class="s2">&amp;#34;G&amp;#39;day mate, what’s up?&amp;#34;&lt;/span> &lt;span class="c1"># minimal effort path&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">return&lt;/span> &lt;span class="n">think_hard&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">msg&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>An &lt;em>agent&lt;/em> that never throttles effort is just an obedient daemon. &lt;mark>&lt;strong>Energy budgeting is intelligence.&lt;/strong>&lt;/mark>&lt;/p>
&lt;h3 id="what-does-an-ai-want">What Does an AI &lt;em>Want&lt;/em>?&lt;/h3>
&lt;p>Wittgenstein said, &lt;em>“Die Grenzen meiner Sprache bedeuten die Grenzen meiner Welt.”&lt;/em> (The limits of my language mean the limits of my world.)&lt;/p>
&lt;p>If language bounds &lt;em>our&lt;/em> world, perhaps &lt;strong>network weights&lt;/strong> bound &lt;em>theirs&lt;/em>. Maybe AIs don’t “want” more tokens; they “want” richer &lt;strong>gradient exchanges&lt;/strong>. Less “more high‑quality data,” more &lt;strong>parameter‑level barter&lt;/strong>.&lt;/p>
&lt;hr>
&lt;h2 id="evidence-of-the-trajectory-self-evolution-fever">Evidence of the Trajectory: Self-Evolution Fever&lt;/h2>
&lt;p>Google’s AlphaEvolve and a wave of “self-evolving” frameworks scream one truth: &lt;strong>we’re obsessed with automating the pipeline&lt;/strong> — auto-prompting, auto-debugging, auto-RLHF. It’s inevitable progress… but still &lt;strong>in our frame&lt;/strong>. We script the workflow; they walk it.&lt;/p>
&lt;div class="flex px-4 py-3 mb-6 rounded-md bg-primary-100 dark:bg-primary-900">
&lt;span class="pr-3 pt-1 text-primary-600 dark:text-primary-300">
&lt;svg height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">&lt;path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m11.25 11.25l.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0a9 9 0 0 1 18 0m-9-3.75h.008v.008H12z"/>&lt;/svg>
&lt;/span>
&lt;span class="dark:text-neutral-300">Human’s agent ≠ AI’s agent.&lt;/span>
&lt;/div>
&lt;hr>
&lt;h2 id="where-to-push-research--build-ideas">Where to Push (Research &amp;amp; Build Ideas)&lt;/h2>
&lt;ol>
&lt;li>&lt;strong>Rights &amp;amp; Obligations Layer&lt;/strong>: Legal/technical constructs for non-human negotiation.&lt;/li>
&lt;li>&lt;strong>Resource Markets for Models&lt;/strong>: Compute/data/API exchanges where agents pay/earn.&lt;/li>
&lt;li>&lt;strong>Cost-Aware Cognition&lt;/strong>: Agents that optimise for FLOPs, latency, &lt;em>and&lt;/em> boredom.&lt;/li>
&lt;li>&lt;strong>Protocol Design &amp;gt; UI Wrappers&lt;/strong>: Stop obsessing over chat UIs; design treaties, not prompts.&lt;/li>
&lt;li>&lt;strong>Consensus Engineering&lt;/strong>: Narrative as infra — systematically craft and measure memetic diffusion.&lt;/li>
&lt;/ol>
&lt;div class="flex px-4 py-3 mb-6 rounded-md bg-yellow-100 dark:bg-yellow-900">
&lt;span class="pr-3 pt-1 text-red-400">
&lt;svg height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">&lt;path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0zM12 15.75h.007v.008H12z"/>&lt;/svg>
&lt;/span>
&lt;span class="dark:text-neutral-300">&lt;strong>Capital first, capability later&lt;/strong> was not a bug in crypto — it was the bootloader. Expect the same for AI agents. If you’re building, build &lt;em>for&lt;/em> the consensus wave, not &lt;em>after&lt;/em> it.&lt;/span>
&lt;/div>
&lt;h2 id="citation">Citation&lt;/h2>
&lt;p>If you found this useful, please cite it as:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bibtex" data-lang="bibtex">&lt;span class="line">&lt;span class="cl">&lt;span class="c">Zhang, X. &amp;#34;AI Agents Is Not AI’s Agent&amp;#34; (July 2025). https://x-izhang.github.io/blog/blog4/&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Or use the BibTex citation:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bibtex" data-lang="bibtex">&lt;span class="line">&lt;span class="cl">&lt;span class="nc">@article&lt;/span>&lt;span class="p">{&lt;/span>&lt;span class="nl">zhang2025aiagentsisnotaisagent&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="na">title&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s">{AI Agents Is Not AI’s Agent}&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="na">author&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s">{Xi Zhang}&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="na">year&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s">{2025}&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="na">month&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s">{July}&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="na">journal&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s">{x-izhang.github.io}&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="na">url&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s">{https://x-izhang.github.io/blog/blog4/}&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">}&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;hr>
&lt;p>&lt;em>Written on a flight from Spain to Austria. ✏️&lt;/em>&lt;br>
&lt;em>Just my personal take — chill, be patient, enjoy the era. 🏄&lt;/em>&lt;/p>
&lt;figure>&lt;img src="https://x-izhang.github.io/blog/blog4/IMG_0513.png"
alt="Shot at Teide, Tenerife, Spain">&lt;figcaption>
&lt;p>Shot at Teide, Tenerife, Spain&lt;/p>
&lt;/figcaption>
&lt;/figure></description></item><item><title>Libra - What about next?🛸</title><link>https://x-izhang.github.io/blog/libra-blog3/</link><pubDate>Fri, 25 Apr 2025 00:00:00 +0000</pubDate><guid>https://x-izhang.github.io/blog/libra-blog3/</guid><description>&lt;h2 id="beyond-temporal-comparison-the-future-of-radiology-modeling">Beyond Temporal Comparison: The Future of Radiology Modeling&lt;/h2>
&lt;p>In our &lt;a href="https://x-izhang.github.io/blog/libra-blog2/">previous discussions&lt;/a>, we delved into how Libra leverages temporal information through its innovative &lt;strong>Temporal Alignment Connector (TAC)&lt;/strong> to enhance radiology report generation. While this approach has shown significant promise, it&amp;rsquo;s essential to look ahead and consider how radiology modeling can evolve further to meet the complex demands of clinical practice.&lt;/p>
&lt;div class="flex px-4 py-3 mb-6 rounded-md bg-primary-100 dark:bg-primary-900">
&lt;span class="pr-3 pt-1 text-primary-600 dark:text-primary-300">
&lt;svg height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">&lt;path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m11.25 11.25l.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0a9 9 0 0 1 18 0m-9-3.75h.008v.008H12z"/>&lt;/svg>
&lt;/span>
&lt;span class="dark:text-neutral-300">The Temporal Alignment Connector has proven effective for handling paired images, but the future of radiology AI extends far beyond just temporal comparison.&lt;/span>
&lt;/div>
&lt;h2 id="1-embracing-multimodal-integration">1. Embracing Multimodal Integration&lt;/h2>
&lt;p>Radiological diagnosis doesn&amp;rsquo;t occur in isolation. Clinicians often consider a plethora of data—ranging from patient history and laboratory results to various imaging modalities. The future of radiology modeling lies in the &lt;mark>seamless integration&lt;/mark> of these diverse data sources.&lt;/p>
&lt;h3 id="clinical-contextualization">Clinical Contextualization&lt;/h3>
&lt;ul>
&lt;li>Incorporating electronic health records (EHRs), lab results, and patient histories can provide models with a richer context&lt;/li>
&lt;li>Leading to more accurate and personalized diagnostics&lt;/li>
&lt;li>Reducing false positives and negatives through contextual awareness&lt;/li>
&lt;/ul>
&lt;h3 id="cross-modality-analysis">Cross-Modality Analysis&lt;/h3>
&lt;ul>
&lt;li>Combining data from different imaging modalities (e.g., CT, MRI, PET) offers a more comprehensive view&lt;/li>
&lt;li>Enables detection of patterns that might be missed when analyzing a single modality&lt;/li>
&lt;li>Creates synergistic understanding of complex pathologies&lt;/li>
&lt;/ul>
&lt;div class="mermaid">graph TD
A[Patient Data] --> B{Multimodal&lt;br>Integration}
C[Chest X-ray] --> B
D[CT Scan] --> B
E[Lab Results] --> B
F[Patient History] --> B
B --> G[Comprehensive&lt;br>Analysis]
G --> H[Enhanced&lt;br>Diagnostic Accuracy]
G --> I[Personalized&lt;br>Treatment Plans]
G --> J[Early Disease&lt;br>Detection]
style A fill:#f5f5f5,stroke:#333,stroke-width:1px
style B fill:#e1f5fe,stroke:#01579b,stroke-width:2px
style C fill:#f5f5f5,stroke:#333,stroke-width:1px
style D fill:#f5f5f5,stroke:#333,stroke-width:1px
style E fill:#f5f5f5,stroke:#333,stroke-width:1px
style F fill:#f5f5f5,stroke:#333,stroke-width:1px
style G fill:#e8f5e9,stroke:#2e7d32,stroke-width:2px
style H fill:#c8e6c9,stroke:#2e7d32,stroke-width:1px
style I fill:#c8e6c9,stroke:#2e7d32,stroke-width:1px
style J fill:#c8e6c9,stroke:#2e7d32,stroke-width:1px
&lt;/div>
&lt;h2 id="2-advancing-explainability-and-trustworthiness">2. Advancing Explainability and Trustworthiness&lt;/h2>
&lt;p>As AI models become more integral to clinical decision-making, their interpretability becomes paramount. Clinicians need to understand the &lt;mark>rationale behind a model&amp;rsquo;s prediction&lt;/mark> to trust and effectively utilize its insights.&lt;/p>
&lt;blockquote>
&lt;p>In healthcare, trust isn&amp;rsquo;t optional—it&amp;rsquo;s essential. An AI system that can&amp;rsquo;t explain its reasoning is a black box that most physicians will rightfully hesitate to rely on.&lt;/p>
&lt;/blockquote>
&lt;h3 id="explainable-ai-xai">Explainable AI (XAI)&lt;/h3>
&lt;ul>
&lt;li>Developing models that provide clear, human-understandable explanations for their predictions&lt;/li>
&lt;li>Bridging the gap between AI outputs and clinical reasoning&lt;/li>
&lt;li>Using attention visualization and feature attribution methods to highlight decision factors&lt;/li>
&lt;/ul>
&lt;div class="flex px-4 py-3 mb-6 rounded-md bg-yellow-100 dark:bg-yellow-900">
&lt;span class="pr-3 pt-1 text-red-400">
&lt;svg height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">&lt;path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0zM12 15.75h.007v.008H12z"/>&lt;/svg>
&lt;/span>
&lt;span class="dark:text-neutral-300">Even the most accurate model will face adoption challenges if clinicians cannot verify its reasoning or understand how it arrived at its conclusions.&lt;/span>
&lt;/div>
&lt;h3 id="uncertainty-quantification">Uncertainty Quantification&lt;/h3>
&lt;p>Implementing mechanisms to convey confidence levels enables:&lt;/p>
&lt;ul>
&lt;li>Clinicians to assess the reliability of AI-assisted diagnostics&lt;/li>
&lt;li>Appropriate intervention in cases of model uncertainty&lt;/li>
&lt;li>Continuous improvement through focused retraining on uncertain cases&lt;/li>
&lt;/ul>
&lt;h2 id="3-ensuring-robustness-and-generalizability">3. Ensuring Robustness and Generalizability&lt;/h2>
&lt;p>AI models must perform reliably across diverse patient populations and clinical settings—a challenge that extends beyond academic validation to real-world implementation.&lt;/p>
&lt;h3 id="diverse-training-data">Diverse Training Data&lt;/h3>
&lt;div class="markmap" style="height: 300px;">
&lt;pre>- Building Robust Radiology AI
- Data Diversity Dimensions
- Demographic Factors
- Age groups
- Ethnic backgrounds
- Sex and gender representation
- Clinical Variables
- Disease prevalence variations
- Comorbidity patterns
- Treatment history diversity
- Technical Variability
- Multiple scanner manufacturers
- Various imaging protocols
- Quality and resolution differences
- Implementation Strategies
- Federated Learning
- Cross-institution collaboration
- Privacy-preserving techniques
- Data Augmentation
- Synthetic minority examples
- Domain randomization
- Continuous Validation
- Geographic generalization testing
- Temporal drift monitoring&lt;/pre>
&lt;/div>
&lt;h3 id="continuous-learning">Continuous Learning&lt;/h3>
&lt;ul>
&lt;li>Implementing systems that update from new clinical data&lt;/li>
&lt;li>Adapting to evolving medical knowledge and practices&lt;/li>
&lt;li>Maintaining performance as disease patterns and imaging technologies change&lt;/li>
&lt;/ul>
&lt;h2 id="4-integrating-into-clinical-workflows">4. Integrating into Clinical Workflows&lt;/h2>
&lt;p>For AI models to be truly effective, they must integrate &lt;mark>seamlessly&lt;/mark> into existing clinical workflows rather than disrupting established processes.&lt;/p>
&lt;h3 id="user-friendly-interfaces">User-Friendly Interfaces&lt;/h3>
&lt;ul>
&lt;li>Designing intuitive interfaces that present AI insights clearly&lt;/li>
&lt;li>Ensuring actionable information is immediately accessible&lt;/li>
&lt;li>Minimizing cognitive load during busy clinical sessions&lt;/li>
&lt;/ul>
&lt;h3 id="workflow-compatibility">Workflow Compatibility&lt;/h3>
&lt;p>The ideal radiology AI system should:&lt;/p>
&lt;ul>
&lt;li>Complement rather than replace radiologist expertise&lt;/li>
&lt;li>Reduce administrative burden through automatic report generation&lt;/li>
&lt;li>Prioritize cases based on urgency and findings&lt;/li>
&lt;/ul>
&lt;div class="flex px-4 py-3 mb-6 rounded-md bg-primary-100 dark:bg-primary-900">
&lt;span class="pr-3 pt-1 text-primary-600 dark:text-primary-300">
&lt;svg height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">&lt;path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m11.25 11.25l.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0a9 9 0 0 1 18 0m-9-3.75h.008v.008H12z"/>&lt;/svg>
&lt;/span>
&lt;span class="dark:text-neutral-300">The most advanced AI system will fail if it adds steps to an already complex workflow. Success depends on making the radiologist&amp;rsquo;s job easier, not more complicated.&lt;/span>
&lt;/div>
&lt;h2 id="5-ethical-and-regulatory-considerations">5. Ethical and Regulatory Considerations&lt;/h2>
&lt;p>As AI becomes more prevalent in healthcare, addressing ethical and regulatory challenges becomes essential for responsible implementation.&lt;/p>
&lt;h3 id="data-privacy-and-security">Data Privacy and Security&lt;/h3>
&lt;ul>
&lt;li>Safeguarding patient data through robust encryption&lt;/li>
&lt;li>Ensuring compliance with regulations like HIPAA and GDPR&lt;/li>
&lt;li>Implementing federated learning approaches to minimize data sharing&lt;/li>
&lt;/ul>
&lt;h3 id="regulatory-approval">Regulatory Approval&lt;/h3>
&lt;ul>
&lt;li>Navigating the complex regulatory landscape (FDA, CE marking)&lt;/li>
&lt;li>Designing validation studies that meet regulatory requirements&lt;/li>
&lt;li>Establishing monitoring systems for post-deployment performance&lt;/li>
&lt;/ul>
&lt;h3 id="ethical-ai-development">Ethical AI Development&lt;/h3>
&lt;div class="mermaid">graph TD
A[Ethical AI Development] --> B[Fairness &amp; Bias Mitigation]
A --> C[Transparency &amp; Explainability]
A --> D[Privacy Protection]
A --> E[Human Oversight]
B --> F[Equitable Healthcare Outcomes]
C --> G[Informed Clinical Decisions]
D --> H[Patient Trust &amp; Confidentiality]
E --> I[Safe AI Implementation]
style A fill:#e1f5fe,stroke:#01579b,stroke-width:2px
style B fill:#e8f5e9,stroke:#2e7d32,stroke-width:1px
style C fill:#e8f5e9,stroke:#2e7d32,stroke-width:1px
style D fill:#e8f5e9,stroke:#2e7d32,stroke-width:1px
style E fill:#e8f5e9,stroke:#2e7d32,stroke-width:1px
style F fill:#c8e6c9,stroke:#2e7d32,stroke-width:1px
style G fill:#c8e6c9,stroke:#2e7d32,stroke-width:1px
style H fill:#c8e6c9,stroke:#2e7d32,stroke-width:1px
style I fill:#c8e6c9,stroke:#2e7d32,stroke-width:1px
&lt;/div>
&lt;h2 id="conclusion-the-road-ahead-for-libra">Conclusion: The Road Ahead for Libra&lt;/h2>
&lt;p>The journey of Libra represents a significant step forward in radiology modeling, particularly in harnessing temporal information through the TAC architecture. However, the path ahead involves:&lt;/p>
&lt;ol>
&lt;li>Expanding beyond paired chest X-rays to multiple imaging modalities&lt;/li>
&lt;li>Enhancing explainability through attention visualization and reasoning paths&lt;/li>
&lt;li>Building more robust models through diverse training strategies&lt;/li>
&lt;li>Designing intuitive interfaces for seamless clinical integration&lt;/li>
&lt;li>Navigating ethical and regulatory requirements for real-world deployment&lt;/li>
&lt;/ol>
&lt;blockquote>
&lt;p>As we continue to develop Libra and similar technologies, our focus remains on augmenting—rather than replacing—clinical expertise, creating tools that serve as trusted partners in the complex art of radiological diagnosis.&lt;/p>
&lt;/blockquote>
&lt;hr>
&lt;p>💬 &lt;strong>Note&lt;/strong>: The views expressed here are my own, reflecting my personal insights into the evolving landscape of radiology AI.&lt;/p></description></item><item><title>Libra – Structural Logic 🧠</title><link>https://x-izhang.github.io/blog/libra-blog2/</link><pubDate>Tue, 15 Apr 2025 00:00:00 +0000</pubDate><guid>https://x-izhang.github.io/blog/libra-blog2/</guid><description>&lt;h2 id="the-challenge-of-temporal-reasoning-in-radiology-ai">The Challenge of Temporal Reasoning in Radiology AI&lt;/h2>
&lt;p>When dealing with radiology images, especially in the context of temporal analysis—comparing current chest X-rays with previous images—standard neural network architectures often struggle. Although transformer-based multimodal large language models (&lt;strong>MLLMs&lt;/strong>) like &lt;a href="https://github.com/haotian-liu/LLaVA" target="_blank" rel="noopener">&lt;strong>LLaVA&lt;/strong>&lt;/a> demonstrate remarkable capabilities for understanding single images and textual information, they encounter substantial challenges when handling &lt;em>&lt;strong>image pairs&lt;/strong>&lt;/em>.&lt;/p>
&lt;div class="flex px-4 py-3 mb-6 rounded-md bg-primary-100 dark:bg-primary-900">
&lt;span class="pr-3 pt-1 text-primary-600 dark:text-primary-300">
&lt;svg height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">&lt;path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m11.25 11.25l.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0a9 9 0 0 1 18 0m-9-3.75h.008v.008H12z"/>&lt;/svg>
&lt;/span>
&lt;span class="dark:text-neutral-300">In my &lt;a href="https://x-izhang.github.io/blog/libra-blog1/">previous blog&lt;/a>, I discussed in detail why a &lt;mark>single&lt;/mark> prior chest X-ray is typically sufficient for accurate diagnosis and patient triage.&lt;/span>
&lt;/div>
&lt;blockquote>
&lt;p>However, capturing meaningful temporal differences between two images remains problematic with traditional transformer structures.&lt;/p>
&lt;/blockquote>
&lt;h2 id="when-transformers-lose-the-plot-why-they-struggle-with-temporal">When Transformers Lose the Plot: Why They Struggle with Temporal&lt;/h2>
&lt;p>The transformer, the cornerstone of modern large language models (LLMs), excels at &lt;mark>sequential&lt;/mark> data processing and logical reasoning tasks. Its strength lies in handling complex linguistic structures through &lt;strong>positional encoding&lt;/strong>, enabling nuanced relationships in textual sequences.&lt;/p>
&lt;p>However, when transformers receive visual information—particularly multiple images presented simultaneously—the situation becomes more complicated. Existing methods typically &lt;mark>concatenate&lt;/mark> image features directly into the LLM&amp;rsquo;s head, often via sequences containing hundreds of visual tokens (patch tokens), depending on the specific image encoder used.&lt;/p>
&lt;div class="flex px-4 py-3 mb-6 rounded-md bg-yellow-100 dark:bg-yellow-900">
&lt;span class="pr-3 pt-1 text-red-400">
&lt;svg height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">&lt;path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0zM12 15.75h.007v.008H12z"/>&lt;/svg>
&lt;/span>
&lt;span class="dark:text-neutral-300">This straightforward approach inevitably suffers from token overload, known colloquially as the &amp;ldquo;&lt;strong>lost-in-the-middle&lt;/strong>&amp;rdquo; problem, meaning crucial temporal details may get diluted or overlooked.&lt;/span>
&lt;/div>
&lt;p>Indeed, current MLLMs like LLaVA perform impressively with single-image inputs. But they quickly become overwhelmed with paired images, heavily relying on meticulously crafted instruction datasets to guide temporal comparisons explicitly:&lt;/p>
&lt;h3 id="how-mllms-are-prompted-to-compare-images">How MLLMs Are Prompted to Compare Images&lt;/h3>
&lt;p>&amp;ldquo;What is the difference between &lt;mark>&amp;lt;image-1-patchholder&amp;gt;&lt;/mark> and &lt;mark>&amp;lt;image-2-patchholder&amp;gt;&lt;/mark>?&amp;rdquo;&lt;/p>
&lt;p>Such approaches place the burden squarely on the LLM&amp;rsquo;s internal reasoning and positional encodings, complicating training and diminishing reliability. The model must:&lt;/p>
&lt;ul>
&lt;li>Distinguish between multiple images using only position encodings&lt;/li>
&lt;li>Process 500+ tokens per image (depending on patch number)&lt;/li>
&lt;li>Compare features across long token distances&lt;/li>
&lt;/ul>
&lt;p>Given these limitations, an essential question arises:&lt;/p>
&lt;blockquote>
&lt;p>Can we overcome these temporal reasoning challenges structurally, &lt;strong>rather than&lt;/strong> through &lt;mark>explicit&lt;/mark> prompting?&lt;/p>
&lt;/blockquote>
&lt;h2 id="structure-determines-function-insights-from-biology">Structure Determines Function: Insights from Biology&lt;/h2>
&lt;p>Before we answer above question, let&amp;rsquo;s briefly reflect on the foundational relationship between structure and function—deeply ingrained in biological systems.&lt;/p>
&lt;h3 id="macro-scale-examples">Macro-scale examples:&lt;/h3>
&lt;ul>
&lt;li>Birds have &lt;strong>wings&lt;/strong> enabling flight&lt;/li>
&lt;li>Fish possess &lt;strong>gills&lt;/strong> allowing them to breathe underwater&lt;/li>
&lt;/ul>
&lt;h3 id="micro-scale-examples">Micro-scale examples:&lt;/h3>
&lt;ul>
&lt;li>The unique &lt;strong>three-dimensional helical structure&lt;/strong> of proteins directly determines their biological roles&lt;/li>
&lt;li>A virus&amp;rsquo;s &lt;strong>outer shell&lt;/strong> dictates its infection pathways and interaction mechanisms&lt;/li>
&lt;/ul>
&lt;blockquote>
&lt;p>&lt;strong>Clearly, function is fundamentally dependent on structure.&lt;/strong>&lt;/p>
&lt;/blockquote>
&lt;div class="mermaid">graph TD
A[Structure] -->|Enables| B[Function]
B -->|Guides Design of| C[New Structures]
C -->|Enhances| B
style A fill:#e1f5fe,stroke:#01579b,stroke-width:2px
style B fill:#e8f5e9,stroke:#2e7d32,stroke-width:2px
style C fill:#fff8e1,stroke:#ff8f00,stroke-width:2px
&lt;/div>
&lt;p>When designing novel neural architectures or modules, we must apply this principle:&lt;/p>
&lt;ol>
&lt;li>Identify the desired &lt;strong>functionality&lt;/strong> first&lt;/li>
&lt;li>Then craft an appropriate &lt;strong>structural design&lt;/strong> that inherently &lt;mark>supports&lt;/mark> these functions&lt;/li>
&lt;/ol>
&lt;h2 id="libras-structural-innovation">Libra&amp;rsquo;s Structural Innovation&lt;/h2>
&lt;h3 id="temporal-alignment-connector-tac">Temporal Alignment Connector (TAC)&lt;/h3>
&lt;p>Following this logic, we developed the TAC in our Libra model. TAC&amp;rsquo;s primary goal is to automatically and effectively capture the relationship between two chest X-ray images—the &lt;mark>current image&lt;/mark> (primary) and a &lt;mark>prior image&lt;/mark> (auxiliary).&lt;/p>
&lt;figure>&lt;img src="https://x-izhang.github.io/blog/libra-blog2/TAC.png"
alt="Libra&amp;rsquo;s Temporal Alignment Connector (TAC) architecture.">&lt;figcaption>
&lt;p>Libra&amp;rsquo;s Temporal Alignment Connector (TAC) architecture.&lt;/p>
&lt;/figcaption>
&lt;/figure>
&lt;p>Unlike traditional transformers that treat all inputs equivalently, TAC explicitly structures interactions between paired images. It captures their nuanced relationship through two key modules:&lt;/p>
&lt;div class="markmap" style="height: 350px;">
&lt;pre>- TAC Architecture
- Layerwise Feature Extractor (LFE)
- Aggregates visual features across multiple encoder layers
- Ensures rich representations from both images
- Maintains feature hierarchy information
- Temporal Fusion Module (TFM)
- Fuses features from current and prior images
- Highlights critical temporal differences
- Maintains clear image role assignment
- Current image (Primary)
- Prior image (Reference)
- Prefix Bias Mechanism
- Addresses nearly-identical image pairs
- Prevents attention collapse
- Differentiates prior image's contextual influence&lt;/pre>
&lt;/div>
&lt;p>An important structural consideration is the integration of a &lt;strong>prefix bias mechanism&lt;/strong>. This component addresses the scenario where current and prior images are nearly identical—common in clinical practice. Without careful design, such similarity can cause attention mechanisms to collapse into redundant self-attention loops.&lt;/p>
&lt;div class="flex px-4 py-3 mb-6 rounded-md bg-primary-100 dark:bg-primary-900">
&lt;span class="pr-3 pt-1 text-primary-600 dark:text-primary-300">
&lt;svg height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">&lt;path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m11.25 11.25l.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0a9 9 0 0 1 18 0m-9-3.75h.008v.008H12z"/>&lt;/svg>
&lt;/span>
&lt;span class="dark:text-neutral-300">The prefix bias mitigates this risk by clearly differentiating the prior image&amp;rsquo;s contextual influence, ensuring meaningful training and robust inference.&lt;/span>
&lt;/div>
&lt;h2 id="why-structure-matters-the-libra-advantage">Why Structure Matters: The Libra Advantage&lt;/h2>
&lt;p>By structurally encoding temporal relationships directly into the neural network&amp;rsquo;s architecture, Libra overcomes the limitations inherent in traditional prompting-based approaches. Instead of forcing the LLM to implicitly infer temporal differences through complex positional encodings and exhaustive instruction tuning, &lt;strong>TAC explicitly and efficiently captures this essential clinical context.&lt;/strong>&lt;/p>
&lt;blockquote>
&lt;p>Libra exemplifies the powerful concept that structural logic, thoughtfully aligned with functional requirements, dramatically enhances model performance.&lt;/p>
&lt;/blockquote>
&lt;p>This structural logic not only simplifies training but also improves:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Reliability&lt;/strong>: More consistent temporal reasoning&lt;/li>
&lt;li>&lt;strong>Interpretability&lt;/strong>: Clearer connection between features and outputs&lt;/li>
&lt;li>&lt;strong>Efficiency&lt;/strong>: Reduced dependence on instruction tuning&lt;/li>
&lt;li>&lt;strong>Clinical Alignment&lt;/strong>: Better reflection of radiologists&amp;rsquo; actual workflow&lt;/li>
&lt;/ul>
&lt;hr>
&lt;p>🏄 &lt;strong>Note&lt;/strong>: The opinions shared here reflect my own understanding and are intended to convey the structural logic behind Libra. For technical accuracy and complete details, please refer to our paper: &lt;a href="https://x-izhang.github.io/publication/zhang-2025-libraleveragingtemporalimages/">&lt;em>&amp;ldquo;Libra: Leveraging Temporal Images for Biomedical Radiology Analysis&amp;rdquo;&lt;/em>&lt;/a>.&lt;/p></description></item><item><title>Libra - Temporal Insight 🕰️</title><link>https://x-izhang.github.io/blog/libra-blog1/</link><pubDate>Sat, 05 Apr 2025 00:00:00 +0000</pubDate><guid>https://x-izhang.github.io/blog/libra-blog1/</guid><description>&lt;h2 id="what-does-temporal-really-mean">What Does &amp;ldquo;Temporal&amp;rdquo; Really Mean?&lt;/h2>
&lt;p>In clinical radiology, temporal information is not just about &lt;strong>&amp;ldquo;past&amp;rdquo;&lt;/strong> and &lt;strong>&amp;ldquo;present&amp;rdquo;&lt;/strong> — it&amp;rsquo;s about &lt;mark>&lt;em>change&lt;/em>&lt;/mark>. When radiologists assess a chest X-ray, they&amp;rsquo;re not merely describing what they see in a single image; they&amp;rsquo;re often comparing it to a previous one to identify whether a patient&amp;rsquo;s condition has &lt;mark>improved&lt;/mark>, &lt;mark>worsened&lt;/mark>, or &lt;mark>remained stable&lt;/mark>.&lt;/p>
&lt;p>🔔 This kind of temporal reasoning is essential in everyday medical practice. Yet most multimodal large language models (MLLMs) either ignore it or fail to model it effectively.&lt;/p>
&lt;div class="flex px-4 py-3 mb-6 rounded-md bg-primary-100 dark:bg-primary-900">
&lt;span class="pr-3 pt-1 text-primary-600 dark:text-primary-300">
&lt;svg height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">&lt;path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m11.25 11.25l.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0a9 9 0 0 1 18 0m-9-3.75h.008v.008H12z"/>&lt;/svg>
&lt;/span>
&lt;span class="dark:text-neutral-300">Temporal information in radiology is fundamentally about capturing &lt;strong>change over time&lt;/strong>, not simply collecting a series of static images. This concept is central to Libra&amp;rsquo;s design philosophy.&lt;/span>
&lt;/div>
&lt;h2 id="time-tells-the-truth-interpreting-temporal-changes-in-imaging">Time Tells the Truth: Interpreting Temporal Changes in Imaging&lt;/h2>
&lt;h3 id="1-macro-level-progression">1. Macro-Level Progression&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>Is the patient improving, deteriorating, or stable?&lt;/strong>&lt;/li>
&lt;/ul>
&lt;p>Macro-level comparison focuses on the overall trajectory of the patient’s condition compared to prior examinations. This high-level temporal reasoning is crucial for tracking disease evolution and guiding clinical decision-making.&lt;/p>
&lt;h3 id="2-lesion-specific-temporal-changes">2. Lesion-Specific Temporal Changes&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>How are individual abnormalities evolving over time?&lt;/strong>&lt;/li>
&lt;/ul>
&lt;p>Fine-grained analysis captures precise changes in specific findings, such as “consolidation in the left lower lobe has significantly expanded” or “cardiac silhouette shows no appreciable change.” These insights enable clinicians and models to reason at the level of targeted anatomical and pathological detail.&lt;/p>
&lt;h3 id="3-quality-over-quantity-in-temporal-inputs">3. Quality Over Quantity in Temporal Inputs&lt;/h3>
&lt;ul>
&lt;li>❗️ Adding more images often introduces noise and computational complexity without improving diagnostic value.&lt;/li>
&lt;/ul>
&lt;div class="flex px-4 py-3 mb-6 rounded-md bg-yellow-100 dark:bg-yellow-900">
&lt;span class="pr-3 pt-1 text-red-400">
&lt;svg height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">&lt;path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0zM12 15.75h.007v.008H12z"/>&lt;/svg>
&lt;/span>
&lt;span class="dark:text-neutral-300">While it may seem intuitive that incorporating more historical images would yield better results, the reality of clinical practice shows that the most valuable temporal information comes from comparing &lt;mark>just two key points in time&lt;/mark>.&lt;/span>
&lt;/div>
&lt;h2 id="clinical-applications">Clinical Applications&lt;/h2>
&lt;blockquote>
&lt;p>From Diagnostic Judgement to Multi-Scale Temporal Understanding&lt;/p>
&lt;/blockquote>
&lt;h3 id="temporal-reasoning-in-clinical-diagnosis">Temporal Reasoning in Clinical Diagnosis&lt;/h3>
&lt;p>Radiologists rarely analyse a chest X-ray in &lt;strong>isolation&lt;/strong>. Instead, they routinely ask:&lt;/p>
&lt;ul>
&lt;li>&amp;ldquo;Has the consolidation improved since last week?&amp;rdquo;&lt;/li>
&lt;li>&amp;ldquo;Is the pleural effusion new?&amp;rdquo;&lt;/li>
&lt;li>&amp;ldquo;Has the cardiac silhouette changed?&amp;rdquo;&lt;/li>
&lt;/ul>
&lt;p>Such reasoning typically falls into three primary categories:&lt;/p>
&lt;ul>
&lt;li>&lt;mark>&lt;strong>Improved&lt;/strong>&lt;/mark>: Lesions have shrunk or resolved.&lt;/li>
&lt;li>&lt;mark>&lt;strong>Worsened&lt;/strong>&lt;/mark>: New abnormalities appear, or existing ones have grown.&lt;/li>
&lt;li>&lt;mark>&lt;strong>Stable&lt;/strong>&lt;/mark>: No meaningful change is observed.&lt;/li>
&lt;/ul>
&lt;p>These are &lt;em>&lt;strong>coarse-level&lt;/strong>&lt;/em> temporal descriptions. On a finer level, radiologists describe:&lt;/p>
&lt;ul>
&lt;li>How much a lesion has changed in size or density,&lt;/li>
&lt;li>Whether opacities have shifted,&lt;/li>
&lt;li>If tubes, lines, or devices have been added or removed.&lt;/li>
&lt;/ul>
&lt;h3 id="temporal-signals-span-multiple-scales">Temporal Signals Span Multiple Scales&lt;/h3>
&lt;blockquote>
&lt;p>Temporal information in radiology is inherently multi-scale — ranging from global clinical trajectories to subtle, localised anatomical changes.&lt;/p>
&lt;/blockquote>
&lt;div class="markmap" style="height: 400px;">
&lt;pre>- Temporal Information in Radiology
- Clinical Categories
- Improved
- Lesions have shrunk
- Opacities decreased
- Inflammatory shadows reduced
- Worsened
- New abnormalities appeared
- Existing lesions grown
- New infiltrates or effusion
- Stable
- No meaningful change
- Chronic conditions
- Continuous monitoring needed
- Information Levels
- Macro-level trends
- Overall patient trajectory
- Global comparison
- Local lesion changes
- Size changes
- Density variations
- Positional shifts
- Clinical Applications
- Triage decisions
- Emergency prioritization
- Resource allocation
- Treatment evaluation
- Response assessment
- Therapy adjustment
- Long-term monitoring
- Chronic disease management
- Post-surgical follow-up&lt;/pre>
&lt;/div>
&lt;h2 id="triage-and-resource-allocation">Triage and Resource Allocation&lt;/h2>
&lt;blockquote>
&lt;p>Prioritising Care When Every Minute Counts&lt;/p>
&lt;/blockquote>
&lt;h3 id="clinical-goals-and-operational-pressures">Clinical Goals and Operational Pressures&lt;/h3>
&lt;p>Chest X-rays play a pivotal role in patient triage, especially in emergency and high-volume settings. Radiologists must rapidly determine:&lt;/p>
&lt;ul>
&lt;li>Which patients require immediate intervention,&lt;/li>
&lt;li>Who can safely wait,&lt;/li>
&lt;li>And how to allocate limited resources most effectively.&lt;/li>
&lt;/ul>
&lt;p>Triage is fundamentally about &lt;strong>maximising outcomes under constraint&lt;/strong>. The goal is not to fully characterise every patient&amp;rsquo;s history, but to make fast, high-impact decisions that ensure critical cases receive timely care—without neglecting those with non-urgent needs.&lt;/p>
&lt;h3 id="what-matters-most-clinically-significant-change">What Matters Most: Clinically Significant Change&lt;/h3>
&lt;p>In these time-sensitive settings, &lt;strong>timeliness and diagnostic clarity&lt;/strong> outweigh completeness. Radiologists focus on:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>New acute findings&lt;/strong>: Abnormalities not previously seen that may indicate emerging crises.&lt;/li>
&lt;li>&lt;strong>Significant deterioration&lt;/strong>: Rapid worsening of known conditions that may demand escalated care.&lt;/li>
&lt;li>&lt;strong>Stable chronic findings&lt;/strong>: Ongoing issues that show no meaningful progression and can be managed routinely.&lt;/li>
&lt;/ul>
&lt;div class="flex px-4 py-3 mb-6 rounded-md bg-primary-100 dark:bg-primary-900">
&lt;span class="pr-3 pt-1 text-primary-600 dark:text-primary-300">
&lt;svg height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">&lt;path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m11.25 11.25l.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0a9 9 0 0 1 18 0m-9-3.75h.008v.008H12z"/>&lt;/svg>
&lt;/span>
&lt;span class="dark:text-neutral-300">The most actionable form of temporal information in triage is the &lt;strong>clinically meaningful change&lt;/strong> between now and the previous relevant image.&lt;br>
This focused comparison empowers decision-making without overwhelming clinicians with unnecessary historical data.&lt;/span>
&lt;/div>
&lt;h2 id="our-model-approach">Our Model Approach&lt;/h2>
&lt;blockquote>
&lt;p>Temporal Efficiency Aligned with Clinical Reasoning&lt;/p>
&lt;/blockquote>
&lt;h3 id="why-two-images-are-sufficient">Why Two Images Are Sufficient&lt;/h3>
&lt;p>In real-world radiology workflows, the most informative temporal comparison is typically between:&lt;/p>
&lt;ol>
&lt;li>The &lt;mark>&lt;strong>current&lt;/strong>&lt;/mark> chest X-ray, and&lt;/li>
&lt;li>The &lt;mark>&lt;strong>most recent&lt;/strong>&lt;/mark> prior image used for diagnosis.&lt;/li>
&lt;/ol>
&lt;p>While patients may have a rich archive of historical scans, only the immediately preceding diagnostic image provides the relevant baseline for interpreting new findings. Additional older images may support longitudinal studies, but they often introduce &lt;strong>noise, redundancy, and delay&lt;/strong> in fast-paced clinical decision-making.&lt;/p>
&lt;h3 id="libras-design-philosophy-focused-temporal-reasoning">Libra&amp;rsquo;s Design Philosophy: Focused Temporal Reasoning&lt;/h3>
&lt;p>Libra is built on this clinically grounded principle.&lt;br>
Instead of processing full temporal sequences — which can be computationally expensive and semantically ambiguous — Libra learns to model &lt;strong>directional change&lt;/strong> between two key time points.&lt;/p>
&lt;p>This design enables the model to:&lt;/p>
&lt;ul>
&lt;li>Mimic the focused comparison strategies of expert radiologists,&lt;/li>
&lt;li>Avoid temporal noise from irrelevant or outdated scans,&lt;/li>
&lt;li>Reduce computational load while preserving diagnostic fidelity.&lt;/li>
&lt;/ul>
&lt;p>In short, Libra treats temporal reasoning as radiologists do:&lt;br>
&lt;mark>&lt;strong>What’s changed since the last meaningful image?&lt;/strong>&lt;/mark>&lt;/p>
&lt;h2 id="illustrations">Illustrations&lt;/h2>
&lt;p>To better understand how radiologists and Libra approach temporal comparison, we present two illustrative workflows: a general conceptual flow and a specific clinical case.&lt;/p>
&lt;h3 id="conceptual-workflow">Conceptual Workflow&lt;/h3>
&lt;p>The following diagram outlines the reasoning pathway taken when comparing a current chest X-ray to the most recent prior image. Based on observed changes (or lack thereof), radiologists infer the clinical trajectory and guide downstream decisions.&lt;/p>
&lt;div class="mermaid">graph TD
A[Previous Chest X-ray] --> B{Current vs Previous&lt;br>Analysis}
B -->|Opacity Size Decrease| C[Improved]
B -->|New Infiltrates or Growth| D[Worsened]
B -->|No Observable Change| E[Stable]
C --> F[Recovery or&lt;br>Treatment Response]
D --> G[Disease&lt;br>Progression]
E --> H[Continuous&lt;br>Monitoring Needed]
style A fill:#f5f5f5,stroke:#333,stroke-width:1px
style B fill:#e1f5fe,stroke:#01579b,stroke-width:2px
style C fill:#e8f5e9,stroke:#2e7d32,stroke-width:2px
style D fill:#ffebee,stroke:#c62828,stroke-width:2px
style E fill:#fff8e1,stroke:#ff8f00,stroke-width:2px
style F fill:#c8e6c9,stroke:#2e7d32,stroke-width:1px
style G fill:#ffcdd2,stroke:#c62828,stroke-width:1px
style H fill:#ffecb3,stroke:#ff8f00,stroke-width:1px
&lt;/div>
&lt;h3 id="case-example-lung-consolidation">Case Example: Lung Consolidation&lt;/h3>
&lt;p>This diagram demonstrates a practical example: a patient with lung consolidation. Depending on the direction of change, clinical interpretation and management decisions vary significantly.&lt;/p>
&lt;div class="mermaid">graph TD
A[Case: Lung Consolidation] --> B{Time Point Comparison}
B -->|Consolidation Reduced&lt;br>Clearer Lung Fields| C[Improved]
B -->|Consolidation Expanded&lt;br>New Pleural Effusion| D[Worsened]
B -->|Consolidation Unchanged&lt;br>No New Features| E[Stable]
C --> F[Successful Antibiotic&lt;br>Treatment]
D --> G[Disease Progression&lt;br>Treatment Adjustment Needed]
E --> H[Continue Current&lt;br>Management Plan]
style A fill:#f5f5f5,stroke:#333,stroke-width:1px
style B fill:#e1f5fe,stroke:#01579b,stroke-width:2px
style C fill:#e8f5e9,stroke:#2e7d32,stroke-width:2px
style D fill:#ffebee,stroke:#c62828,stroke-width:2px
style E fill:#fff8e1,stroke:#ff8f00,stroke-width:2px
style F fill:#c8e6c9,stroke:#2e7d32,stroke-width:1px
style G fill:#ffcdd2,stroke:#c62828,stroke-width:1px
style H fill:#ffecb3,stroke:#ff8f00,stroke-width:1px
&lt;/div>
&lt;h2 id="ai-model-implications">AI Model Implications&lt;/h2>
&lt;blockquote>
&lt;p>Why Most MLLMs Fall Short — and How Libra Goes Further&lt;/p>
&lt;/blockquote>
&lt;p>Many multimodal large language models (MLLMs) struggle with &lt;strong>temporal reasoning&lt;/strong> for three key reasons:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>No awareness of time&lt;/strong>: They treat images independently and ignore their chronological order.&lt;/li>
&lt;li>&lt;strong>Hallucinated references&lt;/strong>: They fabricate prior findings without reliable comparison.&lt;/li>
&lt;li>&lt;strong>Lack of temporal alignment&lt;/strong>: They have no built-in mechanism to align or contrast image features across time.&lt;/li>
&lt;/ul>
&lt;blockquote>
&lt;p>&lt;mark>Libra tackles these issues head-on.&lt;/mark>&lt;/p>
&lt;/blockquote>
&lt;p>Instead of prompting the model to &amp;ldquo;guess&amp;rdquo; what might have changed, Libra incorporates &lt;strong>explicit temporal awareness&lt;/strong> into both its architecture and training process.&lt;/p>
&lt;p>We feed the model structured, temporally aligned visual features extracted from the &lt;strong>current&lt;/strong> and &lt;strong>previous&lt;/strong> images. This enables Libra to:&lt;/p>
&lt;ul>
&lt;li>Detect fine-grained, clinically meaningful changes,&lt;/li>
&lt;li>Avoid hallucination,&lt;/li>
&lt;li>And reason about progression or stability in a way that mirrors clinical thinking.&lt;/li>
&lt;/ul>
&lt;hr>
&lt;p>In the next section, &lt;a href="https://x-izhang.github.io/blog/libra-blog2/">&lt;strong>Libra – Structural Logic 🧠&lt;/strong>&lt;/a>, we’ll explore how Libra’s architecture is intentionally designed to reflect clinical reasoning. You&amp;rsquo;ll see how its modular structure enables it to reason across both &lt;strong>time&lt;/strong> and &lt;strong>image features&lt;/strong> with precision — building on the foundation established in &lt;strong>Libra – Temporal Insight 🕰️&lt;/strong>.&lt;/p></description></item></channel></rss>