Tapas Are Free! Training-Free Adaptation of Programmatic Agents via LLM-Guided Program Synthesis in Dynamic Environments
Jinwei Hu, Yi Dong, Youcheng Sun, Xiaowei Huang

TL;DR
TAPA leverages large language models to dynamically synthesize and adapt modular symbolic programs for autonomous agents, enabling effective operation in changing environments without retraining.
Contribution
This work introduces a training-free framework that uses LLMs to generate and adapt modular programs for high-level actions in dynamic environments, diverging from fixed policy approaches.
Findings
Achieves 77.7% network uptime in DDoS defense scenarios
Maintains consensus in swarm formation control under disturbances
Outperforms baseline methods in dynamic, unknown environments
Abstract
Autonomous agents in safety-critical applications must continuously adapt to dynamic conditions without compromising performance and reliability. This work introduces TAPA (Training-free Adaptation of Programmatic Agents), a novel framework that positions large language models (LLMs) as intelligent moderators of the symbolic action space. Unlike prior programmatic agents typically generate a monolithic policy program or rely on fixed symbolic action sets, TAPA synthesizes and adapts modular programs for individual high-level actions, referred to as logical primitives. By decoupling strategic intent from execution, TAPA enables meta-agents to operate over an abstract, interpretable action space while the LLM dynamically generates, composes, and refines symbolic programs tailored to each primitive. Extensive experiments across cybersecurity and swarm intelligence domains validate TAPA's…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
Taxonomy
TopicsAdversarial Robustness in Machine Learning · Reinforcement Learning in Robotics · Advanced Malware Detection Techniques
