471 lines
28 KiB
Plaintext
471 lines
28 KiB
Plaintext
---
|
||
title: "Do Servers Matter on Mastodon? Data-driven Design for Decentralized Social Media"
|
||
short-title: Mastodon Recommendations
|
||
authors:
|
||
- name: Carl Colglazier
|
||
affiliation:
|
||
name: Northwestern University
|
||
city: Evanston
|
||
state: Illinois
|
||
country: United States
|
||
corresponding: true
|
||
bibliography: references.bib
|
||
pdf-engine: pdflatex
|
||
format:
|
||
pdf:
|
||
output-file: mastodon-recommendations-icwsm.pdf
|
||
fig-pos: 'ht!bp'
|
||
cite-method: natbib
|
||
template: template.tex
|
||
keep-md: true
|
||
link-citations: false
|
||
abstract: |
|
||
When trying to join Mastodon, a decentralized collection of interoperable social networking servers, new users face the dilemma of choosing a home server. Using trace data from millions of new Mastodon accounts, we show that new accounts are less likely to remain active on the network's largest general instances compared to others. Additionally, we observe a trend of users migrating from larger to smaller servers. Addressing the challenge of onboarding and server selection, the paper proposes a decentralized recommendation system for server using hashtags and the Okapi BM25 algorithm. This system leverages servers' top hashtags and their frequency to create a recommendation mechanism that respects Mastodon's decentralized ethos.
|
||
execute:
|
||
echo: false
|
||
error: false
|
||
warning: false
|
||
message: false
|
||
freeze: false
|
||
cache: true
|
||
fig-width: 6.75
|
||
knitr:
|
||
opts_knit:
|
||
verbose: true
|
||
---
|
||
|
||
```{r}
|
||
#| label: setup
|
||
|
||
profile <- Sys.getenv("QUARTO_PROFILE", unset="acm")
|
||
if (profile == "acm") {
|
||
class_wide <- ".column-body"
|
||
} else {
|
||
class_wide <- ".column-page"
|
||
}
|
||
|
||
envs <- Sys.getenv()
|
||
```
|
||
|
||
# Introduction
|
||
|
||
Following Twitter's 2022 acquisition, Mastodon---an open-source, decentralized social network and microblogging community---saw an increase in activity and attention as a potential Twitter alternative [@heFlockingMastodonTracking2023; @cavaDriversSocialInfluence2023]. While millions of new accounts significantly increased the size of the network, many newcomers found the process confusing and did not remain active. Unlike centralized social media platforms, Mastodon is a network of independent servers, each with their own rules and norms [@nicholsonMastodonRulesCharacterizing2023], which can communicate with each other using the shared ActivityPub protocols. Athough accounts can move between Mastodon servers, the local experience can vary widely from server to server.
|
||
|
||
Attracting and retaining newcomers is a key challenge for online communities [@krautBuildingSuccessfulOnline2011 p. 182]. On Mastodon, the onboarding process has not always been straightforward: variation among servers mean newcomers who may not even be aware of the specific rules, norms, or general topics of interest on the server they are joining [@diazUsingMastodonWay2022]. Various guides and resources for people trying to join Mastodon offered mixed advice on choosing a server. Some suggest that the most important thing is to simply join any server and work from there [@krasnoffMastodon101How2022; @silberlingBeginnerGuideMastodon2023]; others have created tools and guides to help people find potential servers of interest by size and location[@thekinrarMastodonInstances; @kingMastodonMe2024].
|
||
|
||
Mastodon's decentralized design has long been in tension with the disproportionate popularity of a small set of large, general-topic servers within the system [@ramanChallengesDecentralisedWeb2019a]. Analysing the activity of new accounts that join the network, we find that users who sign up on such servers are less likely to remain active after 91 days. We also find that users who move accounts tend to gravitate toward smaller, more niche servers over time, suggesting that established users may also find additional utility from such servers.
|
||
|
||
In response to these findings, we propose a potential extension to Mastodon to facilitate server and tag recommendations by having each server report their most popular local hashtags. This recommendation system could both help newcomers find servers that match their interests and help established accounts discover "neighborhoods" of related servers.
|
||
|
||
# Background
|
||
|
||
## Empirical Setting
|
||
|
||
The Fediverse is a set of decentralized online social networks which interoperate using shared protocols like ActivityPub. Mastodon is a software program used by many Fediverse servers and offers a user experience similar to the Tweetdeck client for Twitter. It was first created in late 2016 and saw a surge in interest in 2022 during and after Elon Musk's Twitter acquisition.
|
||
|
||
Mastodon features three kinds of timelines: a "home" timeline which shows all posts from accounts followed by the user; a "local" timeline which shows all public posts from the local server; and a "federated" timeline which includes all posts from users followed by other users on their server. The local timeline is unique to each server. On larger servers, this timeline can be unwieldy; however, on smaller servers, it presents the opportunity to discover new posts and users of potential interest.
|
||
|
||
Discovery has been challenging on Masotodon. Text search, for instance, was impossible on most servers until support for this feature was added on an optional, opt-in basis using Elasticsearch in late 2023 [@rochkoMastodon2023]. Recommendation systems are currently a somewhat novel problem in the context of decentralized online social networks. @trienesRecommendingUsersWhom2018 developed a recommendation system for finding new accounts to follow on the Fediverse which used collaborative filtering based on BM25 in an early example of a content discovery system on Mastodon.
|
||
|
||
Individual Mastodon servers can have an effect on the end experience of users. For example, some servers may choose to federate with some servers but not others, altering the topology of the Fediverse network for their users. At the same time, accounts need to be locked into one specific server. Because of Mastodon's data portability, users can move their accounts freely between servers while retaining their followers, though their post history remains with their original account.
|
||
|
||
## The Mastodon Migrations
|
||
|
||
Mastodon saw a surge in interest in 2022 and 2023, particularly after Elon Musk's Twitter acquisition. In particular, four events of interests drove measurable increases in new users to the network: the announcement of the acquisition (April 14, 2022), the closing of the acquisition (October 27, 2022), a day when Twitter suspended a number of prominent journalists (December 15, 2022), and a day when Twitter experienced an outage and started rate limiting accounts (July 1, 2023). Many Twitter accounts announced they were setting up Mastodon accounts and linked their new accounts to their followers, often using tags like #TwitterMigration [@heFlockingMastodonTracking2023] and driving interest in Mastodon in a process @cavaDriversSocialInfluence2023 found consistent with social influence theory.
|
||
|
||
Some media outlets have framed reports on Mastodon [@hooverMastodonBumpNow2023] through what @zulliRethinkingSocialSocial2020 calls the "Killer Hype Cycle", whereby the media finds a new alternative social media platform, declares it a potential killer of some established platform, and later calls it a failure if it does not displace the existing platform. Such framing fails to take systems like the Fediverse seriously for their own merits: completely replacing existing commercial systems is not the only way to measure success, nor does it account for the real value the Fediverse provides for its millions of active users.
|
||
|
||
Mastodon's approach to onboarding has also changed over time. In much of 2020 and early 2021, the Mastodon developers closed sign-ups to their flagship server and linked to an alternative server, which saw increased sign-ups during this period. They also linked to a list of servers on the "Join Mastodon" webpage [@mastodonggmbhServers], where all servers are pre-approved and follow the Mastodon Server Covenant which guarantees certain content moderation standards and data protections. Starting in 2023, the Mastodon developers shifted toward making the flagship server the default when people sign up on the official Mastodon Android and iOS apps [@rochkoNewOnboardingExperience2023; @rothItGettingEasier2023].
|
||
|
||
## Newcomers in Online Communities
|
||
|
||
Onboarding newcomers is an important part of the life cycle of online communities. Any community can expect a certain amount of turnover, and so it is important for the long-term health and longevity of the community to be able to bring in new members [@krautBuildingSuccessfulOnline2011 p. 182]. However, the process of onboarding newcomers is not always straightforward.
|
||
|
||
The series of migrations of new users into Mastodon in many ways reflect folk stories of "Eternal Septembers" on previous communication networks, where a large influx of newcomers challenged the existing norms [@driscollWeMisrememberEternal2023; @kieneSurvivingEternalSeptember2016]. Many Mastodon servers do have specific norms which people coming from Twitter may find confusing, such as local norms around content warnings [@nicholsonMastodonRulesCharacterizing2023]. Variation among servers can also present a challenge for newcomers who may not even be aware of the specific rules, norms, or general topics of interest on the server they are joining [@diazUsingMastodonWay2022]. Mastodon servers open to new accounts must thus be both accommodating to newcomers while at the same ensuring the propagation of their norms and culture, either through social norms or through technical means.
|
||
|
||
# Data
|
||
|
||
```{r}
|
||
#| label: fig-account-timeline
|
||
#| fig-cap: "Accounts in the dataset created between January 2022 and March 2023. The top panels shows the proportion of accounts still active 45 days after creation, the proportion of accounts that have moved, and the proportion of accounts that have been suspended. The bottom panel shows the count of accounts created each week. The dashed vertical lines in the bottom panel represent the annoucement day of the Elon Musk Twitter acquisition, the acquisition closing day, a day where Twitter suspended a number of prominent journalist, and a day when Twitter experienced an outage and started rate limiting accounts."
|
||
#| fig-height: 2.75
|
||
#| fig-width: 6.75
|
||
#| fig-env: figure*
|
||
#| fig-pos: tb!
|
||
|
||
library(here)
|
||
source(here("code/helpers.R"))
|
||
account_timeline_plot()
|
||
```
|
||
|
||
Mastodon has an extensive API which allows for the collection of public posts and account information. We collected data from the public timelines of Mastodon servers using the Mastodon API with a crawler which runs once per day. We also collected account information from the opt-in public profile directories on these servers.
|
||
|
||
```{r}
|
||
#| label: data-counts
|
||
#| cache: true
|
||
|
||
library(arrow)
|
||
library(tidyverse)
|
||
library(here)
|
||
source(here("code/helpers.R"))
|
||
|
||
accounts <- load_accounts(filt = FALSE) %>%
|
||
filter(created_at >= "2020-08-14") %>%
|
||
filter(created_at < "2024-01-01")
|
||
|
||
tag_posts <- "data/scratch/all_tag_posts.feather" %>%
|
||
arrow::read_ipc_file(. , col_select = c("host", "acct", "created_at")) %>%
|
||
filter(created_at >= as.Date("2023-05-01")) %>%
|
||
filter(created_at < as.Date("2023-08-01"))
|
||
|
||
text_format <- function(df) {
|
||
return (format(nrow(df), big.mark=","))
|
||
}
|
||
|
||
num_tag_posts <- tag_posts %>% text_format()
|
||
num_tag_accounts <- tag_posts %>% distinct(host, acct) %>% text_format()
|
||
num_tag_servers <- tag_posts %>% distinct(host) %>% text_format()
|
||
|
||
num_accounts_unfilt <- accounts %>% text_format()
|
||
num_account_bots <- accounts %>% filter(bot) %>% text_format()
|
||
num_account_nostatuses <- accounts %>% filter(is.na(last_status_at)) %>% text_format()
|
||
num_account_suspended <- accounts %>% mutate(suspended = replace_na(suspended, FALSE)) %>% filter(suspended) %>% text_format()
|
||
num_accounts_moved <- accounts %>% filter(has_moved) %>% text_format()
|
||
num_account_limited <- accounts %>% filter(limited) %>% text_format()
|
||
num_account_samedaystatus <- accounts %>% filter(last_status_at <= created_at) %>% text_format()
|
||
num_account_filt <- load_accounts(filt = TRUE) %>% text_format()
|
||
```
|
||
|
||
**Mastodon Profiles**: We collected accounts using data previously collected from posts on public Mastodon timelines from October 2020 to August 2023. We then queried for up-to-date information on those accounts including their most recent status and if the account had moved as of February 2024. Through this process, we discovered a total of `r num_accounts_unfilt` account created between August 14, 2020 and January 1, 2024. We then filtered out accounts which were bots (`r num_account_bots` accounts), had been suspended (`r num_account_suspended` accounts), had been marked as moved to another account (`r num_accounts_moved` accounts), had been limited by their local server (`r num_account_limited` accounts), had no statuses (`r num_account_nostatuses` accounts), or had posted their last status on the same day as their account creation (`r num_account_samedaystatus` accounts). This gave us a total of `r num_account_filt` accounts which met all the filtering criteria. Note that because we got updated information on each account, we include only accounts on servers which still existed at the time of our profile queries and which returned records for the account.
|
||
|
||
**Tags**: Mastodon supports hashtags, which are user-generated metadata tags that can be added to posts. Clicking the link for a tag shows a stream of posts which also have that tag from the federated timeline, which includes accounts on the same server and posts from accounts followed by the accounts on the local server. We collected `r num_tag_posts` statuses posted by `r num_tag_accounts` accounts on `r num_tag_servers` unique servers from between May to July 2023 which contained at least one hashtag.
|
||
|
||
# Analysis and Results
|
||
|
||
## Survival Model
|
||
|
||
*Are accounts on suggested general servers less likely to remain active than accounts on other servers?*
|
||
|
||
```{r, cache.extra = tools::md5sum("code/survival.R")}
|
||
#| cache: true
|
||
#| label: fig-survival
|
||
#| fig-env: figure
|
||
#| fig-cap: "Survival probabilities for accounts created during May 2023."
|
||
#| fig-width: 3.375
|
||
#| fig-height: 2.5
|
||
#| fig-pos: h!
|
||
|
||
library(here)
|
||
source(here("code/survival.R"))
|
||
plot_km
|
||
```
|
||
|
||
```{r}
|
||
#| label: table-coxme
|
||
library(ehahelper)
|
||
library(broom)
|
||
|
||
cxme_table <- tidy(cxme) %>%
|
||
mutate(conf.low = exp(conf.low), conf.high=exp(conf.high)) %>%
|
||
mutate(term = case_when(
|
||
term == "factor(group)1" ~ "Join Mastodon",
|
||
term == "factor(group)2" ~ "General Servers",
|
||
term == "small_serverTRUE" ~ "Small Server",
|
||
TRUE ~ term
|
||
)) %>%
|
||
mutate(exp.coef = paste("(", round(conf.low, 2), ", ", round(conf.high, 2), ")", sep="")) %>%
|
||
select(term, estimate, exp.coef , p.value)
|
||
```
|
||
|
||
Using `r text_format(sel_a)` accounts created from May 1 to June 30, 2023, we create a Kaplan–Meier estimator for the probability that an account will remain active based on whether the account is on one of the largest general instances [^1] featured at the top of the Join Mastodon webpage or otherwise if it is on a server in the Join Mastodon list. Accounts are considered active if they have made at least one post after the censorship period `r active_period` days after account creation.
|
||
|
||
[^1]: `r paste(general_servers, collapse=", ")`
|
||
|
||
::: {.content-visible unless-profile="icwsm"}
|
||
|
||
::: {#tbl-cxme .column-body}
|
||
```{r}
|
||
if (knitr::is_latex_output()) {
|
||
cxme_table %>% knitr::kable(format="latex", booktabs=TRUE, digits=3)
|
||
} else {
|
||
cxme_table %>% knitr::kable(digits = 3)
|
||
}
|
||
```
|
||
|
||
Coefficients for the Cox Proportional Hazard Model with Mixed Effects. The model includes a random effect for the server.
|
||
|
||
:::
|
||
|
||
|
||
We also construct a Mixed Effects Cox Proportional Hazard Model
|
||
|
||
$$
|
||
h(t_{ij}) = h_0(t) \exp\left(\begin{aligned}
|
||
&\beta_1 \text{Join Mastodon} \\
|
||
&+ \beta_2 \text{General Servers} \\
|
||
&+ \beta_3 \text{Small Server} \\
|
||
&+ b_{j}
|
||
\end{aligned}\right)
|
||
$$
|
||
|
||
where $h(t_{ij})$ is the hazard for account $i$ on server $j$ at time $t$, $h_0(t)$ is the baseline hazard, $\beta_1$ is the coefficient for whether the account is on a server featured on Join Mastodon, $\beta_2$ is the coefficient for whether the account is on one of the largest general instances, $\beta_3$ is the coefficient for whether the account is on a small server with less than 100 accounts, and $b_{j}$ is the random effect for server $j$.
|
||
|
||
<!-- with coefficients for whether the account is on a small server (less than a hundred accounts), and whether the account in featured on JoinMastodon or is featured as one of the largest general instances. -->
|
||
|
||
We again find that accounts on the largest general instances are less likely to remain active than accounts on other servers, while accounts created on smaller servers are more likely to remain active.
|
||
|
||
:::
|
||
|
||
## Moved Accounts
|
||
|
||
*Do accounts tend to move to larger or smaller servers?*
|
||
|
||
Mastodon users can move their accounts to another server while retaining their connections (but not their posts) to other Mastodon accounts. This feature, built into the Mastodon software, offers data portability and helps avoid lock-in.
|
||
|
||
```{r}
|
||
#| label: table-ergm-table
|
||
#| echo: false
|
||
#| warning: false
|
||
#| message: false
|
||
#| error: false
|
||
|
||
library(here)
|
||
library(modelsummary)
|
||
library(kableExtra)
|
||
library(purrr)
|
||
library(stringr)
|
||
load(file = here("data/scratch/ergm-model-early.rda"))
|
||
load(file = here("data/scratch/ergm-model-late.rda"))
|
||
|
||
if (knitr::is_latex_output()) {
|
||
format <- "latex_tabular"
|
||
} else {
|
||
format <- "html"
|
||
}
|
||
|
||
x <- modelsummary(
|
||
list("Coef." = model.early, "Std.Error" = model.early),#, "Coef." = model.late, "Std.Error" = model.late),
|
||
estimate = c("{estimate}", "{stars}{std.error}"),# "{estimate}", "{stars}{std.error}"),
|
||
statistic = NULL,
|
||
gof_omit = ".*",
|
||
coef_rename = c(
|
||
"sum" = "Sum",
|
||
"nonzero" = "Nonzero",
|
||
"diff.sum0.h-t.accounts" = "Smaller server",
|
||
"nodeocov.sum.accounts" = "Server size\n(outgoing)",
|
||
"nodeifactor.sum.registrations.TRUE" = "Open registrations\n(incoming)",
|
||
"nodematch.sum.language" = "Languages match"
|
||
),
|
||
align="lrr",
|
||
stars = c('*' = .05, '**' = 0.01, '***' = .001),
|
||
output = format
|
||
)# %>% add_header_above(c(" " = 1, "Model A" = 2, "Model B" = 2))
|
||
```
|
||
|
||
:::: {#tbl-ergm-table }
|
||
|
||
```{r}
|
||
x # `r class_wide`
|
||
```
|
||
|
||
Exponential family random graph models for account movement between Mastodon servers. Accounts were created in May 2022 and moved to another account at some later point.
|
||
|
||
::::
|
||
|
||
To corroborate our findings, we also use data from thousands of accounts which moved between Mastodon servers, taking advantage of the data portability of the platform. Conceiving of these moved accounts as edges within a weighted directional network where nodes represent servers, edges represent accounts, and weights represent the number of accounts that moved between servers, we construct an exponential family random graph model (ERGM) with terms for server size, open registrations, and language match between servers. We find that accounts are more likely to move from larger servers to smaller servers.
|
||
|
||
|
||
# Proposed Recommendation System
|
||
|
||
*How can we build an opt-in, low-resource recommendation system for finding Fediverse servers?*
|
||
|
||
Based on these findings, we suggest a need for better ways for newcomers to find servers and propose a viable way to create server and tag recommendations on Mastodon. This system could both help newcomers find servers that match their interests and help established accounts discover "neighborhoods" of related servers.
|
||
|
||
One challenge in building such a system is the decentralized nature of the system. A single, central actor which collects data from servers and then distributes recommendations would be antithetical to the decentralized nature of Mastodon. Instead, we propose a system where servers can report the top hashtags by the number of unique accounts on the server using them during the last three months. Such a system would be opt-in and require few additional server resources since tags already have their own database table.
|
||
|
||
## Recommendation System Design
|
||
|
||
We use Okapi BM25 to construct a term frequency-inverse document frequency (TF-IDF) model to associate the top tags with each server using counts of tag-account pairs from each server for the term frequency and the number of servers that use each tag for the inverse document frequency. We then L2 normalize the vectors for each tag and calculate the cosine similarity between the tag vectors for each server.
|
||
|
||
$$
|
||
tf = \frac{f_{t,s} \cdot (k_1 + 1)}{f_{t,s} + k_1 \cdot (1 - b + b \cdot \frac{|s|}{avgstl})}
|
||
$$
|
||
|
||
where $f_{t,s}$ is the number of accounts using the tag $t$ on server $d$, $k_1$ and $b$ are tuning parameters, and $avgstl$ is the average sum of account-tag pairs. For the inverse document frequency, we use the following formula:
|
||
|
||
$$
|
||
idf = \log \frac{N - n + 0.5}{n + 0.5}
|
||
$$
|
||
|
||
where $N$ is the total number of servers and $n$ is the number of servers where the tag appears as one of the top tags. We then apply L2 normalization:
|
||
|
||
$$
|
||
tfidf = \frac{tf \cdot idf}{\| tf \cdot idf \|_2}
|
||
$$
|
||
|
||
## Applications
|
||
|
||
```{r}
|
||
#| eval: false
|
||
library(tidyverse)
|
||
library(igraph)
|
||
library(arrow)
|
||
|
||
sim_servers <- "data/scratch/server_similarity.feather" %>% arrow::read_ipc_file() %>% rename("weight" = "Similarity")
|
||
#sim_net <- as.network(sim_servers)
|
||
g <- graph_from_data_frame(sim_servers, directed = FALSE)
|
||
|
||
g_strength <- log(sort(strength(g)))
|
||
normalized_strength <- (g_strength - min(g_strength)) / (max(g_strength) - min(g_strength))
|
||
|
||
server_centrality <- enframe(normalized_strength, name="server", value="strength")
|
||
server_centrality %>% arrow::write_ipc_file("data/scratch/server_centrality.feather")
|
||
```
|
||
|
||
### Server Similarity Neighborhoods
|
||
|
||
Mastodon provides two feeds in addition to a user's home timeline populated by accounts they follow: a local timeline with all public posts from their local server and a federated timeline which includes all posts from users followed by other users on their server. We suggest a third kind of timeline, a *neighborhood timeline*, which filters the federated timeline by topic. We calculate the pairwise similarity between two servers using cosine similarity.
|
||
|
||
::: {#tbl-sim-servers .content-visible unless-profile="icwsm"}
|
||
|
||
```{r}
|
||
#| label: table-sim-servers
|
||
library(tidyverse)
|
||
library(arrow)
|
||
|
||
sim_servers <- "data/scratch/server_similarity.feather" %>% arrow::read_ipc_file()
|
||
server_of_interest <- "hci.social"
|
||
server_table <- sim_servers %>%
|
||
arrange(desc(Similarity)) %>%
|
||
filter(Source == server_of_interest | Target == server_of_interest) %>%
|
||
head(5) %>%
|
||
pivot_longer(cols=c(Source, Target)) %>%
|
||
filter(value != server_of_interest) %>%
|
||
select(value, Similarity) %>%
|
||
rename("Server" = "value")
|
||
|
||
if (knitr::is_latex_output()) {
|
||
server_table %>% knitr::kable(format="latex", booktabs=TRUE, digits=3)
|
||
} else {
|
||
server_table %>% knitr::kable(digits = 3)
|
||
}
|
||
```
|
||
|
||
Top five servers most similar to hci.social
|
||
|
||
:::
|
||
|
||
### Tag Similarity
|
||
|
||
We also calculate the similarity between tags using the same method. This can be used to suggest related tags to users based on their interests or tags related to already selected tags in the recommendation system.
|
||
|
||
### Server Discovery
|
||
|
||
Given a set of popular tags and a list of servers, we build a recommendation system[^rec] where users select tags from a list of popular tags and receive server suggestions. The system first creates a subset of vectors based on the TF-IDF matrix which represents the top clusters of topics. After a user selects the top tags of interest to them, it suggests servers which match their preferences using the singular value decomposition (SVD) of the TF-IDF matrix.
|
||
|
||
[^rec]: A live demo for the system is availible at https://cheesecake.live/files/jsdemo/witch.html
|
||
|
||
::: {.content-visible unless-profile="icwsm"}
|
||
|
||
## Rubustness to Limited Data
|
||
|
||
```{r}
|
||
#| label: fig-simulations-rbo
|
||
#| fig-env: figure*
|
||
#| cache: true
|
||
#| fig-width: 6.75
|
||
#| fig-height: 3
|
||
#| fig-pos: tb
|
||
library(tidyverse)
|
||
library(arrow)
|
||
simulations <- arrow::read_ipc_file("data/scratch/simulation_rbo.feather")
|
||
|
||
simulations %>%
|
||
group_by(servers, tags, run) %>% summarize(rbo=mean(rbo), .groups="drop") %>%
|
||
mutate(ltags = as.integer(log2(tags))) %>%
|
||
ggplot(aes(x = factor(ltags), y = rbo, fill = factor(ltags))) +
|
||
geom_boxplot() +
|
||
facet_wrap(~servers, nrow=1) +
|
||
#scale_y_continuous(limits = c(0, 1)) +
|
||
labs(x = "Tags (log2)", y = "RBO", title = "Rank Biased Overlap with Baseline Rankings by Number of Servers") +
|
||
theme_minimal() + theme(legend.position = "none")
|
||
```
|
||
|
||
A challenge for a federated recommendation system like we propose is that it needs buy in from a sufficient number of servers to provide value. There is also a tradeoff between the amount of tags to expose for each server and potential concerns about exposing too much data.
|
||
|
||
We simulated various scenarios that limit both servers that report data and the number of tags they report. We used rank biased overlap (RBO) to then compare the outputs from these simulations to the baseline with more complete information from all tags on all servers [@webberSimilarityMeasureIndefinite2010]. In particular, we gave a higher weight to suggestions with a higher rank, with weights decaying by a factor of $k^{0.80}$. @fig-simulations-rbo shows how the average agreement with the baseline scales, which take the top 256 tags from each server.
|
||
|
||
:::
|
||
|
||
# Discussion
|
||
|
||
The analysis can also be improved by additionally focusing on factors lead to accounts remaining active or dropping out, which a particular focus on the actual activity of accounts over time. For instance, do accounts that interact with other users more remain active longer? Are there particular markers of activity that are more predictive of account retention? Future work could use these to provide suggests for ways to helps newcomers during the onboarding process.
|
||
|
||
The observational nature of the data limit some of the causal claims we can make. It is unclear, for instance, if accounts on general servers are less likely to remain active because of the server itself or because of the type of users who join such servers. For example, it is conceivable that the kind of person who spends more time researching which server to join is more invested in their Mastodon experience than one who simply joins the first server they find.
|
||
|
||
Future work is necessary to determine the how well the recommendation system is at helping users find servers that match their interests. This may involve user studies and interviews to determine how well the system works in practice.
|
||
|
||
While the work presented here is based on observed posts on the public timelines, simulations may be helpful in determining the robustness of the system to targeted attacks. Due to the decentralized nature of the system, it is feasible that a bad actor could set up zombie accounts on servers to manipulate the recommendation system. Simulations could help determine how well the system can resist such attacks and ways to mitigate this risk.
|
||
|
||
# Conclusion
|
||
|
||
Based on analysis of trace data from millions of new Fediverse accounts, we find evidence that suggests that servers matter and that users tend to move from larger servers to smaller servers. We then propose a recommendation system that can help new Fediverse users find servers with a high probability of being a good match based on their interests. Based on simulations, we demonstrate that such a tool can be effectively deployed in a federated manner, even with limited data on each local server.
|
||
|
||
# References {#references}
|
||
|
||
::: {.content-visible unless-profile="icwsm"}
|
||
|
||
# Glossary {.appendix}
|
||
|
||
*ActivityPub*: A decentralized social networking protocol based on the ActivityStreams 2.0 data format.
|
||
|
||
*Fediverse*: A set of decentralized online social networks which interoperate using shared protocols like ActivityPub.
|
||
|
||
*Mastodon*: An open-source, decentralized social network and microblogging community.
|
||
|
||
*Hashtag*: A user-generated metadata tag that can be added to posts.
|
||
|
||
*Federated timeline*: A timeline which includes all posts from users followed by other users on their server.
|
||
|
||
*Local timeline*: A timeline with all public posts from the local server.
|
||
:::
|
||
|
||
::: {.content-visible when-format="html"}
|
||
|
||
```{r}
|
||
library(tidyverse)
|
||
library(arrow)
|
||
library(ggrepel)
|
||
|
||
"data/scratch/server_svd.feather" %>% arrow::read_ipc_file() %>%
|
||
as_tibble %>%
|
||
ggplot(aes(x = x, y = y, label = server)) +
|
||
geom_text_repel(size = 2, max.overlaps = 10) +
|
||
#geom_point() +
|
||
theme_minimal()
|
||
```
|
||
|
||
```{r}
|
||
library(tidyverse)
|
||
library(arrow)
|
||
library(ggrepel)
|
||
library(here)
|
||
library(jsonlite)
|
||
|
||
top_tags <- "data/scratch/tag_svd.feather" %>% arrow::read_ipc_file() %>%
|
||
as_tibble %>%
|
||
mutate(s = variance * log(count)) %>% arrange(desc(s))
|
||
|
||
top_tags %>%
|
||
select(tag, index) %>%
|
||
jsonlite::write_json(here("recommender/data/top_tags.json"))
|
||
|
||
top_tags %>%
|
||
head(100) %>%
|
||
ggplot(aes(x = x, y = y, label = tag)) +
|
||
geom_text_repel(size = 3, max.overlaps = 10) +
|
||
#geom_point() +
|
||
theme_minimal()
|
||
```
|
||
|
||
::: |