NEW: From AI Skills to "Skill Programs"

· Source: Discover AI · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Robotics & Autonomous Systems · Depth: Expert, extended

Summary

The HASP framework, developed by New York University and Salesforce AI and published May 18, 2026, introduces "program functions" (PFs) to address large language model (LLM) hallucination and instruction following failures. Acting as an external agent harness, HASP deterministically monitors the LLM's reasoning trajectory. When an LLM proposes an action approaching a known failure manifold, such as a search query exceeding 15 words, PFs intervene by modifying the action or injecting corrective context. This intervention significantly improves inference-time accuracy, boosting web search reasoning benchmarks from 31.2% to 51%. HASP also supports post-training policy optimization and self-improvement, outperforming other methods with models like Qwen 2.57B Instruct. For complex semantic reasoning, a "teacher AI" (GPT-4) can compute optimal corrective vectors.

Key takeaway

For AI Engineers struggling with LLM hallucination and instruction non-compliance, you should explore the HASP framework. This approach uses deterministic Program Functions (PFs) within an external harness to actively intervene in LLM reasoning, modifying actions or injecting context to prevent failures. Implementing PFs can significantly improve model accuracy at inference time and provide structured signals for robust post-training. However, carefully define the deterministic rules to manage complexity.

Key insights

The HASP framework uses deterministic "program functions" to prevent LLM failures by actively intervening in reasoning trajectories.

Principles

Method

HASP employs an external harness with deterministic Program Functions (PFs) to monitor LLM reasoning. PFs activate on failure-prone states, modifying actions or injecting context to steer the LLM away from errors.

In practice

Topics

Best for: Research Scientist, AI Architect, NLP Engineer, AI Scientist, Machine Learning Engineer, AI Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Discover AI.