Autonomous unmanned vehicle training method and system based on large language model

Optimizing the reward function through large-scale language model generation and evolutionary algorithms, combined with deep reinforcement learning algorithms to train unmanned vehicle strategies, solves the problem of low efficiency in reward function design in the existing technology, and achieves more efficient and adaptable autonomous unmanned vehicle training. .

CN118734067AInactive Publication Date: 2024-10-01TAIZHOU UNIV (ZHEJIANG)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410761662.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-10-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The reward function design in the existing technology is inefficient and difficult to adapt to different driving scenarios, which affects the effectiveness of autonomous vehicle training.

Method used

A large language model is used to generate the reward function, and it is optimized through evolutionary algorithms, iteratively updated based on human feedback, and combined with deep reinforcement learning algorithms to train autonomous vehicle driving strategies in a highly simulated virtual environment to form a closed-loop optimization.

Benefits of technology

It improves the intelligence level and training efficiency of the reward function, improves the environmental adaptability and generalization ability of the strategy, and reduces manual participation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118734067A_ABST
    Figure CN118734067A_ABST
Patent Text Reader

Abstract

The invention provides an autonomous unmanned vehicle training method and system based on a large language model, and belongs to the field of automatic driving and artificial intelligence. The method solves the problems that in the prior art, reward function design is low in efficiency and difficult to adapt to different scenes. According to the autonomous unmanned vehicle training method and system based on the large-scale language model, the performance of a proposed unmanned vehicle autonomous training framework is verified, and experimental results show that the driving strategy obtained through training by using the reward function generated by the invention is high in reliability. And indexes such as path planning success rate, driving efficiency, vehicle distance keeping stability and the like are superior to those of a manually designed reward function. Meanwhile, the strategy obtained through training shows good generalization ability, and stable performance can still be kept in different evaluation environments. The strategy obtained by training shows good generalization ability, and can still keep stable performance in different evaluation environments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of automatic driving and artificial intelligence, and relates to an autonomous unmanned vehicle training method and system based on a large language model. Background Art

[0002] As a key machine learning technology, reinforcement learning has broad application prospects in the field of autonomous driving. At present, the main tasks facing autonomous unmanned vehicle navigation include path planning in complex environments and vehicle following. Although existing methods based on deep reinforcement learning have made some progress, there is still room for improvement in training efficiency, generalization ability, and task specificity. In reinforcement learning, the design of the reward function is particularly important, as it directly affects the effect of model training. Traditionally, the reward function mainly relies on manual design and is difficult to efficiently adapt to different driving scenarios. In recent years, large-scale language models have made breakthrough progress in semantic understanding and logical reasoning, bringing new ideas to solving the above problems. Summary of the invention

[0003] The purpose of the present invention is to address the above-mentioned problems existing in the prior art and to provide an autonomous unmanned vehicle training method and system based on a large language model to solve the problems in the prior art that the reward function design is inefficient and difficult to adapt to different scenarios.

[0004] The purpose of the present invention can be achieved by the following technical solutions: A method for training an autonomous unmanned vehicle based on a large language model, characterized in that it comprises the following steps: Step 1: Input the environmental parameters and task description of the autonomous driving task into the pre-trained large language model to generate a reward function for the task; Step 2: Use evolutionary algorithms to optimize the reward function generated by the language model, and continuously iterate and update it based on human feedback; Step 3: Input the optimized reward function into the deep reinforcement learning algorithm to train the driving strategy of the unmanned vehicle in a highly simulated virtual environment; Step 4: Evaluate the strategy performance in a real or simulated road environment, and feed back the evaluation results to the language model and reinforcement learning module to form a closed-loop optimization.

[0005] In the above-mentioned autonomous unmanned vehicle training method based on a large language model, the large language model adopts the Transformer advanced neural network architecture and is pre-trained with massive text corpus to enable it to have the ability to extract key information from complex task descriptions.

[0006] In the above-mentioned autonomous unmanned vehicle training method based on a large language model, the optimization of the reward function generated by the language model in the above step 2 is achieved through an evolutionary algorithm. The algorithm starts from multiple candidate reward functions, iteratively searches through operations such as crossover and mutation, and selects the reward function that better meets the task requirements.

[0007] In the above-mentioned autonomous unmanned vehicle training method based on a large language model, the deep reinforcement learning algorithm used in step 3 is preferably a PPO algorithm, which has the advantages of high sample utilization and low hyperparameter sensitivity.

[0008] An autonomous unmanned vehicle training system based on a large language model, characterized by comprising a user interface module, a language model generation module, an evolutionary search module, a reinforcement learning module and a strategy evaluation module; The user interface module is used to receive the driving task description input by the user in natural language, and transmit the evaluation opinions of the human expert on the reward function; The language model generation module is a large language model with built-in pre-training, and can automatically generate a reward function based on the driving task description; The evolutionary search module uses an evolutionary algorithm to select the best candidate reward function from the output of the language generation model module, and scores and ranks the candidate reward functions in combination with human feedback; The reinforcement learning model is used for mainstream reinforcement learning algorithms to train unmanned vehicle driving strategy learning in a simulation environment; The strategy evaluation module is used to test strategy performance in different difficulty evaluation environments and generate optimization signals for reward functions and strategy parameters.

[0009] Compared with the existing technology, the autonomous unmanned vehicle training method and system based on large language model has the following advantages: 1. Use a large language model to automatically map task descriptions to reward functions, avoiding the tediousness and bias of manual design; 2. The reward function is dynamically optimized by integrating evolutionary algorithms and human feedback, which improves the intelligence and efficiency of reward shaping; 3. End-to-end closed-loop training based on a highly simulated environment enables the strategy to fully understand and adapt to complex road conditions; 4. The combination of machine automation and human-computer interaction reduces manual involvement while retaining top-level guidance and evaluation. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 It is a schematic diagram of the architecture of the autonomous unmanned vehicle reinforcement learning training system of the present invention.

[0011] Figure 2 is a flow chart of the method of the present invention. DETAILED DESCRIPTION

[0012] The following are specific embodiments of the present invention and the accompanying drawings to further describe the technical solution of the present invention, but the present invention is not limited to these embodiments.

[0013] like Figure 1 , Figure 2 As shown, the autonomous unmanned vehicle training method based on a large language model is characterized by comprising the following steps: Step 1: Input the environmental parameters and task description of the autonomous driving task into the pre-trained large language model to generate a reward function for the task; Step 2: Use evolutionary algorithms to optimize the reward function generated by the language model, and continuously iterate and update it based on human feedback; Step 3: Input the optimized reward function into the deep reinforcement learning algorithm to train the driving strategy of the unmanned vehicle in a highly simulated virtual environment; Step 4: Evaluate the strategy performance in a real or simulated road environment, and feed back the evaluation results to the language model and reinforcement learning module to form a closed-loop optimization.

[0014] In step 1 above, the powerful semantic understanding ability of the large language model can be used to automatically map the driving task description into a mathematical reward function, avoiding the tediousness and bias of manual design. The language model uses advanced neural network architectures such as Transformer, and after pre-training on massive text corpus, it has the ability to extract key information from complex task descriptions.

[0015] In step 2 above, based on the reward function output by the language model, the evolutionary algorithm is used to further search and optimize the reward function. Starting from multiple candidate reward functions generated by the language model, the evolutionary algorithm continuously iterates through operations such as crossover and mutation to select the reward function that better meets the task requirements. At the same time, the feedback from human experts on the candidate reward function is introduced as an important reference for evolutionary optimization.

[0016] In step 3 above, the reward function after evolution optimization is input into the current mainstream deep reinforcement learning algorithms, such as PPO and SAC, to train the driving strategy of the unmanned vehicle in a highly simulated virtual environment. The simulation environment comprehensively simulates the complex elements of real roads, such as traffic, traffic lights, weather changes, etc., to improve the environmental adaptability of the strategy. The reinforcement learning agent gradually optimizes the driving decision by continuously interacting with the environment, and finally forms a better strategy.

[0017] During the training process, step 4 above continuously evaluates the performance of the reinforcement learning strategy under different evaluation environments, and feeds the evaluation results back to the language model and reinforcement learning optimizer to achieve iterative updates of the reward function and strategy network, forming end-to-end closed-loop training.

[0018] To go into further detail, the large-scale language model adopts the Transformer advanced neural network architecture and is pre-trained with massive text corpus, enabling it to extract key information from complex task descriptions.

[0019] To further elaborate, the optimization of the reward function generated by the language model in the above step 2 is achieved through an evolutionary algorithm. The algorithm starts from multiple candidate reward functions, iteratively searches through operations such as crossover and mutation, and selects the reward function that better meets the task requirements.

[0020] To elaborate further, the deep reinforcement learning algorithm used in step 3 is preferably the PPO algorithm, which has the advantages of high sample utilization and low hyperparameter sensitivity.

[0021] An autonomous unmanned vehicle training system based on a large language model includes a user interface module, a language model generation module, an evolutionary search module, a reinforcement learning module and a strategy evaluation module. The user interface module is used to receive a driving task description input by a user in natural language and transmit the evaluation opinions of human experts on a reward function. The language model generation module is a large language model with built-in pre-training and can automatically generate a reward function according to the driving task description. The evolutionary search module uses an evolutionary algorithm to select from the candidate reward functions output by the language generation model module and scores and ranks the candidate reward functions in combination with human feedback. The reinforcement learning module uses a mainstream reinforcement learning algorithm to train unmanned vehicle driving strategy learning in a simulation environment. The strategy evaluation module is used to test the strategy performance in different difficulty evaluation environments and generate optimization signals for the reward function and strategy parameters.

[0022] Among them, the user interface module is the entrance to human-computer interaction, allowing users to input driving task descriptions in natural language and pass the reward function evaluation opinions fed back by experts to the evolutionary search module. The language model generation module has a built-in pre-trained large language model, which takes the driving task description as input and outputs the reward function for the task. The evolutionary search module uses an evolutionary algorithm to select the reward function from multiple candidates output by the language model, and absorbs human feedback to score and sort the candidates. The reinforcement learning module trains driving strategies in a simulation environment based on mainstream reinforcement learning algorithms, such as PPO. The strategy evaluation module tests the performance of the current strategy in evaluation environments of different difficulty levels and generates optimization signals for the reward function and strategy parameters.

[0023] First, the user inputs a description of the autonomous driving task of the unmanned vehicle through the interface and passes it to the language model. The language model generates an initial reward function based on the task description and built-in environmental information, and is further optimized by the evolutionary algorithm. The optimized reward function is input into the reinforcement learning module to guide the learning of driving strategies. The trained strategies are tested in different evaluation environments, and the evaluation results are fed back to the language model and evolutionary algorithm to update the optimization direction. This iterative cycle enables the system to continuously adjust from three levels: reinforcement learning, language model, and human experience, and finally obtain a better autonomous driving strategy for unmanned vehicles.

[0024] In the reinforcement learning module of this embodiment, the PPO algorithm is preferentially used for training the decision-making strategy of the unmanned vehicle. The algorithm uses the stochastic policy gradient method to update the strategy, which has the advantages of high sample utilization and low hyperparameter sensitivity. Its objective function controls the distribution of strategy updates by cutting the importance sampling amount, and achieves a good balance between monotonicity and sample complexity. In the simulation scenario of this embodiment, the PPO algorithm shows faster convergence speed and training stability than other mainstream reinforcement learning algorithms.

[0025] This embodiment sets up corresponding training and evaluation scenarios for two typical driving tasks of unmanned vehicles, namely path planning and vehicle following. The path planning task requires the unmanned vehicle to plan the optimal driving path in the road network. The vehicle following task requires the unmanned vehicle to follow the vehicle in front closely and maintain a safe distance from it. The training environment is constructed by combining high-precision maps, traffic flow generation and other technologies. The evaluation environment further introduces interference factors such as bad weather and extreme working conditions on the basis of the training environment to comprehensively evaluate the strategies obtained through training.

[0026] Through a large number of experiments in the above simulation environment, the present invention verifies the performance of the proposed autonomous training framework for unmanned vehicles. The experimental results show that the driving strategy trained using the reward function generated by the present invention is superior to the manually designed reward function in terms of path planning success rate, driving efficiency, and vehicle distance keeping stability. At the same time, the strategy trained by the present invention shows good generalization ability and can still maintain robust performance under different evaluation environments.

[0027] The specific embodiments described herein are merely examples of the spirit of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in similar ways, but they will not deviate from the spirit of the present invention or exceed the scope defined by the appended claims.

Claims

1. A method for training an autonomous unmanned vehicle based on a large language model, characterized in that: The following steps are involved: Step 1: Input the environmental parameters and task description of the autonomous driving task into the pre-trained large language model to generate a reward function for the task; Step 2: Use evolutionary algorithms to optimize the reward function generated by the language model, and continuously iterate and update it based on human feedback; Step 3: Input the optimized reward function into the deep reinforcement learning algorithm to train the driving strategy of the unmanned vehicle in a highly simulated virtual environment; Step 4: Evaluate the strategy performance in a real or simulated road environment, and feed back the evaluation results to the language model and reinforcement learning module to form a closed-loop optimization.

2. According to claim 1, a method for training an autonomous unmanned vehicle based on a large language model is characterized in that: The large-scale language model adopts the Transformer advanced neural network architecture and is pre-trained with massive text corpus, enabling it to extract key information from complex task descriptions.

3. The autonomous unmanned vehicle training method based on a large language model according to claim 1, characterized in that: The optimization of the reward function generated by the language model in the above step 2 is achieved through an evolutionary algorithm. The algorithm starts from multiple candidate reward functions, iteratively searches through operations such as crossover and mutation, and selects the reward function that better meets the task requirements.

4. The autonomous unmanned vehicle training method based on a large language model according to claim 1, characterized in that: The deep reinforcement learning algorithm used in step 3 is preferably a PPO algorithm, which has the advantages of high sample utilization and low hyperparameter sensitivity.

5. An autonomous unmanned vehicle training system based on a large language model, characterized in that: It includes user interface module, language model generation module, evolutionary search module, reinforcement learning module and strategy evaluation module; The user interface module is used to receive the driving task description input by the user in natural language, and transmit the evaluation opinions of the human expert on the reward function; The language model generation module is a large language model with built-in pre-training, and can automatically generate a reward function based on the driving task description; The evolutionary search module uses an evolutionary algorithm to select the best candidate reward function from the output of the language generation model module, and scores and ranks the candidate reward functions in combination with human feedback; The reinforcement learning model is used for mainstream reinforcement learning algorithms to train unmanned vehicle driving strategy learning in a simulation environment; The strategy evaluation module is used to test strategy performance in different difficulty evaluation environments and generate optimization signals for reward functions and strategy parameters.