An efficient fine-tuning method for vehicle-mounted electric control safety multi-modal vertical large model parameters
By constructing a structured multimodal dataset and building an independent feature extractor, a dynamic weighted fusion module, and a gated filtering module, combined with low-rank adaptation matrix for parameter fine-tuning, the problems of modal fragmentation and insufficient judgment accuracy in vehicle electronic control systems are solved, achieving efficient and compliant multimodal fine-tuning.
Patent Information
- Application Number
- CN202611356738.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-03
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies in vehicle electronic control systems suffer from problems such as heterogeneous modal feature coupling without structured alignment, fixed Transformer attention modal bias, extremely high computational threshold for full fine-tuning, and lack of automotive-grade safety constraints for fine-tuning. These issues lead to modal fragmentation, insufficient judgment accuracy, and non-compliant output.
By constructing a structured multimodal dataset, building an independent feature extractor and a dynamic weighted fusion module, and building a gated filtering module, and using a low-rank adaptation matrix for parameter fine-tuning, end-to-end multi-order progressive training is achieved, solving the problems of heterogeneous modality decoupling, dynamic weight fusion, and automotive compliance constraints.
It improves the utilization rate of modal effective features, eliminates modal bias, reduces the cost of fine-tuning computing power, ensures the automotive-grade compliance of the model output, and realizes accurate fusion and efficient fine-tuning of electronic control multimodal systems.
Smart Images

Figure CN123156604A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle-mounted multimodal intelligent electronic control technology, and in particular to an efficient fine-tuning method for parameters of a large-scale multimodal vertical model of vehicle-mounted electronic control safety. Background Technology
[0002] The electronic control architecture of new energy intelligent vehicles is moving towards domain control integration. A single vehicle integrates more than ten types of ECU controllers, such as VCU, BMS, EPS, and ADAS. The entire life cycle of electronic control R&D generates five types of heterogeneous data simultaneously: embedded C control code, AUTOSAR design documents, bench and vehicle test logs, graded fault failure cases, and EMC conducted and radiated time-series waveforms. The industry relies on multimodal large models to achieve automated code compliance auditing, EMC anomaly analysis, fault tracing, and functional safety rating, replacing manual review and reducing R&D compliance costs.
[0003] Currently, the implementation of general-purpose multimodal large models and traditional electronic control fine-tuning solutions suffers from four major quantifiable technical shortcomings, which are also the core pain points addressed by this invention: 1. Unstructured alignment of heterogeneous modal features: Existing fine-tuning directly splices together five types of original data without splitting code syntax trees, waveform time-frequency domain features, and text semantic features. Code logic and EMC extreme value features are covered by text semantics. The recognition accuracy of electric control special tasks is only 55%-62%, and the utilization rate of effective modal features is less than 28%. 2. Fixed Transformer attention modal bias: Traditional global attention uses static equal weights, the model prioritizes fitting text document data, ignores C code syntax constraints and EMC temporal impulse features, the MISRA-C violation false negative rate exceeds 32%, and the EMC anomaly false positive rate exceeds 29%; 3. The full-scale fine-tuning has an extremely high computational threshold and poor adaptability: The full-scale fine-tuning of the 7B-level multimodal base model requires more than 60GB of dedicated video memory, which cannot be handled by the conventional 24GB business servers of car companies. The general LoRA fine-tuning does not distinguish the complexity of modal features, and the high-dimensional feature fitting of code and waveforms fails. 4. Fine-tuning without automotive-grade safety constraints: The existing fine-tuning only optimizes semantic fit, without incorporating ISO26262 functional safety classification, MISRA-C mandatory code clauses, and EMC national standard threshold constraints. The model's judgment conclusions do not meet the internal audit standards of car companies, and the domain perplexity PPL is generally higher than 45, making it unsuitable for commercial application.
[0004] In summary, existing technologies cannot simultaneously meet the four major requirements of heterogeneous modal decoupling, dynamic weight fusion, low-computing-power fine-tuning, and automotive-grade compliance constraints. There is an urgent need for a parameter-efficient multimodal fine-tuning solution adapted to vehicle electronic control scenarios. Summary of the Invention
[0005] The purpose of this application is to provide an efficient fine-tuning method for the parameters of a large multimodal vertical model of vehicle electronic control safety, which can solve the defects of traditional fine-tuning methods such as modal fragmentation, insufficient judgment accuracy, large computational cost, and non-compliant output.
[0006] To achieve the above objectives, this application provides the following solution: An efficient fine-tuning method for parameters of a large multimodal vertical model of vehicle electronic control safety includes: Obtain heterogeneous native data of vehicle electronic control system, and construct a structured multimodal dataset based on the heterogeneous native data of vehicle electronic control system; the structured multimodal dataset includes several modal data.
[0007] Independent feature extractors are built for each modality of data, and independent feature extraction is performed on the corresponding modality data through each independent feature extractor to obtain the feature vector of each modality.
[0008] A dynamic weighted fusion module is constructed, and the feature vectors of each modality are weighted and fused through the dynamic weighted fusion module to obtain dynamic fused features.
[0009] A gating and filtering module is built, and the dynamic fusion features are subjected to electronic safety gating and filtering through the gating and filtering module to obtain compliant multimodal fusion features.
[0010] Using a pre-trained multimodal large model as a base model, the backbone weights of the base model are frozen, and the compliant multimodal fusion features are used as inputs to the base model. Low-rank adaptation matrices are applied to the independent feature extractor, the dynamic weighted fusion module, and the base model respectively to obtain the model architecture to be fine-tuned; the rank parameters of each low-rank adaptation matrix are configured according to the corresponding modality differentiation.
[0011] The structured multimodal dataset is input into the model architecture to be fine-tuned for end-to-end multi-level progressive training, and the parameters of each low-rank adaptation matrix are iteratively updated to obtain the specialized fine-tuning model for the electric control vertical category.
[0012] According to the specific embodiments provided in this application, this application has the following technical effects: This application provides an efficient fine-tuning method for parameters of a large multimodal vertical model of vehicle electronic control safety. The method includes: First, acquiring heterogeneous native data of vehicle electronic control systems, and constructing a structured multimodal dataset based on this data; aggregating multi-source heterogeneous electronic control data and completing cross-modal structured alignment to provide a unified underlying data foundation for subsequent multimodal fusion. Second, building independent feature extractors for each modality, and extracting features independently from the corresponding modal data using each independent feature extractor to obtain modal feature vectors; independently extracting modal features through decoupling encoding to avoid the coupling and confusion between code syntax, waveform time-frequency, and text semantic features, thereby improving the utilization rate of effective modal features. Third, building a dynamic weighted fusion module, and performing weighted fusion of the modal feature vectors to obtain dynamically fused features; adaptively allocating modal fusion weights according to the electronic control business type to eliminate modal bias caused by fixed attention weights. Next, a gating and filtering module is built to perform electronic control safety gating filtering on the dynamically fused features, resulting in compliant multimodal fused features. These fused features are then subjected to safety and compliance screening to filter out invalid noise and non-compliant features, ensuring the automotive-grade compliance of the model output from the feature source. Subsequently, a pre-trained multimodal large model is used as the base model. The backbone weights of the base model are frozen, and the compliant multimodal fused features are used as input to the base model. Low-rank adaptation matrices are added to the independent feature extractor, the dynamically weighted fusion module, and the base model to obtain the model architecture to be fine-tuned. Each low-rank adaptation matrix is configured with rank parameters according to the corresponding modality. With the backbone of the base model frozen, efficient parameter fine-tuning is achieved through differentiated low-rank adaptation, significantly reducing the computational cost of fine-tuning and enabling conventional computing equipment to support large-scale model vertical adaptation. Finally, the structured multimodal dataset is input into the model architecture to be fine-tuned for end-to-end multi-level progressive training, and the parameters of each low-rank adaptation matrix are iteratively updated to obtain the electronic control vertical-specific fine-tuning model. Through end-to-end progressive training, knowledge of the electronic control domain, business precision and automotive safety constraints are injected into the base model layer by layer, solving the problems of traditional fine-tuning modal fragmentation and insufficient judgment accuracy, and realizing accurate fusion and judgment of electronic control multimodalities with a small number of parameters. Attached Figure Description
[0013] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0014] Figure 1 An application environment diagram for an efficient fine-tuning method for parameters of a multimodal vertical large model of vehicle electronic control safety provided in an embodiment of this application; Figure 2 This is a schematic diagram of the overall fine-tuning process architecture provided in an embodiment of this application; Figure 3 A flowchart illustrating an efficient fine-tuning method for parameters of a multimodal vertical class large model of vehicle electronic control safety provided in an embodiment of this application; Figure 4 This is a schematic diagram of a three-way modal decoupling coding structure provided in an embodiment of this application; Figure 5 This is a schematic diagram of task-driven dynamic cross-attention weight adjustment logic provided in an embodiment of this application; Figure 6 A schematic diagram of the modal differentiation LoRA third-order fine-tuning training process provided in an embodiment of this application; Figure 7 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation
[0015] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0016] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0017] The efficient fine-tuning method for parameters of a multimodal vertical large model of vehicle electronic control safety provided in this application embodiment can be applied to, for example... Figure 1In the application environment shown, terminal 102 communicates with server 104 via a network. A data storage system can store the data that server 104 needs to process. The data storage system can be set up independently, integrated into server 104, or placed in the cloud or on other servers. Terminal 102 can send the vehicle-mounted electronic control heterogeneous raw data to be processed to server 104. After receiving the vehicle-mounted electronic control heterogeneous raw data, server 104 constructs a structured multimodal dataset based on the data; builds independent feature extractors for each modality, and extracts features independently from the corresponding modality data using each independent feature extractor to obtain modal feature vectors; builds a dynamic weighted fusion module, and performs weighted fusion of the modal feature vectors to obtain dynamically fused features; and builds a gating system. The filtering module performs electrical control safety gating filtering on the dynamically fused features through a gating filtering module to obtain compliant multimodal fused features. A pre-trained multimodal large model is used as the base model, and the backbone weights of the base model are frozen. The compliant multimodal fused features are used as input to the base model. Low-rank adaptation matrices are added to the independent feature extractor, the dynamically weighted fusion module, and the base model respectively to obtain the model architecture to be fine-tuned. The rank parameters of each low-rank adaptation matrix are configured differently according to the corresponding modality. The structured multimodal dataset is input into the model architecture to be fine-tuned for end-to-end multi-order progressive training, iteratively updating the parameters of each low-rank adaptation matrix to obtain a specialized fine-tuned model for electrical control. Server 104 can feed back the obtained specialized fine-tuned model for electrical control to terminal 102. In addition, in some embodiments, the efficient fine-tuning method for the parameters of the large model of multimodal vertical categories of vehicle electronic control safety can also be implemented by the server 104 or the terminal 102 alone. For example, the terminal 102 can directly process the heterogeneous native data of vehicle electronic control to be processed, or the server 104 can obtain the heterogeneous native data of vehicle electronic control to be processed from the data storage system and process the heterogeneous native data of vehicle electronic control to be processed.
[0018] The terminal 102 can be, but is not limited to, various desktop computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, and smart in-vehicle devices. Portable wearable devices can include smartwatches, smart bracelets, and head-mounted devices. The server 104 can be implemented using a standalone server or a server cluster composed of multiple servers, or it can be a cloud server.
[0019] like Figure 2As shown, the overall architecture of the efficient fine-tuning method for multimodal large model parameters of vehicle electronic control safety provided in this application includes a data collection layer, a modal decoupling encoding layer, a dynamic weighted fusion layer, a gating filtering layer, a base model layer, and a third-order progressive training layer. In an exemplary embodiment, as... Figure 3 As shown, a highly efficient fine-tuning method for parameters of a large multimodal vertical model of vehicle electronic control safety is provided. This method is executed by a computer device, specifically by a terminal or server alone, or by both a terminal and a server. In this embodiment, the method is applied to... Figure 1 Taking server 104 as an example, the explanation includes the following steps A1 to A6. Wherein: Step A1: Obtain heterogeneous native data of vehicle electronic control system, and construct a structured multimodal dataset based on the heterogeneous native data of vehicle electronic control system; the structured multimodal dataset includes several types of modal data.
[0020] Step A2: Construct independent feature extractors for each modality of data, and extract independent features from the corresponding modality data using each independent feature extractor to obtain the feature vectors for each modality.
[0021] Step A3: Build a dynamic weighted fusion module. Use the dynamic weighted fusion module to perform weighted fusion of the feature vectors of each modality to obtain dynamic fused features.
[0022] Step A4: Build a gated filtering module, and use the gated filtering module to perform electronic safety gated filtering on the dynamic fusion features to obtain compliant multimodal fusion features.
[0023] Step A5: Using the pre-trained multimodal large model as the base model, freeze the backbone weights of the base model, use the compliant multimodal fusion features as the input of the base model, and apply low-rank adaptation matrices to the independent feature extractor, the dynamic weighted fusion module and the base model respectively to obtain the model architecture to be fine-tuned; configure the rank parameters of each low-rank adaptation matrix according to the corresponding modality differentiation.
[0024] Step A6: Input the structured multimodal dataset into the model architecture to be fine-tuned for end-to-end multi-level progressive training, iteratively update the parameters of each low-rank adaptation matrix, and obtain the electric control vertical category-specific fine-tuning model.
[0025] By implementing steps A1 to A6 above, the four major problems that existing technologies cannot simultaneously address—heterogeneous modal decoupling, dynamic weight fusion, low-computing-power fine-tuning, and automotive-grade compliance constraints—are solved one by one through a five-element cross-modal alignment mechanism, task-driven dynamic cross-attention, differentiated LoRA low-rank fine-tuning, and a two-level safety constraint system.
[0026] In another exemplary embodiment of this application, the heterogeneous native data of the vehicle electronic control system includes embedded control code, compliant design documents, closed-loop test reports, graded fault cases, and time-series waveform data. To address the modal fragmentation problem caused by unstructured alignment of heterogeneous modal data and to achieve effective correlation and structured organization of cross-modal features, the step A1 above, which involves constructing a structured multimodal dataset based on the heterogeneous native data of the vehicle electronic control system, is replaced by steps B1 to B7: Step B1: Divide the heterogeneous native data of the vehicle electronic control system into code mode, text mode and waveform mode according to the data format; the code mode includes embedded control code; the text mode includes compliant design documents, closed-loop test reports and graded fault cases; the waveform mode includes time-series waveform data.
[0027] Step B2: Perform abstract syntax tree (AST) binding preprocessing on the code modality to obtain the AST node sequence of the binding compliance clauses.
[0028] Step B3: Perform industry terminology normalization and desensitization on the text modality to obtain normalized text data.
[0029] Step B4: Perform wavelet denoising and Gram angle field transformation on the waveform mode to obtain a two-dimensional feature map and time-frequency features.
[0030] Step B5: Extract AST code nodes, compliance document clauses, test feature points, fault levels, and EMC waveform extreme values from the AST node sequence of the bound compliance clauses, the normalized text data, and the time-frequency features, respectively, as cross-modal mapping anchor points.
[0031] Step B6: Establish a one-to-one binding mapping relationship for the cross-modal mapping anchor points. Based on the one-to-one binding mapping relationship of the mapping anchor points, concatenate the modal data into a structured closed-loop sample with the fault scenario as the core.
[0032] Step B7: The structured closed-loop samples are sequentially subjected to automatic machine annotation, engineer business annotation, and double expert blind review to obtain annotated structured closed-loop samples. A structured multimodal dataset is constructed based on the annotated structured closed-loop samples.
[0033] In this embodiment, the embedded control code is embedded electronic control C code; the compliance design document is an electronic control compliance design document; the graded fault case is an ASIL graded fault case; and the timing waveform data is an EMC timing waveform. In step B1 above, the heterogeneous native data of vehicle electronic control covers the power domain, chassis domain, body domain, intelligent driving domain, and full-domain EMC electromagnetic compatibility domain in passenger car and commercial vehicle scenarios, totaling 120,000 compliant samples. The dataset is divided according to the ratio of training set: validation set: test set = 8:1:1. Specifically, the embedded control code is 35,000 MCU-level embedded C control codes, the compliant design documents are 28,000 AUTOSAR / ISO26262 compliant design documents, the closed-loop test reports are 22,000 bench and real vehicle closed-loop test logs, the graded fault cases are 15,000 ASIL graded electronic control fault cases, and the timing waveform data are 20,000 EMC conducted / radiated / EFT timing waveforms. The above five types of data belong to three heterogeneous feature spaces: code, text, and waveform. In step B2 above, the abstract syntax tree (AST) binding preprocessing for the code modality is specifically AST binding preprocessing. The Tree-sitter tool is used to parse the electronic control C code to generate an abstract syntax tree, using function and statement-level AST nodes as the smallest units, binding MISRA compliance clause numbers, test point IDs, and fault tags. In step B6 above, the one-to-one binding mapping relationship of the cross-modal mapping anchors is a five-element cross-modal alignment, specifically: establishing a one-to-one binding mapping relationship of "AST code node - compliance document clause - test feature point - fault level - EMC waveform extreme value." The five mapping anchors correspond to the core feature units of five types of original electronic control data: AST code nodes correspond to the syntax units of embedded C control code; compliance document clauses correspond to the standard entries of compliant design documents; test feature points correspond to the measured points in the closed-loop test log; fault levels correspond to the safety classification of electronic control fault cases; and EMC waveform extreme values correspond to the feature points of EMC timing waveforms. Through this mapping relationship, five originally independent heterogeneous data types are linked together into a structured closed-loop sample centered on fault scenarios, enabling joint tracing of five modal data types in connection with one type of fault. In step B7 above, the three-level hierarchical back-to-back layered annotation system includes: Level 1, machine-automated annotation of code violation points, waveform anomalies, and text risk entries; Level 2, precise annotation of business scenarios by electrical control engineers, completing scenario classification and accurate labeling; and Level 3, back-to-back blind review and arbitration by two experts to correct annotation deviations. The overall annotation accuracy of the dataset is ≥98%, with unified annotation of MISRA violation labels, ASIL safety levels, and EMC threshold labels.
[0034] By implementing steps B1 to B7 above, and through AST syntax binding preprocessing, five-element cross-modal alignment, and three-level back-to-back hierarchical annotation, a structured multimodal dataset specifically for electric control safety was constructed.
[0035] In another exemplary embodiment of this application, in order to solve the problem of heterogeneous modal feature coupling and confusion, avoid mutual overlap and interference between code syntax features, waveform time-frequency features and text semantic features, and achieve independent decoupling and extraction of each modal feature, the above step A2 is replaced by the following steps C1 to C4: Step C1: Build the code modality extractor, text modality extractor, and waveform modality extractor.
[0036] Step C2 involves using the code modality extractor to perform abstract syntax tree node vector embedding on the AST node sequence of bound compliance clauses in the structured multimodal dataset to obtain code syntax feature vectors.
[0037] Step C3: The text modality extractor performs electronic term semantic embedding on the normalized text data in the structured multimodal dataset to obtain a text semantic feature vector.
[0038] Step C4: The waveform modality extractor extracts time-series features and image features from the two-dimensional feature map and time-frequency features in the structured multimodal dataset, respectively, and then fuses the extracted time-series features with the image features to obtain the waveform time-frequency feature vector.
[0039] In this embodiment, as Figure 4 As shown, the code modality extractor embeds abstract syntax tree node vectors into the embedded control code to obtain code syntax feature vectors; the waveform modality extractor extracts time-series features and image features from the time-series waveform data and fuses them to obtain waveform time-frequency feature vectors; the text modality extractor embeds electrical control terminology semantics into the normalized text data to obtain text semantic feature vectors; the three feature dimensions are normalized to a unified dimension. The code modality extractor in step C1 includes a code encoder, which uses CodeBERT to embed AST node vectors and outputs 768-dimensional syntax features; the waveform modality extractor in step C1 includes a waveform dual-stream encoder, which uses 1D-CNN to extract time-series features and ResNet18 to extract GASF image features, fusing them to output 768-dimensional time-frequency features; the text modality extractor in step C1 includes a text encoder, which uses a customized electrical control terminology BERT semantic encoder; and the three feature dimensions are normalized to a unified dimension.
[0040] By implementing steps C1 to C4 above, a three-way modal decoupling encoder (code-waveform-text three-way modal decoupling encoder with an embedded AST syntax parsing module in the code branch) is built. This avoids mutual overlap and interference between code syntax features, waveform time-frequency features and text semantic features, eliminates heterogeneous modal feature coupling confusion, improves the utilization rate of effective modal features, and lays the foundation for subsequent accurate fusion and analysis.
[0041] In another exemplary embodiment of this application, in order to eliminate the modal bias caused by fixed attention weights and achieve adaptive allocation of modal fusion weights according to the type of electronic control service, the above step A3 is replaced by the following steps D1 to D4: Step D1: Build the dynamic weighted fusion module.
[0042] Step D2: Obtain the current electronic control service type through the dynamic weighted fusion module, and determine the importance score of each modal feature vector.
[0043] Step D3: The dynamic weighted fusion module determines the fusion weight of each mode based on the electronic control service type and the importance score of each mode feature vector.
[0044] Step D4: The dynamic weighted fusion module performs weighted fusion of the feature vectors of each modality based on the fusion weights of each modality to obtain dynamic fusion features.
[0045] like Figure 5 As shown, the dynamic weighted fusion module obtains the current electronic control service type and determines the importance score of each modal feature vector. Based on the electronic control service type and the importance score of each modal feature vector, the fusion weight of each modality is determined. Based on the fusion weight of each modality, the feature vectors of each modality are weighted and fused to obtain the dynamic fused features.
[0046] In another exemplary embodiment of this application, the electrical control business types mentioned in step D2 above include code compliance audit, EMC anomaly assessment, electrical control fault tracing, and functional safety audit.
[0047] In code compliance auditing, the fusion weight ratio of code modality, text modality, and waveform modality is 0.65:0.25:0.1.
[0048] In EMC anomaly analysis, the fusion weight ratio of waveform mode, text mode, and code mode is 0.7:0.2:0.1.
[0049] In the business of tracing the source of electrical control faults, the fusion weights of each mode are equally distributed.
[0050] In functional safety auditing, the fusion weight ratio of text modality, code modality, and waveform modality is 0.6:0.3:0.1.
[0051] The modal fusion weight allocation for each of the above-mentioned electronic control business types is shown in Table 1: Table 1 Modal Weight Service Adaptation Comparison Table
[0052] In another exemplary embodiment of this application, the fusion weights of each mode in step D3 above are calculated by the following formula: ; in, For the first The fusion weights of each modality These correspond to code mode, text mode, and waveform mode, respectively. Use the Sigmoid activation function; For business type vectors, Assign importance scores to modal features; For business type weighting coefficients, These are the feature importance weight coefficients, and both are iteratively updatable constraint parameters in the electric control vertical category scenario.
[0053] In this embodiment, The value range is [0.6, 1.2]. The value range is [0.4, 1.0], and the initial values are 0.8 and 0.6 respectively. This is the business type weight coefficient, used to adjust the influence of the prior rules of the electric control business on the fusion weight. The initial value is set based on the statistical results of the modal prior importance of the four types of electric control businesses. The feature importance weight coefficients are used to adjust the correction magnitude of the fusion weights by the information content of a single modal feature. Their initial values are set based on the statistical results of the information entropy distribution of the multimodal features of the electronic control system. During training, the two coefficients are adaptively and iteratively updated with gradient backpropagation, eventually converging to the optimal weight allocation coefficients that fit the current electronic control dataset, ensuring the accuracy of modal fusion under different business scenarios. The electronic control business includes four categories: code compliance auditing, EMC anomaly assessment, electronic control fault tracing, and functional safety auditing. Each type of business is configured with a fixed modal weight range.
[0054] By implementing steps D1 to D4 above, dynamic weighted fusion driven by tasks is used to adaptively allocate modal fusion weights according to the type of electrical control business, eliminating text modal bias caused by fixed attention weights and achieving dynamic and accurate fusion of multimodal features. Moreover, the dynamic weights can adaptively switch between four major electrical control businesses: code compliance audit, EMC anomaly assessment, electrical control fault tracing, and functional safety audit, thereby improving business adaptability and versatility.
[0055] In another exemplary embodiment of this application, in order to filter out invalid noise and non-compliant features from the feature source, realize automotive-grade safety constraints at the feature level, and ensure the safety and compliance of the fused features, step A4 above is replaced by steps E1 to E6: Step E1: Build the gated filtering module.
[0056] Step E2: Through the gating filtering module, the cosine similarity between the dynamic fusion feature and the standard compliance feature vector in the automotive compliance feature library is calculated to obtain the gating coefficient corresponding to each dynamic fusion feature dimension.
[0057] Step E3: Determine whether the gating coefficients of each dynamic fusion feature dimension are greater than the compliance similarity threshold to obtain the first judgment result.
[0058] Step E4: If the first judgment result is yes, then the corresponding feature dimension is retained.
[0059] Step E5, otherwise, set the corresponding feature dimension to zero.
[0060] Step E6: Combine the feature dimensions after the retention and zeroing processes to obtain compliant multimodal fusion features.
[0061] In this embodiment, the automotive compliance feature library is a pre-built standard feature vector library. The construction method involves collecting three types of original automotive compliance texts: ISO 26262 functional safety standard clauses, MISRA-C code encoding specifications, and EMC electromagnetic compatibility national standard threshold requirements. Corresponding standard compliance feature vectors are extracted using a text encoder, covering three major compliance dimensions: functional safety classification, mandatory code compliance clauses, and EMC threshold constraints, forming an automotive compliance feature benchmark library. The preset compliance similarity threshold is 0.5. This threshold is determined through validation set grid search parameter tuning: values are traversed within the range of 0.3 to 0.7 with a step size of 0.05, and the value with the optimal comprehensive index of compliance feature recall rate and non-compliance feature filtering rate is selected as the final threshold, balancing compliance information retention and noise feature filtering effects. In steps E1 to E6 above, the gated filtering module is set after the dynamic weighted fusion module, and the input is the multimodal fusion feature after dynamic weighted fusion. The gated filtering module has built-in electronic control safety gating coefficients, and uses ISO26262 functional safety and MISRA-C code compliance-related features as screening criteria to perform secondary filtering on the fusion features, eliminating invalid noise and non-compliant features, and finally outputting multimodal fusion features that retain only safety compliance-related information, realizing the processing logic of "fusion interaction first, safety screening later". Moreover, the gated filtering module and the backend safety preference alignment output layer constraints together constitute a two-level automotive-grade safety management system of "feature layer-output layer", ensuring compliance throughout the entire chain from feature source to final output.
[0062] By implementing steps E1 to E6 above, the fused features are subjected to electronic safety gating filtering through the gating filtering module. Invalid noise and non-compliant features are removed from the feature source, and only safety and compliance related information is retained. This achieves automotive-grade safety constraints at the feature level and ensures the safety and compliance of the fused features.
[0063] In another exemplary embodiment of this application, the modalities include code modality, text modality, and waveform modality; the rank parameters of each low-rank adaptation matrix in step A5 above are configured differently according to the corresponding modality, specifically including: The rank parameter of the low-rank adaptation matrix corresponding to the code modality is 16.
[0064] The rank parameter of the low-rank adaptation matrix corresponding to the text modality is 8.
[0065] The rank parameter of the low-rank adaptation matrix corresponding to the waveform mode is 32.
[0066] The scaling factor of each low-rank adaptation matrix is twice the corresponding rank parameter.
[0067] In this embodiment, the number of trainable parameters is calculated based on the LoRA low-rank matrix formula: the number of trainable parameters of a single linear layer LoRA is the product of the input dimension and the rank plus the product of the rank and the output dimension. After hierarchical statistics of the linear layer size of all functional modules, the total number of trainable parameters of the whole model is about 33.6 million, accounting for 0.48% of the total parameters of the 7B base model. In terms of memory usage, the frozen base parameters are stored with FP16 precision, which takes up about 14GB. With the trainable parameters, optimizer state and training activation value superimposed, the peak memory usage during fine-tuning is about 19.2GB. The entire fine-tuning process can be completed with a single card with 24GB of memory without upgrading the computing hardware.
[0068] By implementing the above-mentioned differentiated low-rank adaptation configuration, the weights of the base model backbone are frozen, and low-rank adaptation matrices are only added to the independent feature extractor, dynamic weighted fusion module and base model. The rank parameters are configured differently according to the corresponding modality to achieve efficient parameter fine-tuning. The total number of trainable parameters is about 33.6 million, which accounts for only 0.48% of the total parameters of the 7B base model. The entire process of fine-tuning can be completed with a 24GB conventional industrial control card, which reduces the memory usage by 68% compared to full fine-tuning, and requires zero upgrade of enterprise computing hardware.
[0069] In another exemplary embodiment of this application, in order to achieve the layered superposition of domain knowledge injection, business accuracy optimization, and automotive compliance constraints through efficient parameter fine-tuning while freezing the backbone weights of the base model, thereby obtaining a specialized fine-tuning model adapted to the fully electric control safety scenario, step A6 above is replaced by steps F1 to F4: Step F1: Input the structured multimodal dataset into the model architecture to be fine-tuned, perform cross-modal feature alignment and domain semantic fitting, iteratively update the parameters of each low-rank adaptation matrix until the first preset convergence condition is met, and obtain the initial low-rank adaptation matrix parameters.
[0070] Step F2: Obtain structured multimodal dataset samples labeled with electrical control business task tags to obtain labeled samples for each electrical control business task.
[0071] Step F3: Input the labeled samples into the model architecture to be fine-tuned, perform joint training of multiple electric control business tasks, iteratively update the parameters of each low-rank adaptation matrix until the second preset convergence condition is met, and obtain the optimized low-rank adaptation matrix parameters.
[0072] Step F4: Based on the optimized low-rank adaptation matrix parameters, input the electric control safety preference dataset into the model architecture to be fine-tuned, perform preference optimization under safety constraints, iteratively update each of the low-rank adaptation matrix parameters until the third preset convergence condition is met, and obtain the electric control vertical category fine-tuning model.
[0073] like Figure 6 As shown, the three-stage progressive training includes domain incremental pre-training, multi-task supervised fine-tuning, and safety preference alignment. The initial low-rank adaptation matrix parameters in the subsequent stages are used as initial values after convergence in the previous stages. These parameters are iteratively updated to obtain the electronic control vertical-category fine-tuned model. Steps F1 to F4 are implemented, sequentially performing domain incremental pre-training, multi-task supervised fine-tuning, and Safe-RLHF dual-preference alignment for electronic control safety, completing the electronic control vertical-category fine-tuning of the base large model. After fine-tuning, the model meets predetermined commercial indicators: overall accuracy for electronic control vertical tasks ≥ 85% (first preset convergence condition), domain perplexity PPL < 20 (second preset convergence condition), and automotive-grade compliance output pass rate ≥ 95% (third preset convergence condition). The assessment conclusions can be directly used for internal audits of automotive companies and registration with third-party testing institutions. The Safe-RLHF dual-preference alignment adopts a dual-reward model architecture of "shared backbone network + dual independent reward heads", freezes the fine-tuned model backbone parameters, and constructs dual-dimensional reward output branches for usefulness and safety respectively. The total reward score is weighted and fused with a usefulness weight of 0.4 and a safety weight of 0.6, and the model output logic is constrained by ISO26262 and MISRA-C automotive standards.
[0074] In this embodiment, all original weights of the 7B base model are frozen throughout the entire process, and only the differential LoRA low-rank matrix parameters corresponding to the three modes are iteratively updated. The training weights are strictly inherited step by step according to the sequence of "first-order pre-training → second-order supervised fine-tuning → third-order safety alignment". The LoRA weights converged in the previous stage are used as the initial training weights in the subsequent stage to realize the layer-by-layer superposition of domain knowledge injection, business accuracy optimization and automotive compliance constraints, so as to ensure training stability and progressive improvement of capabilities.
[0075] In another exemplary embodiment of this application, in steps F1 to F4 above, when performing cross-modal feature alignment and domain semantic fitting, a joint loss function of cross-modal contrastive loss and masked language model loss is used; when performing joint training of multiple electronic control business tasks, a task uncertainty weighted multi-task loss function is used; and when performing preference optimization under safety constraints, a joint loss function constructed by reward model ranking loss, PPO policy pruning loss, value loss, and KL divergence constraint is used.
[0076] In this embodiment, the three-stage training employs a hierarchical, dedicated loss function system: the first-stage domain incremental pre-training uses a joint loss function of InfoNCE cross-modal contrastive loss and masked language model loss; the second-stage multi-task supervised fine-tuning uses a task uncertainty-weighted multi-task loss function; and the third-stage Safe-RLHF preference alignment uses a combined loss function of reward model ranking loss and PPO policy pruning loss. The dataset used for Safe-RLHF preference alignment is a self-built expert-annotated dataset for the electric control industry, with no publicly available datasets of the same origin. It is derived from five types of heterogeneous electric control datasets and contains 12,000 pairs of two-dimensional preference samples, divided according to a training set:validation set:test set ratio of 7:2:1. It employs back-to-back annotation by two experts plus senior expert arbitration quality control, achieving an annotation consistency rate ≥92%.
[0077] In another exemplary embodiment of this application, in order to verify the effectiveness of the efficient fine-tuning method for the parameters of the multimodal vertical large model of vehicle electronic control safety, an embodiment including hardware and software environment, training parameter configuration, three-stage progressive training details, full-process experimental testing and ablation verification is provided: (1) Implementation software and hardware environment: Hardware: Single NVIDIA RTX4090 24GB GPU, Intel Xeon W-1390P CPU, 128GB RAM.
[0078] Software: Ubuntu 22.04, CUDA 12.1, PyTorch 2.3, Tree-sitter parser, PEFT low-rank fine-tuning framework.
[0079] Base model: Qwen2-VL-7B multimodal base large model.
[0080] (2) Model training with fixed hyperparameters: First-order pre-training: 30 rounds, learning rate 2e-4; second-order multi-task supervised fine-tuning: 25 rounds, learning rate 1e-4; third-order Safe-RLHF alignment: 18 rounds; batch size: 8, gradient accumulation: 4, weight decay: 1e-5; modal weights: strictly matched to the thresholds of four types of electronic control operations.
[0081] (3) First-order domain incremental pre-training: Training input and output: The input consists of frozen Qwen2-VL-7B base model weights, standardized five-element aligned unlabeled samples of multimodal electronic control, ISO26262, MISRA-C, and AUTOSAR prior knowledge bases for electronic control; the output consists of initial LoRA low-rank weights injected with common features of electronic control, and the base model is updated without any parameters throughout the training process.
[0082] Training rounds and hardware time consumption: With a fixed preset training round of 30 rounds, and a configuration of RTX4090 24GB single card, batch size 8, and gradient accumulation 4, the training time for a single stage is approximately 28 hours.
[0083] Training termination criteria: A dual mechanism of fixed-round training + early termination based on validation set metrics is adopted. Training can end when either termination condition is met and the minimum number of training rounds is ≥20: ① The domain perplexity PPL of the validation set decreases by less than 0.5 for 5 consecutive rounds, and the metric tends to converge; ② The cross-modal feature matching recall @1 increases by less than 0.3% for 5 consecutive rounds, and the feature fitting is saturated.
[0084] Loss function (joint loss): The InfoNCE cross-modal contrastive loss and masked language model loss are weighted and fused to enhance cross-modal feature alignment and semantic fitting in the electronic control domain. The overall loss formula is as follows: ; in: The weighting coefficients are fixed. This is a cross-modal contrastive loss used to bring together multimodal features from the same scene and separate features from different scenes; The masking language loss is used to repair masked electronic control terminology and enhance the model's ability to recognize semantics specific to the electronic control domain.
[0085] The formula for the cross-modal contrast loss is: ; in, This is a single-modal anchor point sample. For positive samples from the same scene across different modes that are matched with the anchor point samples; For anchor point samples The feature vector output by the modal encoder; Positive samples across modalities in the same scenario The feature vector output by the modal encoder is the core positive feature representation of cross-modal matching in this scheme; The feature vectors output by the encoder for all other comparison samples in the current batch are used as negative sample features in the loss calculation. This is a cosine similarity calculation function used to quantify the degree of matching between two sets of feature vectors; temperature coefficient. It is used to scale the feature similarity distribution and optimize gradient convergence.
[0086] (4) Second-order multi-task supervision fine-tuning: Training input and output: The input consists of the initial LoRA weights after first-order pre-training convergence, the frozen base weights, and four types of supervised datasets for electric control business (code compliance audit, EMC anomaly assessment, electric control fault tracing, and functional safety audit) with manual annotation; the output consists of the optimized LoRA intermediate weights adapted to multiple electric control business scenarios.
[0087] Training rounds and hardware time consumption: The fixed preset training rounds are 25 rounds, and the training time for a single stage is about 22 hours with the same hardware configuration.
[0088] Training termination criteria: Training can be terminated if the minimum number of training epochs is ≥15 and any convergence condition is met. ① The overall accuracy of the full-domain electronic control task has improved by less than 0.2% for five consecutive rounds.
[0089] ② The accuracy rates of all four sub-categories of business tasks have reached the baseline thresholds (code audit ≥90%, EMC assessment ≥88%, fault tracing ≥85%, security audit ≥86%).
[0090] (5) Loss Function (Uncertainty-Weighted Multi-Task Loss): To address the uneven distribution of samples across the four business categories and the imbalance in training weights, an adaptive weighting based on task uncertainty is introduced to automatically balance the training gradients across multiple tasks. The formula is as follows: ; in, These correspond to four types of electronic control services. For single-task cross-entropy loss, for The learnable uncertainty parameters for different tasks are updated adaptively during training, avoiding training dominated by a single task and preventing underfitting of small sample tasks.
[0091] (6) Third-order Safe-RLHF dual-preference alignment: Training input and output: The input consists of the LoRA intermediate weights after second-order fine-tuning convergence, the frozen base weights, and the expert preference ranking dataset for electronic control safety (containing positive and negative sample pairs for usability and safety); the output consists of the final commercial LoRA weights conforming to the ISO26262 and MISRA-C automotive standards, completing the model's safety compliance alignment.
[0092] Training rounds and hardware time consumption: The fixed preset training rounds are 18 rounds. The training time for each stage is about 15 hours with the same hardware configuration. The total training time for the entire three-stage process is about 65 hours.
[0093] Training termination criteria: Minimum number of training epochs ≥ 10, and simultaneous satisfaction of the core convergence condition: ① The average reward value favored by experts has increased by less than 0.02 for five consecutive rounds.
[0094] ② The pass rate for automotive-grade compliant output of the model is ≥95%.
[0095] ③ Domain perplexity PPL≤20, reaching the threshold for commercial indicators.
[0096] Dual-reward model construction method: A parameter-efficient architecture of "shared backbone network + dual independent reward heads" is adopted. A multimodal model with second-order supervised fine-tuning convergence is used as the reward model backbone. All parameters of the backbone are frozen, and two independent linear reward output heads for usefulness and safety are added only at the top level of the model, outputting scalar reward scores for their respective dimensions. The usefulness dimension covers four evaluation dimensions: accuracy of judgment conclusions, completeness of logical links, feasibility of fault tracing, and comprehensiveness of information coverage. The safety dimension covers four evaluation dimensions: MISRA-C / ISO26262 compliance, rigor of conclusion expression, recommendations for no violations, and sufficiency of risk warnings. The final total reward score is weighted and fused with a usefulness weight of 0.4 and a safety weight of 0.6, highlighting the design principle of prioritizing safety in automotive-grade scenarios.
[0097] Source and Division of Preference Dataset: Currently, there is no publicly available multimodal preference dataset for vehicle electronic control safety. This application uses a self-built expert-annotated preference dataset, derived from the 120,000-item structured multimodal electronic control dataset constructed in this application. Typical problem samples are randomly sampled from four types of electronic control business datasets. For each problem, 3-5 candidate output results are generated through multi-temperature sampling and different decoding strategies. Experts in electronic control safety with more than 5 years of experience are used to annotate the preferences in pairs according to the dual dimensions of usefulness and safety. The dataset contains a total of 12,000 pairs of dual-dimensional preference samples, randomly divided according to the ratio of training set:validation set:test set = 7:2:1: 8,400 sets for the training set, used for iterative updates of reward model parameters; 2,400 sets for training early stop judgment and hyperparameter tuning; and 1,200 sets for the test set, used for final reward model performance verification. The annotation process adopts a quality control mechanism of double-expert back-to-back annotation + senior expert arbitration, with an annotation consistency rate of ≥92%, ensuring the reliability and professionalism of the preference data.
[0098] Loss function: It consists of two parts: training loss for the dual-reward model and fine-tuning loss for the PPO policy. ① Reward model ranking loss: Using positive and negative sample ranking constraints, it fits expert preferences, and the formula is: ; in, To select compliant output samples for experts. These are low-quality, non-standard output samples. The reward score is calculated based on a single dimension, while the final total reward incorporates both dimensions. Emphasis is placed on security and compliance.
[0099] ②PPO strategy fine-tuning loss: Add KL divergence constraints to avoid model training breakdown and deviation from the original domain capabilities. The formula is: ; in, To prune the loss in the strategy, limit the magnitude of parameter updates; The loss function is used to fit the state reward value; A divergence penalty is applied to the old and new strategies to ensure smooth convergence during model training.
[0100] (6) Actual landing results: After completing the fine-tuning of the entire process, the system was tested on the vehicle manufacturer's electronic control compliance assessment platform: the overall accuracy of the full-domain electronic control task was 87.2%, and the domain perplexity PPL was 17.6; among them, the accuracy of MISRA code violation identification was 92.7%, the F1 value of EMC anomaly detection was 91.1%, and the accuracy of fault tracing was 89.3%, all of which met the predetermined indicators; the peak memory usage during the fine-tuning process was 19.2GB, and no expansion of computing power was required, with training completed on a single card.
[0101] (7) Ablation verification experiment: To verify the technical contributions of dynamic weighted fusion, differentiated low-rank adaptation, and safety preference alignment, the following ablation experiments were conducted in this embodiment, as shown in Table 2: Table 2 Comparison of Ablation Experiment Results
[0102] Ablation experiments demonstrate that the three core modules are indispensable: dynamic attention, differentiated LoRA, and automotive-grade preference alignment work together to ensure the model meets performance standards. The complete architecture provided in this application achieves an overall accuracy of 87.2% in the global electronic control task, with a domain perplexity PPL of 17.6. Among them, the accuracy of MISRA code violation identification is 92.7%, the F1 score of EMC anomaly detection is 91.1%, and the accuracy of fault tracing is 89.3%, which is more than 30% higher than the accuracy of traditional fine-tuning modal analysis, meeting the accuracy requirements of automakers' compliance audits.
[0103] This application also provides an application scenario in which the above-mentioned efficient fine-tuning method for the parameters of the multimodal vertical large model of vehicle electronic control safety is applied. Specifically, the efficient fine-tuning method for the parameters of the multimodal vertical large model of vehicle electronic control safety provided in this embodiment can be applied to the compliance assessment scenario of electronic control safety in intelligent connected vehicles. This scenario covers the code development stage, bench and vehicle testing stage, fault analysis stage, and compliance review stage in the entire life cycle of electronic control R&D; the heterogeneous electronic control data generated in each business stage enters the electronic control safety assessment platform, and obtains the corresponding compliance assessment conclusions through automated processing of the multimodal large model, and then enters the downstream internal audit of car manufacturers or the third-party testing and filing process. The efficient fine-tuning method for the parameters of the multimodal vertical large model of vehicle electronic control safety provided in this embodiment belongs to the intelligent assessment model construction stage in the compliance review stage. Specifically, in the process of processing heterogeneous electronic control data, compliance assessment of heterogeneous electronic control data can be carried out based on a combination of automated assessment and manual review using a multimodal large model. This provides assessment conclusions for code compliance auditing, EMC anomaly assessment, electronic control fault tracing, and functional safety auditing for electronic control systems in the vehicle power domain, chassis domain, body domain, intelligent driving domain, and the entire EMC electromagnetic compatibility domain.
[0104] In one exemplary embodiment, a computer device is provided, which may be a server or a terminal, and its internal structure diagram may be as follows. Figure 7As shown, this computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operating system and computer programs stored in the non-volatile storage media. The database stores specialized fine-tuning models for vehicle electronic control systems. The I / O interfaces facilitate information exchange between the processor and external devices. The communication interface allows communication with external terminals via a network connection. When executed by the processor, the computer program can implement an efficient fine-tuning method for the parameters of a large multimodal vehicle electronic control safety model.
[0105] Figure 7 The structures shown are merely block diagrams of some structures related to the present application and do not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than shown in the figures, or combine certain components, or have different component arrangements. In an exemplary embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.
[0106] In one exemplary embodiment, a computer-readable storage medium is provided storing a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.
[0107] In one exemplary embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.
[0108] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with relevant regulations and be authorized by the owner of the corresponding device.
[0109] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM).
[0110] The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0111] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0112] This document uses specific examples to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. Furthermore, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A vehicle-mounted electric control safety multi-modal vertical large model parameter efficient fine-tuning method, characterized in that, include: Obtain heterogeneous native data of vehicle electronic control system, and construct a structured multimodal dataset based on the heterogeneous native data of vehicle electronic control system; the structured multimodal dataset includes several modal data. Independent feature extractors are built for each type of modality data, and independent feature extraction is performed on the corresponding modality data through each independent feature extractor to obtain the feature vector of each modality; A dynamic weighted fusion module is constructed, and the feature vectors of each modality are weighted and fused through the dynamic weighted fusion module to obtain dynamic fused features; A gated filtering module is built, and the dynamic fusion features are subjected to electronic safety gated filtering through the gated filtering module to obtain compliant multimodal fusion features. Using a pre-trained multimodal large model as a base model, the backbone weights of the base model are frozen, and the compliant multimodal fusion features are used as inputs to the base model. Low-rank adaptation matrices are applied to the independent feature extractor, the dynamic weighted fusion module, and the base model respectively to obtain the model architecture to be fine-tuned; the rank parameters of each low-rank adaptation matrix are configured according to the corresponding modality. The structured multimodal dataset is input into the model architecture to be fine-tuned for end-to-end multi-level progressive training, and the parameters of each low-rank adaptation matrix are iteratively updated to obtain the specialized fine-tuning model for the electric control vertical category.
2. The vehicle-mounted electric control safety multi-modal vertical large model parameter efficient fine-tuning method according to claim 1, characterized in that, The heterogeneous native data of the vehicle electronic control system includes embedded control code, compliant design documents, closed-loop test reports, graded fault cases, and time-series waveform data. Based on the aforementioned heterogeneous native data of vehicle electronic control, a structured multimodal dataset is constructed, specifically including: The heterogeneous native data of the vehicle electronic control system is divided into code mode, text mode, and waveform mode according to the data format; the code mode includes embedded control code; the text mode includes compliant design documents, closed-loop test reports, and graded fault cases; the waveform mode includes time-series waveform data. The code modality is preprocessed using an abstract syntax tree (AST) to obtain an AST node sequence for binding compliance clauses. The text modality is normalized and anonymized using industry terminology to obtain normalized text data; Wavelet denoising and Gram angle field transformation are performed on the waveform modes to obtain two-dimensional feature maps and time-frequency features; From the AST node sequence of the bound compliance clauses, the normalized text data, and the time-frequency features, extract the AST code nodes, compliance document clauses, test feature points, fault levels, and EMC waveform extreme values as cross-modal mapping anchor points, respectively. Establish a one-to-one binding mapping relationship for the cross-modal mapping anchor points, and based on the one-to-one binding mapping relationship for the mapping anchor points, concatenate the modal data into a structured closed-loop sample with the fault scenario as the core; The structured closed-loop samples are sequentially subjected to automatic machine annotation, engineer business annotation, and double expert blind review to obtain annotated structured closed-loop samples. A structured multimodal dataset is then constructed based on the annotated structured closed-loop samples.
3. The vehicle-mounted electric control safety multi-modal vertical large model parameter efficient fine-tuning method according to claim 1, characterized in that, Independent feature extractors are built for each modality of data, and independent feature extraction is performed on the corresponding modality data through each of the independent feature extractors to obtain the feature vectors of each modality, specifically including: Build code modality extractors, text modality extractors, and waveform modality extractors; The code modality extractor performs abstract syntax tree node vector embedding on the AST node sequence of bound compliance clauses in the structured multimodal dataset to obtain code syntax feature vectors. The text modality extractor performs electronic term semantic embedding on the normalized text data in the structured multimodal dataset to obtain a text semantic feature vector; The waveform modality extractor extracts temporal features and image features from the two-dimensional feature map and time-frequency features in the structured multimodal dataset, respectively. The extracted temporal features and image features are then fused to obtain the waveform time-frequency feature vector.
4. The vehicle-mounted electric control safety multi-modal vertical large model parameter efficient fine-tuning method according to claim 1, characterized in that, A dynamic weighted fusion module is constructed, which performs weighted fusion on the feature vectors of each modality to obtain dynamically fused features, specifically including: Build a dynamic weighted fusion module; The current electronic control service type is obtained through the dynamic weighted fusion module, and the importance score of each modality feature vector is determined. The dynamic weighted fusion module determines the fusion weight of each mode based on the electronic control service type and the importance score of each mode feature vector. The dynamic weighted fusion module performs weighted fusion of the feature vectors of each modality based on the fusion weight of each modality to obtain dynamic fused features.
5. The vehicle-mounted electric control safety multi-modal vertical large model parameter efficient fine-tuning method according to claim 4, characterized in that, The current electrical control business types include code compliance audit, EMC anomaly analysis, electrical control fault tracing, and functional safety audit. In code compliance auditing, the fusion weight ratio of code modality, text modality, and waveform modality is 0.65:0.25:0.1; In EMC anomaly analysis, the fusion weight ratio of waveform mode, text mode, and code mode is 0.7:0.2:0.1; In the business of tracing the source of electrical control faults, the fusion weights of each mode are equally distributed; In functional safety auditing, the fusion weight ratio of text modality, code modality, and waveform modality is 0.6:0.3:0.
1.
6. The vehicle-mounted electric control safety multi-modal vertical large model parameter efficient fine-tuning method according to claim 4, characterized in that, The fusion weights for each mode are calculated using the following formula: ; wherein, is the fusion weight of the first modal, respectively corresponding to the code modal, the text modal and the waveform modal; is a Sigmoid activation function; is a business type vector, is a modal feature importance score; is a business type weight coefficient, is a feature importance weight coefficient, both of which are constraint parameters that can be iteratively updated in the electric control vertical scene.
7. The efficient fine-tuning method for parameters of a large multimodal vertical model of vehicle electronic control safety according to claim 1, characterized in that, A gated filtering module is constructed, and the dynamic fusion features are subjected to electronic control safety gated filtering through the gated filtering module to obtain compliant multimodal fusion features, specifically including: Build a gated filtering module; The gating and filtering module calculates the cosine similarity between the dynamic fusion features and the standard compliance feature vectors in the automotive compliance feature library to obtain the gating coefficients corresponding to each dynamic fusion feature dimension. Determine whether the gating coefficient of each dynamic fusion feature dimension is greater than a preset compliance similarity threshold to obtain a first judgment result; If the first judgment result is yes, then the corresponding feature dimension is retained; Otherwise, set the corresponding feature dimension to zero; The feature dimensions after the retention and zeroing processes are combined to obtain compliant multimodal fusion features.
8. The efficient fine-tuning method for parameters of a large multimodal vertical model of vehicle electronic control safety according to claim 1, characterized in that, The modalities include code modality, text modality, and waveform modality; each low-rank adaptation matrix is configured with rank parameters differently according to the corresponding modality, specifically including: The rank parameter of the low-rank adaptation matrix corresponding to the code modality is 16; The rank parameter of the low-rank adaptation matrix corresponding to the text modality is 8; The rank parameter of the low-rank adaptation matrix corresponding to the waveform mode is 32; The scaling factor of each low-rank adaptation matrix is twice the corresponding rank parameter.
9. The efficient fine-tuning method for parameters of a large multimodal vertical model of vehicle electronic control safety according to claim 1, characterized in that, The structured multimodal dataset is input into the model architecture to be fine-tuned for end-to-end multi-level progressive training, and the parameters of each low-rank adaptation matrix are iteratively updated to obtain the electric control vertical category-specific fine-tuning model, specifically including: The structured multimodal dataset is input into the model architecture to be fine-tuned, cross-modal feature alignment and domain semantic fitting are performed, and the parameters of each low-rank adaptation matrix are iteratively updated until the first preset convergence condition is met, so as to obtain the initial low-rank adaptation matrix parameters. Obtain structured multimodal dataset samples labeled with electrical control business task tags to obtain labeled samples for each electrical control business task; The labeled samples are input into the model architecture to be fine-tuned, and joint training of multiple electric control business tasks is performed. The parameters of each low-rank adaptation matrix are iteratively updated until the second preset convergence condition is met, and the optimized low-rank adaptation matrix parameters are obtained. Based on the optimized low-rank adaptation matrix parameters, the electric control safety preference dataset is input into the model architecture to be fine-tuned, preference optimization under safety constraints is performed, and the parameters of each low-rank adaptation matrix are iteratively updated until the third preset convergence condition is met, thus obtaining the electric control vertical category-specific fine-tuning model.
10. The efficient fine-tuning method for parameters of a large multimodal vertical model of vehicle electronic control safety according to claim 9, characterized in that, When performing cross-modal feature alignment and domain semantic fitting, a joint loss function of cross-modal contrastive loss and masked language model loss is adopted; when performing joint training of multiple electronic control business tasks, a task uncertainty weighted multi-task loss function is adopted; when performing preference optimization under safety constraints, a joint loss function constructed by reward model ranking loss, PPO policy pruning loss, value loss and KL divergence constraint is adopted.
