Trim My View: An LLM-Based Code Query System for Module Retrieval in Robotic Firmware

The software compilation process has a tendency to obscure the original design of the system and makes it difficult both to identify individual components and discern their purpose simply by examining the resulting binary code.Although decompilation techniques attempt to recover higherlevel source code from the machine code in question, they are not fully able to restore the semantics of the original functions.Furthermore, binaries are often stripped of metadata, and this makes it challenging to reverse engineer complex binary software.In this paper we show how a combination of binary decomposition techniques, decompilation passes, and LLM-powered function summarization can be used to build an economical engine to identify modules in stripped binaries and associate them with high-level natural language descriptions.We instantiated this technique with three underlying open-source LLMs-CodeQwen, DeepSeek-Coder and CodeStral-and measured its effectiveness in identifying modules in robotics firmware.This experimental evaluation involved 467 modules from four devices from the ArduPilot software suite, and showed that CodeStral, the bestperforming backend LLM, achieves an average F1-score of 0.68 with an online running time of just a handful of seconds.

Authors

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.14722/bar.2025.23021
Citations
1
Primary Topic
Robotics and Automated Systems
Type
article
Field-Weighted Citation Impact
1.21
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Trim My View: An LLM-Based Code Query System for Module Retrieval in Robotic Firmware

Mukund Raghothaman, Christophe Hauser, Luis H. Garcia Paucar, Sima Arasteh et al.
1 citations
Robotics and Automated Systems
1.21
article

Trim My View: An LLM-Based Code Query System for Module Retrieval in Robotic Firmware

Mukund Raghothaman, Christophe Hauser, Luis H. Garcia Paucar, Sima Arasteh, Nicolaas Weideman, Pegah Jandaghi, Dennis Perepech
article en
1 citations

Abstract

The software compilation process has a tendency to obscure the original design of the system and makes it difficult both to identify individual components and discern their purpose simply by examining the resulting binary code.Although decompilation techniques attempt to recover higherlevel source code from the machine code in question, they are not fully able to restore the semantics of the original functions.Furthermore, binaries are often stripped of metadata, and this makes it challenging to reverse engineer complex binary software.In this paper we show how a combination of binary decomposition techniques, decompilation passes, and LLM-powered function summarization can be used to build an economical engine to identify modules in stripped binaries and associate them with high-level natural language descriptions.We instantiated this technique with three underlying open-source LLMs-CodeQwen, DeepSeek-Coder and CodeStral-and measured its effectiveness in identifying modules in robotics firmware.This experimental evaluation involved 467 modules from four devices from the ArduPilot software suite, and showed that CodeStral, the bestperforming backend LLM, achieves an average F1-score of 0.68 with an online running time of just a handful of seconds.

Openalex Percentile: Top 18%
Robotics and Automated Systems
1.21
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.