Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7551970B2 - Artificial intelligence model updating method, apparatus, electronic device and storage medium - Google Patents
[go: Go Back, main page]

JP7551970B2 - Artificial intelligence model updating method, apparatus, electronic device and storage medium - Google Patents

Artificial intelligence model updating method, apparatus, electronic device and storage medium Download PDF

Info

Publication number
JP7551970B2
JP7551970B2 JP2023002287A JP2023002287A JP7551970B2 JP 7551970 B2 JP7551970 B2 JP 7551970B2 JP 2023002287 A JP2023002287 A JP 2023002287A JP 2023002287 A JP2023002287 A JP 2023002287A JP 7551970 B2 JP7551970 B2 JP 7551970B2
Authority
JP
Japan
Prior art keywords
model
processed
updating
update
artificial intelligence
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2023002287A
Other languages
Japanese (ja)
Other versions
JP2024002884A (en
Inventor
ワン、ファン
バオ、シキ
ウ、フア
ニウ、ゼンユ
ヘ、ジンジョウ
ワン、ハイフェン
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Publication of JP2024002884A publication Critical patent/JP2024002884A/en
Application granted granted Critical
Publication of JP7551970B2 publication Critical patent/JP7551970B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/082Learning methods modifying the architecture, e.g. adding, deleting or silencing nodes or connections
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3329Natural language query formulation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/06Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons
    • G06N3/061Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons using biological neurons, e.g. biological neurons connected to an integrated circuit
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Mathematical Physics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • Molecular Biology (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Evolutionary Computation (AREA)
  • Neurology (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Human Computer Interaction (AREA)
  • Databases & Information Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Machine Translation (AREA)

Description

本開示は、人工知能技術の分野に関し、特にディープラーニング及び自然言語処理などの分野における人工知能モデル更新方法、装置、電子デバイス及び記憶媒体に関する。 The present disclosure relates to the field of artificial intelligence technology, and in particular to methods, apparatus, electronic devices, and storage media for updating artificial intelligence models in fields such as deep learning and natural language processing.

技術の発展に伴い、訓練で得られたディープラーニングモデルは、画像分類モデルを用いて画像を分類したり、感情認識モデルを用いてテキスト文を感情認識したりするなど、さまざまな場面で活用されるようになってきている。モデルのパフォーマンスを向上させるために、既存のモデルを最適化するなど、モデルを更新できる。 As technology advances, deep learning models obtained through training are being used in a variety of situations, such as classifying images using an image classification model or recognizing emotions in text sentences using an emotion recognition model. To improve the performance of a model, it is possible to update the model, for example by optimizing an existing model.

本開示は、人工知能モデル更新方法、装置、電子機器及び記憶媒体を提供する。 The present disclosure provides an artificial intelligence model updating method, device, electronic device, and storage medium.

対話システムがユーザと自然なインタラクションを行って、いずれか一つの訓練サンプルに対して行われたM(Mは1より大きい正整数である)回の対話内容を含むインタラクション内容を取得し、前記対話システムが前記訓練サンプルに対する前記ユーザとの対話が終了したと判定されたことに応答して、前記インタラクション内容に基づいて処理すべきモデルの更新ルールを決定し、前記更新ルールを利用して前記処理すべきモデルを更新することを含む人工知能モデル更新方法が提供される。 An artificial intelligence model updating method is provided, which includes a dialogue system having a natural interaction with a user, acquiring interaction content including M (M is a positive integer greater than 1) dialogue contents performed for any one training sample, determining an update rule for a model to be processed based on the interaction content in response to the dialogue system determining that the dialogue with the user for the training sample has ended, and updating the model to be processed using the update rule.

対話システムに適用され、インタラクションモジュールと第1更新モジュールとを備えており、前記インタラクションモジュールは、ユーザと自然なインタラクションを行って、いずれか一つの訓練サンプルに対して行われたM(Mは1より大きい正整数である)回の対話内容を含むインタラクション内容を取得し、前記第1更新モジュールは、前記訓練サンプルに対する前記ユーザとの対話が終了したと判定されたことに応答して、前記インタラクション内容に基づいて処理すべきモデルの更新ルールを決定し、前記更新ルールを利用して前記処理すべきモデルを更新する人工知能モデル更新装置が提供される。 An artificial intelligence model updating device is provided that is applied to a dialogue system and includes an interaction module and a first update module, in which the interaction module naturally interacts with a user to obtain interaction content including M (M is a positive integer greater than 1) dialogue contents performed for any one training sample, and the first update module determines an update rule for a model to be processed based on the interaction content in response to determining that the dialogue with the user for the training sample has ended, and updates the model to be processed using the update rule.

少なくとも1つのプロセッサと、前記少なくとも1つのプロセッサと通信可能に接続されたメモリとを備え、前記メモリに前記少なくとも1つのプロセッサにより実行可能なコマンドが記憶され、前記コマンドが前記少なくとも1つのプロセッサにより実行されると、前記少なくとも1つのプロセッサに前記方法を実行させる電子デバイスが提供される。 An electronic device is provided that includes at least one processor and a memory communicatively connected to the at least one processor, the memory storing commands executable by the at least one processor, and causing the at least one processor to execute the method when the commands are executed by the at least one processor.

コンピュータに前記方法を実行させるためのコンピュータコマンドを記憶した非一時的なコンピュータ可読記憶媒体が提供される。 A non-transitory computer-readable storage medium is provided that stores computer commands for causing a computer to execute the method.

プロセッサにより実行されると、前記方法を実現するコンピュータプログラム/コマンドを含むコンピュータプログラム製品が提供される。 A computer program product is provided that includes computer programs/commands that, when executed by a processor, implement the method.

理解すべきなのは、本セクションで説明される内容は、本開示の実施形態の重要な又は肝心な特徴を標識することでもなく、本開示の範囲を制限することでもない。本開示の他の特徴は、以下の明細書により容易に理解されるであろう。 It should be understood that the contents described in this section are not intended to identify key or essential features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will be readily understood from the following specification.

図面は、本技術案をより良く理解するためのものであり、本願に制限されない。図面において、
本開示に記載された人工知能モデル更新方法の実施形態のフローチャートである。 本開示に記載された対話システム及び処理すべきモデルが2つの独立したモデルである場合の実施形態の概略図である。 本開示に記載された対話システム及び処理すべきモデルが同一のモデルに統合される場合の実施形態の概略図である。 本開示に記載された人工知能モデル更新装置の第1実施形態400の構成の概略図である。 本開示に記載された人工知能モデル更新装置の第2実施形態500の構成の概略図である。 本開示の実施形態を実施可能な電子デバイス600の概略的なブロック図である。
The drawings are for better understanding of the present technical solution and are not intended to limit the present application.
1 is a flow chart of an embodiment of an artificial intelligence model updating method described in the present disclosure. FIG. 1 is a schematic diagram of an embodiment of the dialogue system described in the present disclosure and where the model to be processed is two independent models. FIG. 1 is a schematic diagram of an embodiment in which the dialogue system described in the present disclosure and the model to be processed are integrated into the same model. FIG. 4 is a schematic diagram of the configuration of a first embodiment 400 of an artificial intelligence model updating apparatus described in the present disclosure. FIG. 5 is a schematic diagram of the configuration of a second embodiment 500 of an artificial intelligence model updating apparatus described in the present disclosure. FIG. 6 is a schematic block diagram of an electronic device 600 in which embodiments of the present disclosure can be implemented.

以下、図面に基づいて、本出願の例示的な実施例を説明する。理解を容易にするために、本出願の実施例の様々な詳細が含まれており、それらは単なる例示と見なされるべきである。従って、当業者は、本出願の範囲及び精神から逸脱することなく、本明細書に記載の実施形態に対して様々な変更及び修正を行うことができることを認識するはずである。同様に、簡明のために、以下の説明では、よく知られた機能と構造の説明は省略される。 The following describes exemplary embodiments of the present application based on the drawings. For ease of understanding, various details of the embodiments of the present application are included and should be considered as merely illustrative. Therefore, those skilled in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of simplicity, the following description omits descriptions of well-known functions and structures.

さらに、本明細書における用語「及び/又は」は、単に関連オブジェクトを記述する関連関係であり、3つの関係が存在し得ると意味する。例えば、A及び/又はBは、Aが単独で存在し、AとBが同時に存在し、Bが単独で存在するという三つの状況を意味することができる。また、本明細書における文字「/」は、一般的に前後の関連オブジェクトが「又は」の関係にあることを意味する。 Furthermore, the term "and/or" in this specification is simply a relational relationship describing related objects, and means that three relations can exist. For example, A and/or B can mean three situations: A exists alone, A and B exist simultaneously, and B exists alone. Also, the character "/" in this specification generally means that the related objects before and after it are in an "or" relationship.

図1は、本開示に記載された人工知能モデル更新方法の実施形態のフローチャートである。図1に示すように、以下の具体的な実現方式が含まれる。 Figure 1 is a flowchart of an embodiment of the artificial intelligence model update method described in this disclosure. As shown in Figure 1, the following specific implementation methods are included:

ステップ101において、対話システムは、ユーザと自然なインタラクションを行って、いずれか一つの訓練サンプルに対して行われたM回の対話内容を含むインタラクション内容を取得する。Mは1より大きい正整数である。 In step 101, the dialogue system performs natural interactions with the user to obtain interaction content including M dialogue contents performed for any one of the training samples. M is a positive integer greater than 1.

ステップ102において、対話システムは、前記訓練サンプルに対するユーザとの対話が終了したと判定されたことに応答して、インタラクション内容に基づいて処理すべきモデルの更新ルールを決定し、前記更新ルールを利用して処理すべきモデルを更新する。 In step 102, in response to determining that the dialogue with the user for the training sample has ended, the dialogue system determines an update rule for the model to be processed based on the interaction content, and updates the model to be processed using the update rule.

従来方式では、モデルを更新する必要がある場合、一般的に収集された訓練サンプルに基づいてモデルを更新する一方、上述した方法の実施形態に記載された技術案によれば、ユーザとの自然なインタラクションが可能となり、インタラクション内容に基づいて処理すべきモデルの更新ルールを決定し、さらに、更新ルールに基づいて処理すべきモデルを更新することが可能となり、即ちユーザが自然なインタラクションだけでモデルに対する更新の目的を実現でき、訓練サンプルの収集や標識などが不要となり、人的・時間的コストの削減と処理効率の向上を実現し、さらに、モデルの更新を行うことでモデルの性能の向上などが可能となる。 In conventional methods, when a model needs to be updated, it is generally updated based on collected training samples. However, according to the technical proposal described in the embodiment of the above-mentioned method, natural interaction with the user is possible, and the update rules for the model to be processed can be determined based on the content of the interaction, and the model to be processed can be updated based on the update rules. In other words, the user can achieve the purpose of updating the model through natural interaction alone, eliminating the need to collect and label training samples, reducing human and time costs and improving processing efficiency. Furthermore, updating the model can improve the model's performance.

上述した方法の実施形態に記載された技術案は、画像分類及び感情認識のような様々な場面に適用することができる。たとえば、画像分類の場面における画像分類モデルについて、上述した方法の実施形態に記載された技術案に従って画像分類モデルを更新可能であり、さらに更新された画像分類モデルを用いて画像分類を行うことができるため、分類結果の正確性が向上した。感情認識の場面における感情認識モデルについて、上述した方法の実施例に記載された技術案に従って感情認識モデルを更新可能であり、更に更新された感情認識モデルを利用して感情認識を行うことができるため、認識結果の正確性が向上した。 The technical solutions described in the embodiments of the above-mentioned method can be applied to various situations such as image classification and emotion recognition. For example, for an image classification model in an image classification situation, the image classification model can be updated according to the technical solutions described in the embodiments of the above-mentioned method, and image classification can be performed using the updated image classification model, thereby improving the accuracy of the classification result. For an emotion recognition model in an emotion recognition situation, the emotion recognition model can be updated according to the technical solutions described in the examples of the above-mentioned method, and emotion recognition can be performed using the updated emotion recognition model, thereby improving the accuracy of the recognition result.

実際の応用では、対話システムは、専門家等のようなユーザと自然なインタラクションを行ってインタラクション内容を取得し、インタラクション内容に基づいて、処理すべきモデルの更新ルールを決定することができる。 In practical applications, the dialogue system can naturally interact with a user, such as an expert, to obtain the interaction content, and then determine the update rules for the model to be processed based on the interaction content.

前記インタラクション内容は、いずれか一つの訓練サンプルに対して行われたM回の対話内容を含むことができる。Mは1より大きい正整数である。それに応じて、当該訓練サンプルに対するユーザとの対話が終了したと判定されたことに応答して前記更新ルールを生成することができる。 The interaction content may include M conversation contents performed for any one of the training samples, where M is a positive integer greater than 1. Accordingly, the update rule may be generated in response to determining that the conversation with the user for the training sample has ended.

前記インタラクション内容は、以下のように例示することができる。 Examples of the interaction content are as follows:

1)画像分類の場面
一セットの新しいデータにおける画像分類モデルによる効果が良くないと仮定すると、ユーザは次のように対話システムと自然なインタラクションを行うことができる。
ユーザ:「こんにちは、あなたの効果はこのピクチャでは良くないです」。同時にピクチャaのような対応するピクチャを添付する。
対話システム:「このピクチャについて、叶と茎の形から見るとポトスとすべてマッチしているため、私の分類はポトスです」。
ユーザ:「このピクチャは実際にオウゴンカズラです。金色のしま模様がありますから」。
対話システム:「オウゴンカズラというタイプは今まで接触したことがありませんが、ポトスの一種ですか?」。
ユーザ:「いいえ、ポトスに属しません」。
対話システム:「新しいタイプであるオウゴンカズラ、その特徴及びその金色のしま模様について記録しました。二度と同じ過ちを犯すことはありません」。
ユーザ:「次はこちらのピクチャです…」。
以上からわかるように、ピクチャaという訓練サンプルについて、ユーザは対話システムと複数回の対話を行っており、ピクチャaに対するユーザとの対話が終了したと判定された場合には、前記複数回の対話内容に基づいて更新ルールを生成することができる。
ここで、ユーザにより表現された「次はこちらのピクチャです...」によれば、ピクチャaに対するユーザとの対話が終了したことを判定することができる。
1) Image Classification Situation Suppose an image classification model performs poorly on a set of new data, then a user can naturally interact with the dialogue system as follows.
User: "Hello, your effect is not good in this picture." At the same time, attach the corresponding picture like picture a.
Dialogue system: "Looking at this picture, my classification is Pothos because the leaf and stem shapes all match those of a Pothos."
User: "This picture is actually a golden vine because it has gold stripes."
Dialogue system: "I've never come across a goldenrod before, is it a type of pothos?"
User: "No, it doesn't belong to the pothos."
Dialogue system: "I have documented a new type of goldenrod, its characteristics and its golden stripes. I will never make the same mistake again."
User: "Here's the next picture..."
As can be seen from the above, the user has multiple interactions with the dialogue system regarding the training sample picture a, and when it is determined that the dialogue with the user regarding picture a has ended, an update rule can be generated based on the content of the multiple interactions.
Here, according to the user's expression "Next is this picture...", it can be determined that the interaction with the user for picture a has ended.

2)感情認識の場面
この場面では、ユーザは次のように対話システムと自然なインタラクションを行うことができる。
ユーザ:「「この店は、行った人は皆知っています。見るとすぐに宵越しのご飯を吐き出してしまう」という言葉について、あなたが分類した感情はどうして「中性」になるのでしょうか?」。
対話システム:「「行った人は皆知っています」という言葉は60%がポジティブになると思いますが、後ろの「宵越しのご飯を吐き出してしまう」はネガティブのように見えるので、中性に分類しました」。
ユーザ:「違いますね。「宵越しのご飯を吐き出してしまう」は明らかにネガティブです。前の「行った人は皆知っています」は単独ではポジティブかネガティブかわかりませんが、後の言葉を合わせると明らかな批判になります」。
対話システム:「「行った人は皆知っています」の本当の意味は文脈に依存するという意味?」。
ユーザ:「そうですよね」。
対話システム:「覚えました。修正しました」。
以上からわかるように、「この店は、行った人は皆知っています。見るとすぐに宵越しのご飯を吐き出してしまう」という訓練サンプルについて、ユーザは対話システムと複数回の対話を行っており、当該訓練サンプルに対するユーザとの対話が終了したと判定された場合に、前記複数回の対話内容に基づいて更新ルールを生成することができる。
複数回の対話内容を組み合わせることにより、ユーザの発話した意味をよりよく理解することができるため、生成される更新規則の正確性を向上させることができる。
2) Emotion Recognition Situation In this scenario, the user can naturally interact with the dialogue system as follows:
User: "Why do you classify the emotion as "neutral" for the statement, "Everyone who has been to this restaurant knows it, and as soon as they see it, they spit out their overnight rice?"
Dialogue system: "I think the phrase 'Everyone who's been there knows' is 60% positive, but the part at the end, 'They spit out the rice they had left over from the night before', seems negative, so I classified it as neutral."
User: "No, that's not true. 'Spit out the rice you ate the night before' is clearly a negative thing. The previous sentence, 'Everyone who's been there knows', isn't clear on its own whether it's positive or negative, but when combined with the following words it becomes a clear criticism."
Dialogue system: "Does the true meaning of 'Everyone who's been there knows' depend on the context?"
User: "That's true."
Dialogue system: "I remembered. I fixed it."
As can be seen from the above, the user has multiple interactions with the dialogue system regarding the training sample, "Everyone who has been to this restaurant knows it. When they see it, they immediately spit out the overnight meal," and when it is determined that the dialogue with the user regarding the training sample has ended, an update rule can be generated based on the content of the multiple interactions.
By combining the contents of multiple conversations, the meaning of what the user said can be better understood, and the accuracy of the generated update rules can be improved.

さらに、取得された更新ルールを用いて、処理すべきモデルを更新することができる。本開示の一実施形態では、処理すべきモデルを更新することは、処理すべきモデルのニューロン状態及び/又はニューロン接続を更新することを意味することができる。つまり、更新ルールを利用して、処理すべきモデルのニューロンの状態及び/又は接続を直接に恒久的に変更することにより、モデル更新の効果を達成し、簡単かつ便利に実現することができる。 Furthermore, the obtained update rule can be used to update the model to be processed. In one embodiment of the present disclosure, updating the model to be processed can mean updating the neuron states and/or neuron connections of the model to be processed. That is, the update rule can be used to directly and permanently change the neuron states and/or connections of the model to be processed, thereby achieving the effect of model update, which can be realized simply and conveniently.

本開示の一実施形態では、いずれか一回の対話内容には、ユーザ入力内容と、ユーザ入力内容に対して生成された応答とがそれぞれ含まれて良い。ここで、前記応答は、取得された処理すべきモデルのニューロン状態及びニューロン接続情報に基づいて生成された応答を含んで良い。 In one embodiment of the present disclosure, each of the dialogue contents may include a user input content and a response generated in response to the user input content. Here, the response may include a response generated based on the acquired neuron state and neuron connection information of the model to be processed.

例えば、以下は一回の対話内容である。
ユーザ:「こんにちは、あなたの効果はこのピクチャでは良くないです」。同時にピクチャaのような対応するピクチャを添付する。
対話システム:「このピクチャについて、叶と茎の形から見るとポトスとすべてマッチしているため、私の分類はポトスです」。
ここで、「ユーザ」に対応する内容はユーザ入力内容であり、「対話システム」に対応する内容はユーザ入力内容に対して生成された応答であり、例えば取得された処理すべきモデルのニューロン状態やニューロン接続情報と合わせて、ピクチャの分類結果がポトスであることを判定し、それに応じて前記応答を生成することができる。
For example, the following is the content of one conversation:
User: "Hello, your effect is not good in this picture." At the same time, attach the corresponding picture like picture a.
Dialogue system: "Looking at this picture, my classification is Pothos because the leaf and stem shapes all match those of a Pothos."
Here, the content corresponding to the “user” is the user input content, and the content corresponding to the “dialogue system” is the response generated to the user input content. For example, in combination with the acquired neuron state and neuron connection information of the model to be processed, it is possible to determine that the classification result of the picture is pothos, and generate the response accordingly.

つまり、処理すべきモデルに状態読み取りを行ってそのニューロン状態及びニューロン接続情報を取得し、さらに前記情報に基づいてユーザ入力内容に応じた応答を正確に生成することが可能となり、対話の質の向上などを図ることができる。 In other words, it is possible to read the state of the model to be processed, obtain its neuron state and neuron connection information, and then accurately generate a response based on the user input based on that information, thereby improving the quality of the dialogue, etc.

実際の応用では、対話システムにエンコーダとデコーダを含めることができ、取得されたインタラクション内容に対して、エンコーダを用いて符号化などの処理を行って必要な更新ルールを得ることができる。また、デコーダを用いてユーザ入力内容に対する応答などを生成することができる。 In practical applications, a dialogue system can include an encoder and a decoder, and the encoder can be used to process the acquired interaction content, such as by encoding it, to obtain the necessary update rules. The decoder can also be used to generate responses to user input content.

前記更新ルールの具体的な形態は限定されない。例えば、上記の例の「オウゴンカズラ」をピクチャaのラベルとして、対応する目的関数や学習率などを同時に生成し、これらの情報を更新ルールとし、この更新ルールによりグラジエントバック方式を用いて処理すべきモデルのニューロン状態及び/又はニューロン接続を更新することができる。別の例として、処理すべきモデルにより読み込まれるように、ニューロン状態及び/又はニューロン接続の更新方式を直接に生成してメモリ(memory)に格納し、それに応じてニューロン状態及び/又はニューロン接続を更新する。 The specific form of the update rule is not limited. For example, the "Citrus sinensis" in the above example is used as the label of picture a, and corresponding objective functions, learning rates, etc. are simultaneously generated, and these pieces of information are used as update rules, which can be used to update the neuron states and/or neuron connections of the model to be processed using the gradient back method. As another example, an update method for the neuron states and/or neuron connections is directly generated and stored in memory to be read by the model to be processed, and the neuron states and/or neuron connections are updated accordingly.

実際の応用では、更新ルールにより、処理すべきモデルのニューロン状態のみを更新することも、処理すべきモデルのニューロン接続のみを更新することも可能であり、また、処理すべきモデルのニューロン状態とニューロン接続を同時に更新することも、実際の必要に応じて可能である。 In practical applications, the update rules can be used to update only the neuron states of the model to be processed, or only the neuron connections of the model to be processed, or to simultaneously update the neuron states and neuron connections of the model to be processed, depending on practical needs.

本開示の一実施形態では、対話システムは、処理すべきモデルの予測結果を取得し、前記予測結果に従って更新することができる。ここで、前記予測結果は、更新ルールを使用して更新された処理すべきモデルによって生成された前記訓練サンプルの予測結果である。 In one embodiment of the present disclosure, the dialogue system can obtain a prediction result of a model to be processed and update according to the prediction result, where the prediction result is a prediction result of the training sample generated by the model to be processed updated using an update rule.

前述したように、前記インタラクション内容は、いずれか一つの訓練サンプルに対して行われるM回の対話内容を含むことができる。従って、更新ルールを用いて処理すべきモデルを更新した後、更に更新された処理すべきモデルを用いて当該訓練サンプルを処理し、例えば前記ピクチャaに画像分類を行うことにより、予測結果、すなわちピクチャaの画像分類結果を得ることができる。それに応じて、対話システムは、この予測結果を取得し、この予測結果に基づいて、強化学習などの方式に基づいて対話システムの更新を行い、例えばエンコーダやデコーダの更新などを行うことができる。 As described above, the interaction content can include M conversation contents performed for any one training sample. Therefore, after updating the model to be processed using the update rule, the training sample is further processed using the updated model to be processed, and, for example, image classification is performed on the picture a, thereby obtaining a prediction result, i.e., the image classification result of the picture a. In response, the dialogue system obtains this prediction result, and based on this prediction result, updates the dialogue system based on a method such as reinforcement learning, for example, updating the encoder and decoder, etc.

依然としてピクチャaを例として、更新ルールを使用して処理すべきモデルを更新した後、理論的にはモデルの性能が向上するため、処理すべきモデルを用いてピクチャaを再予測すると、得られた予測結果は以前と異なる可能性がある。例えば、以前の予測結果はポトスである場合、再予測結果はポトスである可能性もあり、オウゴンカズラである可能性もある。もし再予測結果が依然としてポトスである場合に、生成された更新ルールは正確ではない可能性があることを示し、それに応じて対話システムを更新して、後続で生成された更新ルールの正確性を向上させることができる。 Still taking picture a as an example, after updating the model to be processed using the update rule, the model's performance will theoretically improve, so when re-predicting picture a using the model to be processed, the obtained prediction result may be different from before. For example, if the previous prediction result was pothos, the re-prediction result may be pothos or may be goldenrod. If the re-prediction result is still pothos, it indicates that the generated update rule may not be accurate, and the dialogue system can be updated accordingly to improve the accuracy of the subsequently generated update rule.

つまり、上記の処理により、対話システムの更新を実現し、すなわち対話システムの性能を向上可能であり、さらに対話システムに基づいて生成される更新ルールの正確性を向上し、それに応じてモデルの更新効果などを向上することができる。 In other words, the above processing makes it possible to update the dialogue system, i.e., improve the performance of the dialogue system, and further improve the accuracy of the update rules generated based on the dialogue system, thereby improving the effectiveness of model updates, etc.

本開示の一実施形態では、対話システム及び処理すべきモデルは、2つの独立したモデルであってもよく、同一のモデル内に統合されてもよい。具体的にどのような方法を採用するかは、実際の必要に応じて決定でき、非常に柔軟で便利である。 In one embodiment of the present disclosure, the dialogue system and the model to be processed may be two independent models, or may be integrated into the same model. The specific method to be adopted can be determined according to actual needs, which is very flexible and convenient.

図2は、本開示に記載された対話システム及び処理すべきモデルが2つの独立したモデルである場合の実現方式の概略図である。図2に示すように、対話システムには、エンコーダ及びデコーダが含まれてよい。対話システムは情報を受信し、即ち自然言語(例えば、ユーザが入力した文字)、ピクチャ、音声などを含めるユーザ入力内容を取得し、且つ情報を出力し、即ちユーザ入力内容に対する応答を生成してユーザと対話を行うことができる。ここでは、状態の読み取りにより、得られた処理すべきモデルのニューロン状態及びニューロン接続情報に基づいて応答を生成することができる。また、対話システムは、ユーザとの複数回の対話内容から更新ルールを生成し、更新ルールを用いて処理すべきモデルのニューロン状態及び/又はニューロン接続を更新することができる。さらに、更新された処理すべきモデルに複数回の対話内容に対応する訓練サンプルを入力して予測結果を得、予測結果を用いて対話システムを更新することもできる。 2 is a schematic diagram of the dialogue system described in the present disclosure and the implementation method when the model to be processed is two independent models. As shown in FIG. 2, the dialogue system may include an encoder and a decoder. The dialogue system receives information, i.e., obtains user input contents including natural language (e.g., characters entered by the user), pictures, voice, etc., and outputs information, i.e., generates a response to the user input contents to dialogue with the user. Here, a response can be generated based on the neuron state and neuron connection information of the model to be processed obtained by reading the state. In addition, the dialogue system can generate an update rule from multiple dialogue contents with the user, and update the neuron state and/or neuron connection of the model to be processed using the update rule. In addition, a training sample corresponding to the multiple dialogue contents can be input into the updated model to be processed to obtain a prediction result, and the dialogue system can be updated using the prediction result.

上記の処理すべきモデルは、既に使用されている最適化すべきモデル、使用されていないが予めある程度の訓練を受けているモデル、訓練されていないモデルなど、任意のモデルであってもよい。 The model to be processed may be any model, such as a model to be optimized that is already in use, a model that has not been used but has been trained to some extent in advance, or an untrained model.

図3は、本開示に記載された対話システム及び処理すべきモデルが同一のモデル内に統合される場合の実現方式の概略図である。図2に示した方式と比較して、実現原理は同じであるが、対話システムと処理すべきモデルとの間の情報のやりとりがインプリシットであるのみである。また、図面を簡略化するために、「訓練サンプル」と「予測結果」は示されていない。 Figure 3 is a schematic diagram of an implementation method when the dialogue system described in this disclosure and the model to be processed are integrated into the same model. Compared to the method shown in Figure 2, the implementation principle is the same, but the information exchange between the dialogue system and the model to be processed is only implicit. Also, in order to simplify the drawing, "training samples" and "prediction results" are not shown.

なお、前述の方法の実施形態について、説明の簡素化のため、実施例を一連の動作の組み合わせとして表現したが、当業者であればわかるように、本出願による幾らかのステップは他の順序に従って又は同時に実行することができるため、本出願は記述された動作の順序に制限されない。次に、当業者は、明細書に記述された実施例はいずれも好ましい実施例に該当し、関連する動作及びモジュールは必ずしも本出願によって必要とされないことを理解すべきである。 Note that, for the sake of simplicity, the embodiments of the above-mentioned methods are expressed as a combination of a series of operations. However, as will be appreciated by those skilled in the art, some steps of the present application can be performed in other orders or simultaneously, and therefore the present application is not limited to the order of operations described. Next, those skilled in the art should understand that any of the embodiments described in the specification are preferred embodiments, and related operations and modules are not necessarily required by the present application.

要するには、本開示の方法の実施形態に記載された技術案によれば、ユーザは、自然なインタラクションの方法だけでモデルを更新する目的を達成することができ、ひいてはモデルの性能を向上させることができる。更に、前記更新方法は、簡単で便利である、モデルが実際の変化及びニーズ等に迅速に適応するようにすることができる。 In short, according to the technical solution described in the embodiment of the method of the present disclosure, the user can achieve the purpose of updating the model only through natural interaction methods, and thus improve the performance of the model. Furthermore, the updating method is simple and convenient, and can allow the model to quickly adapt to actual changes and needs, etc.

以上は、方法の実施形態についての説明であり、以下では、装置の実施形態を介して、本開示に記載された技術案についてさらに説明する。 The above is a description of an embodiment of a method, and below, the technical solutions described in this disclosure will be further explained through an embodiment of an apparatus.

図4は、本開示に記載された人工知能モデル更新装置の第1実施形態400の構成図である。前記装置は、対話システムに適用することができる。図4に示すように、インタラクションモジュール401及び第1更新モジュール402を備える。 Figure 4 is a block diagram of a first embodiment 400 of an artificial intelligence model update device described in the present disclosure. The device can be applied to a dialogue system. As shown in Figure 4, it includes an interaction module 401 and a first update module 402.

インタラクションモジュール401は、ユーザと自然なインタラクションを行っていずれか一つの訓練サンプルに対して行われたM回の対話内容を含むインタラクション内容を取得する。Mは1より大きい正整数である。 The interaction module 401 acquires interaction content including M conversation contents performed for any one of the training samples by natural interaction with the user. M is a positive integer greater than 1.

第1更新モジュール402は、前記訓練サンプルに対するユーザとの対話が終了したと判定されたことに応答して、前記インタラクション内容に基づいて処理すべきモデルの更新ルールを決定し、前記更新ルールを利用して処理すべきモデルを更新する。 In response to determining that the interaction with the user for the training sample has ended, the first update module 402 determines an update rule for the model to be processed based on the content of the interaction, and updates the model to be processed using the update rule.

上述した装置の実施形態に記載された技術案によれば、ユーザとの自然なインタラクションが可能となり、インタラクション内容に基づいて処理すべきモデルの更新ルールを決定し、さらに、更新ルールに基づいて処理すべきモデルを更新することが可能となり、即ちユーザが自然なインタラクションだけでモデルに対する更新の目的を実現でき、訓練サンプルの収集や標識などが不要となり、人的・時間的コストの削減と処理効率の向上を実現し、さらに、モデルの更新を行うことでモデルの性能の向上などが可能となる。 The technical proposal described in the embodiment of the device described above enables natural interaction with the user, determines update rules for the model to be processed based on the content of the interaction, and further updates the model to be processed based on the update rules. In other words, the user can achieve the purpose of updating the model through natural interaction alone, and there is no need to collect or label training samples, thus reducing human and time costs and improving processing efficiency. Furthermore, model updates can improve model performance.

第1更新モジュール402は、取得された更新ルールを利用して処理すべきモデルを更新することができる。本開示の一実施形態では、処理すべきモデルを更新することは、処理すべきモデルのニューロン状態及び/又はニューロン接続を更新することを意味することができる。つまり、更新ルールを利用して、処理すべきモデルのニューロンの状態及び/又は接続を直接に恒久的に変更することにより、モデル更新の効果を達成することができる。 The first update module 402 can use the obtained update rule to update the model to be processed. In one embodiment of the present disclosure, updating the model to be processed can mean updating the neuron states and/or neuron connections of the model to be processed. That is, the update rule can be used to directly and permanently change the neuron states and/or connections of the model to be processed to achieve the effect of model update.

つまり、更新ルールにより、処理すべきモデルのニューロン状態のみを更新してもよく、処理すべきモデルのニューロン接続のみを更新してもよく、処理すべきモデルのニューロン状態とニューロン接続を同時に更新してもよく、実際の必要に応じて決定すれば良い。 In other words, the update rule may update only the neuron state of the model to be processed, or may update only the neuron connections of the model to be processed, or may update both the neuron state and the neuron connections of the model to be processed simultaneously, depending on the actual needs.

本開示の一実施形態では、いずれか一回の対話内容には、ユーザ入力内容と、ユーザ入力内容に対して生成された応答とがそれぞれ含まれて良い。ここで、前記応答は、取得された処理すべきモデルのニューロン状態及びニューロン接続情報に基づいて生成された応答を含んで良い。 In one embodiment of the present disclosure, each of the dialogue contents may include a user input content and a response generated in response to the user input content. Here, the response may include a response generated based on the acquired neuron state and neuron connection information of the model to be processed.

つまり、処理すべきモデルに対して状態の読み取りを行ってそのニューロン状態及びニューロン接続情報を取得し、さらに前記情報に基づいてユーザ入力内容に応じた応答を生成することができる。 In other words, the state of the model to be processed is read to obtain its neuron state and neuron connection information, and a response can be generated based on the information in response to user input.

図5は、本開示に記載された人工知能モデル更新装置の第2実施形態500の構成の概略図である。前記装置は、対話システムに適用することができる。図5に示すように、インタラクションモジュール401と、第1更新モジュール402と、第2更新モジュール403とを備える。 Figure 5 is a schematic diagram of the configuration of a second embodiment 500 of the artificial intelligence model updating device described in the present disclosure. The device can be applied to a dialogue system. As shown in Figure 5, it includes an interaction module 401, a first update module 402, and a second update module 403.

ここで、インタラクションモジュール401及び第1更新モジュール402は、図4に示された実施形態と同じであり、これ以上説明しない。 Here, the interaction module 401 and the first update module 402 are the same as in the embodiment shown in FIG. 4 and will not be described further.

第2更新モジュール403は、処理すべきモデルの予測結果を取得し、予測結果に従って対話システムを更新する。ここで、前記予測結果は、更新ルールを用いて更新された処理すべきモデルによって生成された前記訓練サンプルの予測結果である。 The second update module 403 obtains a prediction result of the model to be processed and updates the dialogue system according to the prediction result, where the prediction result is a prediction result of the training sample generated by the model to be processed updated using the update rule.

前述したように、前記インタラクション内容は、いずれか一つの訓練サンプルに対して行われるM回の対話内容を含むことができる。従って、更新ルールを用いて処理すべきモデルを更新した後、更に更新された処理すべきモデルを用いて当該訓練サンプルを処理し、例えば前記ピクチャaに画像分類を行うことにより、予測結果、すなわち画像aの画像分類結果を得ることもできる。それに応じて、第2更新モジュール403は、この予測結果を取得し、この予測結果に基づいて強化学習などの方式に従って対話システムを更新することができる。 As described above, the interaction content may include M dialogue contents performed for any one training sample. Therefore, after updating the model to be processed using the update rule, the training sample may be further processed using the updated model to be processed, and, for example, image classification may be performed on the picture a, thereby obtaining a prediction result, i.e., an image classification result for the image a. Accordingly, the second update module 403 may obtain the prediction result and update the dialogue system according to a method such as reinforcement learning based on the prediction result.

図4及び図5に示される装置の実施形態の具体的なワークフローは、前述の方法の実施形態における関連説明を参照することができ、これ以上説明しない。 The specific workflow of the device embodiment shown in Figures 4 and 5 can be referred to the relevant description in the method embodiment described above and will not be described further.

要するには、本開示の装置の実施形態に記載された技術案によれば、ユーザは、自然なインタラクションの方法だけでモデルを更新する目的を達成することができるため、モデルの性能を向上させることができる。更に、前記更新方法は、簡単で便利であるため、モデルが実際の変化及びニーズ等に迅速に適応するようにすることができる。 In short, according to the technical solution described in the embodiment of the device of the present disclosure, the user can achieve the purpose of updating the model only through natural interaction methods, so that the performance of the model can be improved. Moreover, the updating method is simple and convenient, so that the model can quickly adapt to actual changes and needs, etc.

本出願に記載された技術案は、人工知能の分野に適用することができ、特にディープラーニング及び自然言語処理等の分野に関する。人工知能は、コンピュータが人間の思考過程と知能行為(例えば学習、推理、思考、計画など)をシミュレートすることを研究する学科であり、ハードウェアレベルの技術とソフトウェアレベルの技術の両方がある。人工知能のハードウェア技術には、一般的に、例えばセンサ、専用人工知能チップ、クラウドコンピューティング、分散ストレージ、ビッグデータ処理等の技術が含まれる。人工知能のソフトウェア技術は、主にコンピュータビジョン技術、音声認識技術、自然言語処理技術及び機械学習/ディープラーニング、ビッグデータ処理技術、知識マップ技術等のいくつかの方向を含む。 The technical proposal described in this application can be applied to the field of artificial intelligence, especially to the fields of deep learning and natural language processing. Artificial intelligence is a discipline that studies how computers simulate human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), and includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing, etc. Artificial intelligence software technologies mainly include computer vision technology, voice recognition technology, natural language processing technology, and several directions such as machine learning/deep learning, big data processing technology, and knowledge map technology.

また、本開示の実施形態におけるインタラクション内容は、特定のユーザを対象としたものではなく、特定のユーザの個人情報を反映したものではない。また、本開示の方法の実施主体は、様々な開示、法令に準拠した方法で前記インタラクション内容を取得し、例えばユーザの許可を得てユーザ側から取得したりすることができる。 In addition, the interaction content in the embodiments of the present disclosure is not targeted to a specific user, and does not reflect personal information of a specific user. Furthermore, the implementer of the method of the present disclosure can obtain the interaction content in a manner that complies with various disclosure and laws and regulations, for example, by obtaining the content from the user with the user's permission.

本開示の技術案において、関わるユーザの個人情報の取得、記憶、応用、加工、伝送、提供及び配信等は、いずれも関連法律法規の規定に適合しており、公序良俗に反するものではない。 In the technical solution disclosed herein, the acquisition, storage, application, processing, transmission, provision and distribution of personal information of the users involved all comply with the provisions of relevant laws and regulations and are not contrary to public order and morals.

本開示の実施形態によれば、本開示は更に電子デバイス、可読記憶媒体、及びコンピュータプログラム製品を提供する。 According to embodiments of the present disclosure, the present disclosure further provides an electronic device, a readable storage medium, and a computer program product.

図6は、本開示の実施形態を実施するために使用され得る電子デバイス600の模式的なブロック図である。電子デバイスは、ラップトップ、デスクトップコンピュータ、ワークベンチ、サーバ、ブレードサーバ、大型コンピュータ、及び他の適切なコンピュータのような、様々な形態のデジタルコンピュータを表す。電子デバイスは更に、PDA、携帯電話、スマートフォン、ウェアラブルデバイス、及び他の同様のコンピューティングデバイスなどの様々な形態のモバイルデバイスを表すことができる。本明細書に示す構成要素、それらの接続及び関係、ならびにそれらの機能は、単なる一例であり、本明細書に記載及び/又は要求された本開示の実現を制限することではない。 FIG. 6 is a schematic block diagram of an electronic device 600 that may be used to implement embodiments of the present disclosure. The electronic device may represent various forms of digital computers, such as laptops, desktop computers, workbenches, servers, blade servers, mainframes, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as PDAs, mobile phones, smartphones, wearable devices, and other similar computing devices. The components, their connections and relationships, and their functions shown herein are merely examples and are not intended to limit the implementation of the present disclosure as described and/or claimed herein.

図6に示すように、デバイス600は、読み取り専用メモリ(ROM)602に記憶されたコンピュータプログラム、又は記憶手段608からランダムアクセスメモリ(RAM)603にロードされたコンピュータプログラムに従って、様々な適切な動作及び処理を実行することができる演算手段601を含む。RAM603には、デバイス600の動作に必要な各種のプログラムやデータが記憶されてもよい。演算手段601、ROM602及びRAM603は、バス604を介して接続されている。入出力(I/O)インターフェース605もバス604に接続されている。 As shown in FIG. 6, the device 600 includes a computing means 601 capable of performing various appropriate operations and processes according to a computer program stored in a read only memory (ROM) 602 or loaded from a storage means 608 into a random access memory (RAM) 603. The RAM 603 may store various programs and data necessary for the operation of the device 600. The computing means 601, the ROM 602, and the RAM 603 are connected via a bus 604. An input/output (I/O) interface 605 is also connected to the bus 604.

例えばキーボード、マウス等の入力手段606と、例えば様々なタイプのディスプレイ、スピーカ等の出力手段607と、例えば磁気ディスク、光ディスク等の記憶手段608と、例えばネットワークカード、モデム、無線通信トランシーバなどの通信手段609を含むデバイス600の複数の構成要素は、I/Oインターフェース605に接続される。通信手段609は、デバイス600が例えばインターネットのコンピュータネットワーク及び/又は様々な電気通信ネットワークを介して他のデバイスと情報/データを交換することを可能にする。 Several components of the device 600 are connected to the I/O interface 605, including input means 606, e.g., a keyboard, a mouse, etc., output means 607, e.g., various types of displays, speakers, etc., storage means 608, e.g., a magnetic disk, an optical disk, etc., and communication means 609, e.g., a network card, a modem, a wireless communication transceiver, etc. The communication means 609 allows the device 600 to exchange information/data with other devices via a computer network, e.g., the Internet, and/or various telecommunication networks.

演算手段601は、処理能力及び演算能力を有する様々な汎用及び/又は専用の処理コンポーネントであってよい。演算手段601のいくつかの例は、中央処理ユニット(CPU)、グラフィック処理ユニット(GPU)、様々な専用の人工知能(AI)演算チップ、機械学習モデルアルゴリズムを実行する様々な演算ユニット、デジタル信号プロセッサ(DSP)、及び任意の適切なプロセッサ、コントローラ、マイクロコントローラなどを含むが、これらに限定されない。演算手段601は、上述した様々な方法及び処理、例えば本開示に記載の方法を実行する。例えば、幾つかの実施形態では、本開示に記載の方法は、例えば記憶手段608のような機械可読媒体に物理的に組み込まれたコンピュータソフトウェアプログラムとして実装されてもよい。幾つかの実施形態では、コンピュータプログラムの一部又は全部は、ROM602及び/又は通信手段609を介してデバイス600にロード及び/又はインストールすることができる。コンピュータプログラムがRAM603にロードされ、演算手段601により実行されると、本開示に記載の方法の1つ又は複数のステップを実行することができる。代替的に、他の実施形態では、演算手段601は、本開示に記載の方法を実行するように、他の任意の適切な方法で(例えば、ファームウェアを介する)構成されてもよい。 The computing means 601 may be various general-purpose and/or dedicated processing components having processing and computing capabilities. Some examples of the computing means 601 include, but are not limited to, a central processing unit (CPU), a graphic processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units that execute machine learning model algorithms, digital signal processors (DSPs), and any suitable processor, controller, microcontroller, etc. The computing means 601 executes various methods and processes described above, such as the methods described in the present disclosure. For example, in some embodiments, the methods described in the present disclosure may be implemented as a computer software program physically embodied in a machine-readable medium, such as the storage means 608. In some embodiments, some or all of the computer program may be loaded and/or installed in the device 600 via the ROM 602 and/or the communication means 609. When the computer program is loaded into the RAM 603 and executed by the computing means 601, one or more steps of the methods described in the present disclosure may be executed. Alternatively, in other embodiments, the computing means 601 may be configured in any other suitable manner (e.g., via firmware) to perform the methods described herein.

本明細書で前述したシステム及び技術の様々な実施形態は、デジタル電子回路システム、集積回路システム、フィールドプログラマブルゲートアレイ(FPGA)、専用集積回路(ASIC)、専用標準製品(ASSP)、システムオンチップシステム(SOC)、ロードプログラマブル論理デバイス(CPLD)、コンピュータハードウェア、ファームウェア、ソフトウェア、及び/又はこれらの組み合わせにおいて実装されてもよい。これらの様々な実施形態は、1つ又は複数のコンピュータプログラムで実施されることを含んで良い。当該1つ又は複数のコンピュータプログラムは、少なくとも1つのプログラマブルプロセッサを含むプログラマブルシステム上で実行及び/又は解釈することができる。当該プログラマブルプロセッサは、専用又は汎用のプログラマブルプロセッサであって、記憶システム、少なくとも1つの入力装置、及び少なくとも1つの出力装置からデータ及び命令を受信し、当該記憶システム、当該少なくとも1つの入力装置、及び当該少なくとも1つの出力装置にデータ及び命令を転送することができる。 Various embodiments of the systems and techniques described herein may be implemented in digital electronic circuitry systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being embodied in one or more computer programs. The one or more computer programs may be executed and/or interpreted on a programmable system that includes at least one programmable processor. The programmable processor may be a dedicated or general purpose programmable processor that is capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transferring data and instructions to the storage system, the at least one input device, and the at least one output device.

本開示の方法を実施するためのプログラムコードは、1つ又は複数のプログラミング言語の任意の組み合わせを用いて記述することができる。これらのプログラムコードは、汎用コンピュータ、専用コンピュータ、又は他のプログラマブルデータ処理装置のプロセッサ又はコントローラに提供することにより、プログラムコードがプロセッサ又はコントローラにより実行されると、フローチャート及び/又はブロック図に指定された機能/動作を実行するようにすることができる。プログラムコードは、全てがマシン上で実行されても良く、一部がマシン上で実行されても良く、スタンドアロンパッケージとして一部的にマシン上で実行され且つ一部的にリモートマシン上で実行され、或いは全てがリモートマシン又はサーバ上で実行されても良い。 Program codes for implementing the methods of the present disclosure can be written using any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general purpose computer, a special purpose computer, or other programmable data processing apparatus such that, when executed by the processor or controller, the program codes perform the functions/operations specified in the flowcharts and/or block diagrams. The program codes can be executed entirely on the machine, partially on the machine, as a stand-alone package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

本開示の文脈では、機械可読媒体は、有形の媒体であって、命令実行システム、装置又はデバイスにより使用され、或いは命令実行システム、装置又はデバイスと合わせて使用されるプログラムを含むか記憶することができる。機械可読媒体は、機械可読信号媒体又は機械可読記憶媒体であってよい。機械可読媒体は、電子的、磁気的、光学的、電磁気的、赤外線的、又は半導体的なシステム、装置又はデバイス、あるいはこれらの任意の適切な組み合わせを含んで良いが、これらに限定されない。機械可読記憶媒体のより具体的な例は、1つ又は複数のラインに基づく電気的接続、ポータブルコンピュータディスク、ハードディスク、ランダムアクセスメモリ(RAM)、読み取り専用メモリ(ROM)、消去可能プログラマブル読み取り専用メモリ(EPROM又はフラッシュメモリ)、光ファイバ、携帯型コンパクトディスク読み取り専用メモリ(CD‐ROM)、光学記憶装置、磁気記憶装置、又はこれらの任意の適切な組み合わせを含む。 In the context of this disclosure, a machine-readable medium is a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination thereof. More specific examples of machine-readable storage media include one or more line-based electrical connections, portable computer disks, hard disks, random access memories (RAMs), read-only memories (ROMs), erasable programmable read-only memories (EPROMs or flash memories), optical fibers, portable compact disk read-only memories (CD-ROMs), optical storage devices, magnetic storage devices, or any suitable combination thereof.

ユーザとのインタラクションを提供するために、本明細書に記載されたシステム及び技術は、ユーザに情報を表示するための表示装置(例えば、CRT(陰極線管)又はLCD(液晶ディスプレイ)モニタ)と、ユーザにより入力をコンピュータに提供するキーボード及びポインティングデバイス(例えば、マウス又はトラックボール)と備えるコンピュータ上に実施されてよい。他の種類の装置は、ユーザとのインタラクションを提供するためにも使用され得る。例えば、ユーザに提供されるフィードバックは、任意の形態のセンシングフィードバック(例えば、視覚フィードバック、聴覚フィードバック、又は触覚フィードバック)であって良く、ユーザからの入力を任意の形式(音入力、音声入力、又は触覚入力を含む)で受信して良い。 To provide interaction with a user, the systems and techniques described herein may be implemented on a computer that includes a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user, and a keyboard and pointing device (e.g., a mouse or trackball) for providing input to the computer by the user. Other types of devices may also be used to provide interaction with a user. For example, feedback provided to the user may be any form of sensing feedback (e.g., visual feedback, auditory feedback, or haptic feedback), and input from the user may be received in any form (including sound input, speech input, or haptic input).

本明細書に記載されたシステム及び技術は、バックエンド構成要素を含むコンピューティングシステム(例えば、データサーバとする)、又はミドルウェア構成要素を含むコンピューティングシステム(例えば、アプリケーションサーバ)、又はフロントエンド構成要素を含むコンピューティングシステム(例えば、グラフィカルユーザインターフェースもしくはウェブブラウザを有するクライアントコンピュータであり、ユーザは、当該グラフィカルユーザインターフェースもしくは当該ウェブブラウザを通じて本明細書で説明されるシステムと技術の実施形態とインタラクションすることができる)、そのようなバックエンド構成要素、ミドルウェア構成要素、もしくはフロントエンド構成要素の任意の組合せを含むコンピューティングシステムに実施されることが可能である。システムの構成要素は、任意の形態又は媒体のデジタルデータ通信(例えば、通信ネットワーク)によって相互に接続されることが可能である。通信ネットワークの例は、ローカルエリアネットワーク(「LAN」)、ワイド・エリア・ネットワーク(「WAN」)、インターネットワークを含む。 The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a client computer having a graphical user interface or a web browser through which a user can interact with embodiments of the systems and techniques described herein), or any combination of such back-end, middleware, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communications network). Examples of communications networks include a local area network ("LAN"), a wide area network ("WAN"), and an internetwork.

コンピュータシステムは、クライアントとサーバーを含み得る。クライアントとサーバーは、一般的に互いから遠く離れており、通常は、通信ネットワークを通じてインタラクトする。クライアントとサーバとの関係は、相応するコンピュータ上で実行され、互いにクライアント-サーバの関係を有するコンピュータプログラムによって生じる。サーバはクラウドサーバであっても良く、分散システムのサーバであっても良く、ブロックチェーンを組み合わせたサーバであってもよい。 The computer system may include clients and servers. The clients and servers are generally remote from each other and typically interact through a communication network. The relationship between the clients and servers arises by computer programs running on the corresponding computers and having a client-server relationship with each other. The servers may be cloud servers, servers in a distributed system, or servers in combination with a blockchain.

以上で示された様々な形式のフローを使用して、ステップを並べ替え、追加、又は削除できることを理解されたい。例えば、本出願に説明される各ステップは、並列の順序又は順次的な順序で実施されてもよいし、又は異なる順序で実行されてもよく、本出願で開示された技術案の望ましい結果が達成できる限り、ここで制限されない。 It should be understood that steps may be rearranged, added, or removed using the various types of flows shown above. For example, each step described in this application may be performed in a parallel or sequential order, or may be performed in a different order, and is not limited thereto, so long as the desired results of the technical proposal disclosed in this application are achieved.

上記の具体的な実施形態は本出願の保護範囲に対する制限を構成しない。設計要件及び他の要因に従って、様々な修正、組み合わせ、部分的組み合わせ及び置換を行うことができることを当業者は理解するべきである。本出願の精神及び原則の範囲内で行われる修正、同等の置換、改善は、何れも本出願の保護範囲内に含まれるべきである。 The above specific embodiments do not constitute limitations on the scope of protection of this application. Those skilled in the art should understand that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the scope of protection of this application.

Claims (10)

人工知能モデルの更新方法であって、
対話システムが、ユーザと自然なインタラクションを行って、いずれか一つの訓練サンプルに対して行われたM(Mは1より大きい正整数である)回の対話内容を含むインタラクション内容を取得することと、
前記対話システムが、前記訓練サンプルに対する前記ユーザとの対話が終了したと判定されたことに応答して、前記インタラクション内容に基づいて処理すべきモデルの更新ルールを決定し、前記更新ルールを利用して前記処理すべきモデルを更新することと、
を含み、
前記更新ルールは、前記処理すべきモデルのニューロン状態および/またはニューロン接続の更新方式情報を含み、
前記更新ルールを利用して前記処理すべきモデルを更新することは、前記更新ルールを利用して前記処理すべきモデルのニューロン状態及び/又はニューロン接続を更新することを含む、
人工知能モデルの更新方法。
1. A method for updating an artificial intelligence model, comprising:
The dialogue system performs natural interactions with the user to obtain interaction contents including M (M is a positive integer greater than 1) dialogue contents performed for any one of the training samples;
In response to the dialogue system determining that the dialogue with the user for the training sample has ended, determining an update rule for a model to be processed based on the interaction content, and updating the model to be processed using the update rule;
Including,
The update rule includes update method information of neuron states and/or neuron connections of the model to be processed;
updating the model to be processed using the update rule comprises updating neuronal states and/or neuronal connections of the model to be processed using the update rule.
How to update artificial intelligence models.
いずれ一回の対話内容は、ユーザ入力内容及び前記ユーザ入力内容に対して生成された応答をそれぞれ含み、
前記応答は、取得された前記処理すべきモデルの前記ニューロン状態及び前記ニューロン接続の情報に基づいて生成される応答を含む、
請求項に記載の人工知能モデルの更新方法。
Each of the dialogue contents includes a user input content and a response generated in response to the user input content,
The response includes a response generated based on the acquired information of the neuron states and the neuron connections of the model to be processed.
The method for updating an artificial intelligence model according to claim 1 .
前記対話システムが、前記処理すべきモデルの予測結果であって前記更新ルールを用いて更新された前記処理すべきモデルによって生成された前記訓練サンプルの予測結果を取得し、前記予測結果に従って更新する、ことを更に含む、
請求項1または2に記載の人工知能モデルの更新方法。
The dialogue system further includes obtaining a prediction result of the model to be processed, the prediction result being updated using the update rule, of the training sample generated by the model to be processed, and updating according to the prediction result.
3. A method for updating an artificial intelligence model according to claim 1 or 2 .
前記対話システムと前記処理すべきモデルは2つの独立したモデルであり、
あるいは、前記対話システムと前記処理すべきモデルは同一のモデルに統合される、
請求項1または2に記載の人工知能モデルの更新方法。
The dialogue system and the model to be processed are two independent models;
Alternatively, the dialogue system and the model to be processed are integrated into the same model.
3. A method for updating an artificial intelligence model according to claim 1 or 2 .
対話システムに適用される人工知能モデルの更新装置であって、インタラクションモジュールと第1更新モジュールとを備え、
前記インタラクションモジュールは、ユーザと自然なインタラクションを行って、いずれか一つの訓練サンプルに対して行われたM(Mは1より大きい正整数である)回の対話内容を含むインタラクション内容を取得し、
前記第1更新モジュールは、前記訓練サンプルに対する前記ユーザとの対話が終了したと判定されたことに応答して、前記インタラクション内容に基づいて処理すべきモデルの更新ルールを決定し、前記更新ルールを利用して前記処理すべきモデルを更新前記更新ルールは、前記処理すべきモデルのニューロン状態および/またはニューロン接続の更新方式情報を含み、
前記更新ルールを利用して前記処理すべきモデルを更新することは、前記更新ルールを利用して前記処理すべきモデルのニューロン状態及び/又はニューロン接続を更新することを含む、
人工知能モデルの更新装置。
An update device for an artificial intelligence model applied to a dialogue system, comprising: an interaction module and a first update module;
The interaction module performs natural interactions with a user to obtain interaction content including M (M is a positive integer greater than 1) conversation contents performed for any one training sample;
The first update module, in response to determining that the interaction with the user on the training sample is completed, determines an update rule for a model to be processed based on the interaction content, and updates the model to be processed using the update rule, the update rule including update method information of neuron states and/or neuron connections of the model to be processed;
updating the model to be processed using the update rule comprises updating neuronal states and/or neuronal connections of the model to be processed using the update rule.
Artificial intelligence model updater.
いずれか一回の対話内容は、ユーザ入力内容及び前記ユーザ入力内容に対して生成された応答をそれぞれ含み、
前記応答は、取得された前記処理すべきモデルの前記ニューロン状態及び前記ニューロン接続の情報に基づいて生成される応答を含む、
請求項に記載の人工知能モデルの更新装置。
Each of the dialogue contents includes a user input content and a response generated in response to the user input content,
The response includes a response generated based on the acquired information of the neuron states and the neuron connections of the model to be processed.
6. An apparatus for updating an artificial intelligence model according to claim 5 .
前記処理すべきモデルの予測結果であって前記更新ルールを用いて更新された前記処理すべきモデルによって生成された前記訓練サンプルの予測結果を取得し、前記予測結果に従って前記対話システムを更新する第2更新モジュールを更に備える、
請求項5または6に記載の人工知能モデルの更新装置。
a second update module for obtaining a prediction result of the model to be processed, the prediction result being updated using the update rule, of the training sample generated by the model to be processed, and updating the dialogue system according to the prediction result;
7. An apparatus for updating an artificial intelligence model according to claim 5 or 6 .
少なくとも1つのプロセッサと、
前記少なくとも1つのプロセッサと通信可能に接続されたメモリとを備え、
前記メモリに前記少なくとも1つのプロセッサにより実行可能なコマンドが記憶されており、前記コマンドが前記少なくとも1つのプロセッサにより実行されると、前記少なくとも1つのプロセッサに請求項1に記載の人工知能モデルの更新方法を実行させる電子デバイス。
At least one processor;
a memory communicatively coupled to the at least one processor;
An electronic device having stored in the memory instructions executable by the at least one processor, the commands, when executed by the at least one processor, causing the at least one processor to perform the artificial intelligence model updating method described in claim 1.
コンピュータに請求項1に記載の人工知能モデルの更新方法を実行させるためのコンピュータコマンドを記憶した非一時的なコンピュータ可読記憶媒体。 A non-transitory computer-readable storage medium storing computer commands for causing a computer to execute the artificial intelligence model updating method described in claim 1. プロセッサにより実行されると、請求項1に記載の人工知能モデルの更新方法を実現するコンピュータプログラム。 A computer program that, when executed by a processor, realizes the method for updating an artificial intelligence model according to claim 1.
JP2023002287A 2022-06-24 2023-01-11 Artificial intelligence model updating method, apparatus, electronic device and storage medium Active JP7551970B2 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210728915.9 2022-06-24
CN202210728915.9A CN115169549B (en) 2022-06-24 2022-06-24 Artificial intelligence model updating method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
JP2024002884A JP2024002884A (en) 2024-01-11
JP7551970B2 true JP7551970B2 (en) 2024-09-18

Family

ID=83486674

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2023002287A Active JP7551970B2 (en) 2022-06-24 2023-01-11 Artificial intelligence model updating method, apparatus, electronic device and storage medium

Country Status (2)

Country Link
JP (1) JP7551970B2 (en)
CN (1) CN115169549B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109074502A (en) 2018-07-26 2018-12-21 深圳前海达闼云端智能科技有限公司 Method, apparatus, storage medium and the robot of training artificial intelligence model
JP2019215483A (en) 2018-06-14 2019-12-19 Zホールディングス株式会社 Leaning device, learning method, and learning program
US20210082398A1 (en) 2019-09-13 2021-03-18 Mitsubishi Electric Research Laboratories, Inc. System and Method for a Dialogue Response Generation System
JP2021152961A (en) 2020-12-25 2021-09-30 北京百度網訊科技有限公司 Model training method, apparatus, electronic device, recording medium, and program
JP2022503838A (en) 2019-01-24 2022-01-12 テンセント・テクノロジー・(シェンジェン)・カンパニー・リミテッド Dialogue generation methods and devices, computer equipment and programs

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10176800B2 (en) * 2017-02-10 2019-01-08 International Business Machines Corporation Procedure dialogs using reinforcement learning
CN113688244B (en) * 2021-08-31 2024-09-17 中国平安人寿保险股份有限公司 Text classification method, system, equipment and storage medium based on neural network
CN114625914A (en) * 2022-03-18 2022-06-14 中国第一汽车股份有限公司 Apparatus, equipment and method for vehicle-mounted interactive music recommendation

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019215483A (en) 2018-06-14 2019-12-19 Zホールディングス株式会社 Leaning device, learning method, and learning program
CN109074502A (en) 2018-07-26 2018-12-21 深圳前海达闼云端智能科技有限公司 Method, apparatus, storage medium and the robot of training artificial intelligence model
JP2022503838A (en) 2019-01-24 2022-01-12 テンセント・テクノロジー・(シェンジェン)・カンパニー・リミテッド Dialogue generation methods and devices, computer equipment and programs
US20210082398A1 (en) 2019-09-13 2021-03-18 Mitsubishi Electric Research Laboratories, Inc. System and Method for a Dialogue Response Generation System
JP2021152961A (en) 2020-12-25 2021-09-30 北京百度網訊科技有限公司 Model training method, apparatus, electronic device, recording medium, and program

Also Published As

Publication number Publication date
CN115169549B (en) 2023-08-22
JP2024002884A (en) 2024-01-11
CN115169549A (en) 2022-10-11

Similar Documents

Publication Publication Date Title
US12333837B2 (en) Method for training image-text matching model, computing device, and storage medium
US12175198B2 (en) Document processing
WO2022007823A1 (en) Text data processing method and device
CN114612749B (en) Neural network model training method and device, electronic device and medium
US20250021610A1 (en) Human-machine interaction method and apparatus, electronic device and storage medium
JP7357114B2 (en) Training method, device, electronic device and storage medium for living body detection model
CN112580733A (en) Method, device and equipment for training classification model and storage medium
CN113657483A (en) Model training method, target detection method, device, equipment and storage medium
JP7369228B2 (en) Method, device, electronic device, and storage medium for generating images of user interest
CN112949433B (en) Method, device and equipment for generating video classification model and storage medium
CN114186681A (en) Method, apparatus and computer program product for generating model clusters
CN115861462A (en) Image generation model training method, device, electronic equipment and storage medium
US20230013796A1 (en) Method and apparatus for acquiring pre-trained model, electronic device and storage medium
CN119808951A (en) Large model streaming output dialogue risk control method, device, equipment and medium
CN114817476A (en) Language model training method and device, electronic equipment and storage medium
CN114119972A (en) Model acquisition and object processing method and device, electronic equipment and storage medium
CN112632999A (en) Named entity recognition model obtaining method, named entity recognition device and named entity recognition medium
CN114970666A (en) Spoken language processing method and device, electronic equipment and storage medium
CN112559715B (en) Attitude recognition methods, devices, equipment and storage media
CN114492793A (en) Model training and sample generating method, device, equipment and storage medium
CN113468857A (en) Method and device for training style conversion model, electronic equipment and storage medium
JP7551970B2 (en) Artificial intelligence model updating method, apparatus, electronic device and storage medium
CN113408636A (en) Pre-training model obtaining method and device, electronic equipment and storage medium
CN116226478B (en) Information processing methods, model training methods, devices, equipment and storage media
CN114693995B (en) Model training method, image processing method and device applied to image processing

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230111

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20240326

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20240606

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20240806

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20240808

R150 Certificate of patent or registration of utility model

Ref document number: 7551970

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150