Repository navigation
Description
What I think the defect is
For a viewer whose strongest signal is a like — someone who never replies, quotes or shares — the score is structurally dominated by attention the viewer never chose to emit. Decomposing positive_sum from the home-mixer defaults:
| group | terms | total | share of positive_sum |
|---|---|---|---|
| inferred from passive behaviour | click 0.3, open_link 0.2, photo_expand 0.05, video_open 0.02, dwell 0.05, quoted_click 0.05, profile_click 0, vqv 0, quoted_vqv 0 |
0.670 | 1.55% |
| like | favorite 0.66 |
0.660 | 1.52% |
| high-effort explicit | share_via_copy_link 20, reply 5, quote 5, share_via_dm 5, follow_author 4, share 2, retweet 1 |
42.000 | 96.90% |
| post property | post_unexplored 0.015 |
0.015 | 0.03% |
(positive_sum = 43.345. Two continuous terms sit outside it: cont_dwell_time 0.006 per second and cont_click_dwell_time 0.4.)
1. 96.9% of the positive weight is attached to actions this viewer never takes. The ladder assumes a viewer emits the full range of actions. A viewer whose ceiling is a like is confined to the 1.5% at the bottom, and liking more does not help: the like count is not in the score, only P(like) is, and P(like) saturates.
2. The attention group is the same size as the like term but fires on every impression. Per unit probability, click + click_dwell_time + dwell = 0.3 + 0.4 + 0.05 = 0.75, against favorite = 0.66. The weights are nearly equal; the probabilities are not — P(click) and P(dwell) on a post that was merely scrolled past are far above P(like). So on essentially every candidate the attention terms outscore the like term.
The same imbalance is in the model input: each history row carries a dwell value (hist_dwell_time_vec in phoenix/xrex/models/recsys_feature_prep.py), so the sequence is up to 1024 attention samples against a handful of likes.
Worked example, illustrative probabilities, home-mixer defaults:
| contribution | |
|---|---|
the viewer who liked: favorite 0.66 × P=0.03 |
0.020 |
the same post for a viewer who only browsed it: click 0.3×0.10 + dwell 0.05×0.50 + dwell_time 0.006×8s + click_dwell_time 0.4×0.02 |
0.111 |
The browsing outweighs the preference by roughly 5×, and the pipeline cannot tell the two apart: in both cases what it has is a predicted probability, not a statement of preference.
The counterweight that should exist and doesn't
The attention heads have no negative counterpart of comparable magnitude. not_dwelled is −0.02, and it is ClientTweetRecapNotDwelled — a recap-module event, not "the viewer scrolled past". At equal probability a single dwell_time of 10 s is +0.06, three times the magnitude of not_dwelled at P=1; and in reality "did not dwell" is far more common than "dwelled 10 s". There is no label at all for "rendered, read, rejected". The only way a viewer can express rejection is a menu item, which lands on not_interested (−52.272) — a separate head, not a counterweight to attention.
So the score has a positive channel that is continuous, per-impression and large, and a negative channel that is a rare explicit action. A viewer who does not press menu items is, from the model's point of view, someone who likes everything a little.
Asks
- Is this asymmetry intended for viewers who never emit high-effort actions? If it is, one sentence in the docs would end a lot of speculation. If it isn't, this is where a fix would go.
- Would you consider either (a) reducing the attention terms relative to
favorite, or (b) givingdwella two-sided label family — a real scroll-past negative at comparable magnitude — so that attention is not a one-way ratchet? - Smaller and separate: the central number here is ambiguous inside the repo.
favoriteis 0.66 inhome-mixer/params/param.rs(which carries a sync header) and 0.5 invm-ranker/params.rs(which does not). Four more keys differ the same way:video_open0.02/0.07,cont_dwell_time0.006/0.004,post_unexplored0.015/0.02,not_interested−52.272/−47.52. Which is the production default? Everything above is computed with the first column.
I'm not claiming a scoring bug in the sense of a wrong number being served — I can't see the configuration system. The claim is about the shape of the objective, which is visible in the code.
A documentation PR that makes the current weights, the offset transform and this decomposition legible is up as #272. Related: #203.
Activity
[-]Two different hard-coded defaults for the same ranking weight, and a predicted head that carries no weight[/-][+]A like reaches 1.5% of the positive weight mass; the other 98.5% is high-effort actions or attention inferred from browsing[/+]