key: cord-0477737-rnm0x4fp authors: Tagiew, Rustam title: What Government by Algorithm Might Look Like date: 2020-07-26 journal: nan DOI: nan sha: 8da713a2361247ba34bcff0091a715db2cb96055 doc_id: 477737 cord_uid: rnm0x4fp Algocracy is the rule by algorithms. This paper summarises technologies useful to create algocratic social machines and presents idealistic examples of their application. In particular, it describes smart contracts and their implementations, challenges of behaviour mining and prediction, as well as game-theoretic and AI approaches to mechanism design. The presented idealistic examples of new algocratic solutions are picked from the reality of a modern state. The examples are science funding, trade by organisations, regulation of rental agreements, ranking of significance and sortition. Artificial General Intelligence is not in the scope of this feasibility study. state and non-state organisations, and between state and citizens. But, the actual radical transformation will be the decision-making by algorithms in place of humans and is not covered by the term E-Government [5] . The rule by algorithms can be termed as algocracy, where algo-is derived from algorithm and -cracy is 'rule' in ancient Greek. Unfortunately, academic literature creates no consensus in the usage of any single term. A. Aneesh introduced the term algocracy in 2006 [6] , T. O'Reily introduced the term algorithmic regulation in 2013 [7] and Stanford's 2020's report about the application of AI in US government agencies uses the term government by algorithm [8] . Other terms for the same issue are algorithmic power [9] , governing algorithms [10] and algorithmic governance [11] . The term cybercracy decodes as rule by effective use of information, which does not necessarily imply the usage of algorithms [12] . This paper will use the term algocracy. Algocracy is not a basic form of government, it is an enhancement to the existing forms of governments. Algorithms are not living beings and have no intrinsic preferences and goals unless introduced by human engineers. T. Berners-Lee describes processes, which combine people and algorithms as social machines [13] . In social machines, people are coordinated and administrated by algorithms and algorithms are engineered by people [14] . Surely, only a small group of people will be competent enough to engineer and maintain the algorithms. In an algocratic dictatorship, the preferences for algocratic social machine (PASM) would come from the dictator and in an idealistic algocratic democracy from the people. However, a study of the real democracy in the United States showed that adopted policies are most correlated with the economic elitesâȂŹ preferences at 0.79 and have no significant correlation to the preferences of common citizens [15] . There is also some weak correlation to the preferences of business and mass-based groups. It is a question, whether an algocratic democracy will replace economic elites by engineering elites as the major source of preferences for the adopted policies, or the economic elites will command the engineers, or both elites' types will merge. Dictatorial states might have only one faction of these engineers and pluralist states multiple factions. These factions might compete peacefully against each other as companies on the free market, as political agendas in democratic elections or as open-border states in foot voting. Non-peaceful competition would include espionage, cyber warfare, economical warfare and violent hostilities. According to Y. N. Harrari, democracies outperformed dictatorships concerning innovation and economic growth in the late 20th-century, because they were better at processing information, but will underperform against dictatorships using central algorithms in the future [16] . It can also be argued that an algocratic dictatorship might lose its technological edge over time, if it only has one faction of algocracy engineers without internal competition. Algocracy can be studied without predictions about the source of PASM. Let us only assume that PASM are always there no matter they came from a single dictator, certain elites or people. There is one important difference to traditional governments -algocracy is constrained to have a certain minimal level of technology and industrialisation for production of data centres, communication infrastructure, surveillance equipment, etc.. A sustainable algocracy, therefore, requires a sustainable technosphere of certain minimal ecological footprint. This ecological footprint assembles as the space needed for the production of energy from sustainable sources as well as the space needed for the manufacturing and recycling facilities. Given a planet of finite space, algocracy is also constrained by a certain maximal expansion of the technosphere, which can be safely taken without seriously damaging the biosphere. These two boundaries make the PASM more predictable wherever they came from. Algocracy has to coordinate technosphere and the human population. Coordination of technosphere is a trivial command and control system. Coordinating human population is highly non-trivial and studied by multiple disciplines including jurisprudence and behaviour science. Every single human is an individual with her or his preferences, faults and thinking patterns. There are many ways to achieve coordination and the most obvious way is the formation of organisations. According to organisational theorist A. Stinchcombe, organisations can be viewed as contracts or complexes of contracts [17] . The contracts like rental agreement, trade deals, employment contracts and so on are enforced by the judiciary system of a state. And the state including its judiciary system itself can be viewed as a social contract according to J.-J. Rousseau [18] . Seeing citizenship and state laws as contractual agreements even experience modern revival in the form of free private cities initiatives [19] . In the context of free private cities, a state is regarded as a government service provider, which concludes a contract with its citizens [20] . This paper's goal is to investigate setting up and enforcement of complexes of contracts as the part in the coordination of population by the means of algorithms. This impacts the three forces of powers, the legislature, the judiciary and the executive. Legislature and judiciary are considered to be fully automated using Weak AI in the near future. The full automation of the executive requires Artificial General Intelligence (AGI). For instance, a fully-automated ability to react to unexpected socioeconomic crises like the COVID-19 pandemic is beyond the definition of Weak AI. Government by AGI is highly controversial and not relevant in this paper. The next section 2 describes the historical development. Section 3 makes a summary of relevant technologies. Then in section 4, five examples of algocratic solutions to common problems are presented and a conclusion in section 5 lists seven theses as a result. Contracts, which are enforced by machines instead of state agencies, judges and investigators, are called smart contracts [21] . A vending machine is the first simplest piece of technology known to humanity since the times of Heron of Alexandria, which manifests a smart contract [17] . Proposals for coordination of economy by algorithms are known since the second half of the 20th century. A. Kharkevich proposed processing information in order to control their economy in 1962 [22] and Chile deployed Project Cybersyn in 1971-1973 [23] . Since the 1960s, H. Simon pioneered expert systems for judiciary and administration [24] . Such branches of administration as tax offices have a decades-long history of the deployment of rule-based systems [25] . Examples of those automated systems for legal reasoning are TAXMAN by T. McCarty and LEGOL by R. Stamper [26, 27] . The term smart contract was introduced by N. Szabo in 1994 [28] . Since 2000s, systems for automated surveillance are developed [29] . China started to develop its Social Credit System from 2009 on [30] . Social Credit System is actually a smart contract about the calculation of certain reputation score based on information available to the system from mass surveillance. The calculated score has far-reaching consequences on the lives of Chinese citizens -it automatically improves or denies access to a broad category of services. Multiple non-state facilitators of platform economies like Uber or AirBnB employ less restrictive reputation systems, where interaction peers take decisions based on public reputation records rather than a central authority doing it. Since 2014 smart contracts were redefined more precisely as contracts, whose enforcement also does not require any trusted computing [31] . In the newer sense, smart contracts are programs, which are executed on a blockchain virtual machine and can not be manipulated by any node in a solo attempt. The terms of a smart contract are the code of the smart contract. In 2016, the first decentralised autonomous organisation The DAO was launched as a smart contract on a blockchain, which resembled an investordriven venture capital fund [32] . The automation of judiciary system also progressed in recent years. Since 2016, multiple US courts use COMPAS software, which assists in risk assessment of recidivism prior to a court decision [33] . China claims to be the first country to run an AI automated court in 2019 [34] . Also, Estonia uttered similar plans of letting AI decide on cases under 7.000 e [35] . Automation of judiciary leads to the same result as the replacement of judiciary by self-executing smart contracts. Smart contracts are also laws, which apply to state and citizens. We speak about self-executing laws, which include crime regulations, taxation and obligations of the state. For our vision of algocracy, the execution of smart contracts has to be trustful, but their execution on a blockchain is not obligatory. In fact, a blockchain implementation can not hinder the communication of contract participants over additional channels, if it is required by the contract. A blockchain solely provides trustful computation, even if none of the nodes can be trusted. The process of engineering of new smart contracts falls into the discipline of mechanism design. As already been assumed, the PASM are always present and the mechanism design needs some assumptions about preferences and behaviour patterns of the human population. Obviously, there is a large amount of smart contracts, which will undermine the PASM, even if the participation in them is voluntary. Such harmful contracts have to be blocked. The harm from a smart contract can range from functional bugs like in the famous Ethereum hack of 2014 to more subtle consequences like in case of a bogus reputation system e.g.. The engineering of smart contracts has the goal to achieve the predefined PASM by useful contracts and to block harmful contracts. Mechanism design is originally a sub-field of game theory, but also can be seen as a sub-field of AI. Mechanism design should produce rules to achieve certain behaviour of the players, once preferences of interacting individuals are known. It is a reverse task to the rest of game theory, where the rules are known and the behaviour of the players aka Nash equilibrium is wanted. Classical game theory research came up with homo economicus assumption and saw humans being exclusively interested in monetary incentives, rational and able to foresee the consequences of their action many turns ahead. Field and laboratory data extenuated this assumption and revealed a more complicated structure of incentives, boundaries to rationality and ability to reason. Assumption of rationality is only a useful orientation in the analysis of behavioural data, which helps to reduce the hypotheses space [36, 37, 38] . In a non-algocratic society, a process related to mechanism design takes either place in a democratic parliament or behind closed doors in a less democratic government form. For instance, laws are introduced, which discourage crime by punishment. This process is crucial for the survival and success of the whole society. Given that the pursuit of certain PASM are taken seriously, the creation of appropriate smart contracts will be a non-trivial process and requires major complex calculation indeed beyond human capabilities, but still in the tangibility for Weak AI. Mechanism design can be seen as a search in the space of possible smart contracts, which is performed by genetic programming e.g.. In order to evaluate the gain or the harm from a smart contract, a prediction of its consequences has to be calculated. Fig.2 shows an abstract definition of the algorithm for this prediction. If there is any pertinent literature or any other kind of a legitimate record about the consequences, the solution is found. If there is no literature, an analytical solution has to be created to guide the data analysis. This can be done by game-theoretic or AI algorithms. Field data of human be- haviour produced by the actual or similar contracts would be ideal for the analysis, even if it is noisy. The field experimental economics provides a certain amount of clean data sets, which can help to predict human behaviour if field data is not available. Finally, if no useful data is available, a field or laboratory experiment should be run. The goal is either to derive a prediction or to build agent models of human behaviour using this data. And this task is called behaviour mining or also cognitive modelling. If the analysis of the data is not sufficient to make a prediction, a simulation with agent models of human behaviour has to be used. The whole algorithm of engineering a useful smart contract does not include any parts, which require AGI. The core element of this vision of algocracy is an appropriate scripting language for smart contracts. Scripting languages for blockchains are a special issue. There is a discussion about the need for Turing-completeness. In 2019, only 35, 3% of 53757 smart contracts from Ethereum included loops and recursions [39] , which are related to the halting problem. The Turing-completeness of the language creates more risk for bugs. The language should be of maximal usability and readability for humans. Algorithms for analytical solutions, tools for experiments, data analysis engines and simulation environments should understand the same language without reformatting. Today, both types of scripting languages exist -with and without Turing-completeness. Simulation of agent interactions falls in the scope of General Game Playing (GGP). GGP is a design of AI algorithms, which can not only interact according to some special rules but also understand any rules written in special language [40] . It is a step towards AGI -design of general algorithms, which can play chess, checkers and poker likewise. And also for GGP, there exist two types of language. PNSI is not Turing-complete, because it is based on Petri Nets [41] . GDL is Turing-complete and is based on Datalog [42] . Scripting languages for experimental economics' tools like z-Tree are obviously Turing-complete [43] . In game theory, the most powerful class of games are games of imperfect information with moves of nature. Moves of nature are random events. Imperfect information is missing knowledge about other players' turns or random events. Fig.3 shows an example of such a game. The realisation of random number generator on a blockchain is a complicated issue since the computation has to deliver the same result independent of the node performing it. This issue can be solved, if a source of entropy can be introduced, which can not be manipulated by participants [44] . Such sources of entropy can be the timestamps, transaction statistics, numbers committed by participants, smart contracts and sequences of actions from mixed strategy Nash equilibria games. Imperfect information is a more complicated issue. Modern economies rely on the workforce, which can relocate according to workforce demand. It is therefore important, that the employees can find affordable shelters. But, tenants are prone to bankruptcy and bankrupt tenants are prone to homelessness. Homelessness often causes irreversible damage to the affected people and therefore damages the whole society. If a tenant is bankrupt and can not pay the rent, the landlord is interested in a speedy eviction. A bankrupt tenant is interested in delaying eviction as much as possible. In Germany for instance, a delay of two months' rents legitimates the landlord to take legal actions to achieve an eviction. In reality, the landlord waits longer than a year until the eviction can be executed by authorities. The landlord bears the costs and has to suffer possible vandalism. Renting loss insurances only incur renting contracts with tenants of clearly verifiable income statements and credit scores. Due to higher financial reserves, big landlords do not need this insurance at all. In case of tenants with less clear scores and income statements, a small landlord is more affected than a bigger one, since he is more prone to financial risks and management mistakes. Fig.3 shows the game-theoretic representation of this interaction. For small land lords, the described regulation can render the renting unprofitable for tenants of low credit score. This reduces the mobility of young employees of lower credit scores in return since they get less offers. On the other hand, the big landlords can demand higher rents. Algorithmic legislation and law enforcement might be very useful for automatic optimisation of the regulation depending on the economic situation. It could also evaluate and introduce some additional measures like an obligatory renting loss insurance. In 2017, Ukraine's justice ministry conducted trial auctions using blockchain technology to improve transparency in governmental transactions [45] . Transparency is needed to hinder corruption through collusion in auctions of governmental assets -the unlawful benefits of public officials. If PASM require deals to be sealed at best conditions possible for the whole social machine and not for some individuals, trustfully conducted auctions offer a mechanism to achieve it. Corruption in trade by organisations does not only cause damage on the state level, but also on the corporate level. Procurement in supply chains requires constant optimisation by competition of suppliers not only regarding costs, but also secondary criteria as ecological footprint, work conditions in production and so on. These secondary criteria are important for the prosperity of the whole social machine beyond the goal of the single enterprises sealing deals in a supply chain. Developing auction rule sets is not trivial and has a long history. Already 500 BC in Babylon, maidens were auctioned in forward and reverse auctions [46] . In a forward auction, the bride price to be paid by the swains is determined, while a reverse auction is about the dowry to be paid to the swains. Since then, the auctions, fortunately, moved into less barbaric contexts and the number of used rule sets for them increased dramatically [47] . With the rise of the internet, more complicated auction rule sets could be implemented, which were unfeasible without computer systems. For instance, a multiattribute auction allows bids, which consist of more than one attribute [48] . In a standard English auction, a bid is a price, which has to be higher than the previous bid in forward auction case and lower in a reverse auction case. In a multi-attribute auction, the price will be only one attribute of many and a utility function determines, whether a bid is an improvement upon the previous one. Special auction rule sets can be optimised and deployed in diverse contexts inside of an algocratic social machine. The goal is not to command free enterprises and free individuals, but to set the right incentives for the common goals. Industrialised countries spend single-digit perceptual shares of GDP on R&D. The optimisation of technosphere required for algocracy relies on efficient research. Research funding has to be spent on the most promising projects and most promising individuals. Currently, popular scientometric measures like h-index set disputable incentives [49] . For instance, the growth of the author's number per paper is incentivised, since increased the number of papers per author and also the number of citations. The data of scientific publications shows a clear proof that this incentive makes an impact. Further, it incentivises organisational and political talents instead of actual innovation originators. An algocratic social machine hands over a lot of organisational and political tasks to algorithms and therefore will concentrate the funding on innovation originators. Technologies like text mining and data citation could play a crucial role in this process. There is a silent agreement between a search engine provider and its user -search engine provides most relevant results on top to any search request given by the user. This agreement is not a formal contract and does not involve the actual third party namely the search result providers. A similar agreement between major media outlets and their readers. The supposedly most important stories are on the title page. Also for media, these agreements did not include any third parties till now. Finally, social networks also apply certain filtering on user-generated contents based on some significance ranking [50] . Given the fact that attention is a scarce asset on the internet and a precondition for monetary income and other non-monetary benefits, a justification for this attention inequality becomes an issue of interest. In the case of media, bizarre effects like missing white woman syndrome and hierarchy of death can be observed [51, 52] -people's suffering gets different coverage depending on their origin. This is clearly a dysfunction. In less critical contexts, attention inequality achieves generally much higher GINI coefficients than wealth inequality [53] . For an algocratic social machine, this will be important to assess the justified share of attention inequality. The unjustified share of attention inequality can be explained by Matthew effect, which can make a low-quality content to get more attention than a high-quality content [54] . Sortition is the selection of political officials by random, which is known since ancient Athenian democracy. According to the law of large numbers, sortition would ensures the implementation of the average will of the general public for larger pools of selected officials. For instance, if sortition creates a relatively small random parliament of 22 seats from a population of 1M people including 50k proponents of a dictatorship, the probability of these radicals getting 11 seats and more is only 0.000000002 -it will take millions of years until the democracy is overthrown by chance. Sortition appears to be more secure at fulfilling democracy than an election. As already mentioned, the political decisions in the US democracy do not correlate with the will of the general public [15] . Otherwise, political parties are reported to spend significant amounts of money on data-driven electoral campaigns [55] -voters' behaviour is influenced by algorithms. Ancient Greeks built special machines to ensure a fair random selection. In algocracy this task will be done by algorithms. We made a summarising journey from cloudy fears to the main technologies and concepts around the coming radical transformation by algocracy. Main theses are: 1. Historical milestones show clear worldwide trends towards establishment of algocracy regardless of political background. 2. Majority of the population is not in favour of this transformation, although algocracy has the potential to address such problems as environmental degradation, discrimination and unjustified economic inequalities. 3. There are no clear signs that algocracy might shift the power balance either towards even smaller elite or towards the populace. 4. The legislature and the judiciary can be automated by Weak AI and full automation of the executive requires AGI. 5. Automation of judiciary requires smart contract implementation. 6. Automation of legislature is a data-driven process of mechanism design based on simulation. 7. Development of a language for smart contracts is the core element for algocracy since it builds the interface between the virtual machine, the mechanism design, the data formatting and the human subjects. RFID: Sign of the (End) Times? Wired.com European tech insights. Center for the Governance of Change Europe Limits Government by Algorithm. The US, Not So Much Palantir has secretly been using New Orleans to test its predictive policing technology Administration by Algorithm? Public Management Meets Public Sector Machine Learning Virtual Migration In: Beyond Transparency: open Data and the Future of Civic Innovation Government by algorithm: Artificial intelligence in federal administrative agencies Power through the algorithm? Participatory web cultures and the technological unconscious Ziewitz: Governing algorithms: A provocation piece Decoding identity: Reprogramming pedagogic identities through algorithmic governance Political Effects of the Information Revolution The rise of social machines: The development of a human/digital ecosystem On social machines for algorithmic regulation Testing theories of american politics: Elites, interest groups, and average citizens Why technology favors tyranny Contract law 2.0: "smart" contracts as the beginning of the end of classic contract law Du contrat social; ou, Principes du droit politique The Politics of Seasteading Freie PrivatstÃd'dte The stanford infobus and its service layers: Augmenting the internet with higher-level information management protocols Rethinking algorithmic regulation Administrative Behavior Information technology in government Reflections on taxman: An experiment in artificial intelligence and legal reasoning The legol 1 prototype system and language Smart contracts. szabo.best.vwh.net A review of anomaly detection in automated surveillance Rethinking the social credit system: A long road to establishing trust in chinese society A next-generation smart contract and decentralized application platform Automated company raises equivalent of 120m in digital currency It's not the algorithm, it's the data AI shock: China unveils 'cyber court' complete with AI judges and verdicts via chat app Can AI Be a Fair Judge in Court? Estonia Thinks So Neural network associative forecasting of demand for goods Attribution of customersâȂŹ actions based on machine learning approach Gift ratios in laboratory experiments Do smart contract languages need to be turing complete Metagame: a new challenge for games and learning Multi-agent petri-games The game description language is turing complete z-Tree: Zurich toolbox for ready-made economic experiments Probabilistic smart contracts: Secure randomness on the blockchain Ukrainian ministry carries out first blockchain transactions. reuters Auctions and Auctioneering General game playing b-to-b price negotiations The application of multi-objective optimization to bid decision Behavior mining in h-index ranking game Attention inequality in social media Missing white woman syndrome: An empirical analysis of race and gender disparities in online news coverage of missing persons A hierarchy of death. The Guardian Income inequality in the attention economy The impact factor's matthew effect: A natural experiment in bibliometrics Data and democracy in the digital age