Introduction
The Metaverse envisions a seamless, immersive virtual environment where users interact in real-time. However, the computational demands for high-fidelity rendering and data processing far exceed the capabilities of mobile devices like VR headsets or AR glasses. While Mobile Edge Computing (MEC) offers a solution by offloading tasks to nearby servers, individual servers often face resource constraints during peak usage in specific "hotspots."
This paper introduces a decentralized resource-sharing platform that leverages blockchain and reinforcement learning to optimize task allocation across a network of MEC servers. By allowing servers to trade and share computational tasks, the system bridges the "compute gap" necessary for a persistent Metaverse.
System Architecture
The proposed platform is structured into three distinct layers: the Metaverse User layer, the Blockchain-based MEC layer, and the Virtual World layer.
- Metaverse Users: End-users generate computational tasks with specific deadlines and data requirements.
- Blockchain-based MEC Layer: This layer consists of multiple MEC servers owned by various providers. A consortium blockchain using the Practical Byzantine Fault Tolerance (PBFT) protocol acts as a transparent ledger for task descriptions, allocation results, and payments. To incentivize participation, the model includes an "intermediary fee," allowing a server to earn rewards even if it delegates a task to another node.
- Virtual World: The high-level application environment where processed data is utilized to maintain the virtual state.
Task Allocation via Reinforcement Learning
The core challenge lies in the Multi-Task Allocation (MTA) problem. The authors prove that determining the optimal server for every task in a dynamic environment is NP-complete. To address this complexity, they employ a Q-learning-based reinforcement learning approach.
A key innovation in their method is the "StateAvailableActions" filter. Instead of allowing the RL agent to explore all possible actions, the system restricts the action space in real-time based on a server's remaining capacity and the specific task's deadline. This ensures that the agent only considers feasible allocations, significantly speeding up the learning process and reducing the problem to one that can be solved in polynomial time.
Performance Evaluation
The system was evaluated through simulations involving 20 MEC servers and up to 100 offloading tasks. The primary metric for success is "Total Rewards," which represents the total utility (payments received minus energy and time costs) generated by the system.
As shown in the figure above, the proposed Learning-based algorithm consistently outperforms both Random and Greedy allocation strategies. While the Greedy approach performs reasonably well by making locally optimal choices, it fails to account for how current decisions limit future resource availability. The Q-learning approach, by contrast, "looks ahead" by considering future rewards, leading to higher global utility. Additionally, the system demonstrated stable convergence within 500 episodes, proving its suitability for near-real-time applications.
Conclusion
By integrating consortium blockchain for trust and reinforcement learning for efficient resource management, this research provides a scalable framework for the Metaverse's infrastructure. The combination of secure task trading and intelligent allocation allows for optimized resource utilization across heterogeneous edge providers. Future work will focus on validating these results in high-mobility scenarios and physical MEC testbeds.
Summary updated