the-algorithm icon indicating copy to clipboard operation
the-algorithm copied to clipboard

fix: Girl's don't DM back algorithm issue. issue#412

Open Vaisakhkm2625 opened this issue 3 months ago • 5 comments

Fixes https://github.com/twitter/the-algorithm/issues/412

Suggested fix

After User A sends a DM to User B, increase the frequency of User A’s tweets appearing in User B’s For You timeline — but only if the tweet’s topic aligns with User B’s interests. This will improve the likely hood that User B reply to User A.

I like to call this algorithm Gradual Algorithmic State-Loss Inducer Generating Hallucinatory Truths (GASLIGHT for short)

Flow

Interaction Graph Dataset
    ↓
extractDirectMessageData()
    ↓
(userA, userB, dmScore) tuples
    ↓
userClusterPairsWithoutNormalizationWithTopicAlignment()
    ↓
Check: Does User A's KnownFor cluster exist in User B's InterestedIn?
    ↓
If YES: Boost DM score by topicAlignmentBoost
    ↓
Increased interest scores for aligned topics
    ↓
More recommendations from User A to User B for aligned topics

Vaisakhkm2625 avatar Nov 15 '25 02:11 Vaisakhkm2625

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Nov 15 '25 02:11 CLAassistant

this is so fking kool- pls accept this PR

LonelyGuy12 avatar Nov 15 '25 14:11 LonelyGuy12

this is it!

winterrdog avatar Nov 15 '25 17:11 winterrdog

This is both perfectly logical and completely absurd.

tatterdemalion avatar Nov 17 '25 19:11 tatterdemalion

😅

nigeltheyounger avatar Nov 22 '25 06:11 nigeltheyounger

example for people asking for how this fix works

image

Vaisakhkm2625 avatar Jan 22 '26 17:01 Vaisakhkm2625