跳到正文
DEV Community· SeaOtter ( Kentaro Mori )·· 5 小時前AI 評分57

解讀 ReAct、SWE-bench 與 SWE-agent 三篇論文中的今日 AI 智能體設計藍圖

The Blueprint of Today's AI Agents Was in Three Papers: Reading ReAct, SWE-bench, and SWE-agent

AI 導讀

作者按時間順序解讀 2022 至 2024 年的 ReAct、SWE-bench 與 SWE-agent,將今日 AI 智能體的基本設計概括為思考與行動循環、以執行結果評測,以及為智能體設計專用工具。

正文

Introduction

If you use a coding agent like Claude Code or Codex, you may feel a strange sense of déjà vu.

It searches for files, reads the parts that look relevant, edits them, runs the tests, and when something fails, it looks at the log and fixes it. The motion traces the steps of a human developer. And in between, short thoughts are inserted: "next I should check this," "this error is not what I expected."

This behavior was not something somebody decided on a whim. It is the result of three papers, published between 2022 and 2024, each inventing and verifying one piece at a time.

  • 2022 — ReAct: the invention of the "loop" that interleaves thought and action
  • 2023 — SWE-bench: the invention of the "yardstick" that measures on real-world tasks
  • 2024 — SWE-agent: the invention of the "tools" designed for agents

The three papers come from a single lineage centered on a Princeton University research group (Princeton Language and Intelligence), and their authors overlap. Names such as Shunyu Yao, Karthik Narasimhan, Ofir Press, John Yang, Carlos E. Jimenez, and Alexander Wettig appear across the papers.

That they share a lineage is no accident. Each later paper was written as an answer to a problem the earlier one left behind. That is exactly why the three are better understood read as one flow than read separately.

In this article, I read the three in chronological order. For each paper, I look separately at the "approach," the "results," and the "limitations," to see which parts of today's agents are extensions of these papers and which parts were left unsolved at the time.

To state the conclusion first: the basic shape of today's agents is a set of three — a loop that thinks and acts, evaluation by executing and checking, and tools built specifically for agents. The three papers each carry one of these.

Note that every performance number in this article is from the time the paper was published. They differ greatly from the performance of current models and agents, so read them with "at the time" in mind.

The flow of the three papers

1. 2022, ReAct: The Think-and-Act Loop

1.1 What the paper is

Title: ReAct: Synergizing Reasoning and Acting in Language Models
Authors: Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, Yuan Cao
arXiv: 2210.03629 (submitted October 2022; v3 March 2023)
Affiliations: Princeton University, Google Research
Project page: https://react-lm.github.io/

The starting point is a split in how language models were used at the time.

Reasoning was studied through methods like Chain-of-Thought (CoT), which chain thoughts using only the model's internal knowledge. Acting, on the other hand, was studied separately, as operations on an environment or as plan generation. ReAct proposes not to separate the two.

It is easier to picture with human work. While cooking, you mutter to yourself — "the ingredients are chopped, so next I'll boil water in the pot," "there's no salt, so I'll substitute soy sauce" — while your hands keep moving. Thought guides action, and the information gained from action supports the next thought. The paper brought this back-and-forth into the generation format of a language model itself.

1.2 How it works: adding "thought" to the set of actions

The trick in ReAct is surprisingly small.

It adds the language space itself to the set of actions the agent can choose. Written as a formula, the action space is expanded to  = A ∪ L, where A is the ordinary actions that affect the environment, and L is the language space.

An action in the language space — a "thought" — has no effect on the external environment. Instead, it organizes and updates the context so far. Making a plan, checking progress, extracting the key points from an observation, revising the plan when an exception occurs. Thoughts like these determine the quality of the next action.

The reverse direction also exists. By going out and fetching external information through actions, the material for reasoning increases. The paper calls this bidirectionality "reason to act" and "act to reason."

The content of a thought is free-form, but the paper lists typical patterns: decomposing a goal into a plan, bringing in common sense relevant to the task, extracting key points from observations, tracking progress and switching plans, and revising the plan when an exception occurs. All of these are verbalizations of what humans do in their heads while working.

Figure 1: The ReAct loop of thought, action, and observation

The implementation is prompting only. A frozen PaLM-540B is shown one to six human-written example trajectories of "thought, action, observation," and generates the continuation. The model weights are never updated.

The density of thought varies by task. For knowledge-intensive tasks, thought and action are strictly interleaved. For decision-making tasks with many actions, thoughts are inserted only at key points, and whether to emit one at all is left to the model.

The tools used in the knowledge tasks were just three actions of a Wikipedia API.

  • search [entity]: returns the first five sentences of that entry; if there is none, it offers similar entries as candidates
  • lookup [string]: returns the next sentence in the page containing that string (equivalent to find-in-page in a browser)
  • finish [answer]: gives the answer and ends the task

Note that this search was deliberately made weaker than a full-fledged search system of the time. The purpose was to have the model fetch information through explicit reasoning in language, rather than papering over weaknesses with search performance. The weakness of the tool is a design that creates the need to think.

1.3 Results: verification on four benchmarks

Verification was done on four benchmarks: HotpotQA for question answering, FEVER for fact verification, ALFWorld, a text game, and WebShop for web shopping.

In the two knowledge tasks, the model can search for information using the Wikipedia API. The results are as follows (EM is exact-match rate, Acc is accuracy).

HotpotQA (EM) / FEVER (Acc), PaLM-540B, prompting only
- Standard            28.7 / 57.1
- CoT                 29.4 / 56.3
- CoT-SC              33.4 / 60.4
- Act (acting only)   25.7 / 58.9
- ReAct               27.4 / 60.9
- Combined (best)     35.1 / 64.6
- Supervised SOTA     67.5 / 89.5

There are two points worth reading here.

First, ReAct on its own is roughly on par with CoT — not a dramatic victory. On HotpotQA it is slightly behind CoT; on FEVER it is ahead. FEVER claims are decided as supported or refuted by slight differences in facts, so the authors analyze that the action of searching for accurate, up-to-date knowledge paid off. The best results came from combining the two approaches. It was not internal knowledge or external search alone, but a configuration that uses both as appropriate, that won.

The switching rule for the combination is simple. If ReAct does not return an answer within a step limit (7 for HotpotQA, 5 for FEVER), it switches to CoT-SC, which takes a majority vote. Conversely, if CoT-SC's majority vote produces no answer with a majority, that is taken as a sign that internal knowledge is insufficient, and it switches to ReAct. It is also efficient: the combined approach reached, with 3–5 samples, the performance CoT-SC produced with 21 samples.

The second point is the difference on decision-making tasks. On ALFWorld, imitation learning and reinforcement learning methods had a success rate of 37%, while ReAct recorded 71% — +34 points in absolute terms. On WebShop, too, it reached 40.0% against 28.7% for trained methods, +10 points ahead.

Neither task is straightforward. ALFWorld has more than 50 locations, and even expert trajectories exceed 50 steps. WebShop is a task of finding and buying the one item that matches the conditions among 1.18 million real products. What is tested is not losing sight of the goal over a long sequence of steps.

Moreover, while the trained methods it was compared against used 10³ to 10⁵ training examples, ReAct used only one or two examples inside the prompt. The surprise at the time was that, rather than "training" the model, merely "specifying how to think" surpassed methods trained specifically for the task.

1.4 A breakdown of failures: hallucination disappeared, but other failures remained

The value of this paper is not only in the win–loss numbers. The authors manually classified 100 trajectories each of ReAct and CoT on HotpotQA (sampled from successes and failures) and compared the types of failure.

Among CoT's failures, hallucination accounted for 56%: the type where a fact without basis is created inside the thought, and the error propagates as is.

In ReAct's failures, hallucination was 0%. The structure of searching outside and checking nearly eliminated factual errors. In their place, reasoning errors grew to 47% and search errors to 23%: failures such as repeating the same thought and action and being unable to escape the loop, or reasoning going off the rails when a search returned nothing.

There are also differences within the successful trajectories. The share that were "the correct answer but with errors in reasoning or facts" was 6% for ReAct against 14% for CoT. Conversely, the share where both reasoning and facts were correct was 94% for ReAct against 86% for CoT. The difference showed not only in whether the answer was right, but in the correctness of the process.

What this tells us is that the loop structure is no panacea. It can also be read as merely shifting the kind of failure from "fabricating facts" to "getting stuck in the procedure." However, there is meaning in the failures remaining in visible form. If a reasoning trace remains, a human can later diagnose where it went off track. It is also possible to intervene by editing the thought.

1.5 Limitations: the ceiling of prompting

The authors also state the limitations plainly.

On complex tasks, many example trajectories need to be shown, but the input-length limit is reached quickly. Their self-assessment is that the prompting approach has a ceiling when it comes to tasks with many kinds of actions.

Fine-tuning was tried as a way through. When a small model was trained on 3,000 correct trajectories generated by ReAct, the fine-tuned PaLM-8B surpassed all the prompted PaLM-62B variants, and the PaLM-62B version surpassed all the prompted PaLM-540B variants. The suggestion is that the skill of "how to think and act" can be embedded through training more than through model size.

Turned around, with small models, prompted ReAct was the worst of the four methods. Learning both reasoning and acting from in-context examples alone is difficult. The loop format is powerful, but to wield it, the model side also needs a certain level of ability or training.

The ethics section also touches on the risks of connecting a language model to an external environment in the first place. Because inappropriate information could be searched for, or harmful operations performed on the environment, the paper states that in the experiments, connections were limited to sites that do not contain private information. The danger of letting an agent act was already a topic in this earliest paper.

2. 2023, SWE-bench: A Yardstick for the Real World

2.1 What the paper is

Title: SWE-bench: Can Language Models Resolve Real-World GitHub Issues?
Authors: Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, Karthik Narasimhan
arXiv: 2310.06770 (submitted October 2023; v3 November 2024)
Affiliation: Princeton Language and Intelligence, among others
Site: https://www.swebench.com/

The year after ReAct showed "how to make it move," a paper on "how to measure" came from the same lineage.

Behind it was the saturation of existing benchmarks. Code generation benchmarks like HumanEval center on self-contained problems solvable in a few lines. Real bug fixing is the work of reading a large codebase, identifying the relevant places, and making changes that span multiple files consistently. A high score on short problems does not measure practical ability.

SWE-bench's answer was to build tasks from real GitHub issues and the pull requests (PRs) that resolved them.

Another design goal was that it could keep being updated. The collection procedure is designed to minimize manual work and can be applied to other Python repositories. If tasks are rebuilt from issues created after a model's training period, evaluation on "answers the model has not seen in training" also becomes possible. The device to keep the yardstick from going stale was built in from the start.

2.2 How it works: from 90,000 PRs to 2,294 tasks

To build the tasks, candidates are narrowed down in three stages.

  • Stage 1: collect about 90,000 PRs from 12 popular Python repositories
  • Stage 2: take as candidates the PRs that resolve an issue and also change test files
  • Stage 3: actually run them, and confirm that there is at least one test that fails before the fix and passes after it (fail-to-pass), and that no errors occur in setup or execution

What remained was 2,294 tasks. What the model is given for a task is the issue text and the entire codebase. There is no specification of where to fix. The model generates a patch (a diff), and after applying it, the real tests are run; if all the relevant tests pass, it counts as "resolved." The metric is the resolution rate (% resolved).

Figure 2: How SWE-bench is constructed and evaluated

The scale of the tasks is orders of magnitude different from previous benchmarks.

The average SWE-bench task
- Issue text:              195 words
- Codebase:                3,010 files / 438K lines
- Gold patch:              edits 1.7 files, 3.0 functions, 32.8 lines
- Fail-to-pass tests:      2 or more in 40% of tasks
- Pass-to-pass tests:      median 51 (checking existing features are not broken)

The gold patch itself is small, averaging 32.8 lines. What is hard is not the volume of writing, but finding the few dozen lines to change among 438K lines, and not breaking the surrounding behavior.

To reduce the cost of evaluation, a 300-task subset, "SWE-bench Lite," was also prepared. It is restricted to relatively self-contained, feature-level bug fixes, covering 11 repositories. Much of the follow-up research tries Lite first.

2.3 Results: even the best model reached only 1.96%

The results were harsh. Even Claude 2, the best model at the time, resolved only 1.96% (in a setting where BM25, a keyword search, selects the relevant files to provide).

SWE-bench resolution rate (context provided via BM25 retrieval, at the time)
- Claude 2         1.96%
- GPT-4            1.31% (listed as GPT-4-turbo in the table)
- SWE-Llama 13B    0.70%
- ChatGPT-3.5      0.17%

In v3 (November 2024), Claude 3 Opus was added and recorded 3.79% under the same setting. Even so, the level remains one of almost nothing being solved.

The authors also measured an "oracle" setting, in which the very files edited by the gold PR are handed over. Claude 2's resolution rate rises to 4.8%. In other words, even knowing where to fix, 95% remained unsolved. But conversely, failing to reach the right file through search was also a major cause of defeat. With BM25, in nearly half the tasks, not a single gold file appeared in the search results.

The patches the models generated also had tendencies. Compared to the gold patches, they were shorter and simpler, and the edits stayed within almost a single file. Structural improvements spanning multiple files almost never appeared. A detailed reading of the outputs also pointed out a tendency to write naive, one-off code on the spot, without using existing libraries or codebase components — in contrast to gold patches, which restructure with future problems in view.

Context length was also a physical wall at the time. Depending on a model's input limit, the task itself did not fit. For ChatGPT-3.5 (16K-token limit), only 58.1% of tasks fit in the input; even for Claude 2 (100K-token limit), it was 96.4%. Before whether it could solve them, whether it could read them was in question.

Interestingly, more context was not always better. In the "oracle-collapsed" setting — handing over only the gold files, and further folding them down to 15 lines before and after the edit location — Claude 2's resolution rate rose to 5.93%. The less irrelevant code there is, the less likely the model is to lose sight of where to fix. This observation, that "how information is presented" moves performance, leads directly to the theme of the next paper, SWE-agent.

On the training side, the authors also released SWE-Llama, a CodeLlama fine-tuned on 19,000 issue–PR pairs collected from another 37 repositories. The 13B model competed with Claude 2 in some settings and could process contexts over 100K tokens. Building both "the yardstick to measure with" and "the training data" from the same collection procedure is also part of this paper's design.

2.4 Limitations: passing tests is not a guarantee of quality

The authors raise three limitations.

The first is that the target is Python only. Extension to other languages was left as future work.

The second is that the experiments remain at "the most straightforward baselines." Agent-style methods and tool augmentation are explicitly left to future research. The next section's SWE-agent takes the shape of answering exactly this invitation.

The third is essential. Execution-based tests alone cannot guarantee the reliability of the outputs. The authors themselves write that code generated by models often falls short of human-written solutions in coverage, efficiency, and readability. Passing the tests and being a good fix are different things — that is the caveat.

There is one more point readers should note. Because SWE-bench tasks are built from public repositories, the possibility that tasks or gold solutions are contained in a model's training data (contamination) cannot be excluded in principle. The authors checked, by splitting on issue creation date, that performance differences by period were small except for GPT-4. The paper's view is that signs of "solving by memorization" are weak.

The weakness of the fine-tuned SWE-Llama was also suggestive. Because it had been trained with contexts that included the gold files, its performance dropped when given noisy contexts like BM25's. It broke down in ways such as assuming every file it was given was a target to edit. Not only the model's ability, but whether the way context is handed over matches between training and use, also moves performance. This point, too, connects to the next paper, SWE-agent.

3. 2024, SWE-agent: Designing the Tools

3.1 What the paper is

Title: SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering
Authors: John Yang, Carlos E. Jimenez, Alexander Wettig, Kilian Lieret, Shunyu Yao, Karthik Narasimhan, Ofir Press
arXiv: 2405.15793 (submitted May 2024; v3 November 2024)
Affiliations: Princeton Language and Intelligence, Princeton University
Site: https://swe-agent.com/

SWE-agent's problem statement brings the thinking of HCI (human–computer interaction) to agents.

When humans do complex work, they borrow the help of dedicated tools such as integrated development environments (IDEs). What about language models? Conventionally, agents were handed "tools for humans," like a Linux shell, as is. But a language model is a new kind of user. Since its strengths and weaknesses differ from a human's, the tools should also be designed for that user — that is the claim.

In the paper, this layer between the agent and the computer is called the ACI (Agent-Computer Interface).

The way the design proceeds is also in the HCI style. On development tasks, the agent's trajectories are observed, stumbling points are identified, and improvements are tried. The remaining settings are chosen by grid search. An observation-based method — watching the behavior of the user (here, the model) and fixing the tools — was taken.

3.2 How it works: the four principles and components of the ACI

There are four design principles.

  • Actions are simple and easy to understand: commands with many options are replaced by small, dedicated commands
  • Actions are compact and efficient: a single operation yields meaningful progress
  • Feedback is useful but concise: the result of an operation is conveyed, but unnecessary detail is dropped
  • Guardrails prevent errors from propagating: with syntax checks and the like, failures are detected early and recovery is made faster

The concrete components are as follows.

  • Search: dedicated commands find_file, search_file, and search_dir. Results are capped at 50; beyond that, no results are returned and narrowing down is prompted
  • File viewer: displays a 100-line window with line numbers, with scrolling and jumping to a specified line
  • Editing: an edit command that replaces a specified line range. A linter is built in; an edit containing a syntax error is discarded and redone
  • Context management: history processing keeps the context concise. The most recent five observations are kept in full; observations older than that are compressed to one line. Output that does not match the format gets an error response and is regenerated

Figure 3: The structure of SWE-agent's ACI

At each step, as in ReAct, a "thought + command" is generated and feedback on the execution result is received. In other words, SWE-agent is a system that takes ReAct's loop as its foundation and redesigns the tools — its hands and feet. Access to a Linux shell is also retained when needed.

3.3 Results: 12.5% on the same yardstick

SWE-agent, built on GPT-4 Turbo, recorded 12.47% (about 12.5%) on SWE-bench, the best resolution rate at the time. It far exceeds the 3.8% of the best non-interactive retrieval-augmented systems. On HumanEvalFix, a small-scale bug-fixing benchmark, it also achieved the best performance at the time, at 87.7% in Python (89.7% in JavaScript, 87.9% in Java).

Comparison of SWE-bench resolution rates (at the time)
- Non-interactive RAG (GPT-4 Turbo)    1.31%
- Non-interactive RAG (Claude 3 Opus)  3.79%
- SWE-agent (GPT-4 Turbo)              12.47%
- SWE-agent (Claude 3 Opus)            10.46%

What deserves attention is that the underlying model was not changed. Neither the weights nor prompt ingenuity is the protagonist; merely by designing the interface between the model and the environment, the resolution rate multiplied. Swapping in Claude 3 Opus still produced 10.46%, showing that the effect of the design is not specific to one model.

On Lite, there is also a comparison with an agent given only a Linux shell on the same model. With the shell only, it was 11.0%, not reaching the 18.0% of SWE-agent with its ACI. Being able to interact is not enough; the tooling of the interaction decides performance.

The trade-off is cost. In the SWE-bench Lite comparison, SWE-agent cost 8–13 times as much as non-interactive RAG, while the resolution rate rose about 6.7-fold. The budget cap per task was set at $4, and the average cost of a resolved task was $1.59. Interactive back-and-forth increases compute cost in exchange for performance.

3.4 Ablation: which designs mattered

The persuasiveness of this paper lies in its ablation, removing components one at a time. With the full ACI, the SWE-bench Lite resolution rate is 18.0%. Removing each component lowers it as follows.

SWE-bench Lite resolution rate (full ACI = 18.0%)
- No edit command                     10.3% (-7.7)
- Search changed to one-at-a-time     12.0% (-6.0)
- Viewer shows the whole file         12.7% (-5.3)
- Viewer shows 30 lines               14.3% (-3.7)
- No linter on editing                15.0% (-3.0)
- Full history kept                   15.0% (-3.0)
- No search commands                  15.7% (-2.3)
- No demonstration                    16.3% (-1.7)

Some of the lessons that can be read from this run against intuition.

To begin with, the shell's standard operations were inefficient for an agent. Exploration chaining cd, ls, and cat takes many steps, and grep and find often return large amounts of irrelevant lines. Noise a human can skip with their eyes weighs on a model as context and cost.

The most effective component was the edit command. Editing through shell redirection or sed is cumbersome for multi-line edits, gives no feedback on the result, and makes errors hard to notice.

For search, "show everything" was not the right answer. With the design of paging through results one at a time, the agent dutifully went through all of them and exhausted its budget and context. The design that wins summarizes and presents a list, and prompts narrowing when there are too many.

The viewer's display size also had a proper value. Thirty lines was too few, the whole file too many, and performance dropped in both cases. This is a result that supports the ACI claim: "readability" for a human and "readability" for a model do not coincide.

3.5 Analysis of behavior: success is fast, failure is slow

The authors also analyzed the trajectories themselves.

The typical progression closely resembles a human developer's procedure. It starts by writing reproduction code or searching for where the cause lies. After that, it is a repetition of "edit, then run." ReAct's loop appeared as a natural pattern on practical tasks, too.

Success and failure had tendencies in time. Successful runs ended at a median of 12 steps and $1.21, while failed runs dragged on to an average of 21 steps and $2.52. 93% of resolved tasks were submitted before the budget ran out. The authors take the view that raising budget or token caps would probably not extend performance much. The observation is that a stuck agent cannot get out even given time.

The breakdown of failures is also concrete. In 51.7% of all trajectories, an edit failure occurred at least once. The recovery rate right after an edit failure drops from 90.5% to 57.2% as failures accumulate by one. This is why guardrails are needed.

In the classification of trajectories that ended unresolved, about 52% were "the implementation is wrong" or "an implementation overfitted to the specific issue." Cascading edit failures were 23.4%. Failures removable by tool design can be steadily reduced, but what remains at the end was the correctness of the implementation itself — a matter of the model's ability.

Note that while the variance of average performance across multiple runs is small, looking task by task, success and failure change from run to run. The danger of evaluating an agent by the outcome of a single run can also be read from this analysis.

4. Reading the three together: the blueprint of today's agents

Lining the three up, the parts list of today's agents surfaces as is.

  • The loop: the way of proceeding by interleaving thought, action, and observation is ReAct's format itself. That today's agents insert short thoughts before and after tool calls is an extension of this design
  • Evaluation: the idea of centering on "run the tests and check" was established as a yardstick by SWE-bench. That current agents run tests at every edit is the same thinking
  • The tools: the shape of dedicated tools for file display, search, and editing inherits the ACI principles of SWE-agent (concise feedback, guardrails, an appropriate amount of display)

There are correspondences in the details, too. The device of compressing the context over a long task while keeping the recent part thick is the same idea as SWE-agent's history processing — "keep the most recent five observations, fold the earlier ones into one line." The mechanism of returning syntax errors on the spot after an edit is also on the extension of the ACI's guardrails. Much of the "usability" of current agents is an accumulation of design decisions that were verified numerically in this paper.

One more thing not to miss is the chain of "questions and answers" between the three.

SWE-bench stated plainly that "agent-style methods are future work," and SWE-agent answered it. Inside SWE-agent, ReAct's loop is the foundation. One paper creates the next paper's problem — the way research itself proceeds can be read here.

And the problems that remain across all three are consistent. In ReAct, "getting stuck in the procedure"; in SWE-bench, "identifying where to fix, and the quality beyond passing tests"; in SWE-agent, "the correctness of the implementation itself." The more the tools and the yardstick are in place, the more what remains at the end is the model's judgment itself — that is the picture.

The yardstick side also had effects on what followed. With a common yardstick, SWE-bench, later agents could be compared on the same ground. More than the number 12.5% of SWE-agent itself, creating the state of "being able to compare only the differences in design, on the same yardstick" may have been the larger contribution to the field as a whole. The practice of decomposing and showing the reasons for wins and losses, like ReAct's failure classification and SWE-agent's ablation, is also a form this lineage left behind.

5. Caveats: reservations when reading these numbers

Finally, let me collect the limits of verification.

  • All the numbers are from their time: 1.96% and 12.5% are results with models from 2023–2024. On the current leaderboards, far higher resolution rates are reported for the same SWE-bench. The numbers from that time must not be used to explain current performance
  • Numbers move with the version of a paper: in v3 of the SWE-bench paper, Claude 3 Opus results were added, and the "best performance" changed from 1.96% to 3.79%. When citing, the version and the setting (retrieval method) need to be checked
  • The numbers in an abstract need to be checked against the tables: the SWE-agent paper states in its abstract and introduction "+10.7 points over the shell-only baseline," but the difference from the Lite values in Table 1 (shell only 11.0%, SWE-agent 18.0%) is +7.0 points. The +10.7 corresponds to the difference from the shell setting without demonstrations (7.3%). What a number is compared against cannot be known without going to the tables
  • Benchmarks have strengths and weaknesses: SWE-bench targets Python only and evaluates by test pass/fail alone. That passing tests does not guarantee efficiency or readability is something the authors themselves acknowledge
  • There is distance in applying this to practice: in all three, the tasks are cut out for benchmarks. The elements of practice — ambiguity of requirements, coordination with stakeholders, constraints during operation — lie outside the yardstick

Summary

What the three papers left behind is, more than the individual performance numbers, a way of thinking about design.

ReAct showed the loop that interleaves thought and action. SWE-bench built the yardstick that measures with real-world tasks and execution-based evaluation. SWE-agent brought in the idea of designing tools for a new user, the agent.

When you use today's Claude Code or Codex, behind their behavior you can see this set of three. Conversely, if you watch where an agent gets stuck, it gives you a clue for thinking about which paper's which limitation it has run into.

The significance of reading foundational papers is not in chasing the numbers of the moment, but in knowing the origins of these designs.

References

來源:DEV Community · dev.to