DeepSeek-V3、GPT-4、Phi-4 和 LLaMA-3.3 为 LoRaWAN 相关工程任务生成正确代码
DeepSeek-V3, GPT-4, Phi-4, and LLaMA-3.3 generate correct code for LoRaWAN-related engineering tasks
AI总结:
本文评估了 16 个大语言模型在 LoRaWAN 无人机部署与功率计算任务中的代码生成能力,发现 DeepSeek-V3 和 GPT-4 表现最佳,而 Phi-4 与 LLaMA-3.3 等轻量模型也具备可行性,表明轻量级本地模型可用于专业工程应用。
摘要:
本文研究了 16 个大语言模型(LLMs)在自动化 LoRaWAN 相关工程任务中的表现,这些任务涉及无人机的最优放置和接收功率计算,并在逐步复杂的零样本自然语言提示下进行。主要研究问题是:轻量级、本地执行的 LLMs 能否为这些任务生成正确的 Python 代码。为评估这一点,我们将本地运行的模型与最先进的替代方案(如 GPT-4 和 DeepSeek-V3)进行了比较,后者作为参考基准。通过提取并执行每个模型生成的 Python 函数,我们在 0 到 5 分的量表上评估了它们的输出。结果表明,虽然 DeepSeek-V3 和 GPT-4 始终提供准确的解决方案,但某些较小的模型——尤其是 Phi-4 和 LLaMA-3.3——也表现出强劲的性能,凸显了轻量级替代方案的可行性。其他模型则因理解不完整或语法问题而出现错误。这些发现展示了基于 LLM 的方法在专业工程应用中的潜力,同时也强调了需要谨慎选择模型、严格设计提示词以及进行针对性领域微调,以实现可靠的结果。
英文摘要:
This paper investigates the performance of 16 Large Language Models (LLMs) in automating LoRaWAN-related engineering tasks involving optimal placement of drones and received power calculation under progressively complex zero-shot, natural language prompts. The primary research question is whether lightweight, locally executed LLMs can generate correct Python code for these tasks. To assess this, we compared locally run models against state-of-the-art alternatives, such as GPT-4 and DeepSeek-V3, which served as reference points. By extracting and executing the Python functions generated by each model, we evaluated their outputs on a zero-to-five scale. Results show that while DeepSeek-V3 and GPT-4 consistently provided accurate solutions, certain smaller models -- particularly Phi-4 and LLaMA-3.3 -- also demonstrated strong performance, underscoring the viability of lightweight alternatives. Other models exhibited errors stemming from incomplete understanding or syntactic issues. These findings illustrate the potential of LLM-based approaches for specialized engineering applications while highlighting the need for careful model selection, rigorous prompt design, and targeted domain fine-tuning to achieve reliable outcomes.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。