Page MenuHomePhabricator

Request: Research viability of us Reading List data for recommendations
Closed, ResolvedPublic

Description

NOTE: Note this request is coming from me personally, not the web team for now. It does not impact deliverables but if acted on could improve web team deliverables.

Please provide all the following information:

  • Context. Provide a short paragraph with some background context for your request, please include links to relevant material.

The mobile apps have a reading list feature which allows users to curate lists of interesting articles with a "title" and "description". I am interested in whether this data source could be used to create interesting recommendations for other readers, particularly by looking at popular articles added to a reading list during a time period or by recommending articles which appear often in the same user lists. For example if lists often include Paris and Madrid perhaps Madrid is a good recommendation for Paris for example.

Note the feature may soon be expanded to web in the next 12 months which would likely increase the data we have available.

Meanwhile the web team is exploring displaying recommendations to readers and identifying articles that are interesting via algorithms.

Better recommendations would increase internal page views which is a focus of the annual plan and understanding how the reading lists are being used would allow us to advance understanding of potential product use cases in future.

  • Description.What is your request about?

Research into how reading lists are being used by apps users. Research into whether they could inform future recommendation services (potentially for training AI models) that perform better than the existing more like and most read APIs.

  • Expected Deliverable. What is the ideal outcome or result of your request?
  • Estimated Effort. Please provide an estimate of the amount of work needed to complete this task, if known.
  • Priority*

Please indicate a priority of your task and a small description of what it would unlock for you. We ask you to leave this task as “needs triage” since your request will go through a Backlog refinement process where our team will prioritize the work.

I need this task resolved in:

  • 1 month.
  • 3 months.
  • 6 months. <-- Ideally
  • Whenever you get to it :-) <-- also fine
  • Other. Do you have any other questions or comments ?

For use by WMF Research team; please leave everything below as it is:

  1. Does the request serve one of the existing Research team's audiences? If yes, choose the primary audience. (1 of 4)
  2. What is the type of work requested?
  1. What is the impact of responding to this request?

Details

Due Date
Jan 7 2025, 5:00 AM

Event Timeline

Hello @Jdlrobson thanks for reaching out!

I had a chat with @MGerlach about this task. It would be very interesting to look at the datasets of lists built by app users. It could become a good evaluation dataset to evaluate the currently available models we are using for recommendations, and to estimate what a good recommendation for a reader is. This is something we have been struggling with when trying to evaluate the list-building tool. Eventually, we could also use the data for training, depending on the size of the data.

If you could share some of the data with @MGerlach, would a good first step in this direction be for Martin to look at this data and share what he learns? If yes, we might move rescope this task and move it under one of our existing epics?

@Isaac CC

That sounds great.
I think the big open question here is do we currently have access to the raw database table in the replicas in MariaDB (and if not how do we enable that or get a dump of that data to look at).

Since reading lists are private for the user, we'd likely want access to sanitized/anonymized versions of:

  • reading_list has a name and a description and an ID (and specifies the user that owns it which we wouldn't want)
  • reading_list_entry links a title which could be on any project to an ID - this would allow us to group "related" articles (related in the sense they are on the same reading list). We'd be looking for patterns of these groupings.

https://mediawiki.org/wiki/Extension:ReadingLists is the extension that adds them (and associated databases)

Update:

I managed to put together a first version of a cleaned dataset of reading lists. I applied the following filters:

  • only reading list entries from Wikipedia projects
  • only reading list entries that were not deleted
  • only reading lists that were not deleted
  • only reading lists that have more than 1 entry
  • only reading lists that dont have the default name

Each row in the table contains a separate reading list entry. Relevant fields:

  • rl_id: id of the reading list
  • rl_name: name of the reading list
  • rl_description: description of the reading list (can be empty)
  • rl_size: number of entries in the reading list
  • rle_id: id for the reading list entry
  • rle_title: name of the reading list entry (i.e. page title)
  • rle_wikidb: wiki of the reading list entry (a reading list can contain entries from different wikis

The table is available in hive: mgerlach.readinglists_sample_01
Notebook to generate/read the dataset: https://gitlab.wikimedia.org/repos/research/reading-lists/-/blob/main/reading-lists_create-dataset.ipynb

Some summary statistics:

  • Number of reading list entries: 27,041,558
  • Number of reading lists: 1,875,382
  • Number of reading list entries per wiki
rle_wikidbcount
enwiki15561258
dewiki2216873
eswiki1250884
ruwiki1230845
frwiki1187894
jawiki1090636
zhwiki864147
ptwiki461394
itwiki439623
arwiki411803
fawiki350340
trwiki301962
cswiki185971
plwiki154374
idwiki137716
hewiki136722
nlwiki128986
viwiki96404
kowiki89333
svwiki80085

Next: will dive a bit deeper into exploring the sample data

That's a lot of data! Far more than I expected!

• Isaac set Due Date to Jan 7 2025, 5:00 AM.

@MGerlach I've assigned the task to you and set a due date for early January. I'll leave it to you to scope this down now to something that can be completed by then. The goal is have the info by Jan 7th to know whether this is work that we want to continue with in Q3 or close out.

@Jdlrobson I completed my research on reading lists. I put together a detailed report of the results and the methodology (see this internal googledoc). Let me know if you have any follow-up questions or other comments either here or in the doc.

I looked into the following aspects

  • Data curation (Data access, pre-processing, filtering, etc)
  • Exploratory analysis (Summary statistics, qualitative analysis, etc)
  • Article recommendation experiment using vector search models

High-level summary:

  • Reading lists are a valuable dataset for related articles.
    • Quantity: It contains millions of reading lists/articles and covers many wikis
    • Quality: It captures articles that are related with each other as curated by readers (not editors via links, etc)
  • Reading lists allow to systematically evaluate different available models for article recommendation
    • Using reading lists we can operationalize an experiment for recommending related articles (offline, i.e. without actually deploying it in practice). This allows for easier iterative development of candidate models to serve this or similar use cases and is something we havent been able to easily do before due to lack of good ground-truth data of what constitutes a relevant recommendation for a related article for a reader.
    • We have evaluated different vector search models that use (large) language models to generate the underlying embeddings (each article is represented as a vector and we generate recommendations for related articles by finding nearest neighbors). However, these off-the-shelve vector models currently dont match the performance of morelike. The existing morelike model ( is a good baseline (used for surfacing related articles). Though its performance might be artificially inflated as app users could be directly using these recommendations to curate the reading lists.
  • Reading lists can be used to train new models for article recommendations
    • The reading lists can be used as training data to improve the models such that the recommendations better capture relationships between articles appearing in the same reading lists.
    • Developing such a model requires more work; there are many levers to substantially improve the performance of these models: larger pre-trained models, embedding technique (context window, sections), fine-tuning hyperparameters, etc. It also needs more refinement based on the intended use-case

I hope those insights answer at least some of your questions from your initial request about reading lists.
My inclination is to consider this task as completed and capture follow-up work that comes out of this in other tasks. Let me know.

Thanks a bunch! We're talking in web team about what potential next steps should be given these promising results! Thank you for this research!!! <3

Resolving this task -- thanks Jon and Martin! If we deem follow-ups are useful for future work, we can always open a new task.