章鱼总结
00:00 / 13:50

Prompt Engineering · 13:50

okay, so google just released Gemini 4 neon, which is the fourth model in less than two months. so the speed of iteration from google is pretty incredible right now. before argon, the last pro model from google was Gemini 3.1 Pro back in february. and since the end of september, we have had argon, then carbon, then hydrogen, and now neon. and this model is actually pretty special. Because it's built for complex coding, analytical reasoning, and production grade enterprise workflows. Neon delivers frontier reasoning for demanding day to day work without burning frontier budget. And that's exactly what I want to show you in this video. So I'm not going to be going over the benchmarks. I want to show you practical outputs. Especially these are not one shot outputs. These are implementation of the latest research work, training neural networks on your local. and then deploying apps on google cloud. so my goal for this channel is to show you demos that are representative of what developers actually do, not just one-shot outputs. and if you like that, make sure to subscribe to the channel. all the demos i'm about to show you were ran in Antigravity. Now, the model offers four different thinking levels, low, medium, high, and extra high. For all of the demos that you are about to see, I used extra high.

好,谷歌刚刚发布了 Gemini 4 Neon,这是不到两个月内发布的第四个模型。 所以谷歌目前的迭代速度相当惊人。 在 Argon 之前,谷歌上一个 Pro 模型是二月份发布的 Gemini 3.1 Pro。 而从九月底以来,我们先后有了 Argon、Carbon、Hydrogen,现在又有了 Neon。 这个模型其实相当特别。 因为它是为复杂编程、分析推理和生产级企业工作流打造的。 Neon 为要求严苛的日常工作提供前沿推理能力,却不需要花费前沿模型级别的预算。 这正是我想在这期视频中向你展示的。 所以我不会讲解基准测试。 我想向你展示实际产出。 尤其要说明的是,这些不是单次提示生成的结果。 这些演示包括实现最新研究成果、在本地训练神经网络, 然后将应用部署到 Google Cloud。 所以,我做这个频道的目标是向你展示能够反映开发者实际工作的演示,而不只是单次提示生成的结果。 如果你喜欢这样的内容,记得订阅频道。 接下来我要展示的所有演示都是在 Antigravity 中运行的。 这个模型提供四种不同的思考级别:低、中、高和超高。 对于接下来你看到的所有演示,我使用的都是超高级别。

Okay, so let's start with 3D because this is where most people test a new model first these days. There is an experiment by Keenan Crane, who is a graphic researcher, where he gave a model one image of a baby dragon and asked for it as a signed distance function, which is a single math formula that tells you how far any point is from the surface. so there is no 3d model file at all, and the entire dragon is simply code. and this is actually a pretty hard problem for these large language models. so i gave neon the same image and the same prompt, and it worked on it for about 38 minutes on its own. now, the interesting thing is that it wrote its own critique tool, which renders the dragon from five angles every round and measures how closely the outline matches the reference image. and the output is actually pretty incredible. it's able to properly render all the surfaces. the texture looks pretty great. keep in mind, you can do this with a 3d software much more easily in less time. but this actually shows you the model's capabilities. and it's not using any 3d tools like blender for this at all. it's pure code. now, this next one is actually even crazier. so if you look at this animation, this is a single image file. neon turned a short reference video of a peacock into an animated svg, which is an image format where every shape and color is written in text instead of pixels. so this whole scene from the misty forest to the feathers on the tail is one file that loops for almost a minute. again, this whole animation is a single image. now, here's how it actually worked, right? so it didn't write that file by hand because it wrote python programs that generates the bird, the tail, the forest, and the camera moves, and then it rendered the results and checked it over three rounds. and you can actually see that it does a really, really good job here.

好,我们先从 3D 开始,因为如今大多数人都会先用它来测试新模型。 图形学研究员 Keenan Crane 做过一个实验:他给模型一张小龙的图片,要求模型用有符号距离函数来表示它。这个函数是一个数学公式,能告诉你任意一点距离表面有多远。 所以根本没有3D模型文件,整条龙完全由代码构成。 而这实际上对这些大语言模型来说是个相当难的问题。 于是我给了Neon同一张图片和相同的提示词,它独立完成了大约38分钟的工作。 有趣的是,它自己编写了一个评估工具,每一轮都从五个角度渲染这条龙,并衡量轮廓与参考图像的匹配程度。 最终的成果确实令人惊叹。 它能够正确渲染所有表面。 纹理看起来也很棒。 要知道,用3D软件可以更轻松、更快速地完成这个任务。 但这确实展示了这个模型的能力。 而且它完全没有使用Blender之类的3D工具。 这纯粹是代码。 接下来这个实际上更加疯狂。 如果你看看这个动画,就会发现它其实是一个单独的图像文件。 Neon把一段孔雀参考短视频转换成了一个动态SVG,这是一种图像格式,其中每个形状和颜色都是用文本而不是像素来描述的。 所以从雾蒙蒙的森林到尾巴上的羽毛,整个场景都在一个文件里,循环播放近一分钟。 再说一遍,整个动画是一张单独的图像。 那么,它究竟是怎么做到的呢? 它并没有手动编写那个文件,而是编写了Python程序来生成孔雀、尾巴、森林和镜头运动,然后渲染结果并检查,重复了三轮。 你可以看到,它在这方面做得真的非常非常出色。

now, the next one starts from a real floor plan. so i asked neon to find a plan on the internet. so it had to pick one itself and then turn it into a house that you can walk through. so it picked a house from the 1959 by the architect Marcel Breuer. and it raised the flat plan into a full house. i had done the same test with carbon as well, and it actually picked a house from marcel breuer as well. now, the thing is that the first version looked cartoonish, and the automatic tour walked straight into the walls. i asked for realistic visuals and a tour that moves through the doors. and it actually followed the instructions, right? so now we have a tour that goes room by room through the doors.

接下来这个案例从一张真实的平面图开始。 所以我让 Neon 在网上找一份平面图。 它得自己选一份,然后把它变成一栋可以进去走动的房子。 它选了建筑师 Marcel Breuer 于1959年设计的一栋房子。 然后它把平面图构建成了一栋完整的房子。 我也用 Carbon 做了同样的测试,结果它选的也是 Marcel Breuer 设计的一栋房子。 不过,第一版看起来像卡通,自动漫游还直接撞上了墙。 我要求画面更逼真,而且漫游时要从门穿过去。 它还真按要求做了,对吧? 所以现在漫游路线会穿过门,逐个房间走一遍。

now, all of the outputs that i have shown you so far were the model working within the Antigravity agent, but it's basically a single agent that is working on the code. now recently, antigravity introduced this new feature called swarm, where one agent becomes the coordinator and starts a team of other agents and each of them owns one part of the job. so i wanted to test that with Gemini 4 neon. so i gave neon a brief of a voxel military diorama in the browser, which is a scene built from tiny 3d blocks. the coordinator. took that, split the work between seven members. so those seven members had distributed tasks. for example, one of them owned the terrain, one owned the vehicles, and one only checked the work and measured the frame rate. in about four hours, the team went through 15 rounds of improvements, and each round was checked for a steady frame rate. and one thing which i have noticed with this model specifically, with the new Gemini 4 family in general, is that these models are really good at verification. they implement things, then they will have a verification step where they verify the output and then iterate on it. now, for the swarm test, the extra high actually shows up in the results because the whole team used about 16 million tokens, which is roughly the length of 116 novels. and most of that is agent reading the code and the board again and again, right? so you see that it does a lot of verification in the process if you use swarm. you want to use swarm for complex tasks because it's going to burn through a lot of tokens.

目前为止给你们展示的所有结果,都是模型在 Antigravity 智能体中运行生成的,但基本上是由单个智能体负责写代码。 最近,Antigravity 推出了一项名为 Swarm 的新功能:一个智能体担任协调员,组建一个由其他智能体组成的团队,每个成员负责工作的一部分。 所以我想用 Gemini 4 Neon 测试一下。 我给 Neon 提了一个简要需求:在浏览器中制作一个体素军事微缩场景,也就是用小型三维方块搭建的场景。 协调员 接下任务后,把工作分给了七名成员。 这七名成员各自承担不同的任务。 比如,其中一个负责地形,一个负责车辆,还有一个只负责检查工作和测量帧率。 在大约四个小时里,团队进行了15轮改进,每一轮都会检查帧率是否稳定。 我注意到,这个模型,乃至整个新 Gemini 4 系列,都特别擅长验证。 它们完成任务后,会有一个验证步骤来检查结果,然后再进行迭代。 现在,在 swarm 测试中,extra high 的影响确实体现在了结果里,因为整个团队使用了约 1600 万个 token,长度大致相当于 116 本小说。 其中大部分都花在智能体反复读取代码和看板上,对吧? 所以可以看到,如果使用 swarm,它会在过程中进行大量验证。 swarm 适合用来处理复杂任务,因为它会消耗大量 token。

okay, so so far everything that we saw can be run in a single browser tab. so i wanted to see if neon could build something that runs on real infrastructure. and this is the thing which most developers are going to be actually interested in. so i give it my google cloud project and one task, which was to build an on-call agent called pager. and the idea was that this agent would basically monitor an app. if something breaks, the agent, which is called pager, finds what actually breaks and then fixes it once it has the human approval. neon worked on it alone for about 65 minutes and it put everything on cloud run. which runs your app on google cloud without you needing to manage any servers. so it built a small coffee shop for the agent to watch. it also added or simulated fake shoppers to keep the shop busy. and the agent is monitoring everything and a console where human can approve the fixes. now everything is built on top of adk or agent development. kit from google cloud. now, it didn't stop until its own test passed against the live app from a bad deploy all the way to the fix, which is great, right? so i push a bad deploy that drops the payment timeout from seconds to milliseconds. so about quarter of the checkout start failing as a result of this bad deploy and the error rate started to climb up into the red. now, in a minute, the agent finds the exact setting that changed, and it remembers that the same thing has happened before. so it uses a memory bank. then it stops and waits for me, which is the part i like the most, because for these kind of fixes, you want to have human in the loop. so when i click approve, the agent switches the app back to the last version that worked, and you can actually see that the errors drop to zero. now, the agent can read logs and move traffic, but it cannot delete anything, and that is by design. so i would recommend that setup for any agent that basically touches a live app. you want to have human in the loop. now, the great thing is that neon can do its research, look at cloud run, look at the documentation, and then. following the best practices, it was able to deploy a real app.

好了,到目前为止,我们看到的所有东西都可以在一个浏览器标签页中运行。 所以我想看看 Neon 能不能构建出在真实基础设施上运行的东西。 而这才是大多数开发者真正感兴趣的事情。 于是我把我的 Google Cloud 项目交给它,并给了它一个任务:构建一个名为 Pager 的值班智能体。 设想是让这个智能体监控一个应用。 如果出现故障,这个叫 Pager 的智能体会找出具体哪里出了问题,然后在获得人工批准后修复它。 Neon 独自处理了大约 65 分钟,并把所有东西都部署到了 Cloud Run 上。 Cloud Run 可以让你的应用在 Google Cloud 上运行,而无需你管理任何服务器。 于是它构建了一家小咖啡店,让智能体进行监控。 它还添加或模拟了虚拟顾客,让咖啡店保持忙碌。 智能体监控着一切,还有一个供人类批准修复方案的控制台。 现在,所有东西都是基于 ADK,也就是 Agent Development Kit,也就是 Google Cloud 的智能体开发工具包构建的。 它一直工作到自己的测试通过:针对线上应用,从一次错误部署一直测试到问题修复,这很棒,对吧? 于是我推送了一次错误部署,把支付超时时间从秒级降到了毫秒级。 这次错误部署导致大约四分之一的结账请求开始失败,错误率也开始攀升,进入了红色警戒区。 很快,智能体就找到了发生变化的具体设置,而且它记得之前也发生过同样的情况。 所以它用到了一个记忆库。 然后它停下来等我,这是我最喜欢的部分,因为对于这类修复,你会希望有人工参与。 所以当我点击批准后,智能体就把应用切换回上一个正常运行的版本,你可以清楚地看到错误数量降到了零。 现在,智能体可以读取日志、切换流量,但不能删除任何东西,这是有意这样设计的。 所以我建议所有会操作线上应用的智能体都采用这种设置。 你会希望有人工参与。 现在,最棒的是 Neon 可以自己做研究,查看 Cloud Run 和相关文档,然后…… 遵循最佳实践,成功部署了一个真正的应用。

okay, so the next question was whether neon can run real experiments. so in this case, i give it access to my dgx spark cluster. first one is a research paper called growing neural cellular automata, where every pixel runs the same tiny neural network. and together, they grow an image from a single cell. so neon wrote the training code and it trained it in about 23 minutes. and the lizard grows from one cell and regrows when you cut a piece off. now, when i cut across the middle of the body, it grew back without a front leg. so it doesn't always regrow perfectly, but it's able to implement that research paper, which is really, really great. the second one is a reinforcement learning task where a robot learns by trial and error. so i asked neon to write the algorithm from scratch and teach a four-legged robot to run. it tested its code on a much simpler task first, which is balancing a pole, and only then it decided to actually train the robot. it's able to first validate the approach that it's going to use on simpler tasks and then goes to the harder tasks. so the robot goes from falling over to running, and it reached about twice the target score that we set it for, which is pretty incredible. now, the last one is two galaxies colliding with more than half a million particles where every particle pulls on every other one. it simulated one galaxy alone first to check that it was stable and the total energy stayed within 100th of a percent across the whole run. so you actually see that it has this habit. if it needs to do a very complex task, it will first... try a simpler version of the task, make sure it works, and then it goes and does the more complex version, which is kind of how we humans approach complex tasks. so that is really good to see this habit.

好,接下来的问题是 Neon 能否开展真正的实验。 所以这次我让它访问我的 DGX Spark 集群。 第一个是一篇名为《生长神经元胞自动机》的研究论文,其中每个像素都运行着同一个微型神经网络。 它们共同作用,从一个细胞生长出一幅图像。 于是 Neon 编写了训练代码,并用大约23分钟完成了训练。 这只蜥蜴从一个细胞长成,切掉一部分后还能重新长出来。 不过当我从身体中间横着切开时,它长回来后少了一条前腿。 所以它并不总能完美再生,但它能够实现那篇研究论文,真的非常棒。 第二个是强化学习任务,机器人通过反复试错来学习。 所以我让 Neon 从零开始编写算法,教一台四足机器人跑步。 它先在一个简单得多的任务上测试了代码,也就是让杆子保持平衡,然后才决定正式训练机器人。 它能够先在较简单的任务上验证打算采用的方法,然后再处理更困难的任务。 于是机器人从一开始不断摔倒,到后来能够奔跑,最终取得的分数约为我们设定的目标分数的两倍,这相当不可思议。 最后一个是两个星系碰撞的模拟,包含超过50万个粒子,每个粒子都会对其他所有粒子产生引力。 它先单独模拟了一个星系,以检查其是否稳定;在整个模拟过程中,总能量的变化保持在百分之一以内。 所以你确实可以看出它有这样的习惯。 如果需要完成一项非常复杂的任务,它会先……尝试一个更简单的版本,确保行得通,然后再去完成更复杂的版本,这有点像我们人类处理复杂任务的方式。 所以看到它有这种习惯,确实很好。

now, the next one is actually a weight space programming. so this was a research paper recently from mit. which is the idea that the language model can write neural networks directly, a way a programmer would write code without training the neural networks. so a weight is one of the numbers inside the network that decides how it behaves. and normally you get those numbers by training the network on millions of games. now, i have a dedicated video on the topic. i highly recommend to watch that. but i wanted to repeat this experiment where neon only got the source code of a simple version of breakout with the no tools. and it wrote every weight of a small network in one reply. so i loaded the weights and let the network play. and it averaged about 550 points per game. for reference, the best trained network. in their post reaches about 25 points on the same game. this is from the published results. it is kind of crazy, right? now on Asteroids, its network also beat the best trained network, but on Seaquest, which is the hardest of the three games, it scored less than half of the trained one. so this is also where you see extra high because on breakout, it thought for more than 100,000 tokens. which is about the length of an hour before it actually decided to change or write a single weight.

接下来这个其实是权重空间编程。 这是麻省理工学院最近发表的一篇研究论文。 其思路是让语言模型直接编写神经网络,就像程序员编写代码一样,而不需要训练神经网络。 权重是网络中的一个数值,用来决定网络的行为。 通常,要通过让网络训练数百万局游戏才能得到这些数值。 我做过一期专门讲这个主题的视频。 我强烈推荐大家去看。 不过我想重复这个实验:Neon只拿到了一个简化版打砖块游戏的源代码,没有使用任何工具。 它在一次回复中写出了一个小型网络的所有权重。 于是我加载了这些权重,让网络玩游戏。 它平均每局得了大约550分。 作为参考,训练得最好的网络 在他们的文章中,同一款游戏的得分约为25分。 这些数据来自已发表的结果。 这有点不可思议,对吧? 在《小行星》中,它的网络也击败了训练得最好的网络,但在这三款游戏中难度最高的《海底大冒险》中,它的得分还不到经过训练的网络的一半。 所以这也是超高推理级别派上用场的地方,因为在《打砖块》中,它思考了超过10万个 token, 大约相当于一个小时的长度,然后才决定修改或写入一个权重。

extra high might be a bit too much for this specific task, and you need to set the reasoning level for these models based on the complexity of the task that you are looking at. now, it's more important to know the limitations. so here are three things that made the biggest difference for me with neon. And these applies to a general LLMs as well. So the first one is to give it a definition of done that it can test like the end-to-end test for the cloud run agent. The second one is that give it a way to see it work like the critique tool for the dragon or a single galaxy before collision. and the last one is to watch the results yourself. because if these agents are verifying their own results, sometimes they don't notice small nuances. so Gemini 4 neon is a very capable model and i had a lot of fun testing it. i'll highly recommend to check it out. if you want to take one thing from this video, i would give a model the definition of done and then a way to check it. this is a trend that we're going to be seeing. verification is becoming very important for these long running agents. and if you have found other ways to set up long tasks like this, please do share them in the comment section below. and link to the research and the original experiments are going to be in the description. i'm also putting together a step-by-step video on building an on-call agent like pager on cloud run. so if you want that, make sure to subscribe to the channel. now, if you want to see what Gemini 4 carbon built, watch this video. anyways, i hope you found this video useful. thanks for watching. and as always, see you in the next one.

对于这项具体任务来说,超高推理级别可能有点过头了,你需要根据所面对任务的复杂程度来设置这些模型的推理级别。 现在,更重要的是了解它的局限性。 对我使用 neon 来说,以下三件事带来的帮助最大。 这些也适用于一般的大语言模型。 第一,给它一个可以测试的完成标准,就像 Cloud Run 智能体的端到端测试那样。 第二,给它一种观察运行效果的方式,比如用于龙的评估工具,或者碰撞前的单个星系。 最后一条是亲自查看结果。 因为如果这些智能体自行验证结果,有时会注意不到细微之处。 所以,Gemini 4 neon 是一个能力很强的模型,我测试它的时候也玩得很开心。 我强烈推荐你去试试。 如果你只从这个视频中记住一件事,那就是给模型一个完成标准,再给它一种检查的方法。 这是我们今后会看到的一个趋势。 对于这些长时间运行的智能体来说,验证正变得非常重要。 如果你还发现了其他设置这类长任务的方法,请在下方评论区分享。 研究和原始实验的链接会放在视频简介中。 我还在制作一个逐步演示的视频,教你如何在 Cloud Run 上构建像 Pager 这样的值班智能体。 如果你想看,记得订阅频道。 现在,如果你想看看 Gemini 4 Carbon 做出了什么,就看这个视频。 总之,希望这个视频对你有帮助。 感谢观看。 一如既往,我们下期再见。

摘要

这段视频以实际任务而非基准测试展示 Gemini 4 Neon 的能力:模型在 Antigravity 中生成图形、动画和可漫游建筑,并通过多智能体协作构建场景;它还部署了需要人工批准修复的云端值班智能体,在 GPU 上实现科研实验,并直接编写神经网络权重。演示也暴露出再生不完美、不同游戏表现不一致及高推理等级消耗大量 token 等限制。核心经验是为长任务设定可验证的完成标准,让模型能够检查中间结果,并由人复核最终成果。

章节

00:00 模型定位与演示设置

Gemini 4 Neon 面向复杂编码、分析推理和企业工作流。本次测试不以基准分数为重点,而是展示涉及研究实现、本地训练和云端部署的多步骤任务。所有演示均在 Antigravity 中运行,使用四种思考等级中的最高等级 extra high。

演示使用的思考级别

01:24 用代码生成三维龙和动画孔雀

模型根据幼龙参考图生成符号距离函数,用纯代码而非三维模型文件构造龙;它自主工作约 38 分钟,还编写工具从五个角度渲染并比较轮廓。另一个任务将孔雀参考视频转为近一分钟循环的单文件 SVG:模型用 Python 生成鸟、森林和镜头运动,并经过三轮渲染检查。三维软件完成龙模型可能更快,这项实验主要展示代码生成能力。

小龙参考图
五角度渲染与轮廓比对
龙的渲染纹理
孔雀动画中的森林与尾羽
动画生成与三轮结果检查

03:29 从平面图生成可漫游住宅

模型自行在网上选择了 Marcel Breuer 设计的 1959 年住宅平面图,并将其转换为可漫游的房屋。初版视觉效果偏卡通,自动导览还会穿墙;收到修改要求后,画面更写实,导览也改为逐个房间穿门通行。

平面图生成完整住宅
初版卡通效果及漫游撞墙问题
改进后穿过房门逐间漫游

04:20 多智能体协作构建体素场景

Antigravity 的 swarm 模式由协调智能体将浏览器军事体素场景任务分给七名成员,分别负责地形、车辆和质量检查等工作。团队约四小时完成 15 轮改进,每轮检查帧率;整个过程消耗约 1600 万 token,大量用于反复读取代码和任务板,因此更适合复杂任务。

浏览器中的体素军事场景
Swarm 测试的 token 用量

06:06 部署云端值班智能体并测试回滚

Neon 约用 65 分钟在 Google Cloud Run 上部署值班智能体 Pager、受监控的咖啡店应用、模拟顾客和人工审批控制台。测试将支付超时从秒级错误改为毫秒级,约四分之一结账失败;Pager 在约一分钟内定位变更,并在人工批准后回滚到正常版本,错误降至零。智能体可读日志和切换流量,但被设计为不能删除资源。

供智能体监控的咖啡店应用
错误率升至红色区域
智能体定位发生变化的设置
人工批准回滚后错误降为零

08:41 GPU 实验:细胞自动机、机器人与星系

在 DGX Spark 上,模型编写并训练神经细胞自动机,约 23 分钟后蜥蜴图像可从单细胞生长并在受损后再生,但一次横切后缺失前腿。四足机器人强化学习任务先用倒立摆验证,再训练机器人跑步,得分达到目标约两倍。星系碰撞模拟涉及 50 多万个粒子,模型先测试单星系稳定性,整个运行中的总能量偏差控制在百分之一的百分之一以内。

蜥蜴从单细胞生长并再生
切割后再生的蜥蜴缺少一条前腿
训练机器人前先测试平衡杆任务
机器人从跌倒到跑步的训练结果
超过五十万个粒子的星系碰撞模拟

10:44 不经训练直接编写神经网络权重

权重空间编程让语言模型直接写出神经网络权重。Neon 仅凭简化版 Breakout 源码、无工具调用,一次写出小网络的全部权重,平均每局约 550 分;作为对比,相关公开结果中的最佳训练网络约为 25 分。它在 Asteroids 上也超过最佳训练网络,但在更难的 Seaquest 上不到训练网络的一半;Breakout 任务在写权重前消耗了超过 10 万思考 token。

直接编写权重的网络在 Breakout 中的平均得分
训练网络在同一游戏中的参考得分
Asteroids 和 Seaquest 上的网络表现对比

12:10 长任务的验证与资源使用原则

推理等级应与任务复杂度匹配,extra high 并非所有任务都需要。长任务应设定可测试的完成标准,为模型提供观察和验证结果的方法,并由人亲自检查,因为智能体自检可能忽略细微问题。

长任务的完成标准与验证方式

结论

12:30 长任务更可靠的做法是设定可测试的完成标准,并让模型能够验证中间结果。

06:00 多智能体协作和最高推理等级可能消耗大量 token,应按任务复杂度选择。

08:13 操作线上应用的智能体应保留人工审批,并限制其危险权限。

12:47 模型自检不能替代人工复核,因为它可能遗漏细微问题。

11:45 直接编写网络权重在部分游戏中表现突出,但不同任务之间的效果并不一致。

Gemini 4 Neon 来了,实力强悍! · 视频总结 · OctSum