Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

342 results about "Correctness" patented technology

In theoretical computer science, correctness of an algorithm is asserted when it is said that the algorithm is correct with respect to a specification. Functional correctness refers to the input-output behavior of the algorithm (i.e., for each input it produces the expected output).

Multi-agent dynamic arrangement method based on multi-modal analysis and adaptive retrieval

The invention discloses a multi-agent dynamic arrangement method based on multi-modal analysis and adaptive retrieval, and relates to the technical field of artificial intelligence and information retrieval. Comprising the steps of S1, converting a text, an image, structured data and voice content input by a user into a unified multi-mode semantic representation, S2, converting the unified multi-mode semantic representation into a specific execution process, and S3, automatically scheduling a reasoning agent, a knowledge obtaining agent and an execution agent according to DAG nodes, task elements and available resources, and obtaining the task elements and the execution agent according to the reasoning agent, the knowledge obtaining agent and the execution agent. S4, after task process construction and agent arrangement are completed, dynamic retrieval, evidence convergence and strategy optimization are carried out on information requirements related to a user task, so that a reasoning agent obtains complete knowledge support with consistent context, and S5, knowledge evidence is combined with a task process, so that the task process is completed. The method comprises the following steps: step S6, implementing problem solving, strategy generation and task closed-loop execution through a reasoning agent, step S6, performing actual operation on a target task by an execution agent according to an executable instruction sequence output by the reasoning agent, and outputting a result, and step S7, performing result verification according to an output result returned by the execution agent, and the correctness, integrity and consistency of an output result are examined through rule verification, model evaluation and evidence alignment.
Owner:INSPUR GROUP CO LTD +1

Code processing method and code repair testing method

The embodiment of the invention provides a code processing method and a code repair testing method. The code processing method comprises the steps of obtaining a code problem of a target item; determining a problem code of the target project according to the code problem and a code knowledge graph of the target project; inputting the code problem and the problem code into a code processing model to obtain an initial repair code; and testing the initial repair code by utilizing the test code, and obtaining a target repair code of the code problem under the condition that the test is passed. The problem code is determined through the code knowledge graph, the structure and dependency relationship of the code of the target project are better understood, the accuracy of the problem code is improved, the code processing model is used for automatically repairing the code, efficient code processing is achieved, the test code is used for testing the initial repairing code, and the correctness of the target repairing code is ensured. The code maintenance cost is reduced, and the code processing efficiency is improved.
Owner:ALIBABA (CHINA) CO LTD

Programming knowledge tracking method fusing code and score information

The invention discloses a programming knowledge tracking method fusing codes and score information. The method comprises the following steps that historical programming behaviors of college students are expressed as historical coding events in an online judgment system OJ; inputting each programming problem in the student programming behavior data set into a problem representation module, and uniformly generating a problem representation containing knowledge points and difficulty information for each programming problem; the code representation module uses a pre-training technology to construct a supervised pre-training task to train the code representation module, and in the training process, codes submitted by college students, programming problems and problem representations of the programming problems are fused to generate enhanced code representations; inputting the problem representation and the enhanced code representation of the programming problem into a double-sequence modeling module, and performing final correctness prediction; according to the method, a supervised pre-training task is constructed by using a pre-training technology, score information and question-related information are further fused, and the representation ability of codes is enhanced.
Owner:JIANGXI NORMAL UNIV

Large model tool calling hierarchical dynamic optimization method and system based on reinforcement learning

The invention discloses a large model tool calling hierarchical dynamic optimization method and system based on reinforcement learning, and provides a model training mode based on a hierarchical decoupling architecture, which is characterized in that a reward mechanism is adjusted to form a format + tool calling correctness reward, so that the reward efficiency is improved. The correctness rewards are decomposed into three-level verification of names, parameters and values, and formats and correctness reward weights are dynamically adjusted in the training process; thus, the model realizes progressive training from basic structure learning to complex strategy optimization, the generalization ability of the model is enhanced, and fine-grained feedback in the training process is also realized, so that the model can perform gradient updating aiming at specific errors, and the accuracy of the model is improved. The problems of low training efficiency and poor model output accuracy in the traditional technology are avoided; therefore, according to the method, the generalization ability, the training efficiency and the output accuracy of the model are improved, so that the method is very suitable for large-scale application and popularization.
Owner:TIANFU JIANGXI LAB

Large language model training method and device

The embodiment of the invention provides a big language model training method and device, and aims to enable a big language model to have the capability of processing complex services and train the reasoning capability of the big language model. Training is carried out in two stages. In the first stage, a thinking chain is used as supervision fine tuning of a supervision signal, and in the process, the thinking chain can be determined by adopting generation, evaluation and correction modes of a fine-grained single action, so that the flexibility and depth of a reasoning path are improved. The second stage is a reinforcement learning stage, model rewards in the reinforcement learning process comprise correctness rewards and length rewards, the big language model is encouraged to generate a longer and reliable reasoning path, and reward abuse is avoided. According to the scheme, the processing reliability and accuracy of the large language model suitable for complex services can be improved.
Owner:FUDAN UNIVERSITY +1

LLM-based OpenCL program performance optimization method and system

The invention provides an LLM-based OpenCL program performance optimization method and system, relates to the technical field of computers, and solves the problems that when a traditional LLM generates and optimizes an OpenCL program, floating point precision errors may occur, and numerical values are unstable; in order to solve the problem that the optimization effect is poor due to the fact that factors such as the logic relation, data dependency and algorithm complexity of codes cannot be fully considered when a code optimization task is carried out, LLM (Large Language Model), a code abstract syntax tree (AST), a thinking chain technology and optimization of an OpenCL program are combined for use for the first time; according to the method, the capability of generating the high-performance OpenCL program by the LLM according to the original input code is effectively improved, and the correctness of the program codes in logic and grammar can be ensured.
Owner:GUANGHUA LINGANG ENG APPL & TECH R&D (SHANGHAI) CO LTD

Multi-round reasoning and feedback optimization method and system for industrial software codes

The invention belongs to but is not limited to the technical field of software development, and particularly relates to a multi-round reasoning and feedback optimization method and system for industrial software codes, and the method comprises the steps: S1, vector code library establishment: the establishment of a vector code library is composed of three parts of feedback establishment, vector database establishment and format summarization; s2, code reasoning optimization: the code reasoning optimization mainly comprises four aspects: control flow graph analysis, multi-query generation and reciprocal ranking fusion retrieval, reasoning generation subtask and code chain submodule generation, and code combination completion; and S3, feedback optimization: the feedback optimization is composed of score feedback optimization and log feedback optimization. According to the method, an automatic verification mechanism is introduced, logic consistency check and performance evaluation are carried out on the generated and optimized codes, and the correctness and execution efficiency of the codes are ensured. The verification mechanism can find and correct errors in real time in each stage of generation, so that the cost of manual verification is reduced, and the development efficiency is improved.
Owner:GUANGDONG UNIV OF PETROCHEMICAL TECH

Method and system for generating and optimizing CUDA (Compute Unified Device Architecture) code based on multi-dimensional feature search and enhancement

The invention provides a CUDA code generation and optimization method and system for multi-dimensional feature search and enhancement, and the method comprises the steps: generating an initial CUDA code through a large language model based on task description and GPU hardware parameters; executing triple verification and a feedback mechanism on the initial CUDA code; according to feedback information of triple verification, optimizing CUDA codes through multi-dimensional feature search; based on error information, adjusting large language model input to regenerate codes; dynamically selecting an optimization strategy based on a performance index, wherein the optimization strategy comprises a thread block size and a memory access mode; and iteratively executing the steps until the CUDA code which passes triple verification and meets the target performance is generated. According to the method, the code features of the CUDA code are analyzed, and a triple verification and feedback mechanism including compilation feasibility, logic correctness and performance during execution is formed, so that an automatic evaluation process of the CUDA code is realized, and the problems that the CUDA code optimization process is difficult to be automated and an optimization target is lacked in the CUDA code optimization process are solved.
Owner:SHANGHAI JIAOTONG UNIV

Large model active tool calling method and system based on multi-step reasoning

The invention provides a large model active tool calling method and system based on multi-step reasoning, and relates to the technical field of artificial intelligence, and the method comprises the steps: collecting tool information, generating a structured tool description set, automatically generating an executable code sample and corresponding natural language explanation based on the tool description set, and constructing a reverse training data set; the method comprises the following steps of: marking tool use necessity tags in a real problem, prompting a large model to generate a multi-step reasoning path combined with a natural language and codes, verifying and filtering the correctness of the reasoning path, and constructing a forward training data set; and performing three-stage training on the large model based on the reverse training data set and the forward training data set. According to the method, the problem that the active tool calling capability of a large model is insufficient is solved, and the code execution rate and problem solving efficiency of a complex reasoning task are improved.
Owner:李俊涛

Large model combination system across knowledge field

The invention belongs to the technical field related to artificial intelligence, and discloses a cross-knowledge field large model combination system, which comprises a definition agent, a selection agent, a primary large model, at least two secondary large models and an inspection agent, the definition agent manages field keywords of all current large models, calls a main-level large model to check whether a field matched with the problem exists or not, and transmits a check result to the selection agent; the selection agent selects a large model according to an examination result; when an adaptive field does not exist, a main-level large model is called to process a question input by a user and generate an answer; when the adaptive field exists, calling a large model of the adaptive field to process the question of the user and generate an answer; and the checking agent checks correctness of answers generated by the large models and calls the corresponding large models to regenerate results when the answers do not meet requirements. Based on the system, a cross-knowledge-domain reasoning task can be completed in a low-cost, low-power-consumption and high-quality manner.
Owner:HUAZHONG UNIV OF SCI & TECH

Space-efficient zero-knowledge proving method based on streaming structure and inner product demonstration

The invention discloses a zero-knowledge proof method with space efficiency based on a streaming structure and inner product demonstration. The method comprises the following steps: converting a sent message into a multivariable polynomial represented by a Lagrange basis vector; performing constraint operation on the polynomial coefficient to convert the polynomial into a rank-1 constraint system (R1CS) circuit problem and constructing an index relationship; promising each row of the message matrix by a prover through a linear coding promise scheme; constructing tensor interactive speaking proof (IOP) to prove the correctness of the message through an interactive protocol; the tensor IOP is converted into a general point query IOP, and consistency and proximity check is carried out; the protocol is realized in a space-efficient form through a generation stream algorithm and a carry multiplication. According to the method, the credibility and the security are excellent, and the significant progress is made in the aspects of space and time overhead, so that the zero-knowledge proving scheme can keep the characteristics of high efficiency and security when facing the quantum computing attack.
Owner:JIANGSU UNIV

Constrained decoding for source code generation

A constrained decoding technique incorporates token constraints into a beam search at each time step of a decoding process in order to generate viable candidate sequences that are syntactically and semantically correct. The token constraints identify source code tokens or sequences of tokens that should appear in a candidate sequence. The token constraints are generated from checking whether a token predicted at each decoding step is feasible for a partial solution based on the production rules of the grammar of the programming language, the syntactic correctness of a partial sequence, and / or static type correctness.
Owner:MICROSOFT TECHNOLOGY LICENSING LLC

Method and device for adaptively adjusting test case

The embodiment of the invention provides a method for adaptively adjusting a test case. The method comprises the following steps: monitoring whether a code is changed or not; when it is monitored that the code changes, dividing a module to which the changed code belongs into a plurality of code change blocks, analyzing the code change blocks to obtain information of a test case corresponding to the code change blocks, and parameterizing the information of the test case to obtain new parameters of the test case; obtaining new parameters of the test case and original parameters of the test case, and updating the test case corresponding to the code change block according to the parameter change condition; and executing the updated test case. The corresponding test cases are automatically updated and executed in time after software changes, the correctness, stability, timeliness and effectiveness of testing are guaranteed, and efficiency, accuracy and real-time performance are improved.
Owner:紫金诚征信有限公司

Method and system for extracting and correcting names and positions in text based on large model

The invention discloses a method and a system for extracting and correcting a name and a position in a text based on a large model, belongs to the technical field of artificial intelligence, and aims to solve the technical problem of how to accurately extract and correct the name and the position in the text input by a user based on the large model so as to improve the correctness of the text. Comprising the following steps: compiling a prompt prompt word of a large model, and inputting an original text of which a name and a position need to be corrected into the large model through the prompt prompt word; the names and the positions in the original text are extracted through the large model, and original statements including the names, the positions and related to the names and the positions serve as retrieval results to be returned; comparing and correcting the name and the position in the retrieval result with the name and the position recorded in the database to obtain the correct name and the correct position; and on the basis of correct names and positions, performing overall replacement on original statements involved in a retrieval result.
Owner:SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD

Natural language question and answer framework, method and device based on self-reflection

The invention relates to the technical field of large language models, in particular to a natural language question and answer framework, method and device based on self-reflection, and can solve the problem that large language models LLMs (Language Models) such as ChatGPT and PaLM in the prior art show excellent performance in various language understanding and generation tasks to a certain extent, and the problem that the Language Models are difficult to understand and generate can be solved to a certain extent. However, the ability of the method in the aspects of complex reasoning and complex knowledge utilization is still lower than the human level. The framework comprises: a thinking chain module for receiving an input question, outputting a model thinking process according to the input question, and obtaining and outputting an answer at the end; the persuaser module firstly evaluates the correctness of the answer and the reasoning step, and outputs a corrected reasoning path to the responder module if an error exists in the reasoning step; and the answerer module is used for providing answers according to the corrected reasoning path and self-prompted question type information, and optimizing the output accuracy of the large model through repeated iteration.
Owner:SHENZHEN UNIV +1

Automatic program repairing method combining executable invariant and differential signal

The invention relates to the technical field of program repair, in particular to an executable invariant and differential signal combined automatic program repair method, which comprises the following steps of: receiving a to-be-repaired program and a test set, and calling a large language model to generate a plurality of candidate patches; forming an entry behavior specification list according to the repair intention description; generating a plurality of executable invariant assertions and injecting the executable invariant assertions into the target function or the calling point, and generating an invariant assertion injection record table; generating a test case covering the boundary condition and the abnormal scene based on the large language model; collecting an execution signal when the candidate patch is operated; converting the patch difference into semantic editing features, calculating an editing stability index, and calculating an overall semantic consistency score of the candidate patches according to the support degree of the standard bar; and calculating an overall comprehensive score of the candidate patches, and outputting an optimal patch according to the overall comprehensive score of the candidate patches. According to the method, the proportion of overfitting patches can be effectively reduced, the patch repairing accuracy is improved, the interpretability is high, and the universality is good.
Owner:SOUTH CHINA UNIV OF TECH

Training method of code generation model and code generation method and system

The invention provides a code generation model training method and a code generation method and system.The code generation model training method comprises the steps that a first training data set is obtained, the first training data set comprises a first data pair, and the first data pair comprises a first code problem sample and a first test case corresponding to the first code problem sample; inputting the first code question sample into a pre-trained basic network model to obtain a first prediction code answer corresponding to the first code question sample, and performing correctness verification on the first prediction code answer based on the first test case to obtain a first verification result, and performing reinforcement learning training on the basic network model according to the first verification result to obtain a code generation model. The basic network model is trained by combining the first verification result and reinforcement learning, so that the correctness and robustness of generating corresponding codes by the code generation model can be better improved. And the code capability of the code generation model is improved.
Owner:ALIPAY (HANGZHOU) INFORMATION TECH CO LTD

Text2SQL data set generation method based on dynamic difficulty adjustment

The invention discloses a Text2SQL (Structured Query Language) data set generation method based on dynamic difficulty adjustment. According to the method, a complexity quantification method is provided, and the complexity of SQL statements and Text texts is evaluated. A Text2SQL data set is generated based on a cue word generation template by using a large language model, and a dynamic constraint part is introduced into the cue word generation template. And performing complexity evaluation on data generated by the large language model through a complexity quantification method, comparing the data with preset difficulty target distribution, modifying dynamic constraints, and guiding the model to generate data conforming to expected target distribution. Meanwhile, a verification and correction template is also set, so that the execution correctness and semantic correctness of the generated data are ensured, the efficiency and quality of data set construction are improved, the diversity and pertinence of the data set are ensured, more comprehensive training data better fitting practical application is provided for the model, and the training efficiency is improved. And the generalization ability and the performance of the Text2SQL model in different scenes can be improved.
Owner:HANGZHOU DIANZI UNIV

Verification excitation automatic generation method and system based on backtracking thinking tree

The invention discloses an automatic verification excitation generation method based on a backtracking thinking tree, and the method comprises the steps: constructing a backtracking thinking tree frame based on a self-feedback mechanism based on a thinking tree for a to-be-verified processor function; under the backtracking thinking tree framework, decoupling a to-be-verified function from top to bottom through a large language model, and recursively decomposing the whole to-be-verified function into function points capable of being independently verified layer by layer through a tree structure; according to each function point, determining a normal function and a boundary of each function point, and for each function point, generating verification excitation layer by layer in a tree structure; after the verification excitation is generated, self-verification and self-backtracking are carried out layer by layer through a tree structure, and finally, the generated verification excitation is executed on the processor design to verify the correctness of the processor function. According to the method and the system, the function verification efficiency and the verification coverage rate of the processor are remarkably improved.
Owner:INST OF COMPUTING TECH CHINESE ACAD OF SCI

Method for constructing effectiveness verification architecture of capability evaluation index system based on grammar and semantic pragmatic

The invention provides a grammar semantic pragmatic-based capability evaluation index system validity verification architecture construction method, and relates to the technical field of equipment system test identification, and the method comprises the following steps: S1, building a three-level information model for evaluating index system validity; s2, establishing a three-level verification mechanism model for evaluating the effectiveness of the index system based on the three-level information model; and S3, introducing non-functional index verification of the index system into the three-level verification mechanism model to obtain an effectiveness verification architecture of the evaluation index system. According to the method, through detailed three-level verification, the correctness and reasonability of the evaluation index system in the aspects of structure, logic relation and performance can be ensured. The scientific verification process is beneficial to eliminating errors and ambiguity in evaluation and improving the reliability and accuracy of evaluation results.
Owner:DALIAN UNIV OF TECH

Automatic debugging system and method for numerical error of deep learning compiler

The invention discloses an automatic debugging system and method for deep learning compiler numerical errors, and the system comprises a model analysis module, a semantic matching module, a tracking module and a verification module, the analysis module receives and analyzes a defect model with compilation errors, carries out the extraction of the input of the defect model, sub-functions, and operators of each sub-function, and carries out the verification of the compilation errors. Constructing a symbolic calculation graph and an index table before and after optimization of the defect model; the semantic matching module performs hash processing on each node in the symbolic calculation graph, matches equivalent nodes before and after optimization by comparing the approximation degree of hash values between the nodes, and generates a matching relationship between the nodes and the equivalent nodes; the tracking module compares the data streams of the models before and after optimization according to the matching relationship, generates an error cumulant diagram by tracking the generation and propagation process of errors, and locates the modes causing the errors and compiler optimization transformation causing mode rewriting; and the inspection module inspects the correctness of the positioning result and finally outputs root information after inspection. According to the method, each computing node of the neural network model is quantified into a hash value capable of measuring the distance, compared with an existing positioning technology, the method can better adapt to the scene of a complex deep learning model, and compared with an incremental debugging technology, the error positioning speed and accuracy are remarkably improved.
Owner:SHANGHAI JIAOTONG UNIV

Method and device for generating reasoning result, medium and electronic equipment

The invention provides a reasoning result generation method and device, a computer storage medium and electronic equipment, and relates to the technical field of artificial intelligence. Comprising the steps of obtaining a to-be-reasoned problem, generating a reasoning example set composed of a target number of reasoning examples corresponding to the to-be-reasoned problem, inputting the to-be-reasoned problem and the reasoning example set into a preset large language model, and enabling the large language model to perform reasoning answering on the to-be-reasoned problem based on each reasoning example in the reasoning example set, obtaining a first reasoning result corresponding to the to-be-reasoned problem; based on a large language model, determining a target reasoning problem matched with the first reasoning result; and searching the target reasoning problem through a search engine, and correcting the first reasoning result according to a search result to obtain a corrected second reasoning result. The generation of inaccurate reasoning results of the model can be reduced, and the fact correctness is improved, so that the model performance is improved, the credibility and effectiveness of the application are improved, and the credibility of the user is improved.
Owner:CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER +1

Intelligent question answering method and system based on multi-model collaboration

The invention discloses an intelligent question answering method and system based on multi-model collaboration. The method comprises the following steps: S1, preprocessing a question text input by a user; s2, performing collaborative reasoning on the preprocessed text through large-scale language models, and generating candidate answers by utilizing complementarity among the large-scale language models; s3, a question type is judged based on a semantic classification and rule feature combined judgment method; s4, when the question type is closed, counting the number of votes supported by the large language model of the candidate answers through a confidence-based dynamic voting method, and taking the candidate answer with the highest number of votes as a final answer; when the question type is open, screening the candidate answers through a consistency quantitative evaluation method and outputting a final answer; and S5, dynamically adjusting the weight of the large language model based on the correctness data of the output final answer, and optimizing the collaborative reasoning ability of the large language model, thereby effectively improving the efficiency and precision of outputting question and answer results by multiple models.
Owner:SHENZHEN SED WIRELESS COMM TECH

Algorithm test method, device and system for security chip

The invention provides an algorithm test method, device and system for a security chip, and belongs to the technical field of computers. The method comprises the following steps: in response to an algorithm test parameter configuration instruction, obtaining an algorithm test parameter of a to-be-tested security chip; generating test data matched with the algorithm test parameters; sending the test data and the algorithm test parameter to the to-be-tested security chip, and receiving a first test result of the to-be-tested security chip executing an algorithm test based on the test data and the algorithm test parameter; determining a target test subject matched with the algorithm type from an algorithm library and a national secret qualification card, and obtaining a second test result obtained by executing an algorithm test by the target test subject based on the test data and the algorithm test parameters; and determining an algorithm test result based on a comparison result of the first test result and the second test result. According to the algorithm testing method, the problems that the number of tested algorithm types is small, the coverage rate of the tested algorithm types is low, and the correctness of a testing result cannot be guaranteed in an existing algorithm testing method for the security chip are solved.
Owner:BEIJING SMARTCHIP MICROELECTRONICS TECHNOLOGY CO LTD +1

Model training method and device, electronic equipment and storage medium

The embodiment of the invention discloses a model training method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining sample data sets of a plurality of training stages, and carrying out the sorting of the plurality of training stages according to the training difficulty of the sample data sets from easy to difficult; in each training stage, training the initial model based on the sample data set to obtain a training model; inputting the sample data set into a training model for multi-round reasoning to obtain a plurality of reasoning results output by the training model in each round of reasoning, determining positive and negative samples in the plurality of reasoning results based on the correctness of each reasoning result, and optimizing the training model based on the positive and negative samples; reinforcement learning is carried out on the optimized training model to obtain a target model, and the target model is used as an initial model of the next training stage until the multiple training stages are finished; according to the embodiment of the invention, the model reasoning accuracy can be improved.
Owner:TENCENT TECHNOLOGY (SHENZHEN) CO LTD

Constrained decoding for source code generation

A constrained decoding technique incorporates token constraints into a beam search at each time step of a decoding process in order to generate viable candidate sequences that are syntactically and semantically correct. The token constraints identify source code tokens or sequences of tokens that should appear in a candidate sequence. The token constraints are generated from checking whether a token predicted at each decoding step is feasible for a partial solution based on the production rules of the grammar of the programming language, the syntactic correctness of a partial sequence, and / or static type correctness.
Owner:MICROSOFT TECHNOLOGY LICENSING LLC

Quality detection method and device of model instruction, equipment and storage medium

ActiveCN118643307AAvoid the problem of low quality inspection efficiencyAvoid quality misjudgmentsSemantic analysisSoftware engineeringMediaFLO
The invention discloses a quality detection method and device for a model instruction, equipment and a storage medium, and the method comprises the steps: obtaining the attribute information of a to-be-detected target model instruction, detecting the reference performance of the target model instruction according to the attribute information of the target model instruction, and obtaining a first detection result, the reference performance is used for influencing the correctness of the media model executing the media data processing task based on the target model instruction; calling a media model to execute a media data processing task on the media data sample based on the target model instruction to obtain an actual task execution result; based on the actual task execution result, detecting the task execution accuracy of the target model instruction on the media model to obtain a second detection result; and generating quality information of the target model instruction based on the first detection result and the second detection result. According to the method and the device, the quality of the model instruction can be automatically detected, and the accuracy and the efficiency of instruction quality detection are improved.
Owner:TENCENT TECHNOLOGY (SHENZHEN) CO LTD

Large model code translation method and device fusing code functions and styles

The invention provides a large model code translation method and device fusing code functions and styles, and relates to the technical field of natural language processing. The method comprises the steps that code pairs composed of source codes and target codes are obtained from an online programming platform, the code pairs are processed according to similarity retrieval, fine granularity scoring and difference testing, and a function consistency data set is constructed; performing functional learning training on the large model according to the functional consistency data set and an instruction fine tuning method to obtain a large model subjected to functional learning training; obtaining a source code, generating positive sample translation and negative sample translation of the source code, and constructing a style-oriented data set; and according to the style-oriented data set, style learning training is carried out on the large model subjected to function learning training, and a trained code translation large model is obtained. According to the method, a low-cost and high-efficiency code translation model is developed around a large-scale language model, and the correctness and readability of translated codes are enhanced.
Owner:HARBIN INSTITUTE OF TECHNOLOGY (SHENZHEN) (INSTITUTE OF SCIENCE AND TECHNOLOGY INNOVATION HARBIN INSTITUTE OF TECHNOLOGY SHENZHEN)

ML-DSA module reduction method and device based on improved Barrett reduction

The invention provides an ML-DSA module reduction method and device based on improved Barrett reduction, and the method comprises the steps: dividing an input signal into a first preset bit signal and a second preset bit signal according to the bit width, and carrying out the shift addition operation of the first preset bit signal, so as to generate a middle quotient value; generating a first preset bit remainder based on the intermediate value; performing splicing processing on the first preset bit remainder and the second preset bit signal to generate an intermediate remainder; and performing a correction operation on the intermediate remainder to output a remainder result. According to the operation method, an input signal is processed in a high-order mode and a low-order mode, and the bit width participating in multiplication and shifting operation is reduced; according to the method, a precomputation constant is optimized, the number of times of addition is reduced, and wide bit operation in a critical path is eliminated by means of segmentation processing and register insertion, so that the critical path is shortened, and the maximum operation frequency of a system clock is improved; and through error analysis and range limitation, the correctness of a module reduction result is ensured.
Owner:NANJING UNIV

Excel data verification and import method, system and equipment based on python language and medium

The invention discloses a python language-based Excel data verification and import method, system and device and a medium, and the method comprises the following steps: S1, obtaining an Excel file, and obtaining a corresponding import parameter; s2, reading the data of the Excel file; and storing the data in a memory. S3, verifying the data of the Excel file; and verifying each row of data one by one by utilizing a rule engine technology, and recording a verification result in a log. And if the data verification is not passed, displaying corresponding error prompt information. And S4, processing a verification result, if verification is qualified, storing Excel file data into a specified database or data table, and in the storage process, enabling fields in the data table to correspond to columns in the Excel file by a system according to a field mapping relationship set by a user, so as to ensure the correctness and integrity of the data. If the verification result is not qualified, the data of the Excel file is wrongly recorded. The method has the advantage that the efficiency and the accuracy of Excel file data processing are improved.
Owner:INSPUR FINANCIAL INFORMATION TECHNOLOGY CO LTD