cs.ROApr 13, 2026

Ro-SLM: Onboard Small Language Models for Robot Task Planning and Operation Code Generation

Authors: Wenhao Wang, Yanyan Li, Long Jiao, Jiawei Yuan

Organizations: Department of Computer & Information Science, University of Massachusetts Dartmouth · Department of Computer Science & Engineering, California State University San Marcos

Abstract

Recent advances in large language models (LLMs) provide robots with contextual reasoning abilities to comprehend human instructions. Yet, current LLM-enabled robots typically depend on cloud-based models or high-performance computing infrastructure, which limit their deployment on robots under unreliable internet environments or with constrained computational resources, such as UAVs and small ground vehicles. Thus, deploying fine-tuned small language models (SLMs) that support onboard deployment offers a promising alternative. This paper introduces Ro-SLM, a framework that enables reliable SLM-driven robot operation by distilling LLMs' knowledge and reasoning. Ro-SLM starts from dataset synthesis by leveraging LLMs to generate diverse task instructions, produce corresponding ground truth code with minimal human assistance, and augment instructions into real-world application scenarios. Ro-SLM is then fine-tuned with the dataset, in which LLM serves as a reward function to guide the training. Extensive experiments on UAV operation tasks demonstrate that Ro-SLM improves the performance of SLM from being incapable of supporting robotic task planning and code generation to achieving performance that approaches LLM.

Figures & tables

Appendix figures & tables11 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Skill-SLM: Agent Skill-driven Small Language Models for Reliable Robot Operation

    Oct 7, 2026Wenhao Wang, Yanyan Li, Jiawei YuanSmall Language ModelsRobot Task Planning

  2. CLMASP: Coupling Large Language Models with Answer Set Programming for Robotic Task Planning

    Jun 5, 2024Xinrui Lin, Yangfan Wu, Huanyu Yang +3Large Language Model-Based Robot PlanningRobot Task Planning

  3. ROS2SmolVLA: Enabling Small Vision-Language-Action Models for Integration into Industrial-Grade Lightweight Robots

    Aug 24, 2026Nils Mandischer, Noah Böckmann, Ludwig Holl +1RoboticsIndustrial Robotics