---
title: "Hierarchical Reinforcement Learning on Multi-Channel Hypergraph Neural Network for Course Recommendation"
authors:
  - "Lu Jiang"
  - "Yanan Xiao"
  - "Xinxin Zhao"
  - "Yuanbo Xu"
  - "Shuli Hu"
  - "Pengyang Wang"
  - "Minghao Yin"
doi: "10.24963/ijcai.2024/232"
url: "https://ijcai.org/proceedings/2024/232"
pdf: "https://ijcai.org/proceedings/2024/0232.pdf"
venue: "Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence"
year: 2024
pages: "2099-2107"
track: "Main Track"
keywords:
  - "Data Mining: DM: Applications"
  - "Data Mining: DM: Mining heterogenous data"
  - "Data Mining: DM: Mining spatial and/or temporal data"
  - "Data Mining: DM: Mining graphs"
---

# Hierarchical Reinforcement Learning on Multi-Channel Hypergraph Neural Network for Course Recommendation

Lu Jiang, Yanan Xiao, Xinxin Zhao, Yuanbo Xu, Shuli Hu, Pengyang Wang, Minghao Yin

*Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence*, pages 2099-2107. DOI: [10.24963/ijcai.2024/232](https://doi.org/10.24963/ijcai.2024/232)

## Abstract

With the widespread popularity of massive open online courses, personalized course recommendation has become increasingly important due to enhancing users' learning efficiency. While achieving promising performances, current works suffering from the vary across the users and other MOOC entities. To address this problem,  we propose hierarchical reinforcement learning with a multi-channel hypergraphs neural network for course recommendation(called HHCoR). Specifically, we first construct an online course hypergraph as the environment to capture the complex relationships and historical information by considering all entities. Then, we design a multi-channel propagation mechanism to aggregate embeddings in the online course hypergraph and extract user interest through an attention layer. 
Besides, we employ two-level decision-making: the low-level focuses on the rating courses, while the high-level integrates these considerations to finalize the decision. Furthermore, in co-optimization, we design a joint reward function to improve the policy of two-layer agents. Finally, we conducted extensive experiments on two real-world datasets and the quantitative results have demonstrated the effectiveness of the proposed method.

## Full text

## 1 Introduction

The prosperity of massive open online courses (MOOCs) is due to the rapid development of online education. The overwhelming and spotty learning materials in MOOC platforms undermine users' efficiency. Against this background, accurately modeling user preference for learning materials offers valuable insights with course recommender system [Zhang et al., 2019]. The selection of the next course by users is influenced by the interplay between network interactions, which echo user needs and vary. Therefore, in this paper, we propose to develop an effective recommender system with hypergraph learning for course recommendation in MOOCs.

* Corresponding author.

Figure 1: The differences between a heterogeneous graph (a) and a hypergraph (b). Figure (a) shows an edge connecting two nodes, while figure (b) shows an example of users' hypergraph with 9 courses and 4 hyperedges.

![Image](https://ijcai.org/proceedings/2024/fulltext/232/image_000000_7a661b56ca34d953f48e739146a9ce01ec656a62a2ec0ba48b8340af932e4df2.png)

Prior literature in an online course recommendation method can be categorized into three aspects: (1) Collaborative filtering (CF) method [Yang and Cai, 2022] relies on user-item interaction data to predict course preferences; (2) Sequence-based method [Shao et al., 2021; Hou et al., 2018] uses the sequence of courses to recommend future learning paths; (3) Graph-based method [Wang et al., 2021; Xu et al., 2022] uses a complex network structure to model the relationship between users and courses. There are two main challenges: (1) the interactions among users are very complex and the relationships can be high-order; and (2) traditional recommendations cannot model real-time online study behavior in a continuously updated manner. Below we formally introduce each challenge and how we address them in our proposed framework.

First, graph neural network (GNN)-based [Wang et al., 2021] models have shown promising performance in course recommendation, due to the powerful capability in modeling relationships. A limitation of these GNN-based recommendation methods is that exploit the pairwise relations and ignore the high-order relations among the entities. Although the long dependencies of relations are considered high-order, which can be captured by using k-hop node neighbors, these only permit a maximum of two entities per relationship, as shown in Figure 1(a). These heterogeneous graph structures are unable to formulate complex high-order user relations beyond pairwise relations. Hypergraph [Fan et al., 2021] can capture high-order relationships by allowing edges to connect more than two nodes. As shown in Figure 1(b), it is natural to think that two users who are studying the same course have a stronger relationship, we employ hypergraph to make it connect more than two nodes, to model complex high-order relations among users. We define the MOOC hypergraph to organize the multiple to multiple relationships. We utilize hyperedges to mine high-order semantic information between various types entity to form multiple channels. And incorporates an attention mechanism in the information transmission process to ensure semantic integrity during cross perspectives information propagation. By aggregating multiple embeddings learned through multiple channels, we can obtain comprehensive user representations that are considered to contain multiple types of high-order relations.

Second, it is natural and promising to exploit reinforcement learning, a real-time learning paradigm optimized with longterm reward, to develop a course recommender system for MOOCs. To achieve this goal, we reformulate the course recommendation problem in MOOC as a hierarchical reinforcement learning task. HHCoR is built following the two-layer decision-making process: (1) the low level focuses on the rating courses, and (2) the high level integrates these considerations to finalize the decision. To facilitate our framework with a proper environment, we propose a MOOC hypergraph to organize the multi-channel semantics of study records. The hyperedge embeddings from this MOOC hypergraph serve as the state to support the decision-making process in our method. In summary, we formulate the online course recommendation problem as Hierarchical reinforcement learning with multi-channel Hypergraphs neural network for Course Recommendation (called HHCoR).

The main contributions are as follows:

- We reformulate the problem of personalized course recommendation as a task based on hierarchical reinforcement learning.
- We construct a MOOC hypergraph, which effectively handles the heterogeneous nature of courses and utilizes an attention mechanism to capture user preferences from multi-channel semantics.
- We design a policy optimization framework based on hierarchical reinforcement learning and introduce reward function guidance mechanism to optimize the two-level agent's policy.
- We validate our method on two real datasets and the results demonstrate the excellent performance of our method on the task of course recommendation.

## 2 Definitions and ProblemFormulation

## 2.1 MOOCHypergraph

In order to capture the complex relationships between the participation of multiple entities on the MOOC platform, we propose to construct a hypergraph to represent historical records, called MOOC Hypergraph. Formally, MOOC Hypergraph G is defined as G = (V, E), where V and E represents the vertex set and hyperedge set respectively. Each hyperedge e ∈ E connects two or more vertices.

Vertices. MOOC hypergraphs aim to organize MOOC elements while preserving multi-aspect semantics. Specifically, we categorize MOOC elements into three semantic channels, including (1) the course channel, denoted as c; (2) the concept channel, denoted as k; (3) the video channel, denoted as o. In this work, we consider three types of vertices corresponding to three semantic channels. Then, the vertex set can be denoted as V = c ∪ k ∪ o.

Hyperedge. We define four types of hyperedges: (1) Course hyperedge, which connects to all course nodes that the user has been enrolled in; (2) Concept hyperedge, which connects all learned concept nodes; (3) Video hyperedge, which connects the video nodes that the user has watched; (4) Feature hyperedge, connecting user, concept, and video nodes to each other. We learn user perspectives from multiple sources, and user perspectives consist of four types of hyperedge embeddings. We utilize the Parallel Aggregated Ordered Hypergraph [Valdivia et al., 2021] (PAOH) model to construct our proposed MOOC hypergraph and hyperedges.

## 2.2 ProblemFormulation

In this work, we formulate course recommendation as a Markov Decision Process [Feinberg and Shwartz, 2012] (MDP). Users decide which course to enroll in next based on a history that reflects their personal preferences under a particular MOOC platform. The main components of the MDP are defined as (1) States S. Each state s ∈ S represents a specific user context derived from the MOOC platform history, which is organized into a MOOC hypergraph. (2) Actions A. Each action a ∈ A corresponds to a potential next enrollment course. (3) Transition Probabilities Γ. Γ(s′ |s, a) denotes the probability of transitioning from state s to state s′ when action a is taken. This probability can be estimated from the user's platform history and reflects how often the user transitions from one learning environment to another after selecting a particular course. (4) Rewards R. R(s, a, s′ ) denotes the reward received after transitioning from state s to state s′ due to action a. The reward can be designed to reflect user satisfaction or any other metric of interest. We will introduce the reward design later. (5) Environment E. The environment consists of all participants of study events. It responds to the user's action by providing a new state and a reward. The environment's dynamics are governed by the transition probabilities Γ and the reward function R. (6) Policy π. A policy π defines how users take action. Specifically, π(s) gives the probability distribution over actions in state s. The goal of the MDP is to find an optimal policy π∗ that maximizes the expected cumulative reward over time.

Figure 2: Framework Overview.

![Image](https://ijcai.org/proceedings/2024/fulltext/232/image_000001_3b53293886ba26ec8a01d0132432d267ac7a103fa039c810088bbac792d1b80c.png)

In view of the course being studied the form of the MDP is recommended, our goal is to develop a hierarchical reinforcement learning framework to find the optimal policy π∗ that guides the user's decision to register for the next course.

## 3 Method

In this section, we introduce the core architecture of our method HHCoR, including hypergraph representation learning, low-level policy, and high-level policy.

## 3.1 Framework Overview

The proposed HHCoR is illustrated in Figure 2. First, we learn the state of the environment by constructing a MOOC hypergraph, we propose a multi-channel aggregating mechanism to propagate various information among nodes in three channels. Then, we utilize the attention layer to extract the user preferences based on different hyperedges. After that, the low-level agents take the environment state as input, and the low-level agents model the multidimensional preference representation by analyzing the importance of each historical course to the target course. Finally, the high-level agents formulate a course recommendation policy by receiving learning insights from the low-level agents. The two-layer agents reinforce each other through iterative updates.

## 3.2 Hypergraph Representation Learning

Vertex Embedding. We denote the raw features of vertex vi ∈ V as xi ∈ Rd , and Ni represents vertex vi's neighbors that are within the hyperedges. We employ the attention mechanism to capture the interrelationship between vertices and the respective neighbors in the same channel. Specifically, for the vertex vi and its neighbor vj (j ∈ Ni), the attention coefficient αij can be represented as

<!-- formula-not-decoded -->

Then, the embedding hi of the node vi can be represented by aggregate the neighbors' define as

<!-- formula-not-decoded -->

Hyperedge Embedding. In our study, we defined four types of hyperedges, including courses, videos, concepts, and features. Among them, course, video, and concept hyperedges are homogeneous (connecting vertices within the same semantic channel) and feature hyperedges are heterogeneous (connecting vertices across all semantic channels). For the homogeneous hyperedge ei ∈ E, we denote the hyperedge embedding by the set of all node embeddings within the hyperedge. The hyperedge embedding qi can be represented as

<!-- formula-not-decoded -->

where |ei| denotes all the linked nodes in ei.

The feature hyperedges serve as a bridge to link the semantics from different perspectives through the hypergraph topology. We then update the hyperedge embedding qi by aggregating information from hyperedges on other perspectives that are interlinked by the same feature hyperedge:

<!-- formula-not-decoded -->

Where σ is the sigmoid function [Elfwing et al., 2018], Φ(ei) denotes the query function that retrieves hyperedges from alternate perspectives that are interconnected by the same feature hyperedge as the given hyperedge, Ψ(·) is the function to return the type of the given hyperedge, andWΨ(ek) denotes the aggregation weights for the given the type Ψ(ek).

## 3.3 Low-level Policy

In the initial phase of the HHCoR system, the low-level agent is responsible for meticulously rating historical courses, and this rating process is a key foundation for understanding and recognizing user decision-making patterns. Subsequent sections will detail the core components and operational mechanisms that make up low-level decision-making.

State. We use hyperedge embeddings as a representation of states. Specifically, for the low-level agent, states aim to capture the preferences and interactions of multiple aspects of the MOOC platform. Therefore, we connect relevant hyperedge embeddings to represent the state. Formally, let sl denote the low-level agent state define as

<!-- formula-not-decoded -->

where Θc(u), Θk(u) and Θo(u) denote the indexes of associated course hyperedge, concept hyperedge, and video hyperedge for the user u, respectively.

Low-Level Agent with DDPG. In the HHCoR framework, the low-level agent comprises two parts: the 'critic', which assesses historical courses by computing the value function Q(s, a|θQ) for each action, and the 'actor', which refines strategies based on these evaluations. This process involves scoring predictions to reflect the effectiveness of course actions, with the output-a weight between 0 and 1-indicating each course's significance for user representation. The value function is defined as

<!-- formula-not-decoded -->

Where Q∗ (sl , al ) represents the optimal action-value function. The critic network is trained by minimizing a defined loss function defined as

<!-- formula-not-decoded -->

Where y = rl +γQ(sl′ , al′ |θQ) is the target value, γ denotes discount factor emphasizing the importance of future rewards and sl′ and al′ represent the next state and action respectively. In the actor component, another neural network is used to approximate the policy with parameters θµ defined as

<!-- formula-not-decoded -->

where π∗ (sl ) is the optimal policy.

The actor-network is trained by applying the policy gradient [Kakade, 2001] defined as

<!-- formula-not-decoded -->

Then, to enhance the exploration capabilities of our model, we introduce the controllable stochasticity [Lapan, 2018] to promote exploration. Specifically, we use the OrnsteinUhlenbeck [Lillicrap et al., 2016] process to generate temporally correlated noise.

Low-level Reward Function. The reward function for lowlevel agents is intended to guide learning. The reward rl is computed as the change in correlation between the target predicted value and the real enrolled course before and after the action al , defined as

<!-- formula-not-decoded -->

where the agent's action al outputs a probability ranging from 0 to 1, indicating the current course's relevance to the user's historical preferences.

If a low-level agent's action al improves the relevance of a target course's prediction, it earns a positive reward; otherwise, a negative reward is given for reduced relevance. This incentivizes the agent to adjust the importance weights of historical courses, enhancing predictive accuracy. Continuous interaction with the environment and corresponding rewards enable the agent to develop effective course rating strategies, thus aiding the decision-making of high-level agents.

## 3.4 High-level Policy

The high-level decision-making process employs a specialized agent to amalgamate insights garnered from lower-level agents, effectively merging these insights with platform factors within the MOOC hypergraph framework. This integration facilitates the formulation of a comprehensive course recommendation decision. This section delineates the principal components of the high-level agent and provides an overview of its operational workflow.

State. In order to encapsulate the low-level agent's understanding of the user's preference, the state of the high-level agent is defined by the updated low-level agent state defined as

<!-- formula-not-decoded -->

where q′c , q′k and q′o denote the relevant course hyperedge, concept hyperedge, and video hyperedge embeddings of user u after the low-level agent update.

High-Level Agent with REINFORCE. The high-level agent implements the REINFORCE algorithm [Williams, 1992], utilizing feedback from the low-level agent and environmental data for prediction guidance. This agent adopts a stochastic policy πh (sh , ah |θπh ), with sh and ah denoting the state and action, respectively, aimed at forecasting the user's next likely course selection. The policy parameters θπh are refined through gradient ascent define as

<!-- formula-not-decoded -->

Table 1: Overall Performance Comparison.

| Datasets   |        | MOOCCube   | MOOCCube   | MOOCCube   | MOOCCube   |        |        | MOOCCourse   | MOOCCourse   | MOOCCourse   | MOOCCourse   |        |
|------------|--------|------------|------------|------------|------------|--------|--------|--------------|--------------|--------------|--------------|--------|
| Metrics    | HR     | HR         | HR         | NDCG       | NDCG       | NDCG   |        | HR           |              |              | NDCG         |        |
| Baselines  | @5     | @10        | @20        | @5         | @10        | @20    | @5     | @10          | @20          | @5           | @10          | @20    |
| FISM       | 0.1254 | 0.2001     | 0.3187     | 0.0800     | 0.1039     | 0.1336 | 0.2584 | 0.3925       | 0.5779       | 0.1758       | 0.2189       | 0.2655 |
| MLP        | 0.1939 | 0.3006     | 0.4498     | 0.1233     | 0.1576     | 0.1951 | 0.4874 | 0.6306       | 0.7790       | 0.3532       | 0.3994       | 0.4370 |
| NAIS       | 0.1194 | 0.1956     | 0.3123     | 0.0758     | 0.1004     | 0.1296 | 0.2642 | 0.4042       | 0.5875       | 0.1753       | 0.2202       | 0.2664 |
| HRL        | 0.2580 | 0.4027     | 0.6116     | 0.1609     | 0.2075     | 0.2600 | 0.6543 | 0.8061       | 0.8796       | 0.4717       | 0.5216       | 0.5403 |
| SR-GNN     | 0.0881 | 0.1360     | 0.2386     | 0.0636     | 0.0788     | 0.1041 | 0.2441 | 0.3024       | 0.3759       | 0.1792       | 0.2179       | 0.2364 |
| LightGCN   | 0.1488 | 0.2024     | 0.3411     | 0.0822     | 0.0933     | 0.2422 | 0.2704 | 0.4412       | 0.6645       | 0.1994       | 0.2645       | 0.2933 |
| COTREC     | 0.0823 | 0.1336     | 0.1960     | 0.0440     | 0.0605     | 0.0762 | 0.2046 | 0.2623       | 0.3392       | 0.1017       | 0.1201       | 0.1395 |
| DHCN       | 0.1272 | 0.1856     | 0.2508     | 0.0927     | 0.1115     | 0.1279 | 0.1973 | 0.2416       | 0.3139       | 0.1463       | 0.1604       | 0.1786 |
| CoHHN      | 0.2776 | 0.4316     | 0.6355     | 0.2230     | 0.2370     | 0.2460 | 0.5514 | 0.6837       | 0.7991       | 0.4236       | 0.4931       | 0.5525 |
| HHCoR      | 0.3477 | 0.5140     | 0.7420     | 0.2241     | 0.2816     | 0.3135 | 0.6985 | 0.8351       | 0.8932       | 0.5041       | 0.5635       | 0.5830 |

Where Qh (sh , ah ) is the action-value function as estimated by the high-level agent and b(sh ) is a baseline function for variance reduction. We adopt the mean of the action-value function as this baseline function. The high-level agent processes the output of the low-level agent along with the environmental information to make its decisions.

Exploring Deterministic and Stochastic Policies. We explore two policies for the high-level agent: a deterministic policy and a stochastic policy.

- Stochastic Policy: By employing the REINFORCE algorithm, Advanced Agents adopt a random strategy to introduce a certain degree of randomness in course selection. This approach facilitates deeper exploration of the course catalog to uncover hidden preferences or interests of users.
- Deterministic Policy: Conversely, we implement a deterministic policy for the high-level agent where it consistently recommends the same courses in response to specific user profiles or behaviors. This approach ensures stability and efficiency, focusing on optimizing user satisfaction with highly relevant courses, although it may limit the variety of courses explored.

High-level Reward Function. We developed a reward function rh for the high-level agent, aimed at enhancing its decision-making accuracy. This function comprises three components: (1) Concept similarity rk between the target and predicted courses, ; (2) Video content similarity ro between the target and predicted courses; and (3) The probability of recommending the target course rp. The overall reward is a combination of these elements defined as

<!-- formula-not-decoded -->

where wk, wo, and wp denote the weights for balancing the influence of rk, ro, rp, respectively.

This weighting allows for fine-tuning of the recommendation process, ensuring that each aspect of the user's preferences is appropriately considered, leading to highly personalized and effective course recommendations.

## 4 Experiment

In our study, we carried out a comprehensive series of experiments on two real-world MOOC datasets to address five key research questions:

- Q1: How is the performance of our proposed HHCoR in the course recommendation task?
- Q2: How does the MOOC hypergraph affect HHCoR recommendation performance?
- Q3: How does the MOOC hyperedge affect HHCoR recommendation performance?
- Q4: How do different components of the agent contribute to decision-making in our model?
- Q5: How do different reward designs impact course recommendation performance?

## 4.1 Experiment Settings

Datasets. We evaluate the model performance using two datasets: the MOOCCube [Yu et al., 2020] and the MOOCCourse [Zhang et al., 2019; Lin et al., 2022]. The samples in the training and test sets consist of a sequence of historical courses with the target course. For training, the last course in the sequence is the target course and the rest are history courses. Each positive sample corresponds to the construction of four negative samples that replace the target course. For testing, the course in the test set was used as the target and paired with 99 random negative samples.

Baselines. We compare our proposed method with the following baseline algorithms, including (1) FISM [Kabbur et al., 2013]; (2) MLP [He et al., 2017]; (3) NAIS [He et al., 2018]; (4) HRL [Zhang et al., 2019]; (5) SR-GNN [Wu et al., 2019]; (6) LightGCN [He et al., 2020]; (7) DHCN [Xia et al., 2021b]; (8) COTREC [Xia et al., 2021a] and (9) CoHHN [Zhang et al., 2022].

Evaluation Metrics. We evaluate the course recommendation accuracy in terms of the widely used metrics, including hit ratio (HR@N) and normalized discounted cumulative gain (NDCG@N). Evaluation was performed with N = 5, 10, 20.

Figure 3: An ablation study on hypergraph.

![Image](https://ijcai.org/proceedings/2024/fulltext/232/image_000002_ade0266e32a5f112f45b39396dd466615db96ba3d3f4f1854ec1ed607e8a2dbe.png)

Hyperparameter Settings. For the hypergraph representation, the dimensionality of the node embeddings was set to 64 and we utilized 8 attention heads in the attention mechanism. The DDPG agent and the REINFORCE agent were optimized with a discount factor (γ) set to 0.99. Both the agents employed Adam optimizers, with the learning rates set to 0.001.

## 4.2 Overall Performance (Q1)

In this section, we compare the overall performance of all models on real datasets. Overall, as Table 1 indicates, our model outperforms other baselines in HR and NDCG metrics. Compared with MLP representing node attributes, itembased collaborative filtering methods (FISM, NAIS), reinforcement learning-based methods (HRL), and graph neural network-based methods (SR-GNN, LightGCN, COTREC, DHCN, CoHHN), Our proposed method incorporates courserelated auxiliary information, which is more comprehensive and performs better in capturing users' interests. Compared with item-based collaborative filtering methods and reinforcement learning-based methods, our proposed framework also considers heterogeneous hypergraph embeddings and high-order semantic relations between heterogeneous information. Compared to graph neural network-based methods, our proposed method analyzes the degree to which each historical course of a user represents that user's interests. In conclusion, the results validate that our model is beneficial for course recommendation, which can help to better infer users' interests and improve recommendation accuracy.

## 4.3 The Study of MOOCHypergraph (Q2)

We conducted an experiment to verify the necessity of the hypergraph structure. In this experiment, we designed a variant of HHCoR, called (HHCoR', which directly takes the user's sequence as input without using the hypergraph structure. Beyond that, we replaced the hypergraph representation with other well-known graph representations such as Graph Convolutional Network (GCN) and Graph Attention Network (GAT). As shown in Figure 3, HHCoR exhibits a significant performance advantage. The superiority of HHCoR over its variants underscores the unique ability of hypergraph architectures to model complex relationships and higher-order interactions among data points, which standard graph models like GCN and GAT might miss.

Figure 4: An ablation study on hyperedge types.

![Image](https://ijcai.org/proceedings/2024/fulltext/232/image_000003_12a8a1dbc1d311463296ed35a6effcb01f344e970820842954f3b302b78d89ab.png)

Figure 5: An ablation study of the low-level agent.

![Image](https://ijcai.org/proceedings/2024/fulltext/232/image_000004_728f6aaa12ba2f6970b8ffa16fe6340f4eabfbcae301021cd8b9b7eee5b8f968.png)

## 4.4 The Study of MOOCHyperedges (Q3)

In the MOOCCube dataset, we conducted experiments to assess hyperedge types' impact, including the removal of concept (e1), video (e2), feature (e3) hyperedges individually, and removing all except the course hyperedge (e4). For the MOOCCourse dataset, experiments involved removing field (e1) and feature (e2) hyperedges, and a combined removal of field and feature (e3). As shown in Figure 4, the performance of different hyperedge combinations varies, highlighting their importance in capturing the multi-semantics of users on MOOC platforms. HHCoR achieves optimal performance when it incorporates all types of hyperedges.

## 4.5 The Study of Agent Architecture (Q4)

The design of Low-level Agent. The results from HHCoRL, where the low-level agent is omitted, indicate a marked reduction in the system's capacity for precise user preference analysis, highlighting the agent's integral role in processing course-related data. In the case of HHCoR-S, restricting the agent's exploration scope leads to a diminished ability to generate innovative recommendations, crucial for adaptive learning. As Figure 5, these outcomes not only validate the essential role of the low-level agent in the HHCoR framework but also underscore its contribution to the sophistication and reliability of the course recommendation process.

The design of High-level Agent. Our study examined the significance of the high-level agent in our hierarchical reinforcement learning model through two experiments: HHCoR-H, which omits the high-level agent's explicit predictive function, and HHCoR-D, employing a deterministic policy for the high-level agent. These tests, results of which are depicted in Figure 6, aimed to assess the influence of the high-level agent's predictive capacity and policy randomness on model performance. The findings confirm that the highlevel agent's explicit prediction, stochastic policy, and collaborative reward mechanism are integral to the overall effectiveness and robustness of our model.

Figure 6: An ablation study of the high-level agent.

![Image](https://ijcai.org/proceedings/2024/fulltext/232/image_000005_75b93dbf8fe7a33bbbf0a3df4e3533cc92ff614a4bd0e2090c732aeb127a798f.png)

## 4.6 The Study of Reward Design (Q5)

We consider combinations of weight settings for high-level agents and different reward functions to test the performance of HHCoR. The low-level reward is automatically learned and cannot be manually adjusted. Therefore, we only analyze the reward settings of the high-level agent. In our analysis, MOOCCube considers three components: wk, wo, and wp, while MOOCCourse involves two components: wt and wp. We mapped the performance of various combinations (where wk + wo + wp = 1 for MOOCCube, and wt + wp = 1 for MOOCCourse) onto 3D and 2D spaces, respectively. As shown in Figure 7, the better the performance, the darker the color.

## 5 RelatedWork

## 5.1 Personalized Course Recommendation

Personalized course recommendation has advanced from traditional content-based and collaborative filtering, which struggles with scalability and capturing dynamic user preferences, to more sophisticated machine learning techniques. These include matrix factorization, factorization machines, and deep learning methods like autoencoders and RNNs, which better handle complex user-course interactions. Studies like [Hou et al., 2018; Xu et al., 2024; Xu et al., 2022; Yang and Jiang, 2019] have made notable contributions, utilizing course clusters and combined user-course networks, respectively. Despite improvements, these methods still face challenges in adapting to the evolving and varied preferences of online learning users.

## 5.2 Graph-basedMethods in Course Recommendation

Graph-based methods like GCN have been increasingly applied in personalized course recommendation to address its challenges. Studies like [Wang et al., 2021; Zhu et al., 2023a; Wang et al., 2022] effectively utilize these techniques for capturing intricate user-course relationships, with the latter viewing user embeddings as hyperedges in a learning hypergraph. Such methods excel in identifying complex, high-order relationships, a feat traditional methods often miss. However, they typically assume a homogeneous graph structure, which doesn't align with the heterogeneous nature of MOOCs. To address this, [Fan et al., 2021; Xia et al., 2022] have explored the use of heterogeneous hypergraphs and hypergraph transformer networks, respectively, offering a more fitting solution for modeling the diverse and complex relationships prevalent in MOOC platform.

Figure 7: The analysis of reward of the high-level agent.

![Image](https://ijcai.org/proceedings/2024/fulltext/232/image_000006_065f01fd511fcd6328514283484df4a66f1f8ff6e6b49df6930fe3238f631e75.png)

## 5.3 Reinforcement Learning in Course Recommendation

Reinforcement learning (RL) in course recommendation treats it as a sequential decision-making problem, adept at handling dynamic user behavior for optimized long-term suggestions. [Gong et al., 2022; Zhu et al., 2020; Zhu et al., 2023b] approached MOOC recommendations using RL, employing meta-paths on HIN and a heterogeneous graph attention network. Similarly, [Jiang et al., 2023] used a MOOC knowledge graph to guide interpretable recommendation paths. Traditional RL, however, struggles with large, complex action spaces typical in course recommendations, necessitating the use of Hierarchical Reinforcement Learning (HRL). [Xie et al., 2021; Zhang et al., 2024; Zhao et al., 2020] tackled this by dividing the recommendation process into multiple tasks, with agents operating at different abstraction levels, thereby effectively managing personalized and multi-objective recommendations.

## 6 Conclusion

In this paper, we study the problem of personalized course recommendation with a MOOC hypergraph and propose a hierarchical reinforcement learning framework for multichannel hypergraph neural networks for online course recommendation. Specifically, we first formulate the MOOC personalized recommendation problem as a task based on hierarchical reinforcement learning. Secondly, we construct a MOOC hypergraph and propose to use the attention mechanism to extract the multi-channel semantics of MOOC entity relationships in different channels and capture user preferences. Third, we design a policy optimization framework based on hierarchical reinforcement learning and introduce reward function guidance mechanism to optimize the twolevel agent's policy. Finally, we conduct extensive experiments on two real-world MOOC datasets to verify the effectiveness of our proposed method.

## Acknowledgments

This work is supported by NSFC(under Grant No. 62106040, 61976050) , Jilin Province Science and Technology Department Project (under Grant No. YDZJ202201ZYTS415, 20240602005RC), Jilin Education Department Project under Grant No.JJKH20231319KJ, Jilin Science and Technology Association under Grant No. QT202320, and the Fundamental Research Funds for the Central Universities No.2412022ZD016, JLU. This work is surported by the Science and Technology Development Fund (FDCT), Macau SAR (file no. 0123/2023/RIA2, 001/2024/SKL), the Start-up Research Grant of University of Macau (File no. SRG202100017-IOTSC). This work is supported by"the Fundamental Research Funds for the Central Universities"under Grant No.3132024264.

## References

1. [Elfwing et al., 2018] Stefan Elfwing, Eiji Uchibe, and Kenji Doya. Sigmoid-weighted linear units for neural network function approximation in reinforcement learning. Neural Networks, 107:3-11, 2018.
2. [Fan et al., 2021] Haoyi Fan, Fengbin Zhang, Yuxuan Wei, Zuoyong Li, Changqing Zou, Yue Gao, and Qionghai Dai. Heterogeneous hypergraph variational autoencoder for link prediction. IEEE Trans. Pattern Anal. Mach. In- tell., 44(8):4125-4138, 2021.
3. [Feinberg and Shwartz, 2012] Eugene A Feinberg and Adam Shwartz. Handbook of Markov decision processes: meth- ods and applications, volume 40. Springer Science Busi- ness Media, 2012.
4. [Gong et al., 2022] Jibing Gong, Yao Wan, Ye Liu, Xuewen Li, Yi Zhao, Cheng Wang, Yuting Lin, Xiaohan Fang, Wenzheng Feng, Jingyi Zhang, et al. Reinforced moocs concept recommendation in heterogeneous information networks. ACM Trans. Web, 2022.
5. [He et al., 2017] Xiangnan He, Lizi Liao, Hanwang Zhang, Liqiang Nie, Xia Hu, and Tat-Seng Chua. Neural collabo- rative filtering. In WWW, pages 173-182, 2017.
6. [He et al., 2018] Xiangnan He, Zhankui He, Jingkuan Song, Zhenguang Liu, Yu-Gang Jiang, and Tat-Seng Chua. Nais: Neural attentive item similarity model for recommenda- tion. IEEE Trans. Knowl. Data Eng., 30(12):2354-2366, 2018.
7. [He et al., 2020] Xiangnan He, Kuan Deng, Xiang Wang, Yan Li, Yongdong Zhang, and Meng Wang. Lightgcn: Simplifying and powering graph convolution network for recommendation. In SIGIR, pages 639-648, 2020.
8. [Hou et al., 2018] Yifan Hou, Pan Zhou, Jie Xu, and Dapeng Oliver Wu. Course recommendation of mooc with big data support: A contextual online learning approach. In INFOCOM WKSHPS, pages 106-111. IEEE, 2018.
9. [Jiang et al., 2023] Lu Jiang, Kunpeng Liu, Yibin Wang, Dongjie Wang, Pengyang Wang, Yanjie Fu, and Minghao Yin. Reinforced explainable knowledge concept recom- mendation in moocs. ACM Trans. Intell. Syst. Technol., 14(3):1-20, 2023.
10. [Kabbur et al., 2013] Santosh Kabbur, Xia Ning, and George Karypis. Fism: Factored item similarity models for top-n recommender systems. In KDD, pages 659-667, 2013.
11. [Kakade, 2001] Sham M Kakade. A natural policy gradi- ent. Advances in neural information processing systems, 14, 2001.
12. [Lapan, 2018] Maxim Lapan. Deep Reinforcement Learn- ing Hands-On: Apply modern RL methods, with deep Q-networks, value iteration, policy gradients, TRPO, Al- phaGo Zero and more. Packt Publishing Ltd, 2018.
13. [Lillicrap et al., 2016] T Lillicrap, J Hunt, Alexander Pritzel, N Hess, Tom Erez, D Silver, Y Tassa, and D Wiestra. Con- tinuous control with deep reinforcement learning. In ICRL, 2016.
14. [Lin et al., 2022] Yuanguo Lin, Fan Lin, Lvqing Yang, Wen- hua Zeng, Yong Liu, and Pengcheng Wu. Context-aware reinforcement learning for course recommendation. Ap- plied Soft Computing, 125:109189, 2022.
15. [Shao et al., 2021] Erzhuo Shao, Shiyuan Guo, and Zachary A Pardos. Degree planning with plan-bert: Multi-semester recommendation using future courses of interest. In AAAI, volume 35, pages 14920-14929, 2021.
16. [Valdivia et al., 2021] Paola Valdivia, Paolo Buono, Cather- ine Plaisant, Nicole Dufournaud, and Jean-Daniel Fekete. Analyzing dynamic hypergraphs with parallel aggregated ordered hypergraph visualization. IEEE Trans. Vis. Com- put. Graph., 27(1):1-13, 2021.
17. [Wang et al., 2021] Jingjing Wang, Haoran Xie, Fu Lee Wang, Lap-Kei Lee, and Oliver Tat Sheung Au. Top-n per- sonalized recommendation with graph neural networks in moocs. Computers and Education: Artificial Intelligence, 2:100010, 2021.
18. [Wang et al., 2022] Xinhua
19. Wang, Wenyun Ma, Lei Guo, Haoran Jiang, Fangai Liu, and Changdi Xu. Hgnn: Hyperedge-based graph neural network for mooc course recommendation. Inf. Process. Manag., 59(3):102938, 2022.
20. [Williams, 1992] Ronald J Williams. Simple statistical gradient-following algorithms for connectionist reinforce- ment learning. Machine Learning, 8:229-256, 1992.
21. [Wu et al., 2019] Shu Wu, Yuyuan Tang, Yanqiao Zhu, Liang Wang, Xing Xie, and Tieniu Tan. Session-based recommendation with graph neural networks. In AAAI, volume 33, pages 346-353, 2019.
22. [Xia et al., 2021a] Xin Xia, Hongzhi Yin, Junliang Yu, Yingxia Shao, and Lizhen Cui. Self-supervised graph co- training for session-based recommendation. In CIKM '21, page 2180-2190, New York, NY, USA, 2021. ACM.
23. [Xia et al., 2021b] Xin Xia, Hongzhi Yin, Junliang Yu, Qinyong Wang, Lizhen Cui, and Xiangliang Zhang. Self-supervised hypergraph convolutional networks for session-based recommendation. In AAAI, volume 35, pages 4503-4511, 2021.
24. [Xia et al., 2022] Lianghao Xia, Chao Huang, and Chuxu Zhang. Self-supervised hypergraph transformer for rec- ommender systems. In KDD, pages 2100-2109, 2022.
25. [Xie et al., 2021] Ruobing Xie, Shaoliang Zhang, Rui Wang, Feng Xia, and Leyu Lin. Hierarchical reinforcement learn- ing for integrated recommendation. In AAAI, volume 35, pages 4521-4528, 2021.
26. [Xu et al., 2022] Yuanbo Xu, En Wang, Yongjian Yang, and Yi Chang. A unified collaborative representation learn- ing for neural-network based recommender systems. IEEE Trans. Knowl. Data Eng., 34(11):5126-5139, 2022.
27. [Xu et al., 2024] Yuanbo Xu, En Wang, Yongjian Yang, and Hui Xiong. GS-RS: A generative approach for alleviat- ing cold start and filter bubbles in recommender systems. IEEE Trans. Knowl. Data Eng., 36(2):668-681, 2024.
28. [Yang and Cai, 2022] Shuang Yang and Xuesong Cai. Bilat- eral knowledge graph enhanced online course recommen- dation. Information Systems, 107:102000, 2022.
29. [Yang and Jiang, 2019] Xixi Yang and Wenjun Jiang. Dy- namic online course recommendation based on course net- work and user network. In iSCI, pages 180-196. Springer, 2019.
30. [Yu et al., 2020] Jifan Yu, Gan Luo, Tong Xiao, Qingyang Zhong, Yuquan Wang, Wenzheng Feng, Junyi Luo, Chenyu Wang, Lei Hou, Juanzi Li, et al. Mooccube: a large-scale data repository for nlp applications in moocs. In ACL, pages 3135-3142, 2020.
31. [Zhang et al., 2019] Jing Zhang, Bowen Hao, Bo Chen, Cuiping Li, Hong Chen, and Jimeng Sun. Hierarchi- cal reinforcement learning for course recommendation in moocs. In AAAI, volume 33, pages 435-442, 2019.
32. [Zhang et al., 2022] Xiaokun Zhang, Bo Xu, Liang Yang, Chenliang Li, Fenglong Ma, Haifeng Liu, and Hongfei Lin. Price does matter! modeling price and interest prefer- ences in session-based recommendation. In SIGIR, pages 1684-1693, 2022.
33. [Zhang et al., 2024] Zhaofan Zhang, Yanan Xiao, Lu Jiang, Dingqi Yang, Minghao Yin, and Pengyang Wang. Spatial- temporal interplay in human mobility: A hierarchical re- inforcement learning approach with hypergraph represen- tation. pages 9396-9404. AAAI Press, 2024.
34. [Zhao et al., 2020] Dongyang Zhao, Liang Zhang, Bo Zhang, Lizhou Zheng, Yongjun Bao, and Weipeng Yan. Mahrl: Multi-goals abstraction based deep hierar- chical reinforcement learning for recommendations. In SIGIR, pages 871-880, 2020.
35. [Zhu et al., 2020] Yifan Zhu, Hao Lu, Ping Qiu, Kaize Shi, James Chambua, and Zhendong Niu. Heterogeneous teaching evaluation network based offline course recom- mendation with graph learning and tensor factorization. Neurocomputing, 415:84-95, 2020.
36. [Zhu et al., 2023a] Yifan Zhu, Fangpeng Cong, Dan Zhang, Wenwen Gong, Qika Lin, Wenzheng Feng, Yuxiao Dong, and Jie Tang. WinGNN: dynamic graph neural networks with random gradient aggregation window. In The 29th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, KDD 2023. ACM, 2023.
37. [Zhu et al., 2023b] Yifan Zhu, Qika Lin, Hao Lu, Kaize Shi, Donglei Liu, James Chambua, Shanshan Wan, and Zhen- dong Niu. Recommending learning objects through atten- tive heterogeneous graph convolution and operation-aware neural network. IEEE Transactions on Knowledge and Data Engineering, 35(4):4178-4189, 2023.
