{'fraction_non_alphanumeric': 0.023551877784850413, 'fraction_numerical': 0.0, 'mean_word_length': 5.605042016806722, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Rational Contracts: Data-driven Service Provisioning in Blockchain-powered Systems

Smart Contracts (SCs), which are software programs that run on blockchain platforms, provide appealing security guarantees characterized by decentralized, autonomous, and verifiable execution. On the other hand, Service Provisioning (SP) systems (i.e., systems that assign users to service providers in a way that maximizes the global utility) have been leveraging SCs to provide trust and transparency features. Such features are obtained by deploying the SP’s assignment criteria as an SC on the blockchain. However, deploying optimal assignment criteria as SCs does not guarantee the best performance over time since the blockchain participants join and leave flexibly, and their load varies with time, potentially deeming the initial assignment sub-optimal. Furthermore, modifying the criteria manually by a third party at every variation in the blockchain jeopardizes the autonomous and independent execution promised by SCs. Thus, in this paper, we propose the use of online learning SCs that leverage the chained data to continuously self-tune their assignment criteria and maintain maximum utility. We show that the proposed data-driven method can achieve high performance on the multi-stage assignment problem. We also compare the proposed approach to multiple assignment algorithms as well as planning methods. Results show a significant performance advantage over heuristics and better adaptability to the dynamic nature of blockchain networks compared to planning techniques.