To teach an artificial intelligence how to use external tools, it might be better to start from the solution rather than the question. That is the idea behind ToolGrad, a paper presented in the ACL scientific circuit and detailed by Google Research on September 10. Its significance goes beyond setting a model's next record: it concerns the very way we build the examples from which agents learn to act.
A working sequence before the problem
As the authors describe it, many data generation systems begin by inventing a prompt and then searching for a chain of operations capable of satisfying it. This process can produce broken execution paths or require numerous attempts. ToolGrad reverses that order: it constructs and verifies a sequence of tool usage, refines it through an iterative process, and only then generates a prompt consistent with that solution.
So-called textual gradients are natural language feedback used to correct the process. They should not be confused with the numerical gradients typically used to update neural network parameters. In the paper, the authors report gains in synthetic data quality and in the performance of models trained on these examples.
The value lies in the intermediate steps
A correct answer and a correct action are not the same thing. Consider an assistant tasked with preparing a report: it must locate the right document, extract the relevant data, and use the appropriate tool. A plausible final text could easily conceal an error that occurred much earlier. A set of verified examples, by contrast, also makes it possible to inspect the path taken.
