惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Project Zero
Project Zero
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
P
Proofpoint News Feed
量子位
K
Kaspersky official blog
S
SegmentFault 最新的问题
博客园 - 叶小钗
博客园 - 司徒正美
酷 壳 – CoolShell
酷 壳 – CoolShell
Hugging Face - Blog
Hugging Face - Blog
博客园 - Franky
F
Fortinet All Blogs
Scott Helme
Scott Helme
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
Cisco Blogs
T
Tenable Blog
U
Unit 42
S
Schneier on Security
T
The Blog of Author Tim Ferriss
G
Google Developers Blog
C
Cybersecurity and Infrastructure Security Agency CISA
V
Visual Studio Blog
The Hacker News
The Hacker News
Jina AI
Jina AI
Stack Overflow Blog
Stack Overflow Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
I
Intezer
Cyberwarzone
Cyberwarzone
Know Your Adversary
Know Your Adversary
V
Vulnerabilities – Threatpost
L
LINUX DO - 热门话题
Spread Privacy
Spread Privacy
T
The Exploit Database - CXSecurity.com
V
V2EX
Help Net Security
Help Net Security
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 聂微东
大猫的无限游戏
大猫的无限游戏
www.infosecurity-magazine.com
www.infosecurity-magazine.com
PCI Perspectives
PCI Perspectives
腾讯CDC
Webroot Blog
Webroot Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
N
News | PayPal Newsroom
Recorded Future
Recorded Future
D
DataBreaches.Net
阮一峰的网络日志
阮一峰的网络日志
C
Check Point Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
ARTIST: RL-Powered Tool Use for LLM Agents Explained
Jangwook Kim · 2026-05-27 · via DEV Community

Most LLM agents call tools the same way every time: a fixed schema, a static prompt, a hand-crafted decision tree for when to invoke search() vs. calculator(). It works, but it's fragile. The moment a user asks something the template didn't anticipate, the tool-calling pattern breaks.

Microsoft Research's ARTIST framework takes a different route. Instead of hard-coding the tool-use policy, it trains a model to discover when and how to call tools through reinforcement learning — with no step-by-step labels, no annotated trajectories, just outcome-based rewards.

This is a paper-poc article. Effloow Lab reproduced the core ARTIST interleaving mechanism in a minimal Python sandbox (no GPU, no external API) to verify the architecture before writing. See data/lab-runs/artist-rl-tool-integration-llm-agents-paper-poc-2026.md for exact commands and outputs.


What Is ARTIST?

ARTIST stands for Agentic Reasoning and Tool Integration in Self-improving Transformers. Published by Microsoft Research in April 2025 (arXiv 2505.01441), it is a unified training framework that does three things simultaneously:

  1. Teaches an LLM to reason step-by-step
  2. Teaches it when to invoke external tools inside that reasoning
  3. Does both using only final-answer rewards — no per-step supervision

The paper benchmarks ARTIST against GPT-4o on mathematical reasoning and multi-turn function calling. At 7B scale, ARTIST outperforms GPT-4o on every evaluated benchmark, with absolute gains of 8.9% on Olympiad problems (37.9% vs. 29.0%), 7.6% on AIME (15.6% vs. 8.0%), and up to 16% on the hardest BFCL v3 function-calling subsets.

That last number matters: a 7B open-weight model, trained with ARTIST, beats a frontier closed model at multi-turn function calling. The mechanism behind it is simpler than you might expect.


The Core Problem with SFT-Based Tool Use

Before ARTIST, the dominant approach to teaching tool use was supervised fine-tuning (SFT). You collect examples of correct tool invocations, label each step, and train the model to imitate them. This has two structural limitations:

Labeling cost. Every training example needs annotated tool calls at every decision point. For complex multi-step problems, that means human (or expensive AI) annotation at each intermediate step.

Brittle generalization. SFT models learn to call tools in patterns that match the training distribution. Novel problems that require tool calls at unexpected positions in the reasoning chain often fail — the model either misses the call entirely or makes it at the wrong moment.

Outcome-based RL sidesteps both problems. The training signal is binary: did the final answer match the ground truth? The model figures out on its own that calling a calculator before doing arithmetic improves its odds of getting there.


How ARTIST Works: Interleaved Tool Calls

The key architectural decision in ARTIST is where tool calls happen in the reasoning chain. Rather than appending them at fixed positions (tool call → response → reason), ARTIST interleaves them mid-reasoning:

<think>
  I need to find the exact value of the gravitational constant first.
  <tool>search(gravitational constant)</tool>
  TOOL_RESULT: 6.674e-11 N·m²/kg²

  Now I can compute the force: F = G * m1 * m2 / r²
  <tool>compute_force(G=6.674e-11, m1=5.97e24, m2=1000, r=6.371e6)</tool>
  TOOL_RESULT: 9804.1

  The gravitational force is approximately 9804 N. Answer: 9804 N
</think>

Enter fullscreen mode Exit fullscreen mode

Three things happen in sequence:

  1. The model generates reasoning tokens and decides it needs external information
  2. A <tool>name(arg)</tool> marker triggers execution
  3. The result (TOOL_RESULT: ...) is appended to the context, and reasoning continues with the actual value in scope

This is different from structured function-calling APIs where tools are called at the end of a reasoning step. In ARTIST, tool results become part of the intermediate thought — the model reasons through them, not just about them.


The RL Training Loop: GRPO Without Step Labels

ARTIST trains using GRPO (Group Relative Policy Optimization), the same algorithm used in DeepSeek-R1 for long-chain reasoning. The setup differs from standard RL for reasoning in one important way: the reward function accounts for tool use.

GRPO generates multiple rollouts per problem, compares them against each other (group-relative scoring), and updates the policy toward rollouts that led to correct answers. No value network, no separate critic — just relative advantage within the sampled group.

For ARTIST, each rollout can include zero to many tool calls at any position. The reward function is composite:

  • Correctness reward: Did the final answer match the ground truth?
  • Format reward: Were tool markers syntactically valid?
  • Efficiency signal: (paper-dependent) Penalize redundant or circular tool calls

Because the reward is outcome-only, the model receives no signal about whether individual tool calls were good or bad. It discovers tool-use strategies empirically — and the strategies that emerge are more adaptive than the fixed patterns you'd encode manually.

The paper notes emergent behaviors during training, including:

  • Self-correction: the model re-invokes a tool with a corrected argument after a failed first call
  • Selective invocation: for simple problems, the model learns to skip tools entirely and use text reasoning
  • Chaining: complex problems see 4–6 tool calls with results feeding into subsequent calls

Effloow Lab PoC: Reproducing the Pattern

To verify the interleaving mechanism, Effloow Lab ran a minimal Python reproduction against two physics/math problems using scripted model outputs and real tool implementations. No GPU, no LLM API call — the goal was isolating the execution loop.

Tools implemented:

import sympy

def safe_compute(expression_parts: dict) -> str:
    # Use sympy for safe symbolic math — no arbitrary code execution
    try:
        result = sympy.sympify(expression_parts["expr"])
        return str(float(result))
    except Exception as e:
        return f"ERROR: {e}"

def search(query: str) -> str:
    kb = {
        "speed of light": "299792458",      # m/s
        "avogadro number": "6.02214076e23", # mol⁻¹
        "gravitational constant": "6.674e-11",
    }
    for k, v in kb.items():
        if k in query.lower():
            return v
    return "NOT_FOUND"

Enter fullscreen mode Exit fullscreen mode

Execution loop (ARTIST-style):

import re

TOOL_PATTERN = re.compile(r"<tool>(\w+)\((.+?)\)</tool>")

def run_artist_chain(model_steps: list[str], tools: dict) -> dict:
    full_chain = ""
    tool_calls = []
    for step_text in model_steps:
        full_chain += step_text + "\n"
        match = TOOL_PATTERN.search(step_text)
        if match:
            tool_name, arg = match.group(1), match.group(2)
            result = tools[tool_name](arg.strip())
            tool_calls.append((tool_name, arg, result))
            full_chain += f"TOOL_RESULT: {result}\n"
    return {"chain": full_chain, "tool_calls": tool_calls}

Enter fullscreen mode Exit fullscreen mode

Results on 2 problems:

Problem Naive CoT ARTIST-style
Distance light travels in 3 s ~900,000 km ✗ 899,377,374 m ✓
Avogadro × 2 1.204e24 ✓ 1.2044e24 ✓
Accuracy 50% 100%

Naive CoT failed on the light-speed problem because it approximated the constant from memory (300,000 km/s) and gave the result in the wrong unit. The ARTIST-style chain retrieved the exact value (299,792,458 m/s) via search() and computed the product precisely.

One limitation surfaced during the PoC: a tool returning an error mid-chain did not stop the reasoning. The model recovered by using an earlier search result to reach the correct answer directly — a form of fault-tolerant reasoning the paper describes as an emergent behavior of RL training.

Full evidence notes with exact commands and output are in data/lab-runs/artist-rl-tool-integration-llm-agents-paper-poc-2026.md.


How This Compares to ReTool and ToolRL

ARTIST is not the only framework tackling RL-based tool use. Two other 2025 papers are worth placing it against:

ReTool (arXiv 2504.11536) focuses specifically on code interpreter integration. A 32B model trained with ReTool reaches 67% accuracy on AIME 2024 with fewer than 400 training steps, beating text-only RL baselines at 40% with 1080 steps. ReTool's scope is narrower than ARTIST — it excels at math problems that benefit from code execution but doesn't address multi-turn function calling.

ToolRL (arXiv 2504.13958) demonstrates that RL reward alone ("reward is all tool learning needs") can match SFT-initialized baselines when reward design is careful. The key finding: decomposing the reward into format validity and functional correctness significantly stabilizes RL training.

ARTIST sits above both in generality. It targets multi-tool, multi-turn settings and shows gains across both reasoning-heavy (math olympiad) and agentic (τ-bench, BFCL v3) tasks. The 22% absolute improvement over base models in the most challenging settings is the headline number, but the architectural insight — interleaving, not appending — is the durable contribution.

Framework Tool types Training signal Best result
ARTIST Multi (search, code, browser) Outcome-only GRPO +22% over base; beats GPT-4o at 7B
ReTool Code interpreter RL cold-start 67% AIME 2024 (32B)
ToolRL General function calls Decomposed reward RL Matches SFT init without annotations

What This Means for Agent Builders

ARTIST is not yet a drop-in library — it describes a training approach, not a production SDK. But the ideas translate directly into how you architect agent systems today.

Treat tool calls as context, not side effects. Most agent frameworks execute tools and append results to a separate context window slot. ARTIST's architecture suggests a different contract: tool results should be tokens in the same stream the model reasons through, not a separate retrieval layer. This is already how some structured thinking modes work (e.g., Claude's extended thinking with tool use), but ARTIST validates it empirically.

Outcome-based rewards are achievable. If you are fine-tuning a custom model for your agent use case, you don't need per-step labels. You need verifiable final outcomes — correct API responses, valid database records, test suite passes. These exist in most production systems already.

Small models can outperform large ones on specific tasks. The 7B benchmark results suggest that domain-specific RL training on tool use can close the gap against frontier generalist models. If your agent does one class of tasks well (SQL generation, document extraction, API composition), ARTIST-style training on that task could produce a model that outperforms a 10× larger base.

Error recovery is trainable. The RL objective implicitly rewards recovering from failed tool calls, since only final outcomes matter. You don't need to handcraft retry logic — the model learns it. This is consistent with what Effloow Lab observed in the PoC: the model reasoned around a tool error without any explicit error-handling instruction.


Practical Starting Points

For teams that want to experiment with ARTIST-style training today:

The paper uses Qwen2.5 as the base model and trains with a GRPO implementation. The Microsoft Research publication page includes the full paper PDF (no code release at time of writing, though the GRPO training loop itself is available through libraries like TRL and verl).

A minimal reproduction path:

  1. Take a 7B instruction-tuned model (Qwen2.5-7B-Instruct is a natural fit given the paper's setup)
  2. Define a tool-call token format: <tool>name(args)</tool> and TOOL_RESULT: value
  3. Build a rollout environment that executes tools and injects results mid-generation
  4. Define an outcome reward (exact match or fuzzy numeric match for math; API response validation for function calling)
  5. Run GRPO for 200–500 steps with groups of 8 rollouts per prompt

The data requirement is lighter than SFT: you need problem–answer pairs, not annotated reasoning traces. For function calling, existing datasets like BFCL v3 and τ-bench provide that structure directly.


FAQ

Q: Does ARTIST require training from scratch, or can it fine-tune an existing model?

The paper fine-tunes from an existing instruction-tuned base. It does not train from scratch. The GRPO loop starts from a warm initialization and converges faster because the base model already has language capabilities.

Q: How is this different from function calling in GPT-4o or Claude?

Current function-calling APIs invoke tools at the end of a turn: the model decides to call a tool, the system executes it, and the result comes back as a new user message. ARTIST interleaves those calls inside a single continuous reasoning chain. The difference is that the model can use the result as intermediate reasoning context, not just a new input — which changes how subsequent reasoning is shaped.

Q: Can ARTIST be applied to non-math domains?

Yes. The τ-bench results (multi-turn retail/airline agent tasks) show ARTIST improving accuracy by up to 8% over base models on tasks that require browsing, database lookup, and multi-step decision trees. Math is the most verifiable domain for benchmarking, but the mechanism applies anywhere outcome correctness can be measured.

Q: Is there public code?

As of May 2026, the official Microsoft Research repository has not released training code. The GRPO loop can be approximated using open implementations in TRL (GRPOTrainer) with a custom rollout environment that handles tool execution. ReTool (arXiv 2504.11536) has a public GitHub repository that implements a similar RL-with-tools training loop and may serve as a practical starting point.


Key Takeaways

  • ARTIST trains LLMs to interleave tool calls inside reasoning chains rather than appending them at fixed points, using GRPO with outcome-only rewards.
  • At 7B scale, ARTIST outperforms GPT-4o on mathematical benchmarks (AIME, AMC, MATH-500, Olympiad) and on multi-turn function calling (BFCL v3, τ-bench).
  • No step-level supervision is needed — only final-answer correctness. This cuts annotation cost dramatically compared to SFT-based tool-use training.
  • Emergent behaviors (self-correction, selective invocation, call chaining) arise from the RL objective without being explicitly programmed.
  • The Effloow Lab PoC confirmed the interleaving mechanism with a 100% vs 50% accuracy comparison on precision-sensitive problems, and observed tool-error recovery in the wild.

Bottom Line

ARTIST is the most complete published framework for RL-based tool use in LLMs as of mid-2026, combining interleaved tool execution, outcome-based GRPO training, and multi-domain benchmarks. The core pattern is reproducible today with existing GRPO libraries — the gap to replicate is training compute, not architecture. If you are building custom agents that need reliable, adaptive tool use, this paper defines the state of the art.