Abstract
Task offloading in vehicular environments is essential for efficient computation and resource utilization among connected vehicles. However, traditional approaches e.g., Deep Reinforcement Learning (DRL) and heuristic methods often struggle with dynamic adaptation, communication overhead, and scalability in dense, fast-changing scenarios. This paper proposes an edge-intelligent framework that leverages a Large Language Model (LLM) deployed at Roadside Unit (RSU) edge nodes to optimize dynamic, multi objective offloading decisions. The LLM is fine tuned on a structured dataset encoding real time vehicular states (mobility, CPU, bandwidth, battery), task characteristics, and historical offloading outcomes, enabling reasoning over multi-dimensional inputs to select vehicle-to-vehicle (V2V) or vehicle-to-edge (V2E) destinations. Experimental evaluation under high-density and highly dynamic conditions demonstrate that the proposed LLM-based scheme outperforms state-of-the-art DRL and Greedy baselines, achieving a 15.3% average reduction in task latency and a 22.1% improvement in energy efficiency over the best DRL baseline, while maintaining a 97.5% task completion rate. Moreover, a fine tuned and quantized deployment reduces inference latency, yielding 1.8\(\times\) faster decision making at the edge crucial for stringent vehicular deadlines. We discuss remaining challenges, including compute footprint at RSUs, end-to-end latency under bursty loads, and energy aware adaptation, and outline optimization opportunities for real world deployment. Collectively, these results establish LLM-driven offloading as a scalable, accurate, and responsive paradigm for next generation vehicular edge intelligence.
Data availability
The datasets generated and/or analysed during the current study are available in the Vehicular Simulation Dataset (VEINS OMNeT++) repository, https://www.kaggle.com/datasets/ranatariq09/vehicular-simulation-dataset-veins-omnet/.
References
Creß, C., Bing, Z. & Knoll, A. C. Intelligent transportation systems using roadside infrastructure: A literature survey. IEEE Trans. Intell. Transp. Syst. 25, 6309–6327 (2023).
Ali, M., Malik, A. W. & Rahman, A. U. Clustering-based re-routing framework for network traffic congestion avoidance on urban vehicular roads. J. Supercomput. 79, 21144–21165 (2023).
Yin, L., Luo, J., Qiu, C., Wang, C. & Qiao, Y. Joint task offloading and resources allocation for hybrid vehicle edge computing systems. IEEE Trans. Intell. Transport. Syst. (2024).
Ali, M., Malik, A. W., Rahman, A. U., Iqbal, S. & Hamayun, M. M. Position-based emergency message dissemination for internet of vehicles. Int. J. Distrib. Sens. Netw. 15, 1550147719861585 (2019).
Qayyum, T. et al. Flexible global aggregation and dynamic client selection for federated learning in internet of vehicles. Comput. Mater. Continua 77, 1739 (2023).
Taha, M. B., Talhi, C., Ould-Slimane, H., Alrabaee, S. & Choo, K.-K.R. A multi-objective approach based on differential evolution and deep learning algorithms for vanets. IEEE Trans. Veh. Technol. 72, 3035–3050 (2022).
Khatri, S. et al. Machine learning models and techniques for vanet based traffic management: Implementation issues and challenges. Peer-to-Peer Netw. Appl. 14, 1778–1805 (2021).
Fan, W. et al. Joint task offloading and resource allocation for vehicular edge computing based on v2i and v2v modes. IEEE Trans. Intell. Transp. Syst. 24, 4277–4292 (2023).
Qayyum, T., Malik, A. W., Khan, M. A. & Khan, S. U. Modeling and simulation of distributed fog environment using fognetsim++. Fog Comput. Theory Pract. 293–307 (2020).
Fofana, N., Letaifa, A. B. & Rachedi, A. Intelligent task offloading in vehicular networks: a deep reinforcement learning perspective. IEEE Trans. Veh. Technol. (2024).
Wu, Y., Wu, J., Chen, L., Yan, J. & Han, Y. Load balance guaranteed vehicle-to-vehicle computation offloading for min-max fairness in vanets. IEEE Trans. Intell. Transp. Syst. 23, 11994–12013 (2021).
Liu, J. et al. Rl/drl meets vehicular task offloading using edge and vehicular cloudlet: A survey. IEEE Internet Things J. 9, 8315–8338 (2022).
Dong, S. et al. Task offloading strategies for mobile edge computing: A survey. Comput. Netw. 110791 (2024).
Zhang, S., Yi, N. & Ma, Y. A survey of computation offloading with task types. IEEE Trans. Intell. Transp. Syst. (2024).
Mizrahi, M. et al. State of what art? a call for multi-prompt llm evaluation. Trans. Assoc. Comput. Linguistics 12, 933–949 (2024).
Boateng, G. O. et al. A survey on large language models for communication, network, and service management: Application insights, challenges, and future directions. arXiv preprint arXiv:2412.19823 (2024).
Sun, G. et al. Large language model (llm)-enabled graphs in dynamic networking. IEEE Netw. (2024).
Zhou, H. et al. Large language model (llm) for telecommunications: A comprehensive survey on principles, key techniques, and opportunities. IEEE Commun. Surv. Tutor. (2024).
Goodfellow, I., Bengio, Y., Courville, A. & Bengio, Y. Deep learning, vol. 1 (MIT Press, 2016).
Yan, J., Zhao, X. & Li, Z. Deep reinforcement learning based computation offloading in uav-assisted vehicular edge computing networks. IEEE Internet Things J. (2024).
Li, P., Xiao, Z., Gao, H., Wang, X. & Wang, Y. Reinforcement learning based edge-end collaboration for multi-task scheduling in 6g enabled intelligent autonomous transport systems. IEEE Trans. Intell. Transp. Syst. (2025).
He, Y. et al. A mobile edge computing framework for task offloading and resource allocation in uav-assisted vanets. In IEEE INFOCOM 2021-IEEE Conference on Computer Communications Workshops (INFOCOM WKSHPS), 1–6 (IEEE, 2021).
Trabelsi, Z., Ali, M. & Qayyum, T. Fuzzy-based task offloading in internet of vehicles (iov) edge computing for latency-sensitive applications. Internet Things 28, 101392 (2024).
Ghaffari, A., Nguyen, H., Saleh, A., Lovén, L. & Gilman, E. Traffic accident prediction and warning system: Integration use case. In Fourth Workshop on Knowledge-infused Learning (KIL 2024) (OpenReview, 2024).
Arshad, U. & Halim, Z. Blockllm: A futuristic llm-based decentralized vehicular network architecture for secure communications. Comput. Electr. Eng. 123, 110027 (2025).
Funding
No funding was received for this project.
Author information
Authors and Affiliations
Contributions
M.A.: Prepared the primary draft and implemented the architecture. Z.T.: Supervised, edited and provided oversight for the project. T.Q.: Assisted in dataset generation, implementation and writing. A.T.: Reviewed the manuscript and provided critical feedback.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
About this article
Cite this article
Trabelsi, Z., Ali, M., Qayyum, T. et al. Dynamic task offloading in vehicular networks using large language models for adaptive low latency decision making. Sci Rep (2026). https://doi.org/10.1038/s41598-026-39791-y
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-026-39791-y