roadzhang (@roadzhang) header
roadzhang (@roadzhang) profile picture

keep calm, keep simple.

北京, 中华人民共和国
Joined September 2007
Photo by roadzhang (@roadzhang)Photo by roadzhang (@roadzhang)Photo by roadzhang (@roadzhang)Photo by roadzhang (@roadzhang)Photo by roadzhang (@roadzhang)Photo by roadzhang (@roadzhang)Photo by roadzhang (@roadzhang)
Big paper just out in Nature Machine Intelligence. Can LLMs come up with genuinely new ideas? The authors let three AI agents talk for up to 1,000 rounds. No assigned topic. No new input from the outside world. They could take the conversation anywhere, without any assigned rule. What happened? Instead of going anywhere, the conversation went nowhere. The range of ideas narrowed. They kept finding new ways to say the same thing. The authors call this: semantic collapse. Tons of empty words. The authors also tried 13 ways to break the pattern. In one experiment, they even gave the three agents the personas of Herbert Simon, Judea Pearl and Deborah Mayo. Same result. They ended up nowhere. To me, this is an example of what we call the grounding fault line. Human creativity comes partly from having a stake in the real world. We have problems we need to solve. An LLM in a closed loop has no such stake. Give an LLM a thousand rounds with other LLMs and they will end up with the average of the averages. * Paper in the first reply.
539
1,379
406
5,932
401,492
roadzhang retweeted
Massive breakthrough for local LLM inference! A new inference engine runs LLMs 4x faster than llama.cpp: I ran Qwen3.5 9B on my M5 MacBook Pro with the same prompt, three ways: - No speculative decoding: done in 42s - Regular speculative decoding: done in 30s - DFlash + Weaver: done in 11s The video below shows the live comparison side by side. Here's why it works: Standard speculative decoding lets a cheap drafter guess the next few tokens, and the main model checks them all in one pass. But current drafters still guess one token at a time, which makes the drafting step itself a bottleneck, capping real-world speedups at ~1.5-2x. The fastest drafters, like DFlash, guess every position in parallel. But each guess is made on its own, so position 5 never sees what was picked at position 4. So due to one early mismatch, everything after it gets thrown away. Weaver, implemented in the uzu open-source inference engine, solves this. It's a tiny adapter (one Transformer layer) on top of DFlash that: ↳ picks among DFlash's top candidates left to right, so each pick depends on the last ↳ grows a tree of likely continuations instead of a single chain ↳ lets the main model verify the whole tree in one pass On my Mac, every pass of the model produced 7.5 tokens instead of 1. On a B200 GPU, the paper reports 4x faster decoding across chat, math, and code. Here's the GitHub repo: github.com/trymirai/uzu (don't forget to star it 🌟) You can try this yourself in two commands: 𝗯𝗿𝗲𝘄 𝗶𝗻𝘀𝘁𝗮𝗹𝗹 𝗺𝗶𝗿𝗮𝗶 𝗺𝗶𝗿𝗮𝗶 --𝗺𝗼𝗱𝗲𝗹 𝘁𝗿𝘆𝗺𝗶𝗿𝗮𝗶/𝗤𝘄𝗲𝗻𝟯.𝟱-𝟵𝗕-𝗠 -𝗺 "𝗪𝗿𝗶𝘁𝗲 𝗮 𝗽𝘆𝘁𝗵𝗼𝗻 𝗳𝘂𝗻𝗰𝘁𝗶𝗼𝗻 𝘁𝗼 𝗺𝗲𝗿𝗴𝗲 𝘁𝘄𝗼 𝘀𝗼𝗿𝘁𝗲𝗱 𝗹𝗶𝘀𝘁𝘀" To dive deeper, my co-founder has written a full breakdown of why local inference is memory-bound and how uzu by @trymirai gets past it, with fully reproducible code. Read it below.
50
74
2
597
42,201
roadzhang retweeted
good prompt "find all of the implicit state machines in my app"
168
419
307
8,803
2,357,273
roadzhang retweeted
“You must be prepared to work always without applause.” — Ernest Hemingway
21
471
10
3,714
51,863
roadzhang retweeted
Replying to @thepanta82
Every team should have one person who does not care a hoot about customers, just the code, the precious code
1
7
81
4,505
roadzhang retweeted
8 AI model architectures, visually explained: LLMs get so much attention that it's easy to overlook the rest of the field. Different inputs, tasks, and deployment constraints have led to very different model designs. Here are eight specialized AI model architectures: 1. LLM (Large language models) Text is split into tokens, mapped to embeddings, and processed through transformer layers. The model generates its response by predicting successive tokens. ↳ GPT, Claude, Gemini, Llama. 2. LCM (Large concept models) Moves prediction to the sentence level. Sentences become SONAR embeddings, and the model predicts the next sentence representation. Meta explored both autoregressive and diffusion-based versions. ↳ Meta's LCM research introduced this approach. 3. LAM (Large action models) Connects a user's request to actions in an environment. These systems interpret intent, plan steps, and use interfaces or tools, often checking results before continuing. ↳ Rabbit R1, Microsoft UFO, Claude Computer Use. 4. MoE (Mixture of experts) A router assigns token representations to selected expert networks inside the model. Activating a subset of experts adds model capacity without running every expert for every token. ↳ Mixtral, DeepSeek, Switch Transformer. 5. VLM (Vision-language models) Combines visual representations with language processing. A vision encoder extracts image features, which are connected to a language model so it can answer questions about visual content. ↳ GPT-4V, Gemini, LLaVA. 6. SLM (Small language models) Uses fewer parameters to reduce memory and compute requirements. These models can run locally, with quantization often reducing their deployment footprint further. ↳ Phi-3, Gemma, Mistral 7B, Llama 3.2 1B. 7. MLM (Masked language models) Learns by predicting hidden tokens using context on both sides. This bidirectional training produces representations useful for retrieval, classification, and other language-understanding tasks. ↳ BERT, RoBERTa, DeBERTa. 8. SAM (Segment Anything Model) An image encoder processes the image, while a prompt encoder handles points, boxes, or masks. A mask decoder combines them to identify the requested regions. ↳ Meta's SAM supports interactive segmentation and image annotation. These aren't eight mutually exclusive categories. A small model can process images, and a language model can use MoE layers. Some labels describe architecture, while others describe training or intended use. There's another approach I kept outside the image because it alters how a model handles context rather than introducing a separate model family. Recursive language models, from MIT, put the input into a Python environment that a root model can inspect through code. The model can search or slice that input, then make recursive model calls on selected portions instead of loading everything into its own context window. The reported experiments handled inputs beyond 10 million tokens without retraining, with gains over the base model even on some tasks whose inputs already fit its context window. I recently wrote a full breakdown of how this works, including why accessing a large input and reasoning reliably over it are different problems. Read it below.
17
23
3
117
12,207
roadzhang retweeted
RAG vs. Vectorless RAG, clearly explained! In a standard RAG setup, documents are split into chunks, embedded, and stored in a vector DB. The query gets embedded too, and the top-k closest chunks go to the LLM. The problem is that similarity and relevance answer different questions. For instance, five annual reports from one company can likely follow the same template every year, and only the numbers can change. So a FY2022 question can lie just as close to an FY2025 chunk, and the LLM might answer from the wrong year. Cross-references introduce another problem. If a chunk mentions "see Appendix G" but looks nothing like the table in Appendix G, that table will never make it to the top-k. Vectorless RAG drops the embedding model and the vector DB, and replaces similarity search with LLM reasoning instead. The preprocessing step parses each document's layout into a ToC tree index. Every node holds a section title, its page range, and a short summary, and the whole tree fits in the LLM's context. At query time, the LLM gets the query along with the tree. It reads the section titles and summaries and picks the few sections most likely to hold the answer. For example, for a question about debt, it might pick the "Financial Summary" section and also "Appendix G", because its summary says the debt details are there. The system then pulls those full sections and checks whether the evidence is enough. ↳ If it is, the LLM answers from the full sections, with page citations. ↳ If not, it goes back to the tree and opens more nodes. The LLM also sees the chat history. So if you ask about assets and then follow up with "what about liabilities?", it goes back to the same report. The trade-off is that every query now runs LLM calls over the tree. Top-k vector search will be cheaper in that same run (although not guaranteed to be as accurate), and the tree only helps when documents have real structure. So the two suit different data: ↳ Use a tree for long, structured documents like filings, contracts, and manuals. ↳ Stick with a vector DB for lots of short, unrelated text. The diagram below depicts both flows. If you want to dive deeper, I have also written a full breakdown of MIT's Recursive Language Models. It covers why LLMs get worse as context grows and how RLMs let the model split a long document and work through it piece by piece. Read it below.
52
84
5
640
47,821
roadzhang retweeted
Here you go, link in the next post
Replying to @tldraw @sama
Show me. Post tomorrow by EOD
103
80
52
2,086
387,472
roadzhang retweeted
I built StoryComet with Fable 5.1 in three days. 15 animated children's books in five languages, with translated voiceovers, covers and UI. storycomet.app Parents can track progress. Kids can take quizzes, collect pins and 3D souvenirs, and switch languages on the fly. Six books teach English, Spanish, French, Japanese or Chinese. My three-day workflow: - Day 1: prototype (and post on X) - Day 2: 9 more books, languages, progress, quizzes, pins and souvenirs - Day 3: polish, domain name, supabase, accounts, Stripe and optimization The first three books are 100% free so you can try the whole experience. Members unlocks the other 12 at early-bird pricing. The 3D models and tokens cost me hundreds of dollars, so your support means a lot.
213
383
78
4,317
455,806
We've uploaded a fruit fly. We took the @FlyWireNews connectome of the fruit fly brain, applied a simple neuron model (@Philip_Shiu Nature 2024) and used it to control a MuJoCo physics-simulated body, closing the loop from neural activation to action. A few things I want to say about what this means and where we're going at @eonsys. 🧵
331
1,311
599
8,125
2,011,129
roadzhang retweeted
You know what the biggest problem with pushing all-things-AI is? Wrong direction. I want AI to do my laundry and dishes so that I can write React and CSS, not for AI to write my React and CSS so that I can do my laundry and dishes.
30
16
2
372
15,815
roadzhang retweeted
If you maintain a hand-built agent harness, this one is worth your time. (bookmark it) I feel like everyone is sleeping on the idea of dynamically generating agent harnesses on the fly. As you aim to own your harness, this is a topic more devs will lean into. Here is a great report discussing this topic. JIT-Agent is a model whose output is an agent harness. It formalizes the harness as a composable artifact under a fixed four-module protocol covering memory, planning, action protocol, and tool orchestration, then synthesizes one on the fly for any off-the-shelf agentic LLM. It also repairs harnesses mid-execution and self-evolves by distilling performance signals from an expanding archive of prior configurations. With JIT-Agent attached, DeepSeek-V4-Flash surpasses GPT-5.6 on DeepSearchQA (+9.1) and OdysseyBench (+4.3). GLM-5.2 gains up to +20.2 points. The generated harnesses are also performance-competitive with mature runtimes like OpenCode and Claude Code. Paper: arxiv.org/abs/2608.25593 Chat with Paper: academy.dair.ai/papers/jit-a…
31
50
2
434
27,216
roadzhang retweeted
Anthropic 发布: AI 原生 SDLC(软件开发生命周期)实施指南 指南按 Plan、Design、Build、Test、Deploy、Maintain 六个阶段,讲解怎样把 Agent 接入软件开发生命周期。 它来自 Anthropic Applied AI 团队的日常实践,也吸收了客户项目经验。 推荐阅读 best.xiaohu.ai/article/ai-na…
53
109
4
598
52,439
同一个模型不改权重,只让 Harness 像物种一样竞争、遗传和重组,Agent 还能继续变强。 Salesforce 团队这篇 DarwinX,把 Harness 自进化做成了一场「进化搜索」。 很多系统只保留一条修改路线,早期方向一旦走偏,后面很容易困在局部最优。 DarwinX 会同时保留多个 Harness 分支。每次修改后,既看它有没有解决新问题,也看它有没有破坏已经学会的能力。 即使某个版本整体表现一般,只要它解决了独特问题,也会被保留下来,后面再和其他优秀分支组合。 整个过程中模型参数完全冻结,真正进化的是 Prompt、Skill、Tool 和执行流程。 结果也很明显:四类评测平均提升约 17 个点。Terminal-Bench 2.1 上,GPT-5.5 提升到 83.2%;WebArena-Infinity 从 43.5% 提升到 93.0%。 这篇工作有意思的地方在于它把 Agent 自进化变成了「搜索更好的系统」。 有些失败版本也值得留下,因为它们可能保留了一块以后还能重新组合的能力。 📎 arxiv: arxiv.org/abs/2608.07545
16
17
2
102
7,124
roadzhang retweeted
I’ve been quiet lately since I’ve been busy using Claude Code to port ToonTalk’s 210,000 lines of C++ that I began writing in 1992 to the web. After extensive testing and my 525 messages to Claude we finally succeeded. docs.google.com/document/d/1…
3
4
74
有人用 AI 把《史记》57万字变成了一个可以搜索、跳转、推理的知识图谱 兄弟们,今天看到一个让我直接愣住的开源项目——史记知识库,GitHub 1300 星。 一句话:有人用 AI 把《史记》57万字全部拆解标注,做成了一个可以交互、搜索、推理的知识图谱,让两千年前的文字像代码一样能语法高亮、跳转、消歧。 数据规模直接给你看清楚: • 实体词条:14,065 个 • 标注次数:126,441 次 • 历史事件:3,198 条 • 事件关系:7,637 条 • Wiki 页面:20,830+ 页 这不是简单的文本处理,是真正的知识工程。 几个亮点真的值得单说: (1)22类实体彩色语法高亮——人名、地名、官职、事件,每一类都有颜色标注,读《史记》像读代码一样清晰,想关哪类就关哪类 (2)史记地铁图——130条交互式时间线,支持缩放拖拽搜索,整个春秋战国到汉初的历史脉络一张图看清楚 (3)Butler AI Agent 自主维护——一个 AI Agent 持续跑了 12,000+ 轮自主更新 Wiki,不是人工录入,是 Agent 在干活 (4)矛盾检测——史记里前后记载有出入的地方,系统能自动检测出来,学术研究用这个太香了 背后的方法论也很牛:本体不是专家预先设计的,是从文本数据里"自下而上涌现"出来的,迭代速度从数周一轮压缩到数小时一轮。作者还出了两本 PDF 方法论手册,合计 863 页。 历史爱好者、做内容的、研究 AI 知识工程的,都值得去看看。 在线访问:shiji.memify.wiki GitHub:github.com/baojie/shiji-kb 好东西转给需要的兄弟。🚀 #史记 #AI知识图谱 #开源 #老杨啊分享
138
640
26
1,916
278,170