So, I’ve heard that ML manipulates tokens and specifically for the English corpora they take place of words. If we want model to be polite and not to speak uncomfortable language we can remove certain words from the internal array where all tokens and their associative data are stored, for example “fuck”.

13 points

ML/Generative AI don’t “store” an internal array of specifics. Instead it’s a statistical model based on the next (or in ChatGPT’s case, 3rd most likely) word in a sentence.

To avoid swearing or other really anything it needs to be excluded at a training level, before the algorithm is trained.

As it stands, we have very little to no visibility into why these models work. Even the researchers are trying to open the black box, but there’s so much that it’s nearly impossible to isolate a node that would or would not contain the work fuck

permalink
report
reply
2 points

(or in ChatGPT’s case, 3rd most likely)

Why 3rd?

permalink
report
parent
reply
9 points

I believe that the 3rd or nth, word is because it sounds more human. The statistically first correct word ends up sounding very robotic and forced, where the 3rd is still very likely correct, but leads to variation in responses

This is all from what I remember reading a mini-paper about it, so I could be wrong

permalink
report
parent
reply
4 points

Chatgpt’s sampling parameters are unknown, and it definitely doesn’t choose the 3rd most likely. More complicated sampling methods are probably used, such as temperature, top p and top k.

permalink
report
parent
reply
1 point

Correct, but also way over the level of the average reader

I probably should have used a different example other than ChatGPT tbh

permalink
report
parent
reply
1 point

That’s alright. You did good simplifying an unrelated idea for the sake of explaining another concept.

permalink
report
parent
reply
11 points

Fuck

permalink
report
reply
3 points

Goooood AI!

permalink
report
parent
reply
1 point

What the fuck

permalink
report
parent
reply
7 points

Just run the output through a simple string replacement function before returning it to the user. No need to mess with the model itself.

permalink
report
reply
2 points

A well proven clbuttic solution.

permalink
report
parent
reply
10 points

You can.

With OpenAI for instance, you can modify the probability of a token to be output by setting its logit bias, as described here: https://platform.openai.com/docs/api-reference/chat/create#logit_bias

By setting it to -100 or +100 you can effectively ban or force it.

permalink
report
reply
10 points

That won’t fucking work you dumb fuck. — not an ai.

permalink
report
reply

Ask Lemmy

!asklemmy@lemmy.world

Create post

A Fediverse community for open-ended, thought provoking questions

Please don’t post about US Politics. If you need to do this, try !politicaldiscussion@lemmy.world


Rules: (interactive)


1) Be nice and; have fun

Doxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can’t say something nice, don’t say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'

This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spam

Please do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reason

Just remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either !asklemmyafterdark@lemmy.world or !asklemmynsfw@lemmynsfw.com. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.

It is not a place for ‘how do I?’, type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email info@lemmy.world. For other questions check our partnered communities list, or use the search function.


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


Community stats

  • 11K

    Monthly active users

  • 4.3K

    Posts

  • 227K

    Comments