Live data from Hacker News

Apple’s new Transformer-powered predictive text model

jackcook.com

141–150 of 268 posts

Re: Apple’s new Transformer-powered predictive text model

#141

I don't want better predictive text. I need better autocorrect. Something happened about 6 years ago where the quality of the autocorrect fell off the roof, and it's been absolutely terrible since then. I spend too much of my time fighting with either mispelling, flipping to the wrong word even though I spelled the word properly, etc. It has made typing on my iPhone an unpleasant experience and I need it to change. T…

Totally agree. And I’d like to add that the editing experience is also dire and getting worse. Just trying to put the cursor where I want it to fix an error earlier in the sentence in ios17 is a massive pain in the ass. You tap somewhere and it continually selects entire words - I just want to put the cursor there dammit!

Yeah I noticed this starting a year or two ago, it drives me crazy

Also, getting the copy/paste menu to show takes a very long time

Re: Apple’s new Transformer-powered predictive text model

#142
post #41

Earlier quoted context omitted.

And then deleting BOTH words with a single backspace. This is its most irritating behavior.

Settings > General > Keyboard > Delete Slide-to-Type by Word = Off

That changes more behavior than what GP wants.

Re: Apple’s new Transformer-powered predictive text model

#143
post #137

Earlier quoted context omitted.

Such penalties would only exist for fine-tuned models. Base models have only the temperature setting. As the example at the end shows, even GPT-2 seems "smarter" than the Apple model, probably because of the number of parameters.

There's no such thing as "base models have only the temperature setting". Models do not have sampling settings (temperature, repetition penalty, etc), the sampling code does, which obviously you can use on any model. For example, here's a function from llama.cpp that applies repetition penalty: https://github.com/ggerganov/llama.cpp/blob/master/llama.cpp... Here's the one from transformers: https://github.com/hugging…

I don't think such penalties were applied to GPT-2 or even GPT-3, yet they weren't repetitive like that.

Re: Apple’s new Transformer-powered predictive text model

#144
post #137

Earlier quoted context omitted.

There's no such thing as "base models have only the temperature setting". Models do not have sampling settings (temperature, repetition penalty, etc), the sampling code does, which obviously you can use on any model. For example, here's a function from llama.cpp that applies repetition penalty: https://github.com/ggerganov/llama.cpp/blob/master/llama.cpp... Here's the one from transformers: https://github.com/hugging…

I don't think such penalties were applied to GPT-2 or even GPT-3, yet they weren't repetitive like that.

Yes, they are applied. Here's OpenAI doc which describes how to set various sampling parameters for GPT-3:

https://platform.openai.com/docs/api-reference/completions/c...

See presence_penalty and frequency_penalty.

Sampling techniques is one of important arts of LLMs, you'll can find a lot of papers on them.

In general, smaller are more prone to repetition, but you can get caught in it even with larger models.

Re: Apple’s new Transformer-powered predictive text model

#145
post #5

And interesting test. I didn’t see a mention of the temperature setting used. Temperature controls the probability to pick a token that isn’t the top prediction, which leads to more creative/less robotic results. For actual input prediction, you probably want the temperature to be zero. But even a model as good as GPT-3 becomes very boring and repetitive with those settings.

I used greedy sampling (temperature 0) for all of them. Since I didn't have access to logits/probabilities for Apple's model, I wasn't able to do anything else in a way that would be fair.

Re: Apple’s new Transformer-powered predictive text model

#146
post #104

The example at the end made me wonder if Apple's model is actually better than GPT2 for text prediction. It generated garbage, but all that garbage made somewhat sense in the context of only the word "Today". Whereas GPT2 hallucinated random stuff about the US government. A text prediction model should predict what the user wanted to type, so if you evaluate the models based on that, GPT2 actually performed horribly,…

It seems obvious to me that it's not, because if you asked a human to guess what comes after "today" in a text, they'd never say "probably some gibberish about a day a day".

Maybe: "Today was fine. Since I've retired, I'm taking my life a day a day".

Or maybe I wanted to express myself in the timeless words of the poets:

"A day, a day of glory! A day that ends our woe! A day that tells of triumph. Against our vanquished foe!"

"Rose is a rose is a rose is a rose. Loveliness extreme. Extra gaiters. Loveliness extreme."

"A-well now, everybody's heard about the bird, everybody's heard about the bird, About the bird, the bird, bird bird bird, Haven't you heard about the bird? Don't you know that the bird's the word?"

Re: Apple’s new Transformer-powered predictive text model

#147
post #137

Earlier quoted context omitted.

There's no such thing as "base models have only the temperature setting". Models do not have sampling settings (temperature, repetition penalty, etc), the sampling code does, which obviously you can use on any model. For example, here's a function from llama.cpp that applies repetition penalty: https://github.com/ggerganov/llama.cpp/blob/master/llama.cpp... Here's the one from transformers: https://github.com/hugging…

I don't think such penalties were applied to GPT-2 or even GPT-3, yet they weren't repetitive like that.

Yes, you're right, I should have mentioned it in the post, but I used pure greedy sampling for the GPT-2 outputs since I couldn't do anything but that for the Apple model. So temperature was set to zero, and there was no repetition penalty.

Re: Apple’s new Transformer-powered predictive text model

#149
post #108

Earlier quoted context omitted.

Yes. Ever since I went to the Maldives it wants to capitalize "male" and I have to work quite hard to get it to not correct "Yes" to "Yea", and "Thailand" to "Thailnd". Hate it.

In Settings there is Reset Keyboard Dictionary to revert to the default dictionary.

Thank you!!

Re: Apple’s new Transformer-powered predictive text model

#150

Earlier quoted context omitted.

You use text speak on an iPhone? How? I find it impossible due to autocorrect. Either it will correct with the full word or it will correct with a wrong word making it more efficient to just type in full.

Turn off autocorrect: https://support.apple.com/en-us/HT207525

Why? So you can use text speak? Bit silly.
Post reply on HN