r/Anki • • 3d ago

Fluff Anki algorithms

Post image

More on RWKV here

311 Upvotes

54 comments sorted by

27

u/Luis_McLovin 3d ago

What is rwkv

47

u/Ready-Bumblebee-6220 3d ago

An alternate spaced repetition algorithm for anki. Not currently available on the official anki, but there's an addon which supports it. There's also a desktop fork and an ankidroid fork which come prebuilt with rwkv

what is rwkv?

15

u/givlis 3d ago

I want to ask tu u/clarityinmadness why, if rwkv proves itself to be superior to FSRS, it would never be implemented in the "official Anki version" (?). Is it due to the fact that users would feel uncomfortable in not knowing how many cards/day they would have to do?

38

u/ClarityInMadness ask me about FSRS 3d ago
  1. It's easy to show that it's better at predicting the probability of recall, it's harder to show that it actually helps users to learn better
  2. More algorithms = more complexity, both for devs (to maintain) and for users (to choose from)

4

u/givlis 2d ago

I was thinking more of a SM-2 vs. FSRS scenario, where RWKV becomes the "new algorithm", completely replacing FSRS

4

u/ClarityInMadness ask me about FSRS 2d ago

I'd bet 100$ against RWKV being implemented alongside FSRS, and I'd bet all my life savings against RWKV replacing FSRS.

3

u/givlis 2d ago

Ahahahhahahahahahah I'm dying. Yeah but if something is objectively better, then why not? Is it too complex for the end user? This is why I was curious about your skepticism, because I'm not sure what is the reason behind you believing it would never be implemented. I trust you on that, but I'd like to know why you say this 🙏🏻

8

u/ClarityInMadness ask me about FSRS 2d ago

As I said, you'd have to convince people that "better numbers in srs-benchmark" mean "better learning". Also more work for Anki devs. Also, devs just kinda don't care about algorithmic efficiency as much as we, nerds from the FSRS team. Also *broadly gestures in AnkiHub's direction*.

JShoreels is making his fork, I'm (very slowly) making mine, so it's not like there will be a lack of alternative options.

1

u/mucklaenthusiast 2d ago

Hey,
random question:
Is it fine to use different algorithms?

I need to be able to do Anki on my phone and an pc and I don’t think the new algorithm is available for iPhone, but it is for Mac.

Will there be any issues or can I just use two different algorithms?

2

u/NoStrike3023 54m ago

if you use android, there's kuma3 anki

→ More replies

13

u/Luis_McLovin 3d ago

Interesting. What does the neural network do for spaced repetition that surpasses FSRS?

63

u/ClarityInMadness ask me about FSRS 3d ago edited 2d ago

FSRS only uses interval lengths and grades. RWKV also uses:

  1. Workload: new cards and reviews done today
  2. Time of the day, like 5 PM
  3. Day of the week/month/year/decade/century
  4. "User tenure" - time since the very first review of the very first card
  5. Card creation date
  6. Sibling info (FSRS assumes all cards are independent, even siblings)
  7. Deck and preset info
  8. Review duration aka how long you were staring at the screen before clicking Again/Hard/Good/Easy

And a bunch of other stuff that is mostly variations of what I mentioned above

12

u/johnpharrell 2d ago

I like that you included century. We'll be Anki-ing all the way to our graves.

1

u/thesteiner95 3h ago

> Review duration aka how long you were staring at the screen before clicking Again/Hard/Good/Easy

Given this, does it even make help to use the 4 buttons instead of just pass/fail? I would presume the objective data of timing the response would be way more important that the subjective ease from the user?

3

u/LiL_Pxprle 2d ago

which addon?

3

u/glittermantis 2d ago

why is it impossible to find out what these acronyms mean? you'd think in an article called "what is rwkv" they'd mention at least once toward the beginning what that stands for

12

u/ClarityInMadness ask me about FSRS 2d ago

RWKV (pronounced "RwaKuv") stands for Receptance Weighted Key Value. It's a type of a neural net architecture. Tbh, the name alone doesn't tell you anything about how it can be used gor spaced repetition.

2

u/mucklaenthusiast 2d ago

Maybe a bit off-topic:

Can I use one algorithm on macos and another on my phone?

Because as far as I am aware, this isn’t available for the phone app (iOS), but it js possible on my Mac. And I would love to test it out, I just worry that it will somehow bug in some way.
And I do some of my reviews on my phone and others at home, do you personally think there will be an issue?

2

u/DragonfruitOk5707 1d ago

If you alternate between algorithm A and algorithm B, your brain could not get the full learning efficiency associated with the better algorithm. I'm not sure if the efficiency could even get lower than both algorithm A and algorithm B, but i'd bet it'd be best to just stick to that one algorithm that sits on top of the SRS benchmarks until a better one is invented.

1

u/mucklaenthusiast 21h ago

That’s absolutely fair and I will consider this!
So far, I also just need to do my actual reviews in a more timely manner, so I maybe should hold off on trying a new algorithm

1

u/Lady_Lance 1d ago

what addon is it?

0

u/anubis_mango 3d ago

How does it differ to fsrs

4

u/ClarityInMadness ask me about FSRS 3d ago

See my other comment

9

u/Edvind23 2d ago

Will rmkw be available on official anki sometime? It looks very interesting and i am on mobile unfortunately.

3

u/Ready-Bumblebee-6220 2d ago

Good news! There's an Ankidroid fork with Rwkv built in. That's for Android, I don't know if there's something similar for iOS though

61

u/aeioujohnmaddenaeiou 3d ago

I'd be really interested to see an algorithm eventually catered to ultra-quick recall needs such as listening to morse code. I'll definitely check out the fork that uses RWKV-Instant.
https://github.com/JSchoreels/anki

11

u/metronohm fine arts 2d ago

i am very interested in this too. right now, i just have my auto flip on 3 seconds with a 90% retention on the things i want relatively quick

5

u/FeedMyBa1ls 2d ago

ive been using rwkv-curve on my mac/pc studies, and fsrs 7 for an amgi fork on ios. i can read up on it but what do you think is the benefit of choosing Instant over Curve? curious and willing to use RWKV and see my progress :D

6

u/ClarityInMadness ask me about FSRS 2d ago

Instant is better at predicting the probability of recall.

1

u/FeedMyBa1ls 1d ago

thanks! tried it the whole day and its a game changer. i remember stuff better and faster, the higher ret the more difficult it is 100%. after tom's exam, i might put a gradual ret increaser where its lower so i can cover new cards weeks-months from the exam to 90+ ret reviews with the date creeping in. And also seems to think that me idling and zoning out is a predicted bad performance so i put a timer >30s, it'll pause the screen then detect if i come back and reset it so im feeding it more accurate data. Overall, love rwkv-instant #bestCrammingTool

4

u/muay_throwaway 2d ago

This is really interesting work. What is the effect size of improvement for out-of-sample predictions over regular FSRS-7?

5

u/ClarityInMadness ask me about FSRS 2d ago

2

u/muay_throwaway 2d ago

Whoa, this makes a much bigger difference than I expected. Thanks!

7

u/SaulFemm 2d ago

I do wonder how many people are going to get FOMO'd into spending a lot of time testing different algorithms when it ultimately isn't worth your time (in my own estimation)

FSRS-6 is already really, really good.

4

u/OppositeBuilder7743 2d ago

Why? It seems like the opposite here. Many people report RWKV-instant saving 30%+ on total review time versus FSRS. Many actually seem to report even more than that, but naturally some things will be somewhat hyperbolic. Even at a very modest, say, 15 minutes of anki a day, you save 30 hours over a year. The installation process for RWKV is very simple. It took less than an hour for me.

4

u/SaulFemm 2d ago

I have a hard time believing the average user will see anything in the same universe as a 30% reduction in reviews. If there is less anecdotal evidence supporting a 30% reduction, I would love to see it.

1

u/OppositeBuilder7743 1d ago

I'm not necessarily saying that it does actually does improve efficiency by that much. My own experience with it has been somewhat mixed so far. What is more important is that the idea of optimising such things is very much worth it, that it isn't just FOMO. As in, it is very possible for the benefits of such optimisation, as unnecessary as it may seem, to outweigh the time it takes to try them out and set them up, going through different setups to see which one works the best for each person.

On the matter of whether such levels of time savings are possible at all, whether they can even be "in the same universe", I think it's very plausible in general for say these small tweaks to make a big difference. Review time in general is not a very steady, constant thing; it often varies greatly day to day even under the exact same algorithm and card count, so the idea of something like RWKV making a large impact seems reasonable to me.

0

u/[deleted] 1d ago

[removed] — view removed comment

1

u/Anki-ModTeam 21h ago

Your post was removed under r/Anki Rule 6 (no low-effort AI content). We require AI-related posts to meet certain criteria, including a high bar for quality, effort, novelty, and utility, disclosure of AI involvement in project creation, and clear pricing and license information, in addition to adherence to our self-promotion (Rule 3) and market research (Rule 5) rules. Your post did not meet one or more of these criteria. You may also want to consider posting to r/AnkiAI instead.

2

u/ClarityInMadness ask me about FSRS 1d ago

Many people report RWKV-instant saving 30%+ on total review time versus FSRS

Just to be clear, we (FSRS team) don't have any official numbers on workload. At best we have some old numbers from old simulations that I wouldn't take too seriously.

Sadly, we just don't know how to convert machine learning metrics into workload.

1

u/hellopplofthesun Psychotherapy | Art | Languages 1d ago

and you and the FSRS team trust these algorithms and opt for RWKV? or do you continue using FSRS and experiment with RWKV in the meantime? or at what point can better estimates about it’s alleged superiority be seen as the consensus?

2

u/ClarityInMadness ask me about FSRS 1d ago

You can check out the srs-benchmark repository on Github, but again, that's metrics related to predicting the probability of recall. Idk how that relates to workload.

And yeah, I'm using RWKV-Instant in this fork: https://github.com/Pedrubik2000/kuma3-anki-app/releases

1

u/ForsakenCommands 1d ago

What is this exactly ?

0

u/el_muslim_re 2d ago

How good is it compared to sm2?

7

u/Ready-Bumblebee-6220 2d ago

Anything is better than sm2 at this point 😂

https://github.com/open-spaced-repetition/srs-benchmark

0

u/el_muslim_re 2d ago

So what should I do to my current sm 2 decks?