Manuscript Offprint
arXiv:2610.34739Discovering Topics from Linear Autoencoders
Abstract
Linear recommenders and topic models are similar in that they implicitly learn from co-occurrences of items. However, there has been little study of how these two model families are related. In this work, we show that, under a latent-factor model of the user-item interactions, the latent topics can be discovered from the weight matrix of a closed-form linear autoencoder. These topics provide a basis for interpreting the recommendations, and can be obtained directly from the trained recommender without additional training. Building on our analysis, we further propose novel item and user normalizations that prevent popular items and very active users from dominating the topics. Our experiments on six public datasets demonstrate that our method achieves significantly higher topic quality than every dedicated topic model and matches or exceeds the best linear autoencoder on all six datasets, while its recommendation performance is competitive with the best tuned recommender.
CCS Concepts
• Information systems → Recommender systems.
1 Introduction
A linear recommender and a topic model can both be fitted from the same user-item interactions. Specifically, given a binary user-item matrix for users and items, a linear recommender scores item for user by , where is an item-item weight matrix fitted from [30, 37]. A topic model instead summarizes the items by latent groups, called topics, where each topic is represented by a discrete distribution over the items [5, 11].
There have been several techniques that incorporate topic models in a recommender system [16, 27, 41]. However, these techniques require textual descriptions or reviews of the items as well as a jointly fitted topic model. We ask instead: can the topics be estimated from the weight matrix B of a linear recommender, without item texts and without training a separate topic model? To answer this question, we focus on the family of linear autoencoders [29, 30, 37, 38], which fit B so that XB approximates X, subject to for every item i, so that no item contributes to its own score. Specifically, we study the linear autoencoders whose solutions are available in closed form. The best known of such autoencoders is EASE [37], whose weight matrix B is computed from the co-occurrence counts of the items. EASE has attracted interest due to
Donlapark Ponnoprat
Chiang Mai University
Chiang Mai, Thailand
its simplicity and strong recommendation performance, giving rise to several variants [29, 31, 38].
Despite their success, no prior work has studied whether these linear autoencoders can recover the latent topics when the interaction data is assumed to follow a topic model. In this paper, we answer this question and use the answer to build a linear autoencoder that provides both recommendations and topics.
Our contributions are summarized as follows.
• Topics in linear autoencoders. We show that, when the interactions follow a latent-factor model, the topics can be estimated from the weight matrix of a closed-form linear autoencoder.
• Item and user normalizations. We propose Topic-Enabled Autoencoders (TEA), which apply novel item and user normalizations to the item co-occurrence matrix. Unlike previous work [31], our user normalization does not require any hyperparameter tuning.
• Empirical results. We demonstrate that TEA achieves significantly higher topic quality than every dedicated topic model and matches or exceeds the best linear autoencoder on all six public datasets, while its recommendation performance is competitive with the best tuned recommender.
Notations. For any matrix , denotes the -entry of . For any sets of positive integers, denotes the submatrix of with rows in and columns in . Similarly, and denote the corresponding parts of the -th row and the -th column of . For a square matrix , we write for the diagonal matrix whose -th diagonal entry is . For a vector , we write for the diagonal matrix whose -th diagonal entry is . For a (possibly non-square) matrix , we denote by the column space of and the rank of . We write for the all-ones vector.
2 Setup
We observe users interacting with items as a binary matrix , where if user has interacted with item and otherwise. Throughout this paper, users are indexed by and items are indexed by . We write for the -th row of , as a column vector. The co-occurrence matrix of the interactions is the following Gram matrix:
where is the number of users who interacted with both item i and item j. In particular, the diagonal entry is the number of users who interacted with item i, which we refer to as the popularity of item i.
2.1 Closed-form linear autoencoders
Given an interaction matrix , an item-based recommender scores the items by an item-item weight matrix . In regression-based recommenders, the -th column of contains the coefficients of a linear regression of the interactions of item on those of the other items. The score of item for user is , that is, the sum of the weights over the items in 's history. In this work, we focus on item-based recommenders whose weight matrix has a closed form. The best known of these is EASE [37], which solves the following problem, with a constraint so that no item contributes to its own score:
where is the Frobenius norm and is a regularization parameter. For a square matrix , let denote the off-diagonal matrix of . With the inverse of the regularized co-occurrence matrix, the solution of (1) is
Here, the right multiplication by multiplies the -th column of by .
Motivated by (2), we consider a broader class of weight matrices for recommender systems.
Definition 1 (GLAE). A generalized linear autoencoder (GLAE) is an item-item weight matrix of the form:
where is symmetric and positive semidefinite, and are diagonal matrices with positive diagonal entries.
By (2), EASE is the GLAE (3) with , , and .
2.2 Latent-factor models of user-item interactions
We now propose a latent-factor model of X whose latent factors define the topics. Since we want the topics to be diverse, the latent factors should not be dominated by popular items or very active users. To this end, the model places item popularity and user activity in per-item and per-user weights, separate from the latent factors. The following definition formalizes this idea.
Definition 2 (wLFM). We say that the interaction matrix X follows the weighted latent factor model (wLFM) if there exist a matrix , user factors , and scalars and such that, for every user and item , is a random variable with mean
In addition, for every user and any two items , and are conditionally independent given , , , , , and . We call the -th row of the item factor of item and the user factor of user .
For brevity, we will omit the conditioning variables for the rest of the paper and write . We note that the condition in (4) with unit weights is satisfied by the factor analysis model [13, 34] and the aspect Bernoulli model [4], both of which have been applied to recommender systems [26, 36].
2.3 User and item normalizations
To remove the weights and from the mean (4), we normalize X by the diagonal matrices of these weights:
where and . It then follows that for every user and item .
We will focus on the normalized matrix for the rest of the paper. First, we show that is the sum of a positive semidefinite matrix of rank at most and a diagonal matrix.
LEMMA 1. If X follows the wLFM, the expected normalized co-occurrence matrix decomposes as
and is the diagonal matrix with . In particular, and .
In view of Lemma 1, we make the following assumption on the expected normalized co-occurrence matrix:
ASSUMPTION 1. The normalized co-occurrence matrix in (5) satisfies , where , , is a diagonal matrix with positive diagonal entries, and .
The most important components of this assumption are the matrices and D, because our definition of topics will be in terms of these two matrices.
2.4 Topic models from latent-factor models
Each topic is defined by one column of and the diagonal matrix D.
Definition 3 (Topic). Let and D be as in Assumption 1. For , the k-th topic is the solution of the constrained maximization of the signal-to-noise ratio
In other words, the k-th topic is the allocation of the items that maximizes the mean interaction along the k-th latent factor, while ensuring that each user's behavior is consistent (i.e. has low variance) under this allocation.
The maximization problem (6) has the following closed-form solution.
PROPOSITION 1. Suppose that Assumption 1 holds. Then, for every k, the maximization problem (6) has the unique solution
Thus, the k-th topic is the k-th column of , normalized so that its entries sum to one. Since the entries of are non-negative, is a probability distribution over the items. Moreover, the order of the topics carries no meaning. This leads to the following notion of a topic model.
Definition 4 (topic model). Let be the topics of Proposition 1. The topic model is the equivalence class of the matrix under permutation of its columns.
2.5 Topic recovery from a GLAE
We now tie everything together and state our goal. Motivated by the decomposition of in Lemma 1, we focus on the GLAE (3) with . Under Assumption 1, our goal is to recover the topic model of Definition 4 from this GLAE in two steps:
Step 1: Choosing the normalizations. We narrow down our choice of GLAE by (1) choosing the item weights and the user weights , which determine the normalized co-occurrence matrix in (5), and (2) choosing the regularization matrix in (3). Our choices of these weights and of are in Section 5.
Step 2: Recovering the topics. We analyze whether the topic model can be recovered from the weight matrix of (3) when , the normalized co-occurrence matrix. In Section 3, we show that the GLAE with determines the matrix up to permutation and positive column scaling. We normalize the columns of this matrix to estimate , where regularizes the inverse of . In Section 4, we analyze the GLAE with the observed matrix and bound how far its eigenspace is from .
3 Topic recovery from linear autoencoders
We first study the GLAE (3) with and with a regularization matrix . Throughout this section, we assume that Assumption 1 holds, with , , and as in that assumption. For brevity, we write:
(7)
When , , so normalizing the columns of to sum to one gives the matrix of Definition 4. However, some diagonal entries of can be close to zero, so that the corresponding entries of are large. The regularization matrix keeps the diagonal entries of bounded.
To identify from , we make the following assumption, which is the condition of Anderson and Rubin [2, Theorem 5.1] for identification in factor analysis.
ASSUMPTION 2. For every item i, there are disjoint sets of K items each such that the submatrices and are invertible.
Note that Assumption 2 requires . The next two results show that, under these assumptions, the column space of can be obtained from the GLAE with .
LEMMA 2. Suppose that Assumption 1 holds. Then, and
Moreover, is positive semidefinite of rank K with column space .
The proof is in Section C. By Lemma 2, determines once the diagonal entries of are known. The following proposition shows that the off-diagonal entries of determine these diagonal entries:
PROPOSITION 2. Suppose that Assumptions 1 and 2 hold. Then is the only matrix of rank at most K whose off-diagonal matrix is . Moreover, for every item i, with I and J as in Assumption 2,
Finally, for disjoint sets of items each, the submatrix is invertible if and only if and are invertible.
The proof is in Section D. Since and , the calculation in (8) uses only off-diagonal entries of . As a consequence, if we have access to , can be recovered in two steps. First, for every item , we choose disjoint sets and of items not containing such that is invertible. Second, we compute using (8), which, combined with the off-diagonal entries of , gives , whose column space is by Lemma 2.
To obtain from , we require a condition that determines up to permutation and positive column scaling. For this purpose, we adopt the anchor condition of separable non-negative matrix factorization and of anchor-word topic models [3, 12, 15]:
Definition 5. Consider a matrix . An item is an anchor of topic if and for each . The matrix is separable if each topic has an anchor and the anchors are distinct items.
ASSUMPTION 3. The matrix is separable.
We are now in a position to state the main identification result for .
THEOREM 1 (UNIQUENESS UNDER SEPARABILITY). Suppose that Assumptions 1 and 3 hold. Then is separable. Moreover, every separable non-negative basis of is equal to up to permutation and positive column scaling.
The proof is in Section E. There are several algorithms for obtaining from , such as the successive projection algorithm (SPA) [15] and its variant, the pseudo-point successive projection algorithm (ppSPA) [22]. The permutation and the column scaling in Theorem 1 do not affect the topics. Indeed, we can normalize each column of to sum to one to remove the column scaling.
4 Topic recovery from the observed matrix
In practice, we compute the GLAE (3) with , the observed matrix, instead of . The resulting GLAE is , where
and is a known diagonal matrix. In particular, is a part of the calculation of , with which we will estimate the topic model.
However, the results in Section 3 do not apply here since the off-diagonal entries of need not be those of a rank-K matrix. In particular, the formula of (8) in Proposition 2 can give different diagonal entries for different choices of I and J. For this reason, unlike the method described in the previous section, we do not fill in the diagonal entries of . The following theorem shows that we can instead keep the diagonal entries of as zero and estimate by an eigenspace of itself.
Let be a matrix whose columns are orthonormal eigenvectors of associated with its largest eigenvalues. We measure how far is from by calculating where the minimum is taken over all matrices , and is the spectral norm.
The following theorem provides a bound for the error of estimation of using :
THEOREM 2 (ERROR OF THE ESTIMATED SUBSPACE). Suppose that Assumption 1 holds, and let be as in (7). Let be the smallest diagonal entry of , and let . Then, with as above,
The proof is in Section F. The two terms in (10) correspond to the two ways in which differs from . The first term is due to the difference between and . The second term is the price of keeping the diagonal entries of at zero instead of filling in those of (which are not observed). This term arises from the fact that is related to the latent factor matrix , whose diagonal entries are at most a fraction of the diagonal entries of . Hence, this term is small when accounts for most of each diagonal entry of . In view of Lemma 1, and , so this is the case when the interactions with each item are noisy relative to their means.
5 Topic-Enabled Autoencoders (TEA)
We now introduce Topic-Enabled Autoencoders (TEA), which is the GLAE (3) with for a specific choice of the item weights , the user weights , and the regularization matrix . The algorithm of TEA is summarized in Algorithm 1. Below, we explain each component of the algorithm.
Item normalization. Popular items can lower the diversity of the topics. Indeed, a popular item co-occurs with many other items, so the item can appear among the highest-weight items of many topics. To reduce this effect of popularity, we propose an item normalization by setting the item weights to in (5), where is a tuning parameter. A positive down-weights the entries of popular items relative to those of less popular items, while a negative up-weights them. For an item with , that is, an item that no user interacted with, we set so that every item weight is positive.
User normalization. Very active users can lower the accuracy of the estimated topics. Specifically, a very active user has many interactions, which add a large variance to . To reduce the effect of user activity on the topics, we propose a user normalization that chooses the user weights so that the variance of is small relative to its off-diagonal entries.
In (5), the user weights affect only through the diagonal matrix . We write so that the weighted co-occurrence matrix is . Let be the number of items that user interacted with, and write . The variance that user adds to given depends on the matrix , whose entry is the probability that user interacted with both items and . The following theorem gives the weights that minimize a bound on the variance that the users add to , relative to the off-diagonal entries of .
THEOREM 3 (USER WEIGHTS). Write and . Let the weights depend only on , let , and write and . Then
Moreover, among the weights with , the ratio
is the smallest if and only if for every user with .
The proof is in Section G. The optimal weights depend on the matrices , which are unknown. We therefore approximate by a function of via the following probabilistic perspective. Suppose that the interactions of user are independent draws from a distribution over the items. Then the expected number of 's interactions with item is . Similarly, for , the expected number of ordered pairs of 's interactions with items and is . Hence, when repeated draws of the same item are rare,
By the triangle inequality, the spectral norm of the right-hand side is at most . Here, high values of and indicate that the user's interactions are concentrated only on a few items. But it is difficult to estimate from the user's binary interactions, so we instead posit the following approximation for :
where and play the same roles as and , respectively. In particular, we choose based on the pairs of distinct items: The pair accounts for a fraction of about of the ordered pairs of user , so the matrix of these fractions is close to . Accordingly, we choose to be the largest eigenvalue of the average of these matrices over the users. Thus, we choose:
where denotes the largest eigenvalue of the matrix.
With this approximation, the optimal weights of Theorem 3 become
Algorithm 1 TEA: the weight matrix and the topics
Require: Interaction matrix , number of topics , item exponent , dropout probability , regularization parameter
Ensure: Weight matrix and topics , an estimate of the topic model
1: , and for each user
2:
3: for each user
4: for each user
5:
6:
7:
8:
9: , and
10:
11: the leading eigenvectors of , as columns
12:
13: for
where , and is chosen so that sum to to maintain the original scale of . Since is computed from , the user weights require no tuning.
Matrix regularization. We use the dropout regularization proposed in [29, 38]:
where is the dropout probability and is the regularization parameter. With of (9), the weight matrix of TEA is given by (2) with replaced by :
Topic estimation. To extract the topics, we compute the matrix of the leading eigenvectors of the matrix in (9), whose column space estimates by Theorem 2. To obtain from the rows of , we apply the ppSPA algorithm [22], which allows us to obtain from in Section 3. Finally, to follow the definition of a topic model in Definition 4, we normalize each column of to sum to one and use the columns of as the topics.
6 Experiments
6.1 Recovery on synthetic data
We perform a simulation by drawing for items and topics: The first rows of form the identity matrix, and the remaining rows are drawn independently from the Dirichlet distribution with parameter . The user factors are drawn independently from the Dirichlet distribution with parameter , where and . The interactions are drawn independently as . We fit EASE with on for ranging from 500 to . Here, is computed from the matrix in (9) with unit weights,
K dominant eigenvalues

eigenvalue index
subspace recovery
n
Figure 1: Subspace recovery on synthetic data. Left: the largest eigenvalues of at . Right: the relative error against , with the mean and one standard deviation over four seeds (the error bars are too small to be visible). The dotted line is the limit of the relative error with as .
and with . With the sampled , we compute and in Lemma 2 using (7). Since the size of changes with , we evaluate how far is from using the relative error:
Figure 1 shows the simulation results. The left panel displays the largest eigenvalues of from one simulation with . We observe that the eigenvalues show a visible cut-off after the -th largest one. This cut-off is consistent with Lemma 2, by which differs from the rank- matrix by the diagonal matrix and the sampling noise in .
For the recovery of the subspace , the right panel of Figure 1 illustrates that the relative error (14) decreases as increases. This decrease is consistent with the first term of (10), which arises from the sampling noise in and is expected to approach zero as . In contrast, the second term in (10), which arises from omitting the diagonal entries of , is irreducible as increases. We can see from the plot that the relative error approaches the irreducible error as .
6.2 Benchmark on real datasets
Our goal is to evaluate the recommendation performances and topic qualities of TEA on several public datasets. We detail our experiment below.
Datasets. We evaluate on six datasets: amazon-books, amazon-cds [20], gowalla [8], ml-1m [17], online-retail-ii [7], and steam [23]. For each dataset, we keep the 5000 items with the most interactions and a random sample of at most 5000 users. We split each user's interactions by time, holding out the items of the last timestamp for testing and those of the second-to-last timestamp for validation, without the items that the user interacted with earlier.
Baselines. We compare TEA against several baselines, including six collaborative-filtering models: WMF [21], LightGCN [18], SLIMElastic [30], ADMMSLIM [39], NCEPLRec [43], and RecVAE
Table 1: NDCG@10, recall@10 (Rec), and topic quality (TQ). Bold NDCG@10, and recall@10 numbers are based on paired two-sided -tests over the users at 5% level, and bold TQ numbers are based on bootstrap resampling tests at 5% level.
| Model | books | cds | gowalla | ml-1m | retail | steam | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| NDCG | Rec | TQ | NDCG | Rec | TQ | NDCG | Rec | TQ | NDCG | Rec | TQ | NDCG | Rec | TQ | NDCG | Rec | TQ | |
| WMF | 0.040 | 0.077 | - | 0.046 | 0.085 | - | 0.083 | 0.151 | - | 0.029 | 0.051 | - | 0.043 | 0.049 | - | 0.018 | 0.033 | - |
| LightGCN | 0.021 | 0.039 | - | 0.017 | 0.032 | - | 0.052 | 0.091 | - | 0.025 | 0.042 | - | 0.027 | 0.030 | - | 0.027 | 0.054 | - |
| SLIMElastic | 0.047 | 0.082 | - | 0.051 | 0.092 | - | 0.094 | 0.164 | - | 0.042 | 0.072 | - | 0.058 | 0.064 | - | 0.028 | 0.057 | - |
| ADMMSLIM | 0.046 | 0.081 | - | 0.052 | 0.093 | - | 0.096 | 0.168 | - | 0.041 | 0.070 | - | 0.056 | 0.060 | - | 0.026 | 0.051 | - |
| NCEPLRec | 0.040 | 0.073 | - | 0.050 | 0.090 | - | 0.093 | 0.167 | - | 0.042 | 0.072 | - | 0.056 | 0.062 | - | 0.025 | 0.048 | - |
| RecVAE | 0.039 | 0.072 | - | 0.046 | 0.086 | - | 0.089 | 0.165 | - | 0.037 | 0.063 | - | 0.046 | 0.050 | - | 0.025 | 0.048 | - |
| LDA | 0.018 | 0.038 | 0.140 | 0.014 | 0.029 | 0.129 | 0.073 | 0.135 | 0.300 | 0.030 | 0.052 | 0.313 | 0.031 | 0.033 | 0.297 | 0.023 | 0.046 | 0.179 |
| ETM | 0.018 | 0.038 | 0.137 | 0.007 | 0.014 | 0.024 | 0.032 | 0.065 | 0.004 | 0.025 | 0.042 | 0.060 | 0.031 | 0.032 | 0.115 | 0.027 | 0.055 | 0.046 |
| ECRTM | 0.020 | 0.044 | 0.199 | 0.033 | 0.061 | 0.141 | 0.043 | 0.068 | 0.104 | 0.015 | 0.027 | 0.155 | 0.020 | 0.020 | 0.185 | 0.007 | 0.014 | 0.028 |
| Mult-VAE | 0.030 | 0.058 | 0.064 | 0.033 | 0.063 | 0.039 | 0.092 | 0.164 | 0.090 | 0.025 | 0.041 | 0.092 | 0.030 | 0.031 | 0.106 | 0.025 | 0.050 | 0.069 |
| NMF | 0.019 | 0.042 | 0.169 | 0.010 | 0.023 | 0.285 | 0.079 | 0.137 | 0.322 | 0.030 | 0.050 | 0.287 | 0.032 | 0.034 | 0.273 | 0.031 | 0.065 | 0.139 |
| NMF-ppSPA | 0.006 | 0.012 | 0.187 | 0.003 | 0.008 | 0.166 | 0.043 | 0.077 | 0.094 | 0.023 | 0.037 | 0.422 | 0.024 | 0.026 | 0.346 | 0.032 | 0.066 | 0.117 |
| EASE | 0.045 | 0.081 | 0.191 | 0.051 | 0.092 | 0.219 | 0.093 | 0.163 | 0.498 | 0.043 | 0.073 | 0.495 | 0.059 | 0.066 | 0.459 | 0.029 | 0.061 | 0.130 |
| RW | 0.036 | 0.065 | 0.209 | 0.043 | 0.080 | 0.255 | 0.104 | 0.184 | 0.488 | 0.030 | 0.051 | 0.407 | 0.038 | 0.043 | 0.278 | 0.026 | 0.049 | 0.188 |
| Symmetric | 0.038 | 0.068 | 0.330 | 0.038 | 0.071 | 0.272 | 0.086 | 0.162 | 0.483 | 0.033 | 0.055 | 0.479 | 0.048 | 0.052 | 0.312 | 0.017 | 0.032 | 0.231 |
| DAN | 0.046 | 0.085 | 0.046 | 0.048 | 0.090 | 0.233 | 0.104 | 0.184 | 0.488 | 0.041 | 0.067 | 0.418 | 0.056 | 0.061 | 0.285 | 0.031 | 0.062 | 0.037 |
| RDLAE | 0.046 | 0.085 | 0.068 | 0.051 | 0.092 | 0.180 | 0.099 | 0.176 | 0.379 | 0.043 | 0.075 | 0.446 | 0.058 | 0.064 | 0.420 | 0.029 | 0.059 | 0.128 |
| TEA | 0.046 | 0.083 | 0.331 | 0.051 | 0.096 | 0.380 | 0.100 | 0.176 | 0.508 | 0.040 | 0.068 | 0.492 | 0.056 | 0.062 | 0.472 | 0.029 | 0.058 | 0.290 |
[35], and six topic models, LDA [5], ETM [11], ECRTM [44], MultVAE [25], NMF of (NMF), and NMF of , followed by ppSPA (NMF-ppSPA) [3]. We also compare TEA against five closed-form linear autoencoders: EASE [37], RDLAE [29], DAN [31], and EASE with the random-walk (RW) and symmetric normalizations (Symmetric), which are commonly used for recommendation models [9, 10, 32, 42].
Selection of and of the hyperparameters. For hyperparameter selection, we split the users into three sets. For each candidate value of and of the hyperparameters, we fit one model on the training items of each two of the three sets of users and evaluate the model on the validation items of those users. To select , we extract the topics from EASE with by the last five steps of Algorithm 1, and use them to predict each user's validation items. We model each validation item of user as a draw from the distribution over the items, where the weights are fitted to the training items of and so that no item has probability zero. We score each by the log-perplexity over the validation items. We compute this score for every in and select the with the smallest mean log-perplexity. The selected is 6 on amazon-books, 7 on amazon-cds, 30 on gowalla, 18 on ml-1m, 6 on online-retail-ii, and 5 on steam. We select the hyperparameters of every method on each dataset by NDCG@10 on the validation items. The selected values of the hyperparameters for all models are reported in Section H.
Evaluation. Each model is fitted with its selected hyperparameters on the training items of all users. The fitted models are then used to rank, for each user, all but their training and validation items. We report NDCG@10 and recall@10 of these rankings on the test items. To evaluate the topics of each method, we use the topic quality (TQ) [11], defined as , where the topic diversity (TD) is the number of distinct items among the top 25 items of the columns of , divided by , and the topic coherence (TC) is
where is the top ten items of , is the fraction of users whose training items include item , and is the fraction of users whose training items include both and (the summand is 0 if ). Here, each summand is referred to as the normalized pointwise mutual information (NPMI) between item and [1, 6]. To compute TQ, we hold out one third of the users, refit each model on the training items of the other two thirds, and then compute TQ on the held-out users.
To compare NDCG@10 and recall@10 between any two methods, we employ paired two-sided -tests across the test users at the 5% level. Since TQ is not an average over users, we instead compare TQ using paired bootstrap resampling over the held-out users [24].
Quantitative analysis of the results. Table 1 reports the three metrics of all the methods over the six datasets. The table shows that (1) TEA has the highest topic quality, or statistically ties with the highest topic quality, on all six datasets, and is significantly higher than every other method on cds and steam; (2) TEA's topic quality is significantly higher than that of every topic model on all six datasets; and (3) TEA has significantly higher topic quality than EASE on three datasets and statistically ties with EASE on the other three, which demonstrates that the normalizations and the dropout regularization that TEA adds to EASE improve the topic quality.
Table 2: Example topics recovered by TEA, each with its five highest-weight items. is the effective number of users who support the topic (defined in Section I). We omit gowalla, whose items are location identifiers without text.
| Topic | Top items | |
|---|---|---|
| amazon-books: five of the topics. Items are books. | ||
| young adult fiction | Mockingjay (The Hunger Games), Divergent, Catching Fire (Hunger Games, Book Two), The Hunger Games (Book 1), City of Bones (The Mortal Instruments, Book 1) | 22.5 |
| Women's Murder Club series | 4th of July (Women's Murder Club), The 6th Target (Women's Murder Club), 2nd Chance (Women's Murder Club), 7th Heaven (Women's Murder Club), 10th Anniversary (Women's Murder Club) | 8.2 |
| psychological thrillers | Don't Look for Me: A Novel, The Maid: A Novel (Molly the Maid Book 1), The Golden Couple: A Novel, The Plot: A Novel, Dark Roads: A Novel | 7.7 |
| Nameless thriller series | In the Heart of the Fire (Nameless: Season One Book 1), The Mercy of Snakes (Nameless: Season One Book 5), The Praying Mantis Bride (Nameless: Season One Book 3), Red Rain (Nameless: Season One Book 4), Photographing the Dead (Nameless: Season One Book 2) | 16.7 |
| physics workbooks | Physics Concept Questions - Book 1 (Mechanics 1), Physics Concept Questions - Book 3 (Matter), Physics Concept Questions - Book 4 (Heat), Physics Concept Questions - Book 2 (Mechanics 2), Physics Concept Questions - Book 5 (Sound) | 13.4 |
| amazon-cds: five of the topics. Items are albums. | ||
| Metallica | Master of Puppets, Ride the Lightning, Kill 'Em All, ...And Justice For All, Metallica | 32.6 |
| KISS | Rock And Roll Over, Dynasty, Dressed To Kill, Creatures Of The Night, Kiss | 12.7 |
| classic rock | Revolver, Abbey Road, The Beatles (The White Album), Meddle, Sgt. Pepper's Lonely Hearts Club Band | 35.0 |
| mid-2000s pop | Love. Angel. Music. Baby., Breakaway, Autobiography, Speak, Rebirth | 18.7 |
| hip-hop | Stillmatic, The College Dropout, The Black Album, Illmatic, The Blueprint | 14.1 |
| ml-1m: five of the topics. Items are films. | ||
| Disney animation | Cinderella, Sleeping Beauty, Dumbo, Peter Pan, Snow White and the Seven Dwarfs | 435.4 |
| 1990s science-fiction action | Judge Dredd, Johnny Mnemonic, Spawn, Universal Soldier, Timecop | 379.5 |
| 1980s comedy | Weird Science, Weekend at Bernie's, Police Academy, European Vacation, The Money Pit | 290.3 |
| Clint Eastwood westerns | High Plains Drifter, The Outlaw Josey Wales, For a Few Dollars More, A Fistful of Dollars, Hang 'em High | 258.3 |
| 1990s horror | Scream 2, I Know What You Did Last Summer, Urban Legend, Thinner, Candyman | 206.0 |
| online-retail-ii: five of the topics. Items are stock lines. | ||
| polka-dot tableware | Red Retrospot Cup, Blue Polkadot Cup, Blue Polkadot Plate, Red Retrospot Plate, Pink Polkadot Plate | 152.9 |
| printed bags | Jumbo Bag Vintage Doily, Lunch Bag Vintage Doily, Jumbo Bag Vintage Leaf, Lunch Bag Apple Design, Jumbo Bag Alphabet | 196.5 |
| metal signs | Hand Over The Chocolate Sign, Gin + Tonic Diet Metal Sign, Please One Person Metal Sign, Cook With Wine Metal Sign, No Singing Metal Sign | 272.2 |
| tea sets and retro kitchenware | Green Regency Teacup And Saucer, Roses Regency Teacup And Saucer, Pink Regency Teacup And Saucer, Regency Tea Plate Green, Regency Tea Plate Roses | 184.8 |
| birthday cards and gift wrap | Spaceboy Birthday Card, Elephant Birthday Card, Tea Party Birthday Card, Cowboys And Indians Birthday Card, Spaceboy Gift Wrap | 173.5 |
| steam: the topics. Items are games. | ||
| Half-Life games | Half-Life 2: Episode One, Half-Life: Opposing Force, Half-Life: Blue Shift, Half-Life: Source, Half-Life 2: Lost Coast | 19.5 |
| online multiplayer games | Trove, Brawlhalla, Garry's Mod, Team Fortress 2, BLOCKADE 3D | 69.4 |
| anime JRPGs | Hyperdimension Neptunia Re;Birth1, Hyperdimension Neptunia Re;Birth2, Hyperdimension Neptunia Re;Birth3 V Generation, Hyperdimension Neptunia U: Action Unleashed, Fairy Fencer F | 10.6 |
| strategy & simulation | Stellaris, Sid Meier's Civilization: Beyond Earth, Crusader Kings II, Project Zomboid, Kerbal Space Program | 33.5 |
| hand-drawn indie games | Nihilumbra, The Bridge, Dust: An Elysian Tail, Ballpoint Universe - Infinite, Botanicula | 9.2 |
In terms of recommendation performance, linear autoencoders are as accurate as the collaborative filtering baselines: on every dataset, the best linear autoencoder is at most 0.001 below the best baseline in NDCG@10. TEA is also competitive with the best method. In terms of NDCG@10, TEA statistically ties with the best method on books, cds, gowalla, and steam, and is at most 0.004 below the best method on ml-1m and retail. In terms of recall@10, TEA is within 0.01 of the best method on every dataset.
Qualitative analysis of the topics. Table 2 shows five topics of TEA for each dataset, except gowalla whose items are location identifiers. These topics range from broad genres to very narrow groups of items. For example, some topics consist of the albums of a single artist, such as KISS on amazon-cds, or the books of a single series, such as the Nameless series on amazon-books. These narrow topics appear because many users interacted with several albums or books of the same artist or series. Indeed, the effective number of users (defined in Section I) is above ten for both KISS and the Nameless series. Other topics group the items by both genre and period, such as 1980s comedy and 1990s horror on ml-1m and mid-2000s pop on amazon-cds. On online-retail-ii, the topics are product lines that share a common design, such as polka-dot tableware and Regency teacups and saucers, which suggests that the customers tend to buy matching items together.
The effective number of users also helps explain the difference in topic quality between TEA and EASE. On amazon-books, amazon-cds, and steam, where TEA has significantly higher topic quality than EASE, the topics of EASE are supported by far fewer users than those of TEA. Hence, these topics of EASE can be dominated by the co-occurrences of a few very active users. On the other three datasets, the topics of EASE are already supported by many users, which may explain why the topic quality of TEA is not significantly higher than that of EASE on these datasets. This pattern suggests that the user normalization, which down-weights very active users, improves the topics when their co-occurrences come from a few users.
best over , p each selected

Figure 2: Validation NDCG@10 of TEA against the item exponent . For each , the line is the largest value over the 20 pairs of and p, and the dots are the individual pairs.
Sensitivity to the item exponent. To see how the item normalization affects the recommendations, we plot the validation NDCG@10 of TEA against the item normalization parameter in Figure 2. On all six datasets, the curve attains its maximum at an , that is, when TEA does not reweight the items or slightly down-weights the popular items. As moves away from this range, the NDCG@10 decreases, by up to 55% at on ml-1m and 36% at on steam. Thus, the choice of matters for the recommendation performance of TEA.
7 Related Work
User and item normalization. Random-walk [10, 32] and symmetric [9, 18, 42] normalizations give the item-item matrices with entries and , respectively. Other normalizations raise the degrees to exponents and include both matrices as special cases [14, 31]. DAN [31] is the closest method to ours, since both perform item and user normalization. However, DAN normalizes by , while ours normalizes by . Moreover, DAN's user normalization requires tuning a hyperparameter, whereas ours does not require any.
Latent-factor models for recommendations. Given the latent variables of the users and items, the likelihood of the interactions can be a mixture over discrete latent classes [19], a Gaussian distribution [28], or a multinomial distribution whose parameters are the output of a neural network [25]. Other methods fit the interactions by a matrix factorization with a squared loss weighted by implicit feedback, without an explicit generative model [21]. Our model assumes that the conditional mean of each interaction is linear in a K-dimensional latent vector and that the interactions of a user are conditionally independent across items; examples of models that satisfy these assumptions are aspect Bernoulli models [4] and Poisson models [16].
Topic models in recommender systems. Several recommenders fit a topic model to the texts or reviews of the items jointly with a factorization of the interactions [16, 27, 41]. The topics of these methods are distributions over the words of item texts or reviews. In contrast, our topics are distributions over the items, and we estimate the topics from only the user-item interactions.
Topics and structure from recommenders. Post-hoc methods describe each factor of a matrix factorization by a topic model of the item descriptions [33]. Hierarchical models factorize the interactions through a learned hierarchy of user and item clusters [40]. Both approaches need an additional model, either a topic model of the item text or a new hierarchical recommender. In contrast, we extract the topics directly from the weight matrix of the recommender, demonstrating that the recommender can also be a topic model.
8 Limitations
Our uniqueness result (Theorem 1) relies on Assumption 3, which requires that every topic has an anchor item, that is, an item that belongs to none of the other topics. Future work could relax this assumption, extend our analysis to more general latent-factor models, explore other user and item normalizations, and extend the recommendation to sequential or online settings.
9 Conclusion
We show that, under a latent-factor model of the user-item interactions, the topics of the items can be estimated from the weight matrix of a closed-form linear autoencoder. Thus, such an autoencoder provides both item recommendations and a topic model. In turn, the topics offer a way to interpret the recommendations. Building on this result, we propose TEA, which adds an item normalization and a tuning-free user normalization to a linear autoencoder. Our experiments demonstrate that TEA achieves significantly higher topic quality than every dedicated topic model and matches or exceeds the best linear autoencoder on all six public datasets, while its recommendation performance is competitive with the best tuned recommender.
Acknowledgments
This work is supported by Faculty of Science, Chiang Mai University.
References
[1] Nikolaos Aletras and Mark Stevenson. 2013. Evaluating Topic Coherence Using Distributional Semantics. In Proceedings of the 10th International Conference on Computational Semantics (IWCS 2013) – Long Papers, Alexander Koller and Katrin Erk (Eds.). Association for Computational Linguistics, Potsdam, Germany, 13–22.
[2] T. W. Anderson and Herman Rubin. 1956. Statistical Inference in Factor Analysis. In Proceedings of the Third Berkeley Symposium on Mathematical Statistics and Probability, J. Neyman (Ed.), Vol. 5. University of California Press, Berkeley, 111–150.
[3] Sanjeev Arora, Rong Ge, and Ankur Moitra. 2012. Learning Topic Models – Going beyond SVD. In 2012 IEEE 53rd Annual Symposium on Foundations of Computer Science. 1–10.
[4] Ella Bingham, Ata Kabán, and Mikael Fortelius. 2009. The aspect Bernoulli model: multiple causes of presences and absences. Pattern Analysis and Applications 12, 1 (2009), 55–78.
[5] David M. Blei, Andrew Y. Ng, and Michael I. Jordan. 2003. Latent Dirichlet Allocation. J. Mach. Learn. Res. 3 (2003), 993–1022.
[6] Gerlof Bouma. 2009. Normalized (pointwise) mutual information in collocation extraction. In From Form to Meaning: Processing Texts Automatically. Proceedings of the Biennial GSCL Conference 2009 (Potsdam, Germany), Christian Chiarcos, Richard Eckart de Castilho, and Manfred Stede (Eds.). Narr, Tübingen, Germany, 31–40.
[7] Daqing Chen, Sai Laing Sain, and Kun Guo. 2012. Data mining for the online retail industry: A case study of RFM model-based customer segmentation using data mining. Journal of Database Marketing & Customer Strategy Management 19, 3 (2012), 197–208.
[8] Eunjoon Cho, Seth A. Myers, and Jure Leskovec. 2011. Friendship and mobility: user movement in location-based social networks. In Proceedings of the 17th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. 1082–1090.
[9] Jeongwhan Choi, Seoyoung Hong, Noseong Park, and Sung-Bae Cho. 2023. Blurring-Sharpening Process Models for Collaborative Filtering. In Proceedings of the 46th International ACM SIGIR Conference on Research and Development in Information Retrieval (Taipei, Taiwan) (SIGIR '23). Association for Computing Machinery, New York, NY, USA, 1096–1106.
[10] Colin Cooper, Sang Hyuk Lee, Tomasz Radzik, and Yiannis Siantos. 2014. Random walks in recommender systems: exact computation and simulations. In Proceedings of the 23rd International Conference on World Wide Web (Seoul, Korea) (WWW '14 Companion). Association for Computing Machinery, New York, NY, USA, 811–816.
[11] Adji B. Dieng, Francisco J. R. Ruiz, and David M. Blei. 2020. Topic Modeling in Embedding Spaces. Transactions of the Association for Computational Linguistics 8 (2020), 439–453.
[12] David Donoho and Victoria Stodden. 2003. When Does Non-Negative Matrix Factorization Give a Correct Decomposition into Parts?. In Advances in Neural Information Processing Systems, S. Thrun, L. Saul, and B. Schölkopf (Eds.), Vol. 16. MIT Press.
[13] B. S. Everitt. 1984. An Introduction to Latent Variable Models. Springer Netherlands.
[14] Hao-Ming Fu, Patrick Poirson, Kwot Sin Lee, and Chen Wang. 2022. Revisiting Neighborhood-based Link Prediction for Collaborative Filtering. In Companion Proceedings of the Web Conference 2022 (Virtual Event, Lyon, France) (WWW '22). Association for Computing Machinery, New York, NY, USA, 1009--1018.
[15] Nicolas Gillis and Stephen A. Vavasis. 2014. Fast and Robust Recursive Algorithms for Separable Nonnegative Matrix Factorization. IEEE Transactions on Pattern Analysis and Machine Intelligence 36, 4 (2014), 698–714.
[16] Prem Gopalan, Laurent Charlin, and David M. Blei. 2014. Content-based recommendations with Poisson factorization. In Advances in Neural Information Processing Systems, Z. Ghahramani, M. Welling, C. Cortes, N. Lawrence, and K. Weinberger (Eds.), Vol. 27. Curran Associates, Inc.
[17] F. Maxwell Harper and Joseph A. Konstan. 2015. The MovieLens Datasets: History and Context. ACM Trans. Interact. Intell. Syst. 5, 4, Article 19 (Dec. 2015), 19 pages.
[18] Xiangnan He, Kuan Deng, Xiang Wang, Yan Li, YongDong Zhang, and Meng Wang. 2020. LightGCN: Simplifying and Powering Graph Convolution Network for Recommendation. In Proceedings of the 43rd International ACM SIGIR Conference on Research and Development in Information Retrieval (Virtual Event, China) (SIGIR '20). Association for Computing Machinery, New York, NY, USA, 639–648.
[19] Thomas Hofmann. 2004. Latent semantic models for collaborative filtering. ACM Trans. Inf. Syst. 22, 1 (Jan. 2004), 89–115.
[20] Yupeng Hou, Jiacheng Li, Xiangjun Fu, Zhankui He, An Yan, Xiusi Chen, and Julian McAuley. 2026. Bridging Language and Items for Retrieval and Recommendation: Benchmarking LLMs as Semantic Encoders. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Maria Liakata, Viviane P. Moreira, Jiajun Zhang, and David Jurgens (Eds.). Association for Computational Linguistics, San Diego, California, United States, 3251–3265.
[21] Yifan Hu, Yehuda Koren, and Chris Volinsky. 2008. Collaborative Filtering for Implicit Feedback Datasets. In 2008 Eighth IEEE International Conference on Data Mining. 263–272.
[22] Jiashun Jin, Tracy Ke, Gabriel Moryoussef, Jiajun Tang, and Jingming Wang. 2024. Improved algorithm and bounds for successive projection. In International Conference on Learning Representations, B. Kim, Y. Yue, S. Chaudhuri, K. Fragkiadaki, M. Khan, and Y. Sun (Eds.), Vol. 2024. 27645–27655.
[23] Wang-Cheng Kang and Julian McAuley. 2018. Self-Attentive Sequential Recommendation. In 2018 IEEE International Conference on Data Mining (ICDM). IEEE Computer Society, Los Alamitos, CA, USA, 197–206.
[24] Philipp Koehn. 2004. Statistical Significance Tests for Machine Translation Evaluation. In Proceedings of the 2004 Conference on Empirical Methods in Natural Language Processing, Dekang Lin and Dekai Wu (Eds.). Association for Computational Linguistics, Barcelona, Spain, 388–395.
[25] Dawen Liang, Rahul G. Krishnan, Matthew D. Hoffman, and Tony Jebara. 2018. Variational Autoencoders for Collaborative Filtering. In Proceedings of the 2018 World Wide Web Conference (Lyon, France) (WWW '18). International World Wide Web Conferences Steering Committee, Republic and Canton of Geneva, CHE, 689–698.
[26] Benjamin M Marlin. 2003. Modeling User Rating Profiles For Collaborative Filtering. In Advances in Neural Information Processing Systems, S. Thrun, L. Saul, and B. Schölkopf (Eds.), Vol. 16. MIT Press.
[27] Julian McAuley and Jure Leskovec. 2013. Hidden factors and hidden topics: understanding rating dimensions with review text. In Proceedings of the 7th ACM Conference on Recommender Systems. ACM, 165–172.
[28] Andriy Mnih and Russ R Salakhutdinov. 2007. Probabilistic Matrix Factorization. In Advances in Neural Information Processing Systems, J. Platt, D. Koller, Y. Singer, and S. Roweis (Eds.), Vol. 20. Curran Associates, Inc.
[29] Jaewan Moon, Hye-young Kim, and Jongwuk Lee. 2023. It's Enough: Relaxing Diagonal Constraints in Linear Autoencoders for Recommendation. In Proceedings of the 46th International ACM SIGIR Conference on Research and Development in Information Retrieval (Taipei, Taiwan) (SIGIR '23). Association for Computing Machinery, New York, NY, USA, 1639–1648.
[30] Xia Ning and George Karypis. 2011. SLIM: Sparse Linear Methods for Top-N Recommender Systems. In 2011 IEEE 11th International Conference on Data Mining. 497–506.
[31] Seongmin Park, Mincheol Yoon, Hye-young Kim, and Jongwuk Lee. 2025. Why is Normalization Necessary for Linear Recommenders?. In Proceedings of the 48th International ACM SIGIR Conference on Research and Development in Information Retrieval (Padua, Italy) (SIGIR '25). Association for Computing Machinery, New York, NY, USA, 2142–2151.
[32] Bibek Paudel, Fabian Christoffel, Chris Newell, and Abraham Bernstein. 2016. Updatable, Accurate, Diverse, and Scalable Recommendations for Interactive Applications. ACM Trans. Interact. Intell. Syst. 7, 1, Article 1 (Dec. 2016), 34 pages.
[33] Marco Rossetti, Fabio Stella, and Markus Zanker. 2013. Towards Explaining Latent Factors with Topic Models in Collaborative Recommender Systems. In 2013 24th International Workshop on Database and Expert Systems Applications. 162–167.
[34] Sam Roweis and Zoubin Ghahramani. 1999. A Unifying Review of Linear Gaussian Models. Neural Computation 11, 2 (1999), 305–345.
[35] Ilya Shenbin, Anton Alekseev, Elena Tutubalina, Valentin Malykh, and Sergey I. Nikolenko. 2020. RecVAE: A New Variational Autoencoder for Top-N Recommendations with Implicit Feedback. In Proceedings of the 13th International Conference on Web Search and Data Mining (Houston, TX, USA) (WSDM '20). Association for Computing Machinery, New York, NY, USA, 528–536.
[36] Nathan Srebro. 2004. Learning with Matrix Factorizations. Ph.D. Dissertation. Massachusetts Institute of Technology.
[37] Harald Steck. 2019. Embarrassingly Shallow Autoencoders for Sparse Data. In The World Wide Web Conference (San Francisco, CA, USA) (WWW '19). Association for Computing Machinery, New York, NY, USA, 3251--3257.
[38] Harald Steck. 2020. Autoencoders that don't overfit towards the Identity. In Advances in Neural Information Processing Systems, H. Larochelle, M. Ranzato, R. Hadsell, M.F. Balcan, and H. Lin (Eds.), Vol. 33. Curran Associates, Inc., 1959–19608.
[39] Harald Steck, Maria Dimakopoulou, Nickolai Riabov, and Tony Jebara. 2020. ADMM SLIM: Sparse Recommendations for Many Users. In Proceedings of the 13th International Conference on Web Search and Data Mining (Houston, TX, USA) (WSDM '20). Association for Computing Machinery, New York, NY, USA, 555–563.
[40] Kai Sugahara and Kazushi Okamoto. 2024. Hierarchical matrix factorization for interpretable collaborative filtering. Pattern Recognition Letters 180 (2024), 99–106.
[41] Chong Wang and David M. Blei. 2011. Collaborative topic modeling for recommending scientific articles. In Proceedings of the 17th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. ACM, 448–456.
[42] Xiang Wang, Xiangnan He, Meng Wang, Fuli Feng, and Tat-Seng Chua. 2019. Neural Graph Collaborative Filtering. In Proceedings of the 42nd International ACM SIGIR Conference on Research and Development in Information Retrieval (Paris, France) (SIGIR'19). Association for Computing Machinery, New York, NY, USA, 165–174.
[43] Ga Wu, Maksims Volkovs, Chee Loong Soon, Scott Sanner, and Himanshu Rai. 2019. Noise Contrastive Estimation for One-Class Collaborative Filtering. In Proceedings of the 42nd International ACM SIGIR Conference on Research and Development in Information Retrieval (Paris, France) (SIGIR'19). Association for Computing Machinery, New York, NY, USA, 135–144.
[44] Xiaobao Wu, Xinshuai Dong, Thong Thanh Nguyen, and Anh Tuan Luu. 2023. Effective Neural Topic Modeling with Embedding Clustering Regularization. In
Proceedings of the 40th International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 202), Andreas Krause, Emma Brunskill, Kyunghyun Cho, Barbara Engelhardt, Sivan Sabato, and Jonathan Scarlett (Eds.). PMLR, 37335–37357.
A Proof of Lemma 1
For any user and items , the entries and are independent. Moreover, and . Summing over therefore gives:
Since , we have , and therefore with .
B Proof of Proposition 1
Fix . For any , the Cauchy–Schwarz inequality gives:
Thus, for every nonzero . Equality holds if and only if is proportional to , that is, . Since , the column is nonzero. Since is a diagonal matrix with positive diagonal entries, we have . The constraint therefore fixes the proportionality constant and gives the unique maximizer .
C Proof of Lemma 2
Write . By Assumption 1, is a diagonal matrix with positive diagonal entries. Since the diagonal entries of are also positive, . Since and , we have . Consequently, the Woodbury identity applied to gives:
Since , we can write with , so . Since is invertible, and . Since and is invertible, . Finally, is a diagonal matrix, so .
D Proof of Proposition 2
As in the proof of Lemma 2, write with . By Lemma 2, for all items .
We first show that, for any disjoint sets of items each, is invertible if and only if and are invertible. The proof of Lemma 2 shows that is a diagonal matrix with positive diagonal entries and that . Consequently, the matrices and are invertible. Since is a diagonal matrix, . Hence, the matrix is invertible if and only if is invertible. The same holds for and . Moreover, , so . Since , every pair has . Hence, . Therefore, is invertible if and only if and are invertible.
Next, we prove (8). Fix an item , and let and be as in Assumption 2. Since and are invertible, the matrices , , and are invertible. Since , , and , we obtain:
Since and , every pair of indices in , , or has . Hence, , , and . Substituting these three equations into gives:
which is (8).
It remains to prove the uniqueness of . Let have rank at most and satisfy , where the second equality holds by Lemma 2. Fix an item , and let and be as in Assumption 2. Consider the submatrix , whose entries are with and . Since and , the only index in both and is . Hence, for every such pair other than , so because . Consequently, with listed first among the rows and among the columns of this submatrix,
Since and have items each and , this submatrix is . Since the rank of a submatrix is at most the rank of the matrix, this submatrix has rank at most and is therefore singular. Moreover, is invertible, since and are invertible. Consequently, the determinant formula for the Schur complement gives:
Since , this equation and (16) give:
Since the item is arbitrary, . Combined with , this gives . Finally, by Lemma 2, has rank and . Hence, is the only matrix of rank at most whose off-diagonal matrix is .
E Proof of Theorem 1
We prove Theorem 1. The notation is that of Section 3, with .
PROOF OF THEOREM 1. Since and is invertible, has rank . Let the columns of form an orthonormal basis of . Since is the orthogonal projection onto , we have with . Since , the matrix is invertible. Write and for the -th rows of and . Since , we have , that is, . Let be the -th row of . Consequently, the vectors are linearly independent.
We claim that is separable. Since the entries of both and are non-negative, the entries of are non-negative. Moreover, each row of has zero entries in the same positions as the same row of . Consequently, every anchor of is an anchor of . Since the K anchors of are distinct items, is separable.
Now, we show that every separable non-negative basis of is up to permutation and positive column scaling. Since , each lies in the cone , that is, the set of non-negative linear combinations of . By the definition of , it is immediate that . Conversely, since is separable, each column of has an anchor , so for some , where is the -th standard basis vector of . Hence, for every . Therefore, , and so .
Now let be a separable matrix whose columns form a basis of . As for , we have for some invertible matrix . Let be the -th row of . Since is non-negative and separable, the same argument as for gives:
Consequently, and are linearly independent sets that generate the same cone . Hence, these two (ordered) sets of vectors differ by a permutation and positive scaling. Since the rows of and are these two sets of vectors, there are a permutation matrix and a diagonal matrix with positive diagonal entries such that . Since , we have
as claimed.
F Proof of Theorem 2
We use the notation of Sections 3 and 4, with . Write:
and let denote the -th largest eigenvalue. By Lemma 2 and (15), , , and . Since , is linear, and , (9) gives:
Moreover, since , the matrix is positive definite and . Hence, and .
We claim that
Taking gives . Since the columns of are orthonormal eigenvectors of associated with the eigenvalues , we have . Since has rank , for every , so Weyl's inequality gives for every . Consequently, since , the triangle inequality gives:
Moreover, by (17), . Since the diagonal entries of are non-negative, the triangle inequality gives .
Now, we show that . Fix an item . Since , the Cauchy–Schwarz inequality gives . Since , , and , (15) gives:
(19)
Finally, we prove (10) in two regimes of :
- If , we first bound . Since and , we have . By Weyl's inequality, , so . Since , we obtain . Combining this bound with (18), , and (19) gives:
- If , then . Taking and using , we obtain:
Hence, (10) holds in both regimes.
G Proof of Theorem 3
We first prove (11). Since and the diagonal entries of sum to , we have . Since and the weights depend only on , summing over the users gives (11).
Next, we prove (12). Here, for a symmetric random matrix . Since is binary, . Hence,
where we used . Since , we have for every user . Hence, the triangle inequality gives:
which is (12).
Finally, we find the weights that minimize . A user with has and does not affect . Every other user has , since and . Over these users, the Cauchy–Schwarz inequality gives:
Since , this gives , with equality if and only if is proportional to , that is, .
Table 3: Selected hyperparameters of each method on each dataset.
| Model | Hyperparameter | books | cds | gowalla | ml-1m | retail | steam |
|---|---|---|---|---|---|---|---|
| WMF | number of factors | 128 | 128 | 64 | 128 | 128 | 64 |
| regularization | 0.01 | 0.01 | 0.01 | 0.01 | 0.01 | 0.01 | |
| LightGCN | learning rate | 0.001 | 0.01 | 0.01 | 0.001 | 0.001 | 0.001 |
| number of layers | 2 | 2 | 2 | 2 | 3 | 3 | |
| SLIMElastic | regularization | 0.01 | 0.01 | 0.01 | 0.1 | 0.1 | 0.1 |
| L1 ratio | 0.01 | 0.01 | 0.001 | 0.01 | 0.01 | 0.001 | |
| ADMMSLIM | L1 regularization | 0.5 | 0.5 | 0.5 | 0.5 | 5 | 1 |
| L2 regularization | 50 | 200 | 500 | 500 | 500 | 500 | |
| NCEPLRec | regularization | 1000 | 1000 | 10000 | 10000 | 10000 | 10000 |
| rank | 400 | 400 | 400 | 400 | 400 | 400 | |
| RecVAE | latent dimension | 200 | 200 | 200 | 200 | 200 | 200 |
| KL scale | 0.005 | 0.005 | 0.005 | 0.0025 | 0.0025 | 0.005 | |
| LDA | number of iterations | 20 | 100 | 20 | 100 | 20 | 20 |
| prior on topic proportions | 0.5 | 0.5 | 0.05 | 0.5 | 0.5 | 0.5 | |
| prior on topics | 1/K | 1/K | 0.1 | 0.1 | 1/K | 1/K | |
| ETM | learning rate | 0.01 | 0.005 | 0.01 | 0.005 | 0.005 | 0.002 |
| hidden size | 800 | 400 | 800 | 800 | 800 | 400 | |
| dropout probability | 0.5 | 0 | 0 | 0 | 0 | 0.5 | |
| KL weight | 0.2 | 0.5 | 0.1 | 0.1 | 0.5 | 0.5 | |
| ECRTM | learning rate | 0.005 | 0.005 | 0.005 | 0.005 | 0.005 | 0.005 |
| temperature | 0.2 | 0.2 | 0.1 | 0.2 | 0.1 | 0.1 | |
| ECR weight | 20 | 20 | 20 | 50 | 200 | 200 | |
| KL weight | 0.2 | 0.1 | 0.2 | 0.5 | 0.2 | 0.5 | |
| Mult-VAE | learning rate | 0.003 | 0.003 | 0.003 | 0.003 | 0.003 | 0.003 |
| KL weight | 0.2 | 0.1 | 0.5 | 0.5 | 0.5 | 0.5 | |
| dropout probability | 0.5 | 0.5 | 0 | 0.5 | 0 | 0 | |
| NMF | regularization | 0 | 0 | 0.01 | 0.01 | 0.1 | 0.01 |
| L1 ratio | 0 | 0 | 1 | 1 | 1 | 0 | |
| initialization | nmsvdva | nmsvdv | nmsvdv | nmsvdv | nmsvdv | nmsvdv | |
| NMF-ppSPA | regularization | 0.01 | 0.01 | 0.1 | 0 | 0 | 0.1 |
| L1 ratio | 0.5 | 0.5 | 1 | 0 | 0 | 0 | |
| initialization | nmsvdva | nmsvdva | nmsvdv | nmsvdv | nmsvdv | nmsvdva | |
| EASE | 50 | 50 | 100 | 1000 | 500 | 1000 | |
| RW | 250 | 1000 | 50 | 50 | 50 | 500 | |
| Symmetric | 1000 | 100 | 1000 | 50 | 50 | 100 | |
| DAN | 1000 | 250 | 50 | 50 | 50 | 500 | |
| 0.25 | 0.25 | 0 | 0.5 | 0.5 | 0.25 | ||
| (the user exponent) | 0.2 | 0.5 | 1 | 0 | 0 | 0.2 | |
| RDLAE | 50 | 50 | 100 | 250 | 500 | 500 | |
| 0.5 | 0.3 | 0.9 | 0.3 | 0.1 | 0.7 | ||
| 0.5 | 0.1 | 0.1 | 0.5 | 0.25 | 0.1 | ||
| TEA | 0.25 | 0.125 | 0 | 0 | 0.125 | 0.125 | |
| 0.7 | 0.7 | 0.7 | 0.3 | 0 | 0.7 | ||
| 250 | 250 | 50 | 250 | 50 | 250 |
H Hyperparameters
We select the hyperparameters of every method on each dataset by NDCG@10 on the validation items. Mult-VAE [25], ETM [11], and ECRTM [44] also keep the training epoch with the highest validation NDCG@10. Table 3 reports the selected hyperparameters of every method. For the linear autoencoders, is the regularization parameter, is the item exponent, and is the dropout probability. For RDLAE, is the bound on the diagonal entries of .
I Selection of the example topics
Among all the topics, we choose to display in Table 2 the ones with both high coherence and a large effective number of users, defined below. Specifically, let be the topics of TEA fitted on the training items of all users, let be the top ten items of , and let be the average NPMI over the pairs in , with and taken over all users. For each user , let be the fraction of the co-occurrences of pairs of items in , counted over the training items of all users, that come from user . The effective number of users of topic is the reciprocal Simpson index , which equals 1 when a single user provides all the co-occurrences and equals when users provide equal shares. We display the five topics with the largest values of the following score:
Here, the factor is 0 when a single user provides all the co-occurrences and 1 when all users provide equal shares.