Smart Transcoding (part 3) Three-stage STACKELBERG game.

A series of Smart Transcoding based on AI.
type: insightlevel: advanceguides: smart_transcoding

In this part, we will investigate three-stage STACKELBERG game approach for content processing.

Fig-0

Problem formulation

In a three-stage Stackelberg game, the upstage acts as the leader, making the very first action. The follower is the downstage and reacts based on the leader's strategy. During stage I, an SBS mm serves as the leader and sets the resource price zmz_m. Based on the resource price, the CP decides how many computing resources and which SBS to purchase in stage II. The CP then determines the content price and sells it to users. In stage III, a user nn decides which quality level of content to invest from CP and how much power to acquire from SBSs.

Stage 1: Resource Allocation Model for SBSs

Assume that each SBS is self-centered and only cares about maximizing revenue. The revenue of each SBS is determined by its own resource cost and price, as well as the prices offered by the other SBSs. To maximize revenue, each SBS must determine an optimal price zmz_m. See Algorithm 1 for more details.

Stage 2: Content Price Model for CP

The profit of CP is determined by the quality of content required by users and the amount of computing resources consumed. Let qnf{0,1}q_{nf} \in \{0, 1\} denotes whether user nn selects the content file ff or not. If user nn selects content file ff , qnf=1q_{nf} = 1; otherwise, qnf=0q_{nf} = 0. To maximize its profit, CP needs to find its content price yy and the resource computation cost fmf_m. The CP optimization problem can be written as:

maxfm0,yϕμCP(fm,y)=maxfm0,yϕαv(yϕ)n=1Nf=1Fl=1LβnqnfBfl=αfm=1Mzmamfm+m=1Mmin{fm,n=1Nβnf=1Fl=1LqnfBflTn,thr}max_{f_m \geq 0, y \geq \phi} \mu_{CP}(f_m,y) \\ = max_{f_m \geq 0, y \geq \phi} \alpha_v(y-\phi)\sum^N_{n=1} \sum^F_{f=1}\sum^L_{l=1}\beta_nq_{nf}B_{fl} \\ =\alpha_f\sum^M_{m=1}z_ma_mf_m+\sum^M_{m=1}min\{f_m,\sum^N_{n=1}\frac{\beta_n\sum^F_{f=1}\sum^L_{l=1}q_{nf}B_{fl}}{T_{n,thr}}\}

where αf\alpha_f and αv\alpha_v denote weighted factors to represent the trade-off between the resource cost and content revenue. ϕ\phi denotes the content cost of CP, such as caching cost and backhaul cost; Tn,thrT_{n,thr} represents the maximum delay required by user nn. The final term implies that we should ensure that users enjoy their video streaming service with a tolerable delay.

Stage 3: Content Demand Model for Users

Taking the transmission rate and content quality level into account, the optimization problem for user nn can be stated as follows:

maxpmn0,βn0μusern(pmn,βn)=maxpmn0,βn0μpzmpmnμvyβnf=1Fl=1LqnfBfl+min{Rm,βnf=1Fl=1LqnfBflTn,thr}max_{p_{mn} \geq 0, \beta_n \geq 0} \mu^n_{user}(p_{mn},\beta_n) \\ =max_{p_{mn} \geq 0, \beta_n \geq 0} - \mu_pz_mp_{mn}-\mu_vy\beta_n\sum^F_{f=1}\sum^L_{l=1}q_{nf}B_{fl} \\ +min\{\mathcal{R}_m,\frac{\beta_n\sum^F_{f=1}\sum^L_{l=1}q_{nf}B_{fl}}{T_{n,thr}}\}

where μp\mu_p and μv\mu_v are weighted factors representing the power and content costs, respectively. We also assume that μp\mu_p and μv\mu_v are greater than zero. The final term implies that we must strike a balance between transmission rate and video content quality levels.

Discussion

In the first three parts, we have explored the development of content transcoding, how AI can be applied in transcoding and the ste-of-the-art method for dealing with this task. In the next section, we will examine the effectiveness of introduced method for content transcoding task.