bitcoin
bitcoin

$95150.806510 USD

-0.17%

ethereum
ethereum

$3436.588638 USD

4.57%

tether
tether

$0.998963 USD

-0.01%

xrp
xrp

$2.255757 USD

1.85%

bnb
bnb

$695.122568 USD

6.92%

solana
solana

$191.502552 USD

5.60%

dogecoin
dogecoin

$0.325168 USD

3.39%

usd-coin
usd-coin

$1.000047 USD

-0.01%

cardano
cardano

$0.929155 USD

4.37%

tron
tron

$0.253019 USD

3.41%

avalanche
avalanche

$39.276802 USD

6.61%

chainlink
chainlink

$24.570798 USD

10.27%

toncoin
toncoin

$5.615783 USD

3.72%

sui
sui

$4.710222 USD

8.74%

shiba-inu
shiba-inu

$0.000023 USD

4.49%

加密貨幣新聞文章

高階即時工程:思想鏈 (CoT)

2024/12/23 22:06

比較不同的推理技術

高階即時工程:思想鏈 (CoT)

Chain of Thought (CoT) techniques have been around for a while now, and they're essentially a form of advanced prompt engineering. CoT aims to get large language models (LLMs) to perform reasoning steps by explicitly showing them the chain of thought that leads to the answer. This helps the models understand the problem better and makes their reasoning more transparent.

思想鏈 (CoT) 技術已經存在一段時間了,它們本質上是高階提示工程的一種形式。 CoT 的目標是透過明確地向大型語言模型 (LLM) 展示導致答案的思維鏈來讓大型語言模型 (LLM) 執行推理步驟。這有助於模型更好地理解問題並使他們的推理更加透明。

There are several different CoT techniques, each with its own strengths and weaknesses. Some of the most common techniques include:

有多種不同的 CoT 技術,每種技術都有自己的優點和缺點。一些最常見的技術包括:

* **Natural language CoT:** This technique uses natural language to describe the chain of thought. For example, to solve a math problem, you might write out the steps of the calculation in English.

* **自然語言CoT:** 此技術使用自然語言來描述思想鏈。例如,要解決數學問題,您可以用英文寫出計算步驟。

* **Logical form CoT:** This technique uses a formal logical language to represent the chain of thought. This makes the reasoning more precise and easier to follow, but it can also be more difficult to create.

* **邏輯形式CoT:** 此技術使用形式邏輯語言來表示思想鏈。這使得推理更加精確且更容易遵循,但也可能更難創建。

* **Programmatic CoT:** This technique uses a programming language to represent the chain of thought. This is the most precise and efficient way to represent reasoning, but it also requires the most technical knowledge to create.

* **Programmatic CoT:** 這種技巧使用程式語言來表示思想鏈。這是最精確、最有效率的推理表達方式,但也需要最多的技術知識來創造。

The best CoT technique to use will depend on the specific task and the capabilities of the LLM. However, all CoT techniques can help LLMs to perform reasoning tasks more effectively and transparently.

使用的最佳 CoT 技術將取決於具體任務和法學碩士的能力。然而,所有 CoT 技術都可以幫助法學碩士更有效、更透明地執行推理任務。

Here's an example of how CoT can be used to solve a math problem:

以下是如何使用 CoT 解決數學問題的範例:

Without CoT, the LLM might simply be given the problem and asked to solve it. For example:

如果沒有 CoT,法學碩士可能只會被告知問題並要求解決它。例如:

```

````

Question: What is 123 + 456?

問題:123+456是多少?

Answer: 579

答案:579

```

````

With CoT, the LLM would be given a step-by-step guide on how to solve the problem. For example:

透過 CoT,法學碩士將獲得如何解決問題的逐步指南。例如:

```

````

Question: What is 123 + 456?

問題:123+456是多少?

Chain of Thought:

思路鏈:

1. Add the tens digits (2 + 5 = 7).

1. 將十位數相加 (2 + 5 = 7)。

2. Add the hundreds digits (1 + 4 = 5).

2. 將百位數字相加 (1 + 4 = 5)。

3. Add the results of steps 1 and 2 (7 + 5 = 12).

3. 將步驟 1 和 2 的結果相加 (7 + 5 = 12)。

4. Write down the carry digit (2).

4. 記下進位數字 (2)。

5. Add the ones digits (3 + 6 = 9).

5. 將個位數字相加 (3 + 6 = 9)。

6. Write down the sum of steps 4 and 5 (2 + 9 = 11).

6. 寫下步驟 4 和 5 的總和 (2 + 9 = 11)。

7. The final answer is the result of step 6 (11).

7. 最終答案是步驟6(11)的結果。

Answer: 579

答案:579

```

````

By showing the LLM the chain of thought, we can help it to understand the problem better and arrive at the correct answer more easily.

透過向LLM展示思路鏈,我們可以幫助其更好地理解問題,更容易得出正確的答案。

CoT techniques are a powerful tool for improving the performance of LLMs on reasoning tasks. By making the reasoning process more explicit and transparent, CoT helps the models to learn and generalize better.

CoT 技術是提升法學碩士推理任務表現的強大工具。透過使推理過程更加明確和透明,CoT 幫助模型更好地學習和泛化。

新聞來源:towardsdatascience.com

免責聲明:info@kdj.com

The information provided is not trading advice. kdj.com does not assume any responsibility for any investments made based on the information provided in this article. Cryptocurrencies are highly volatile and it is highly recommended that you invest with caution after thorough research!

If you believe that the content used on this website infringes your copyright, please contact us immediately (info@kdj.com) and we will delete it promptly.

2024年12月24日 其他文章發表於