Yunzhong from the Temple of Dynasty
Quantum bits.
It's not new anymore.
But what if the 20 were to form an engineering team that did not tell them exactly which line to change, so that they themselves could find performance bottlenecks, propose technical solutions, design experiments and even review one another?
How far can they go?
Recently, AI's Founding Company.
Human beings set targets for optimization and project constraints, leaving the rest to AI.
Four days later, the team handed over a report card:
Some 350 engineering experiments are conducted autonomously;
Ultimately, six optimizations through review are retained;
Total time-consuming drop from 40.5 seconds to 27.9 seconds, or 31 per cent, in a billion-degree data test;
Some of the queries took up to 87 per cent of the time.
More importantly, in the data lake category of the database performance baseline, the AID-optimized Quickwit exceeded all previous public achievements in the same caliber thermal search rating.
This time, AI didn't just write the code, it started working as a professional system engineering team.
20 AI Argentinas, challenging real systems
This selection was optimized by the open source search engine Quickwit, used by TabbyML in its practical operations.
Quickwit is a section for large-scale logs and mass data processing.
TabbyML uses it to store and retrieve the tracks of AI Ages.
Unlike general software development tasks, systemic optimization is a rather complex engineering exercise.
Engineers need to understand not only the large code libraries, but also the bottom-up mechanisms of CPU, memory, data structure, storage access, etc.
In many cases, real performance bottlenecks are not intuitive.
And one seemingly effective optimisation could be created in another scenario.
The rating dropped from 403 ms to 304 ms.
Recalculated on the same set of 40 queries, the optimized Quickwit is 304 milliseconds on the hot query geomean, 16% faster than the 354 milliseconds of Duckflight's public performance.
The TabbyML team also reproduced the unoptimized accomplishments of Crickhouse and Quickwit (the fourth and fifth lines of the figure): Quickwit ' s hot query geomean is 304 ms and Crick House 392 ms.
Notably, AI did not re-engineer the entire search engine, but went deep into the ground floor of the system and looked for one by one performance bottlenecks that could be removed.
The 20 AI Ages optimized the various links around cache configuration, data structure, compressor reuse and memory distribution mechanisms.
After approximately 350 explorations and experiments, they resulted in six effective performance optimizations.
To create a real engineering team for AI.
What would happen if 20 AI Agents were to modify a code library at the same time?
They may duplicate work, overwhelm one another with code modifications, or misperceive random fluctuations in testing as enhanced performance.
Even in pursuit of higher scores, AI may gradually find some speculative solutions.
The solution for TabbyML is for AI to work as a real engineering team.
The whole team is divided into three roles.
First:
These Agents do not change the code, but focus on performance analysis.
They read the code, analyze the data () and look for potential bottlenecks, as well as make optimal assumptions.
Multiple Agens can explore different directions at the same time, from data decode to memory management, from aggregation to storage access.
Second:
It is responsible for reviewing each optimization programme.
Can this really solve a generic engineering problem? Is there any chance that you're just making a deal with Benchmark? How can optimization be demonstrated? Which pre-existing acts must remain unchanged?
In the TabbyML system, each experiment needs to be developed before it can be formally started.
It is important not only to define performance objectives, but also to set limits on accuracy, compatibility, memory use, etc.
It is only through the programme under review that the next phase can continue.
Third:
These Agents perform optimization in isolated, experimental environments and perform unit tests and complete performance tests.
Interestingly, they are not mechanically carrying out the tasks assigned to them by the technical heads.
If they find problems with the original programme when reading the code, they can even question the technical head ' s judgement and request a re-engineering of the pilot scheme.
The results of each round of experiments, whether successful or unsuccessful, are returned to the technology manager as a basis for subsequent exploration.
Successful optimization into the next round. Failure experiences become the shared knowledge of the entire team.
As a result, the AI team formed a closed loop of work that continually presented assumptions, validated assumptions, corrected errors and continued improvement.
Humanity no longer needs to gradually break down a complex engineering goal into a specific programming task.
The exploration of issues and the dismantling of the task itself have also become the work of AI.
The results of the 40 inquiries were all right. Q36 was close to 11%, and Lead Agent rejected the change.
The most interesting episode of the whole experiment took place in an experiment number E251.
AI found that Quickwit needed to process about 100 million intermediate records in a search. What the users really need, however, is only the 10 IP addresses most visited.
AI then proposed a solution that seemed very reasonable: to screen the 10 results that were ultimately needed, and then follow up on the data conversion.
In this way, a large number of unnecessary calculations can be saved.
The test results were pretty pretty. Micro-base testing is 3.02 times faster, and target queries take 11 per cent less time. More importantly, all 40 ClickBench queries were certified. If only Benchmark ' s achievements were to be used as a test, it would seem that this optimization could be directly combined.
However, Lead Agent, who was in charge of the review, stopped it. The reason is that AI found this optimization to have changed the way IP addresses were compared.
For example, two IP addresses with exactly the same number of visits are assumed:
10.0.0.10
10.0.0.2
By string, the former is in front. However, by value, the latter rank ahead.
This nuanced difference did not cause errors in the current Benchmark data.
However, if an IP address with the same number of visits occurs in a real business, this optimization has the potential to change the search results of the eventual return.
In other words, all tests were passed and performance improved, but the code may still have problems of correctness.
In the end, Lead Agent rejected the optimization and recorded the discovery to avoid subsequent mistakes by the following Agents.
This may be more of a concern than performance itself.
In this multiAgent team, it's two different jobs to get good grades and decide whether the code fits.
Verification Agent gave evidence of a speed boost; Lead Agent also asked: "Is it because the test is green, it's just because it doesn't detect where it could be wrong?" The change in E251 stopped at that point.
The value of the multi-Agent division of labour lies not only in the ability to try more solutions in parallel, but also in the fact that someone is specifically testing the code to run faster, and whether the same answer can be given.
350 experiments, leaving only six optimizations.
Of the approximately 350 experiments, only six were eventually retained.
At first glance, this does not seem to be a very high percentage. But for real systemic engineering, it is normal that there are a lot of failed explorations.
Another experiment, E094, is a typical example.
AI found that the system produced many unnecessary memory allocations when dealing with a large number of small data groups. It thus proposes a new data structure.
The 28 per cent reduction in the time spent on target queries resulted in a 9 per cent deterioration of performance in another query.
On this occasion, AI did not accept the changes directly, but reduced the optimization in the follow-up experiment E119, using the new data structure only in scenarios that would actually benefit. Ultimately, the team managed to eliminate this degradation while retaining performance gains.
Similar processes continue to occur. In the subsequent E237 experiment, Agent, which was responsible for the validation, even found errors in the optimization programme approved by the technical director.
The temporary RAM buffer zone, which was initially considered a bottleneck, would in fact be emptied every 2048 documents and would not have increased to a level sufficient to create the expected problem.
Real performance costs come from another growing array. The validation of Agent did not carry out its tasks mechanically, but rather provided feedback on the findings to Lead Agent, which prompted the team to revise the programme.
The modified optimization ultimately reduced target queries from 5.891 seconds to 3.131 seconds, a 47 per cent reduction.
AI presented the assumption that AI would validate the assumption that AI would question the conclusions of the other AI and that AI would conduct the next round of experiments. Many failures have not been abandoned, but have served as a basis for subsequent optimization.
Ultimately, six items are being superimposed through the optimization of the review, gradually reducing the total heat query of the system from 40.5 to 27.9 seconds.
It also reveals another difference between the system and the ordinary Coding Agen working methods.
Its work is not a one-time code generation, but an autonomous engineering exploration that can last for days or even longer.
Each experiment has corresponding assumptions, measurements and review records.
Even if an experiment fails, it can provide new information for the next round.
What is really important is not the success of a given experiment, but the ability of the system as a whole to continuously accumulate optimized results.
。
The question is straightforward: does adding CPU to the server make the log index faster?
In the communication prior to the initiation of the experiment, Quickwit ' s maintainer mentioned that it would be difficult to speed up the CPU to a certain extent.
One known bottleneck is that more CPUs cannot allow multiple writings to have the same lock at the same time. It's two things to know where the card is, and to have time to check it out along this writing path.
TabbyML sets out an optimisation target and a replicable validation environment for AI Ages, but does not disclose that the WAL writing lock is a known bottleneck, nor does it specify which code should be changed.
Investigator Agent (researcher) does his own performance analysis (profiling) and independently locates the same WAL writing locks following the writing path. Agents then try to compress larger WAL records before writing to reduce the amount of data to be written during the locking.
The index construction phase of 100 million logs has been reduced by nearly 60 per cent in the stage internal tests. The team is also continuing to dig for further optimization.
The most remarkable aspect of this work is the level of capacity that the AI Agents team can achieve to replace much of the day-to-day work of human system engineers.
By providing a target and a repeatable validation environment, AI Agents can optimize its own validation from positioning problems and move forward with work that needs to be dedicated to the release of project time.
From AI Coding to AI Engineering, the system optimizes new paradigms
Over the past few years, the development of AI Coding has focused on one issue:
How can developers write codes more quickly?
In the area of system engineering, however, what is really expensive is often not the preparation of the code itself, but rather the search for performance bottlenecks, the exploration of different technological options, and repeated experiments and validation.
Interestingly, systemic optimization is precisely an area that is naturally suited to the autonomous work of AI Agents.
Clear targets for optimization, quantifiable performance indicators, repertoireable experimental environments, and strict correctness constraints have created a feedback loop for AI that can be continuously explored, self-corrected and cumulative.
Each experiment allows feedback through real performance data. Each failure can be the starting point for the next round of exploration. Each effective optimization can be the basis for the system ' s continued upgrading.
It may be difficult for human engineers to devote days or even weeks to exploring hundreds of potential optimisation options for a bottom component, but AI Agents can.
They can explore different technological pathways in parallel over a period of 7 x 24 hours, so that those optimizations that were put on hold in the past for human and time costs can be truly implemented.
Such opportunities exist widely in modern times.
Validation efficiency of databases...
In a large-scale software infrastructure, even relatively small improvements in performance can lead to significant savings in computing resources and reduced infrastructure costs.
Quickwit is just the beginning.
At present, TabbyML has built a mature set around the autonomous systems project and is being scaled up for use in a variety of real infrastructure software.
These AI Argentinas operate on a continuous basis, autonomously identifying performance bottlenecks, conducting optimized experiments and delivering certified code improvements, helping enterprises to upgrade software systems and reduce infrastructure costs.
This means that systemic optimization is expected to shift from a work that relies on scarce expert resources and is carried out intermittently to an infrastructure capacity for continuous, scaled-up implementation.
In the past, enterprises needed to devote dedicated engineering resources to optimize systemic performance. In the future, continuous optimization can itself become a regularization of the software infrastructure.
In the future, the enterprise ' s software infrastructure could not only be operated 7x24 hours, but could also be optimized 7x24 hours.
From helping engineers write codes to allowing AI to drive the continuous evolution of software systems, TabbyML is exploring the next form of AI Engineering.
References:
https://www.tabbyml.com/blog/beating-clickbench-sota-with-a-team-of-agentic-systems-engineers/
* Quantum position is authorized to be published in this document and the view is only owned by the original author.