確定性人工智慧

確定性人工智慧

Hacker News·

文章對比了AI領域普遍存在的非確定性大型語言模型(LLMs)與確定性AI演算法(如線性迴歸)。文中強調,在軟體系統設計中,若情況允許,選擇確定性AI所帶來的影響。

Image

Deterministic AI

The hooplah around AI has been focused on LLMs for years now. For quite a few folks, this is their first real experience with AI at all. And I am sure you have noticed something:

LLMs are non-deterministic.

In other words, repeated invocations of the algorithm with the same inputs typically produce different outputs.

You can demonstrate this yourself. Open a chat AI tool in two incognito tabs, asking it a substantial prompt like "explain LLMs to me", and you will see the responses are different.

With all the noise about generative AI like this in the past 5 years, it's easy to forget there is a whole universe of AI that is completely deterministic.

The simplest example is linear regression.

Lots of great info about this online, so I will not explain it here. But when someone asked me recently how to start learning AI - not just how to use AI tools, but actually understand AI from first principles - my suggestion was that he start by learning linear regression. It is tremendously useful in the real world today, and is simple enough that you can actually grok it without a PhD.

The relevant fact about linear regression here:

It is deterministic.

The nuance is that some algorithms used to train linear
regression - for example, gradient descent- deliberately inject randomness,
because it is useful to do so.

But once trained, linear regression models are completely
deterministic. Every time you stuff the same input into one, the exact
same output comes out.

This has implications for the software systems we design.

When a program needs an AI component, and you are able to use a deterministic algorithm:

Of course, if your application actually needs an LLM - or any other form of nondeterministic AI - then that's what you have to use. But if and when you have a choice, these are some things to think about.

P.S. When we say "LLMs are non-deterministic", that is technically a lie. It is more correct to say that LLMs are chaotic, in the mathematical sense of sensitive dependence on initial conditions; and on top of that, deliberate randomness is injected into how the LLM is applied, via the temperature parameter.

But nobody understands all that. "Non-deterministic" does describe how LLM-based tools feel to people at the UX level, so I'll go with the crowd and use that term.

Course
Training

Image

Image

For Customer Service,
Email Us At:

  [email protected]

Training

Quick Links

Follow Us

Image

Image

Image

Image

Image

Powerful Python is part of MigrateUp LLC.

Copyright MigrateUp LLC. All rights reserved.

Hacker News

相關文章

  1. 使用大型語言模型進行確定性編程

    大約 2 個月前

  2. 如何將非確定性AI輸出整合到傳統軟體系統中

    3 個月前

  3. 確定性AI:為何可靠性而非創造力,才是大型語言模型的未來

    7 個月前

  4. 使用AI已不再是選項

    3 個月前

  5. 如果AI既非常優秀又不那麼顛覆呢?

    3 個月前