Algorithmic Mechanism Design Distributed Intelligence in Computing

Slides:



Advertisements
Ähnliche Präsentationen
Chapter 4 Accusative Case
Advertisements

Ich habe nie gelernt, Aufgaben zu lösen
Art der Arbeit (Projekt-/Studien-/Diplomarbeit/
HEINZ NIXDORF INSTITUT Universität Paderborn Fachbereich Mathematik/Informatik Algorithmische Probleme in Funknetzwerken IX Christian Schindelhauer
Verbs Used Impersonally With Dative Deutsch I/II Fr. Spampinato.
Ich bau eine Stadt für dich “I am building a city for you”
Don`t make me think! A Common Sense Approach to Web Usability
You need to use your mouse to see this presentation © Heidi Behrens.
Informationsbasierte Interaktion information II. Struktur 1.Rekurs Daten Mathematical Theory of Communication (MTC) 2.Reichweite der MTC 3.Hauptteil Interaktion.
You need to use your mouse to see this presentation © Heidi Behrens.
Beinah “almost” Clueso
You need to use your mouse to see this presentation
Test Review Deutsch I Kapitel I.
You need to use your mouse to see this presentation © Heidi Behrens.
DATIV Ich schreibe meinem Bruder einen Brief.
Little Prayer Ein kleines Gebet Autor unbekannt.
Photos et son du Web Text Images Web Text Es gibt keine grössere Sehnsucht des Menschen, als jemanden zu finden, der einem zuhört. Folke Tegetthoff.
CALPER Publications From Handouts to Pedagogical Materials.
Bist du gesund? Hast du einen gesunden Lebensstil?
You need to use your mouse to see this presentation © Heidi Behrens.
1 von 7 ViS:AT BMUKK, IT – Systeme für Unterrichtszwecke 05/11 EZ, CR Social Networks – Soziale Netzwerke Virtuelle Science Cafes & Diskussionsforen für.
German Article & Adjective Combos Do you find it difficult to choose the correct adjective endings? It can help to realize that not all adjective endings.
Coordinating Conjunctions Why we need them & how to use them deutschdrang.com.
 Every part in a sentence has a grammatical function. Some common functions are: - Subject - Verb - Direct object / accusative object - Indirect object.
Reading comprehension
Konjunktiv II mit modal Verben Subjunctive mood with modals
Filmtechnische Geräte in dem Film Farben (colours) Humor (humour) Musik (music) Symbole und Leitmotive (symbols and themes)
Mein Arbeitspraktikum. Today we are learning to talk about work experience we have done, giving facts, details and opinions The bigger picture: We are.
Die Fragen Wörter Wer? Was? Wann?.
Weak pushover verbs..... lieben kaufen spielen suchen....are verbs that do exactly as they are told. They stick to a regular pattern that does not change!
Stephanie Müller, Rechtswissenschaftliches Institut, Universität Zürich, Rämistrasse 74/17, 8001 Zürich, Criminal liability.
I will be able to use the accusative pronouns in a sentence (Buch Seite 200)
Spiegelbild “Reflection” Unheilig
Welcome to Web Services & Grid Computing Jens Mache
Rules of Play - Game Design Fundamentals by Katie Salen and Eric Zimmerman Universität zu Köln Historisch-Kulturwissenschaftliche Informationsverarbeitung.
For the verb indicated in parentheses, write the correct verb conjugation.  Wann ___ du zu uns kommen? (to want)  ____ Sie Deutsch? (can)  Ich ____.
What is a “CASE”? in English: pronouns, certain interrogatives
Ordering Food A Guide. Im Restaurant An actual restaurant is the chance to use more formal ordering. “Ich hätte gern eine Pizza.” “Ich möchte eine Cola.”
type / function / form type of words:
Verbs with DATIV There are a number of verbs that are often followed by two objects - direct and indirect: to give - to give someone something the person.
DATIVE has the following forms:
COMMANDS imperative 1. you (formal): Sie 2. you (familiar plural): ihr
DATIVE has the following forms:
Modal auxiliaries Chris can read the book. (has the ability to) Chris may read the book (is allowed to) Chris must read the book (has to) Chris should.
Studentenstreik 2009, 2010 in Deutschland Part 1: Studiengebühren.
© Crown copyright 2011, Department for Education These materials have been designed to be reproduced for internal circulation, research and teaching or.
Kapitel 4 Grammar INDEX 1.Ordinal Numbers 2.Relative Pronouns and Relative Clauses 3.Conditional Sentences 4.Posessive: Genitive Case.
Kapitel 2 Grammar INDEX 1.Subjects & Verbs 2.Conjugation of Verbs 3.Subject Verb Agreement 4.Person and Number 5.Present Tense 6.Word Order: Position of.
Kapitel 7 Grammar INDEX 1.Comparison 2.Adjectives 3.Adjective Endings Following Ein-Words.
Here‘s what we‘ll do... Talk to the person sitting in front of you. Introduce each other, and ask each other questions concerning the information on your.
Großvater Großmutter Großvater Großmutter Tante/Onkel Vater Mutter.
On the case of German has 4 cases NOMINATIVE ACCUSATIVE GENITIVE DATIVE.
German “ wo - compounds ” Provided by deutschdrang. com for individual and classroom use only. May not be reproduced for any other purposes.
German “ da - compounds ” Provided by deutschdrang. com for individual and classroom use only. May not be reproduced for any other purposes.
Adjektiven und Adverbien Endungen. Das prädikativ gebrauchte Adjektiv Predicate adjectives follow the verbs sein, werden or bleiben. The modify the subject.
B LOCKED DAY 1 OBJECTIVES: To consolidate vocabulary and structures within the theme of DIE UMWELT To further practise the techniques used in the prose.
Lernziele: Wir üben das Perfekt. Wir spielen Karten auf Deutsch.
Jetzt machen Venues aufmachen!!! Geh zu
You need to use your mouse to see this presentation
THE PERFECT TENSE IN GERMAN
Die Medien heute Montag, 19. November 2018 Lernziele
Wie viel Uhr ist es? Telling Time.
DATIV Ich schreibe meinem Bruder einen Brief.
Practical Exercises and Theory
Ich - Projekt Due Monday, September 19..
Die tiere Share: Introduce the session and PDSA.
- moodle – a internet based learning platform
 Präsentation transkript:

Algorithmic Mechanism Design Distributed Intelligence in Computing Raphael Eidenbenz ETH Zurich, Switzerland (some slides by Yvonne-Anne Pignolet, Michael Kuhn, ETH Zurich or Stefan Schmid, TU Munich) Good morning, thanks for coming.

Übersicht Fragen, wenn etwas unklar ist! Verteilte Intelligenz Schwarmintelligenz, Small World Phenomenon, Greedy Routing Peer-To-Peer Computing Mechanismusdesign Effizienzverlust durch Eigennützigkeit Anreizkompatibilität Free Riding in Peer-To-Peer Computing Prisonners Dilemma even useful for networking  Fragen, wenn etwas unklar ist! Raphael Eidenbenz, RC-Sociology VIU ‘08

Verteilte Intelligenz Raphael Eidenbenz, RC-Sociology VIU ‘08

Raphael Eidenbenz, RC-Sociology VIU ‘08 Schwarmverhalten “The ability of animal groups—such as this flock of starlings—to shift shape as one, even when they have no leader, reflects the genius of collective behavior—something scientists are now tapping to solve human problems.” [http://ngm.nationalgeographic.com/2007/07/swarms/swarms-photography] Raphael Eidenbenz, RC-Sociology VIU ‘08

Raphael Eidenbenz, RC-Sociology VIU ‘08 Schwarmintelligenz “Even complex behavior may be coordinated by relatively simple interactions.” “Simple creatures following simple rules, each one acting on local information. No individual sees the big picture.” [http://ngm.nationalgeographic.com/2007/07/swarms/swarms-photography] Raphael Eidenbenz, RC-Sociology VIU ‘08

Schwarm-Modellierung Schwärme lassen sich mit drei simplen Regeln auf individueller Ebene simulieren. [Reynolds 1986] Jeder einzelne Agent soll folgenden Regeln folgen: Bewege dich in Richtung des Mittelpunkts derer, die du in deinem Umfeld siehst. Bewege dich weg, sobald dir jemand zu nahe kommt. Bewege dich in etwa in dieselbe Richtung wie deine Nachbarn. Eingesetzt in Animationen Batman Returns (1992), Lion King (1994), ... Raphael Eidenbenz, RC-Sociology VIU ‘08

Small World Phenomenon Experiment von Stanley Milgram 1967: 60 zufällige Personen in der USA senden ein Paket über persönliche Kontakte an eine bestimmte Person in Boston Resultat: Durchschnittliche Pfadlänge bei ~6 Kontakten Pfad wurde gefunden mit lokalen Kenntnissen (geographisch, sozial) Seine Hypothese: Jeder Mensch ist über eine kurze Kette von Kontakten mit allen anderen verbunden Soziale Netzwerke haben kleinen Durchmesser Hypothese Milgram‘s wurde in einigen Experimenten bestätigt Zuletzt in einer Microsoft Studie eines Instant Messenger-Netzwerkes mit 9,1 Milliarden Kontakten. [Leskovec und Hirvitz 2008] Raphael Eidenbenz, RC-Sociology VIU ‘08

Small World Graph [Watts&Strogatz 1998, Kleinberg 2000] Netzwerk in einem metrischen Raum Distanz zw. Knoten u und v messbar. Distanzfunktion d(u,v). Kontaktwahrscheinlichkeit nimmt mit steigender Entfernung ab Pr[Kontakt u,v] ~ d(u,v)-r Bsp. Kontakte eines Knotens in einem Gitternetzwerk mit r=2. Pr[Kontakt zu direkten Nachbarn] = 1-r = 1 Pr[Kontakt u,v] = 4-r = 1/16 Pr[Kontakt u,w] = 3-r = 1/9 Raphael Eidenbenz, RC-Sociology VIU ‘08

Routing in a Small World Graph Eigenschaften des SWG Kleiner Durchmesser (Durchmesser = längster kürzester Pfad) O(log n) im Erwartungswert Robust (kein Bottleneck) Wie findet das Paket seinen Weg? Ein Knoten hat nur lokale Kenntnisse. Er kennt seine Kontakte, deren Position im metrischen Raum die Position des Zielknotens Greedy Routing liefert einen Pfad von O(log2n) Länge in Erwartung. Lokaler „Greedy“ Algorithmus: Wähle einen Kontakt der so nah wie möglich am Ziel ist. Raphael Eidenbenz, RC-Sociology VIU ‘08

Peer-To-Peer (P2P) Computing Traditionelle Internetanwendungen Client-Server Struktur Request - Answer Peer-To-Peer Anwendungen Peers sind Clients und Servers Dezentral organisiert Es gibt keinen zentralen Koordinator Client Server Peer 2 Peer 1 Peer 3 Raphael Eidenbenz, RC-Sociology VIU ‘08

Broadcast Client-Server Broadcast: 1 Computer sendet dasselbe File an n-1 Interessenten Server n=12, data>>latency T=O(n) Clients Raphael Eidenbenz, RC-Sociology VIU ‘08

Raphael Eidenbenz, RC-Sociology VIU ‘08 Broadcast P2P Seeder n=12 Anfang: 1 Seeder 1.Schritt: 2 2.Schritt: 4 i.Schritt: 2i Seeders 2logn=n  T=O(log n) Leechers Raphael Eidenbenz, RC-Sociology VIU ‘08

Zusammenfassung Verteilte Intelligenz Lokale Entscheidungen führen zu globalen Phänomenen Schwärme Internet Routing Netzwerkbildung Verteilte Algorithmen Divide and Conquer Grid Computing Peer-to-Peer Image from: datamining.typepad.com Raphael Eidenbenz, RC-Sociology VIU ‘08

...Friede, Freude, Eierkuchen? Nein! Wieso soll ich mir die Mühe machen, ein Paket für einen Fremden zu verschicken? Wieso soll ich ein File seeden, wenn ich es bereits vollständig heruntergeladen habe? „Machts gut, ihr ...!“ Raphael Eidenbenz, RC-Sociology VIU ‘08

Rechnen in Eigennütziger Umgebung Raphael Eidenbenz, RC-Sociology VIU ‘08

Algorithmic Mechanism Design Problem: Eigennützigkeit beeinträchtigt die Effizienz Das Internet ist eine eigennützige Umgebung Idee: Mach gewünschtes Verhalten anreizkompatibel! Mechanism Design ≈ „inverse“ Spieltheorie Spieltheorie beschreibt bestehende Systeme Erklärt Verhalten mittels Lösungskonzepten Mechanism Design kreiert Spiele, bei denen das erwünschte Verhalten für die Agenten die „rational beste“ Strategie ist. In einem anreizkompatiblen Mechanismus soll es sich nicht lohnen zu betrügen Populärstes Lösungskonzept: Dominante Strategien Raphael Eidenbenz, RC-Sociology VIU ‘08

Free-Riding in P2P Computing Peer-to-peer Systeme basieren auf Beiträgen der Agenten „Tauschbörsen“ Peer-to-peer Interaktionen sind unverbindlich Agenten sind anonym und treffen sich vermutlich nie wieder IP-Adresse als einzige Identifikation Ist nicht eindeutig Kann geändert werden Dezentral organisiert Free-Riding ist einfach! Nehmen macht seliger denn geben Raphael Eidenbenz, RC-Sociology VIU ‘08

Free-Riding in P2P: Lösungen Naiv: Kazaa - Client überwacht contributions - In Kazaa lite Client ist max hart codiert Idee: Beispiel reale Wirtschaft! - Virtuelles Geld - Aber: keine Zentralbank Andere Idee: Reputation-basiert! - White-washing Raphael Eidenbenz, RC-Sociology VIU ‘08

Free-Riding in P2P: Lösungen (2) Altmodische Idee: Tauschgeschäfte Wie finde ich einen Tauschpartner? Was, wenn ich noch nichts zu tauschen habe? Bram Cohen läutet Paradigmenwechsel ein Files sind typischerweise gross, mehrere gleichzeitige Interessenten Tauschhandel ist möglich für ein einzelnes File! BitTorrent braucht Tit-for-Tat Mechanismus auf File-Blöcken - Bootstrap Problem gelöst durch Optimistic Unchoking Raphael Eidenbenz, RC-Sociology VIU ‘08

Raphael Eidenbenz, RC-Sociology VIU ‘08 Bittorrent Tit-for-Tat Mechanismus (repeated Game) für 1 File, n interessierte Peers Blockvielfalt wird hoch gehalten Peers können tauschen Peers passen QoS an Optimistic Unchocking Ab und zu wird zufällig mit einem Peer getauscht. unchoking („tit-for-tat“) seeding opt unchoking Raphael Eidenbenz, RC-Sociology VIU ‘08

Free-Riding in Bittorrent is cheap Auch BitTorrent ist nicht cheating-proof Bootstrapproblem nicht 100%-ig gelöst Optimistic Unchocking kann ausgenützt werden [Locher et al. 2006]: BitThief-Client http://dcg.ethz.ch/projects/bitthief/ Raphael Eidenbenz, RC-Sociology VIU ‘08

Raphael Eidenbenz, RC-Sociology VIU ‘08 Konklusion Verteilte Intelligenz Lokales Handeln basierend auf lokaler Information kann zu makroskopisch guten Lösungen führen Greedy Routing Algorithmic Mechanism Design Fehlende Anreizkompatibilität führt in verteilten Computersystemen mit eigennützigen Agenten als Akteuren (z.B. Internet) zu Effizienzverlust Neue Herausforderung in der Informatik: Anreize analysieren und kompatible, trotzdem effiziente Protokolle designen Überschneidung mit der Soziologie, Ökonomie und Politologie Raphael Eidenbenz, RC-Sociology VIU ‘08

P2P: Ungelöste Probleme Gibt es eigennütziges Seeding? Persistenz der Files könnte erhöht werden Tauschhandel über File-Grenzen hinweg Wieso funktionierts trotzdem ganz gut? Altruistische Seeder: Was treibt sie an? Geringe Kosten Down-/Uploadkapazitäten nicht erschöpft, keine Limiten Agent ≠ Mensch Strategie nur von Programmierer frei wählbar Thank you! Raphael Eidenbenz, RC-Sociology VIU ‘08

Raphael Eidenbenz, RC-Sociology VIU ‘08 Bibliographie [Leskovec und Hirvitz 2008]: Planetary-Scale Views on a Large Instant-Messaging Network. Microsoft-Studie, WWW 2008. [Jon Kleinberg 2000]: The Small-World Phenomenon: An Algorithmic Perspective. STOC 2000. [Watts and Strogatz 1998]: Collective Dynamics of Small-World Networks. Nature 393,440 (1998). [Reynolds 1986] http://www.red3d.com Raphael Eidenbenz, RC-Sociology VIU ‘08

Internet = Selfish Environment Das Internet ist eine eigennützige Umgebung Verteilte Algorithmen basieren auf Kooperation Eigennütziges Verhalten schadet oder verunmöglicht Mechanismen Bsp. ISPs, P2P „The Internet is unique among all computer systems in that it is built, operated, and used by a multitude of diverse economic interests, in varying relationships of collaboration and competition with each other.“ „This suggests that the mathematical tools and insights most appropriate for understanding the Internet may come from a fusion of algorithmic ideas with concepts and techniques from Mathematical Economics and Game Theory.“ Christos Papadimitriou bei STOC 2001 Raphael Eidenbenz, RC-Sociology VIU ‘08

Hierarchisches Netzwerkmodell “Small-world phenomena and the dynamics of information” [Kleinberg 2002] Oft können Knoten hierarchisch klassifiziert werden Knoten die in der Hierarchie nahe beieinander sind haben mit grösserer Wahrscheinlichkeit Kontakt als andere 1 2 3 4 Science Computer science Economics Databases Theory Empirical Game Theory Graph Theory Raphael Eidenbenz, RC-Sociology VIU ‘08

Raphael Eidenbenz, RC-Sociology VIU ‘08 Layer Modell Häufig verschiedene Typen von Hierarchien Geographie, Beruf, Interessen, Sprache, etc. Aus welchem Grund besteht Kontakt? Layers Mehr als eine Hierarchie pro Netzwerk Jeder Kontakt gehört zu mindestens einem Layer Raphael Eidenbenz, RC-Sociology VIU ‘08

What is Game Theory About? Theory of rational behaviours in competitive and collaborative settings. 2 1 ² a b c d ISP 1 network with transmission cost for each edge, ISP pays for ransmissions in its range ISP 1: wants to send packet from a to b use cheap or expensive edge for first forwarding step? What if ISP 2 wants to send a packet from c to d? ISP 2 network with transmission cost for each edge, ISP has to pay for ransmissions in its range Two strategies: use cheap or expensive edge for first forwarding step, i.e., use more of your own or others resources.. Typical scenario for game theory Lack of central control Rational and/or selfish participants global objective: reduce cost Raphael Eidenbenz, RC-Sociology VIU ‘08

Raphael Eidenbenz, RC-Sociology VIU ‘08 What is a Game? ISP 1 Example 2 1 ² a b c d Game n players strategies ai 2 Ai, i=1..n outcomes a 2 A = A1xA2..xAn utilities ui: A  R , i=1..n ISP 2 Player is general entity individual, company, nation, protocol, animal, etc Strategies actions a player can choose Outcome determined by mutual choice of strategies Utility depends on outcome, payoff or cost ISPs first forwarding edge Ingredients.. Lets work out the traffic cost traffic on edges cost for traffic Raphael Eidenbenz, RC-Sociology VIU ‘08

Representation in Normal Form (Matrix) ISP 2 ISP 1 2 1 ² a b c d Defect Cooperate ISP 1 2,2 5,1 1,5 4,4 Cooperate ISP 2 Defect Cooperate = choose edge with cost 2 Defect = choose edge with cost 1 Dilemma: given other‘s choice it‘s better to defect → rationality leads to equilibrium if both defect they pay too much.. → global situation could be better similar to famous Prisoner‘s Dilemma! Raphael Eidenbenz, RC-Sociology VIU ‘08

Raphael Eidenbenz, RC-Sociology VIU ‘08 Prisoner’s Dilemma two suspects police has insufficient evidence for conviction (video tape, no DNA) interrogate suspects independently, offer a deal testify for prosection of other remain silent deal details: - both testify → both 3 years in jail - one testifies → betrayer 1 year in jail, accomplice 5 years in jail - both silent → both 2 years in jail n its "classical" form, the prisoner's dilemma (PD) is presented as follows: Two suspects are arrested by the police. The police have insufficient evidence for a conviction, and, having separated both prisoners, visit each of them to offer the same deal. If one testifies ("defects") for the prosecution against the other and the other remains silent, the betrayer goes free and the silent accomplice receives the full 10-year sentence. If both remain silent, both prisoners are sentenced to only six months in jail for a minor charge. If each betrays the other, each receives a five-year sentence. Each prisoner must choose to betray the other or to remain silent. Each one is assured that the other would not know about the betrayal before the end of the investigation. How should the prisoners act? If we assume that each player prefers shorter sentences to longer ones, and that each gets no utility out of lowering the other player's sentence, and that there are no reputation effects from a player's decision, then the prisoner's dilemma forms a non-zero-sum game in which two players may each "cooperate" with or "defect" from (i.e., betray) the other player. In this game, as in all game theory, the only concern of each individual player ("prisoner") is maximizing his/her own payoff, without any concern for the other player's payoff. The unique equilibrium for this game is a Pareto-suboptimal solution—that is, rational choice leads the two players to both play defect even though each player's individual reward would be greater if they both played cooperatively. Raphael Eidenbenz, RC-Sociology VIU ‘08