SLBench: Evaluating How LLM Agents Follow Logical Relations in Skills

· Source: cs.SE updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Robotics & Autonomous Systems, Software Development & Engineering · Depth: Expert, extended

Summary

SLBench, an 86-case executable benchmark, evaluates how LLM agents follow logical relations within skill files, which are reusable instruction sets. Developed using the SkillLogic framework, this benchmark analyzes over 5,000 public skills, revealing that 70% contain at least one critical logical relation. Evaluations of Codex and Claude Code across six LLM backbones show high unsafe rates, reaching up to 70%, with violations leading to privacy leaks and unsafe configuration changes. The study attributes failures to both agent capability gaps and low-salience skill text. A lightweight inference-time scaffold, SLGuard, is shown to reduce these violations by 63% on targeted cases, highlighting logical-relation following as a distinct reliability challenge for skill-guided agents.

Key takeaway

For AI Engineers deploying LLM agents with external skills, you must prioritize evaluating and mitigating failures in logical-relation following. Your current agents may complete tasks but still introduce privacy leaks or unsafe configurations by missing critical preconditions or postconditions. Consider integrating relation-aware scaffolds like SLGuard and designing skills with explicit, salient logical structures to enhance agent reliability and safety in production environments.

Key insights

LLM agents struggle with logical relations in skill files, leading to unsafe outcomes despite task completion.

Principles

Method

SkillLogic analyzes logical relations in skill files, constructs executable tests with realistic prompts and controlled repositories, and uses artifact-first deterministic grading to detect violations.

In practice

Topics

Best for: AI Architect, CTO, VP of Engineering/Data, AI Scientist, Machine Learning Engineer, AI Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.SE updates on arXiv.org.