zlacker

[parent] [thread] 6 comments
1. vlovic+(OP)[view] [source] 2026-02-04 00:09:40
While you are correct at a higher level, comparing bigrams/trigrams would be less compute not more because there’s fewer of them in a given text
replies(1): >>measur+s3
2. measur+s3[view] [source] 2026-02-04 00:31:09
>>vlovic+(OP)
I'm correct on the technical level as well: https://chatgpt.com/s/t_698293481e308191838b4131c1b605f1
replies(1): >>refulg+25
◧◩
3. refulg+25[view] [source] [discussion] 2026-02-04 00:41:30
>>measur+s3
That math is for comparing all n-grams for all n <= N simultaneously, which isn't what was being discussed.

For any fixed n-gram size, the complexity is still O(N^2), same as standard attention.

replies(1): >>measur+Qd
◧◩◪
4. measur+Qd[view] [source] [discussion] 2026-02-04 01:39:15
>>refulg+25
I was talking about all n-gram comparisons.
replies(1): >>refulg+1h
◧◩◪◨
5. refulg+1h[view] [source] [discussion] 2026-02-04 02:01:04
>>measur+Qd
Thanks for clarifying. I was hoping to clarify the disconnect between you two, looked like on on "bigrams, trigrams, & so on." It reads idiomatically as enumerating fixed-n cases. Parsing "& so on" as "their simultaneous union" asks quite a bit of those two words. Either way, as ChatGPT showed you and you shared, all-ngram comparison brings us to O(N^3), still several exponents short of N^10 that started this thread.
replies(1): >>measur+Ch
◧◩◪◨⬒
6. measur+Ch[view] [source] [discussion] 2026-02-04 02:06:38
>>refulg+1h
This is getting tiresome. I can make the operations as complicated as necessary by comparing all possible permutations of the input string w/ every other permutation & that will not be reducible to standard attention comparisons. The n-gram was a simple example anyone should be able to understand. You can ask your favorite chatbot to compute the complexity for the permutation version.
replies(1): >>refulg+qo
◧◩◪◨⬒⬓
7. refulg+qo[view] [source] [discussion] 2026-02-04 03:01:22
>>measur+Ch
No worries! I enjoyed it fwiw, appreciate your time :) (The permutation version would be factorial, fwiw, not polynomial. Different beast entirely.)
[go to top]