junior-sheer/article.qmd
2024-02-27 14:08:11 -06:00

361 lines
19 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Recommending Servers on Mastodon
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:
html: default
pdf+icwsm:
fig-pos: 'ht!bp'
cite-method: natbib
template: template.tex
keep-md: true
link-citations: false
acm-pdf:
output-file: mastodon-recommendations-acm.pdf
acm-metadata:
# comment this out to make submission anonymous
anonymous: true
# comment this out to build a draft version
#final: true
# comment this out to specify detailed document options
# acmart-options: sigconf, review
# acm preamble information
copyright-year: 2018
acm-year: 2018
copyright: acmcopyright
doi: XXXXXXX.XXXXXXX
conference-acronym: "Conference acronym 'XX"
conference-name: |
Make sure to enter the correct
conference title from your rights confirmation emai
conference-date: June 03--05, 2018
conference-location: Woodstock, NY
price: "15.00"
isbn: 978-1-4503-XXXX-X/18/06
# if present, replaces the list of authors in the page header.
shortauthors: Colglazier
# The code below is generated by the tool at http://dl.acm.org/ccs.cfm.
# Please copy and paste the code instead of the example below.
ccs: |
\begin{CCSXML}
<ccs2012>
<concept>
<concept_id>10010520.10010553.10010562</concept_id>
<concept_desc>Computer systems organization~Embedded systems</concept_desc>
<concept_significance>500</concept_significance>
</concept>
<concept>
<concept_id>10010520.10010575.10010755</concept_id>
<concept_desc>Computer systems organization~Redundancy</concept_desc>
<concept_significance>300</concept_significance>
</concept>
<concept>
<concept_id>10010520.10010553.10010554</concept_id>
<concept_desc>Computer systems organization~Robotics</concept_desc>
<concept_significance>100</concept_significance>
</concept>
<concept>
<concept_id>10003033.10003083.10003095</concept_id>
<concept_desc>Networks~Network reliability</concept_desc>
<concept_significance>100</concept_significance>
</concept>
</ccs2012>
\end{CCSXML}
\ccsdesc[500]{Computer systems organization~Embedded systems}
\ccsdesc[300]{Computer systems organization~Redundancy}
\ccsdesc{Computer systems organization~Robotics}
\ccsdesc[100]{Networks~Network reliability}
keywords:
- decentralized online social networks
abstract: |
When trying to join the Fediverse, a decentralized collection of interoperable social networking websites, new users face the dillema of choosing a home server. Using trace data from millions of new Fediverse accounts, we show that new accounts on the flagship server are less likely to remain active and that accounts that move between servers tend to move from larger servers to smaller server. We then use the insights from our analysis to build a tool 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 effective even with limited data on each local server.
execute:
echo: false
error: false
warning: false
message: false
freeze: auto
fig-width: 6.75
knitr:
opts_knit:
verbose: true
#filters:
# - parse-latex
---
# Introduction
The Fediverse has emerged as a viable alternative to corporate, centralized social media such as Twitter and Reddit. Over the course of the last two years, millions of people have set up new accounts, significantly increasing the size of the network. In the wake of Elon Musk's Twitter aquisition, Mastodon, a popular Fediverse software which offers a Twitter-like experience, saw in increase in activity and scrutiny.
We show how the onboarding process for Mastodon has changed over time with a particular focus on the largest, flagship Mastodon server. Users who sign up to this server are less likely to remain active. Based on data from over a million Mastodon accounts, we also find that many users who move accounts tend to gravitate toward smaller, more niche servers over time.
We design a potential way to create server and tag recommendations on Mastodon, which 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.
Discovery has been challenging on Masotodon. The developers and user base tend to be skeptical of algorithmic intrusions, instead opting for timelines which only show posts in reverse chronological order. Search is also difficult. Public hashtags are searchable, but most servers have traditionally not supported searching keywords or simple strings. Accounts can only be searched using their full `username@server` form.
Mastodon features a "home" timeline which shows all public posts from accounts that share the same home server. On larger servers, this timeline can be unwieldy; however, on smaller servers, this presents the opportunity to discover new posts and users of potential interest.
Mastodon offers its users high levels of data portability. Users can move their accounts accross instances while retaining their follows (their post data; however, does not move with the new account). The choice of an initial instance consequentially is not irreversible.
## Newcomers in Online Communities
Onboarding newcomers is an important part of the lifecycle 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. Newcomers may have difficulty finding the community, understanding the norms and expectations, and finding a place for themselves within the community. This can lead to high rates of attrition among newcomers.
## 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.
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]. Many Mastodon servers do have specific norms which people coming from Twitter may find confusing, such as local norms around content warnings [@nicholsonMastodonRulesCharacterizing2023]. Variation amoung 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].
Some media outlets have framed reports on Mastodon [@hooverMastodonBumpNow2023] through what @zulliRethinkingSocialSocial2020 calls the "Killer Hype Cycle", whereby the media finds a new alterntive social media platform, declares it a potential killer of some established platform, and laters 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.
# 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: 3
#| fig-width: 6.75
#| fig-env: figure*
#| fig-pos: htb!
library(here)
source(here("code/helpers.R"))
account_timeline_plot()
```
**Mastodon Profiles**: We collected accounts using data previously collected from posts on public Mastodon timelines from October 2020 to January 2024. We then queried for up-to-date information on those accounts including their most recent status and if the account had moved. This gave us a total of N accounts. Note that because we got updated information on each account, we include only accounts on servers which still exist and which returned records for the account.
**Moved Profiles**: We found a subset of N accounts which had moved from one server to another.
**Tags**: We collect N posts which contained between 2 and 5 hashtags.
# Analysis and Results
## Competition Among Servers in Attracting Newcomers
_How does mastodon.social factor into the aggregate Mastodon onboarding process?_
::: {#fig-mastodon-online-signup-disabled width=50% .content-visible when-format="html"}
![](images/mastodon-social-signups-2020-11-01.png){fig-env="figure" width=6cm height=6cm}
The main page of mastodon.social as viewed by a logged out web browser on November 1, 2020. The sign-up form is blurred out and instead there is a message suggesting to either sign up on mastodon.online or see a list of servers accepting new accounts at joinmastodon.org.
:::
Throughout its history, Mastodon's flagship server, mastodon.social, has allowed and disallowed open sign-ups at various times. When the website did not allow sign-ups, it displayed a message redirecting those interested in signing up for an account to mastodon.social or alternatively to a list of potential servers at joinmastodon.com.
We found three main periods during which mastodon.social did not accept new signups by first noting the times in @fig-account-timeline where the proportion of new accounts on mastodon.social drops to zero. We then used the Internet Archive to verify that signups were disabled during these periods.
1. An extended period of through the end of October 2020.
2. A temporary issue when the email host limited the server in mid-2022.
3. Two periods in late 2022 and early 2023.
We construct an interrupted time series using an autoregressive integrated moving average (ARIMA) model for sign-ups on mastodon.social, the servers linked in joinmastodon.org, and all other servers. For the first period, we also include mastodon.online since mastodon.social linked to it directly during that time.
::: {.content-visible when-format="html"}
$$
\begin{aligned}
y_t &= \beta_0 + \beta_1 \text{open}_t + \beta_2 \text{day}_t + \beta_3 (\text{open} \times \text{day})_t \\
&\quad + \beta_4 \sin\left(\frac{2\pi t}{7}\right) + \beta_5 \cos\left(\frac{2\pi t}{7}\right) \\
&\quad + \beta_6 \sin\left(\frac{4\pi t}{7}\right) + \beta_7 \cos\left(\frac{4\pi t}{7}\right) \\
&\quad + \phi_1 y_{t-1} + \phi_2 y_{t-2} + \epsilon_t
\end{aligned}
$$
where $y_t$ is the number of new accounts on a server at time $t$, $\text{open}_t$ is a binary variable indicating if the server is open to new sign-ups, $\text{day}_t$ is an increasing integer represnting the date, and $\epsilon_t$ is a white noise error term. We use the sine and cosine terms to account for weekly seasonality.
| Period | Setting | Significant |
|------------|:----------------|:----|
| 2020-2021 | mastodon.online | Yes |
| | JoinMastodon | No |
| | Other | No |
| Mid 2022 | JoinMastodon | No |
| | Other | No |
| Early 2022 | JoinMastodon | No |
| | Other | No |
: Results from ARIMA models for the number of new accounts on mastodon.social, mastodon.online, servers linked in joinmastodon.org, and all other servers.
:::
::: {.content-visible when-format="pdf+icwsm}
```{=latex}
\begin{table}[!ht]
\centering
\begin{tabular}{|l|l|l|}
\hline
Period & Setting & Significant \\ \hline
2020-2021 & mastodon.online & Yes \\ \hline
~ & JoinMastodon & No \\ \hline
~ & Other & No \\ \hline
Mid 2022 & JoinMastodon & No \\ \hline
~ & Other & No \\ \hline
Early 2022 & JoinMastodon & No \\ \hline
~ & Other & No \\ \hline
\end{tabular}
\end{table}
```
:::
## Survival Model
_Are accounts on mastodon.social 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_survival
```
Using accounts created during May 2023, we create KaplanMeier estimator for the probability that an account will remain active based on whether the account is on mastodon.social or otherwise if it is on a server in the Join Mastodon list. An account is considered active if it posted a status on or after December 1, 2023 and all accounts which posted after that point are considered censored.
The results suggest that accounts on mastodon.social are less likely to remain active than accounts on other servers, but there is no significant difference between accounts on servers in the Join Mastodon list and other servers.
## 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: 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"
} 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)",
"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="lrrrr",
stars = c('*' = .05, '**' = 0.01, '***' = .001),
output = format
#output = "markdown",
#table.envir='table*',
#table.env="table*"
) %>% add_header_above(c(" " = 1, "Model A" = 2, "Model B" = 2))
if (knitr::is_latex_output()) {
x %>% reduce(str_c, capture.output(.), sep="\n") %>% gsub("table", "table*", .) %>% knitr::raw_latex()
} else {
x
}
```
# Proposed Recommendation System
_How can we build an opt-in, low-resource recommendation system for finding Fediverse servers?_
Tailored servers focused on a particular topic and community have advantages for onboarding newcomers; however, it may be difficult for new and existing Mastodon users to discover these communities. To address this gap, we propose a recommendation system for finding new servers. This system would be opt-in and low-resource, requiring only a small amount of data from each server.
First, we construct the ideal system based on observted data. That is, we use the data from all posts we collected from all servers to construct an ideal recommender. We then simulate various scenarios that limit both servers that report data and the number of tags they report. We use 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.
## Recommendation System Design
We use a term frequency-inverse document frequency model to associate the top tags with each server. For the term frequency, we divide the count of the number of accounts which used the tag during the six-month period by the total number of known account-tag pairs on that server; for the inverse document frequency, we divide the total number of servers by count of servers reporting the tag. In this implimentation, we also apply filters such that tags must be used to at least five people on the server to be reported and the tag must be used by at least ten people and at least three servers in the entire known system.
## 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")
```
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. @fig-simulations-rbo shows how the average agreement with the baseline scales linearly with the logarithm of the tag count.
# 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 when-format="html"}
# Appendix {#appendix .appendix}
## Push and Pull Model
{{< include notebooks/_push_pull.qmd >}}
:::