Closed synctext closed 3 years ago
Interesting thesis direction!
We aim to achieve this goal with our own decentralized exchange, which is fundamentally different from existing DEXes. I think the OP identified the main flaws of existing DEXes (e.g., BitShares, Waves, OasisDEX...). Even though the idea of DEXes is interesting, their liquidity is too low to attract traders. Furthermore, even though they offer trust-less asset settlement, their (transaction) costs are still high (of course, this also depends on the specifications of the underlying protocols). Finally, there are many fairness issues attached to blockchain-based exchanges.
I think market fairness as central thesis component could be a viable and novel research direction. This ties directly into mechanism design and behavior of individual agents, whose goal is to optimize their own profits. Can we make a market that provides fairness to traders? Fairness is a multi-dimensional property so you might want to focus on a specific aspect of fairness.
Some overlap here, however they just want their own coin to become big https://docs.bisq.network/dao/phase-zero.html
Bisq, a peer-to-peer exchange network designed for secure, private and
censorship-resistant trading of bitcoin for national currencies and other cryptocurrencies
[snip]
Appendix A: Roles defines the roles individuals play when participating in the Bisq DAO,
such as trader, contributor and stakeholder, and defines several categories of high-trust
bonded contributor roles such as maintainer, operator, and administrator;
Initial exploratory literature review: (a) digital marketplaces (https://fetch.ai/wp-content/uploads/2019/10/Fetch.AI-Economics-white-paper.pdf) (b) distributed ledgers used for financial purposes (http://www.smallake.kr/wp-content/uploads/2018/09/E_JPX_working_paper_No15.pdf / https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3352293) (c) peer-to-peer lending (https://www.oecd.org/daf/ca/The-Potential-for-Blockchain-in-Public-Equity-Markets-in-Asia.pdf)
Initial thoughts after reading some literature, before discussing with Johan:
The idea is that anyone can create a market. I identified several considerations that a market creator should consider:
great taxonomy start! Trustchain is consensus-free, thus no electricity for mining. What are two isolated markets that can be merged into a single infrastructure? Preferably with low competition, high fees, low innovation, and incentives to use your open alternative.
Brainstorm... Inspired by this payout platform it would be possible to build market trackers()
. A payout is provided if the stock market is either below or above a certain mark. Use our DAO #5143 with shared ownership of Bitcoins.
I am currently working on a classification/overview of existing electronic market/trade mechanisms based on blockchain technology (for a possible paper). This also includes literature on prediction markets, like Augur. I have collected 130+ (mostly peer-reviewed) articles so far and categorised them. I think there is quite some overlap with topics that you brought up. If you are interested in them, I can share them with you 👍
can you post a list here? + URLs possible even...
@synctext sure! I'm using the Papers application to organize and categorize all the literature that I read, and I'm currently in the process of reading/summarizing each paper. I think the list below is quite complete regarding academic work, but there are still a few open-source (non-peer-reviewed) implementations missing.
Alt chains and atomic transfers
Atomic Cross-Chain Swaps.
Atomic Cross-chain Swaps - Development, Trajectory and Potential of Non-monetary Digital Token Swap Facilities.
Atomic Cross-Chain Swaps with Improved Space and Time Complexity.
Atomic Crosschain Transactions for Ethereum Private Sidechains.
Atomic Swaptions: Cryptocurrency Derivatives
Cross-chain Deals and Adversarial Commerce.
Extending Atomic Cross-Chain Swaps.
On the optionality and fairness of Atomic Swaps.
On the specification and verification of atomic swap smart contracts.
Privacy-Preserving Cross-Chain Atomic Swaps
The state of atomic swaps
(via @papersapp) http://scholar.google.comjavascript:void(0) https://dblp.org/rec/conf/podc/Herlihy18 http://aetic.theiaer.org/archive/v3/v3n1/p5.html https://dblp.org/rec/journals/corr/abs-1905-09985 https://dblp.org/rec/journals/corr/abs-1904-12079 http://arxiv.org/abs/1807.08644v2 https://dblp.org/rec/journals/pvldb/HerlihySL19 http://link.springer.com/10.1007/978-3-030-31500-9_14 http://dl.acm.org/citation.cfm?doid=3318041.3355460 http://arxiv.org/abs/1811.06099v1 http://fc20.ifca.ai/wtsc/WTSC2020/WTSC20_paper_20.pdf http://diyhpl.us/wiki/transcripts/scalingbitcoin/tokyo-2018/atomic-swaps/
PASTRAMI: Privacy-preserving, Auditable, Scalable&Trustworthy Auctions for Multiple Items
Succinctly Verifiable Sealed-Bid Auction Smart Contract.
Verifiable Sealed-Bid Auction on the Ethereum Blockchain.
(via @papersapp) http://link.springer.com/10.1007/978-3-030-00305-0_1 http://link.springer.com/10.1007/978-3-662-58820-8_18
Bitcoin: Economics, Technology, and Governance
Bitcoin Transaction Malleability and MtGox
Making Bitcoin Exchanges Transparent
Provisions: Privacy-preserving Proofs of Solvency for Bitcoin Exchanges
ShapeShift
Tesseract - Real-Time Cryptocurrency Exchange Using Trusted Hardware.
The Arwen Trading Protocols (Full Version).
Why Preventing a Cryptocurrency Exchange Heist Isn’t Good Enough
(via @papersapp) http://pubs.aeaweb.org/doi/10.1257/jep.29.2.213 https://link.springer.com/chapter/10.1007/978-3-319-11212-1_18 https://link.springer.com/chapter/10.1007/978-3-319-24177-7_28 http://dl.acm.org/citation.cfm?doid=2810103.2813674 https://shapeshift.io http://dl.acm.org/doi/10.1145/3319535.3363221 https://dblp.org/rec/journals/iacr/HeilmanLG20 https://link.springer.com/chapter/10.1007/978-3-030-03251-7_27
0x: An open protocol for decentralized exchange on the Ethereum blockchain
A Demonstration of Sterling - A Privacy-Preserving Data Marketplace.
A Distributed Digital Asset-Trading Platform Based on Permissioned Blockchains
Beaver - A Decentralized Anonymous Marketplace with Secure Reputation.
Bisq - The peer-to-peer Bitcoin Exchange
BitShares 2.0: General Overview
Coincer: Decentralised Trustless Platform for Exchanging Decentralised Cryptocurrencies
Decentralized blockchain-based electronic marketplaces
Decentralizing the Stock Exchange using Blockchain An Ethereum-based implementation of the Bucharest Stock Exchange.
Deconstructing Decentralized Exchanges
Enigma Catalyst : A machine-based investing platform and infrastructure for crypto-assets
Etherdelta
Fast and secure global payments with Stellar
Fragmentation of Distributed Exchanges
IDEX: A Real-Time and High-Throughput Ethereum Smart Contract Exchange
IDMoB - IoT Data Marketplace on Blockchain.
Komodo BarterDEX
Kyber Network whitepaper
Localbitcoins
Loopring: A decentralized token exchange protocol
Mind my value - a decentralized infrastructure for fair and trusted IoT data trading.
Open bazaar protocol
Polkadot: Vision for a heterogeneous multi-chain framework
Republic Protocol: A decentralized dark pool exchange providing atomic swaps for Ethereum-based assets and Bitcoin
Resource Control in P2P Cryptocurrency Networks
SmartExchange: Decentralised Trustless Cryptocurrency Exchange
Swap: A Peer-to-peer Protocol for Trading Ethereum Tokens
Waves.Exchange | Buy crypto with 0% fees
XCLAIM: Trustless, Interoperable, Cryptocurrency-Backed Assets
(via @papersapp) https://static.xcj.com/uploads/20180518/xumb4xmv3o1516701172833.pdf http://dl.acm.org/citation.cfm?doid=3229863.3275603 https://link.springer.com/chapter/10.1007/978-3-030-05764-0_6 https://dblp.org/rec/journals/iacr/SoskaKCD16 https://docs.bisq.network/exchange/whitepaper.html https://cryptorating.eu/whitepapers/BitShares/bitshares-general.pdf https://link.springer.com/chapter/10.1007/978-3-319-64701-2_53 https://dl.acm.org/doi/10.1145/3158333 https://ieeexplore.ieee.org/document/8516610/ https://assets.pubpub.org/ob89i66u/61573938834913.pdf https://etherdelta.com http://dl.acm.org/citation.cfm?doid=3341301.3359636 http://arxiv.org/abs/1910.11216v2 https://ieeexplore.ieee.org/document/8525388/ https://files.kyber.network/Kyber_Protocol_22_April_v0.1.pdf https://localbitcoins.com https://raw.githubusercontent.com/Loopring/whitepaper/master/en_whitepaper.pdf http://dl.acm.org/citation.cfm?doid=3131542.3131564 http://docs.openbazaar.com http://scholar.google.comjavascript:void(0) http://arxiv.org/abs/1810.11675v1 https://link.springer.com/chapter/10.1007/978-3-030-04849-5_32 https://swap.tech/whitepaper/ https://waves.exchange https://ieeexplore.ieee.org/document/8835387/
Blockchain-based electricity trading with Digitalgrid router
Consortium Blockchain for Secure Energy Trading in Industrial Internet of Things.
Crypto-trading: Blockchain-oriented energy market
Energy trading for fun and profit buy your neighbor's rooftop solar power or sell your own-it'll all be on a blockchain
Implementation of blockchain-based energy trading system
Privacy-Preserving Energy Trading Using Consortium Blockchain in Smart Grid.
Security and Privacy in Decentralized Energy Trading Through Multi-Signatures, Blockchain and Anonymous Messaging Streams.
Towards resilient networked microgrids: Blockchain-enabled peer-to-peer electricity trading mechanism
(via @papersapp) https://ieeexplore.ieee.org/abstract/document/7991065/ http://ieeexplore.ieee.org/document/8234700/ https://ieeexplore.ieee.org/abstract/document/8240547/ https://ieeexplore.ieee.org/abstract/document/8048842/ https://www.emerald.com/insight/content/doi/10.1108/APJIE-12-2017-037/full/html https://ieeexplore.ieee.org/document/8613816/ https://dblp.org/rec/journals/tdsc/AitzhanS18 https://ieeexplore.ieee.org/abstract/document/8245449/
0x: An open protocol for decentralized exchange on the Ethereum blockchain
Etherdelta
Libra - Fair Order-Matching for Electronic Financial Exchanges.
Loopring: A decentralized token exchange protocol
Swap: A Peer-to-peer Protocol for Trading Ethereum Tokens
The cost of decentralization in 0x and EtherDelta
(via @papersapp) https://static.xcj.com/uploads/20180518/xumb4xmv3o1516701172833.pdf https://etherdelta.com http://dl.acm.org/citation.cfm?doid=3318041.3355468 https://raw.githubusercontent.com/Loopring/whitepaper/master/en_whitepaper.pdf https://swap.tech/whitepaper/ https://hackingdistributed.com/2017/08/13/cost-of-decent/
A permissioned blockchain-based implementation of LMSR prediction markets.
A Smart Contract Oracle for Approximating Real-World, Real Number Values
Augur: a decentralized, open-source platform for prediction markets
Decentralized Prediction Market Without Arbiters.
Gnosis whitepaper
(via @papersapp) https://linkinghub.elsevier.com/retrieve/pii/S016792361930257X https://drops.dagstuhl.de/opus/volltexte/2020/11970 http://cryptoverze.com/wp-content/uploads/2019/01/augur.pdf http://link.springer.com/10.1007/978-3-319-70278-0_13 http://scholar.google.comjavascript:void(0)
Flash Boys 2.0 - Frontrunning, Transaction Reordering, and Consensus Instability in Decentralized Exchanges.
Footprints on a Blockchain: Trading and Information Leakage in Distributed Ledgers
On the impossibility of fair exchange without a trusted third party
On the optionality and fairness of Atomic Swaps.
Provisions: Privacy-preserving Proofs of Solvency for Bitcoin Exchanges
The cost of decentralization in 0x and EtherDelta
The Decentralized Financial Crisis: Attacking DeFi
Zexe - Enabling Decentralized Private Computation.
(via @papersapp) https://dblp.org/rec/journals/corr/abs-1904-05234 http://jot.pm-research.com/lookup/doi/10.3905/jot.2017.12.3.005 https://pdfs.semanticscholar.org/208b/22c7a094ada20736593afcc8c759c7d1b79c.pdf http://dl.acm.org/citation.cfm?doid=3318041.3355460 http://dl.acm.org/citation.cfm?doid=2810103.2813674 https://hackingdistributed.com/2017/08/13/cost-of-decent/ http://arxiv.org/abs/2002.08099v1 https://dblp.org/rec/journals/iacr/BoweCGMMW18
A protocol for interledger payments
Atomically Trading with Roger - Gambling on the Success of a Hardfork.
Blockchain-based secure digital asset exchange scheme with QoS-aware incentive mechanism.
Blockchain-based settlement for asset trading
Blockchain router: A cross-chain communication protocol
Bootstrapping a Blockchain Based Ecosystem for Big Data Exchange.
Centrally Banked Cryptocurrencies.
Cross-asset trading within blockchain networks
Cross-Chain Payment Protocols with Success Guarantees
DeXTT - Deterministic Cross-Blockchain Token Transfers.
Escrow Protocols for Cryptocurrencies - How to Buy Physical Goods Using Bitcoin.
Fair and Decentralized Exchange of Digital Goods.
Fair Two-Party Computations via Bitcoin Deposits.
FairSwap - How To Fairly Exchange Digital Goods.
Hallex: A trust-less exchange system for digital assets
How to Use Bitcoin to Design Fair Protocols.
Hyperledger Fabric: A Distributed Operating System for Permissioned Blockchains
HyperPubSub - Blockchain Based Publish/Subscribe.
Implementing an Asset Trading System Based on Blockchain and Game Theory
Liquid Speed: On-Demand Fast Trading at Distributed Exchanges
Market design for trading with blockchain technology
On the impossibility of fair exchange without a trusted third party
Optimistic Protocols for Fair Exchange.
PEX - Privacy-Preserved, Multi-Tier Exchange Framework for Cross Platform Virtual Assets Trading.
Pisa - Arbitration Outsourcing for State Channels.
Proof of Delivery of Digital Assets Using Blockchain and Smart Contracts.
Real-time Money Routing by Trusting Strangers with your Funds.
Resource trading in blockchain-based industrial Internet of Things
SDTE - A Secure Blockchain-Based Data Trading Ecosystem.
Towards Decentralized Equilibrium Asset Trading Based on Blockchain.
Trading Real-World Assets on Blockchain - An Application of Trust-Free Transaction Systems in the Market for Lemons.
Trading Stocks on Blocks - Engineering Decentralized Markets
Trust Is Risk - A Decentralized Financial Trust Platform.
Usable optimistic fair exchange.
XChange - A Blockchain-based Mechanism for Generic Asset Trading In Resource-constrained Environments.
XCLAIM: Trustless, Interoperable, Cryptocurrency-Backed Assets
(via @papersapp) http://blockchainlab.com/pdf/interledger.pdf http://link.springer.com/10.1007/978-3-319-67816-0_19 https://ieeexplore.ieee.org/document/8808111/ https://academic.oup.com/rfs/article-abstract/32/5/1716/5427772 http://ieeexplore.ieee.org/document/8029360/ https://dblp.org/rec/conf/ndss/DanezisM16 https://patents.google.com/patent/US20190311351A1/en http://arxiv.org/abs/1912.04513v1 http://arxiv.org/abs/1905.06204v1 http://link.springer.com/10.1007/978-3-319-70972-7_18 https://dblp.org/rec/journals/corr/abs-2002-09689 http://link.springer.com/10.1007/978-3-662-44774-1_8 https://dl.acm.org/doi/10.1145/3243734.3243857 https://dblp.org/rec/journals/iacr/BentovK14 http://dl.acm.org/citation.cfm?doid=3190508.3190538 https://ieeexplore.ieee.org/document/9049532/ https://ieeexplore.ieee.org/abstract/document/8945822/ http://arxiv.org/abs/1907.10720v1 http://blockchain.cs.ucl.ac.uk/wp-content/uploads/2016/11/Paper_18.pdf https://pdfs.semanticscholar.org/208b/22c7a094ada20736593afcc8c759c7d1b79c.pdf http://portal.acm.org/citation.cfm?doid=266420.266426 https://ieeexplore.ieee.org/document/9045515/ http://dl.acm.org/citation.cfm?doid=3318041.3355461 https://ieeexplore.ieee.org/document/8501910/ https://ieeexplore.ieee.org/document/8696786/ https://ieeexplore.ieee.org/abstract/document/8657779/ https://ieeexplore.ieee.org/document/8759960/ https://ieeexplore.ieee.org/document/8855688/ http://link.springer.com/10.1007/s12599-017-0499-8 https://link.springer.com/chapter/10.1007/978-3-319-59144-5_34 https://dblp.org/rec/journals/iacr/LitosZ17 https://linkinghub.elsevier.com/retrieve/pii/S138912861100301X http://arxiv.org/abs/2004.05046v1 https://ieeexplore.ieee.org/document/8835387/
Attacking the DeFi Ecosystem with Flash Loans for Fun and Profit.
Beware the Middleman - Empirical Analysis of Bitcoin-Exchange Risk.
Blockchain-enabled Intelligent Asset Exchange for a Circular Economy.
Challenges and Opportunities Associated with a Bitcoin-Based Transaction Rating System.
Dispute Resolution for Smart Contract-based Two-Party Protocols.
Hyperledger Fabric: A Distributed Operating System for Permissioned Blockchains
Measuring the Longitudinal Evolution of the Online Anonymous Marketplace Ecosystem.
Overview of Emerging Blockchain Architectures and Platforms for Electronic Trading Exchanges
Peer Review - Toward a Blockchain-enabled Market-based Ecosystem.
Shared Ledger Accounting - Implementing the Economic Exchange pattern.
The Economics of Cryptocurrency Pump and Dump Schemes
The Emerging Role of Electronic Marketplaces on the Internet.
Tokenization: Open Asset Protocol on Blockchain
Towards atomic cross-chain token transfers: State of the art and open questions within tast
(via @papersapp) http://arxiv.org/abs/2003.03810v2 http://link.springer.com/10.1007/978-3-642-39884-1_3 https://dblp.org/rec/journals/ercim/AskoxylakisAD17 http://link.springer.com/10.1007/978-3-662-44774-1_3 https://ieeexplore.ieee.org/document/8751312/ http://dl.acm.org/citation.cfm?doid=3190508.3190538 https://dblp.org/rec/conf/uss/SoskaC15 http://www.ssrn.com/abstract=2867344 https://dblp.org/rec/journals/cais/Avital18 https://linkinghub.elsevier.com/retrieve/pii/S0306437919304892 https://papers.ssrn.com/abstract=3310307 http://portal.acm.org/citation.cfm?doid=280324.280330 https://ieeexplore.ieee.org/abstract/document/8711021/ https://dsg.tuwien.ac.at/projects/tast/pub/tast-white-paper-1.pdf
Thanks a lot for the suggestions @synctext @devos50 👍🏻👍🏻 I hadn't heard of Augur yet, very interesting project indeed! Will change my proposed taxonomy a bit to allow for prediction markets. Would be great if you could share your summaries of those papers @devos50! My holiday is over unfortunately, from July onwards I'll dedicate all my time to this thesis project
great taxonomy start! Trustchain is consensus-free, thus no electricity for mining. What are two isolated markets that can be merged into a single infrastructure? Preferably with low competition, high fees, low innovation, and incentives to use your open alternative.
I'd need to look more into that. At first sight, I'd say that Tinder is a great example since they have a near-monopoly, very high fees, and close to no innovation.
I'd need to look more into that. At first sight, I'd say that Tinder is a great example since they have a near-monopoly, very high fees, and close to no innovation.
See Matchpool: dating on a blockchain
You can collect 'arrows' by proposing love interests. You are rewarded with more arrows as the relationship advances and gets more intimate 😄.
Haha nicee, awesome project 😂😂
Coming 6 weeks:
Universal market research questions from kick-off presentation:
Existing:
Please read the current status of our global AI marketplace tooling: https://github.com/Tribler/tribler/files/4929974/Dollynator.-.Final.Report.pdf After contributions by 31 students in various courses over the years, it is quite sophisticated. Bug-free also obviously :wink:
Some (peer-reviewed) work related to your ideas: Domain Ontology for Digital Marketplaces.
Ideas for thesis focus:
We choose to focus first on federated learning (instead of distributed learning), because this field is less researched and poses more significant challenges regarding incentives/privacy/security. When this works, extending the functionality to support distributed learning is fairly trivial.
Some literature:
Create IPv8 overlay in SuperApp and let it run on a few servers, see:
Successfully train a CNN on the MNIST database on a single node
Implement most basic gossiping protocol for distributed CNN-training: https://arxiv.org/pdf/1611.04581.pdf
Prevent attacks (sybil + injection)
Literature:
Use differentially private noise to enhance privacy
Replace SGD (that everyone uses, why???) with something way better https://ruder.io/optimizing-gradient-descent/index.html#whichoptimizertouse
Develop a general supply/demand platform where people can request other people to train their models, people choose which models they want to train
Take the average of lots of models in the early stages of the network (initially large fluctuations) and phase this averaging out when the model eventually converges
Research questions:
Now it is really secure :laughing: ; key thesis selling point. Key related work: Biscotti.
Concrete thesis direction proposal: federated learning on edge devices is a new emerging field with significant promise, but numerous unsolved challenges around privacy, security, and incentives. This thesis will significantly address the state-of-the-art by demonstrating a performance leap beyond classical Gradient Decent, security advancement without reliance on external trusted third parties or services, address the privacy issue without introducing brittle zero-knowledge proofs, and provide incentive alignment. Our solution relies on secured gossip to address model pollution and Sybil attack by providing easy-to-use trust framework which utilises Internet latency diversity, graph analysis of user activity, and transaction properties for attack-resilience.
Concrete goal: in 6 weeks a "Poisoning attack" (Wednesday 21 Oct). Possible future sprints past this date:
Update September 23
Please use the highly cited more modern HAL dataset, instead of MNIST. Deep Learning Towards Mobile Applications
Update October 7
Issue Simultaneously receiving/sending packets sometimes crashes => packets not always received by the listener
Links https://github.com/jverbraeken/trustchain-superapp https://github.com/jverbraeken/kotlin-ipv8 https://1drv.ms/u/s!AvNMRY4ml2WPgZhA-uL0CvZys_FopA?e=1tEZyo
Great progress again!
Red warning signs appear when a field produces a Survey-of-Surveys. Solid paper actually with 205 citations around Mobile Edge Computing (MEC).
Update October 22
Main idea: Improve current state-of-the-art byzantine defense algorithm Mozi, see https://www.groundai.com/project/towards-byzantine-resilient-learning-in-decentralized-systems/
Other idea: (I think this approach yield worse performance than the former, because nodes can abuse their reputation, can make use of the fact that they don't have a reputation yet, can assign excellent reputation to malicious nodes or the other way around. Additionally, it still depends on an algorithm that combines incoming models (which should be, in my opinion, the algorithm described above) Trustchain-enabled reputation-assisted federated learning
Question to Martijn/Johan:
I've read the MOZI paper in detail to get a better understanding of the field and techniques used.
I see how their approach is novel (combining distance-based and performances-based vector selection), however, I am slightly confused by the experimental results. Figure 6 shows that MOZI is indeed resilient against common attacks, but not more significantly than DBulyan. In fact, MOZI sometimes exhibits less accuracy than other aggregation rules, e.g., simple average, even under the sophisticated attack (Figure 6c). The "average" strategy actually seems to perform very well in most cases, and shows decent convergence. The authors claim that "the advantage of MOZI over other strategies is obvious" but I strongly disagree with this claim. Figure 7 shows "average" is also very performant compared to MOZI. What are then the main reasons why one should pick MOZI? Am I missing something here?
Some other comments/questions:
WIP update November 9
Also discovered some weird quirk in MOZI: when all other peers have a model that results in worse performance than the peer's own model, the peer will still average its own model with the model of the best other peer.
@devos50 Thanks for your comment!
I see how their approach is novel (combining distance-based and performances-based vector selection), however, I am slightly confused by the experimental results. Figure 6 shows that MOZI is indeed resilient against common attacks, but not more significantly than DBulyan. In fact, MOZI sometimes exhibits less accuracy than other aggregation rules, e.g., simple average, even under the sophisticated attack (Figure 6c). The "average" strategy actually seems to perform very well in most cases, and shows decent convergence. The authors claim that "the advantage of MOZI over other strategies is obvious" but I strongly disagree with this claim. Figure 7 shows "average" is also very performant compared to MOZI. What are then the main reasons why one should pick MOZI? Am I missing something here?
Well, simple average results indeed in better performance than MOZI, but the authors mention that "For baseline, we consider the same decentralized system configuration without Byzantine nodes, and using the Average Aggregation rule (Equation 2). The model trained from this setting can be regarded as the optimal one."
The paper mentions two use-cases for decentralized learning: Internet-of-Vehicle and recommendations in social networks. The latter use-case is close to what we aim to do in our lab, also see #3752. There should be another open issue for music recommendation somewhere. The evaluation of the paper is not tied to a specific use-case, which potentially undermines their results since it is not a realistic experimental setup with respect to an application domain. You should keep this in mind for your own evaluation.
Thanks! I'll keep that in mind 👍🏻. The HAR dataset (that is implemented in the current version) is a pretty realistic use-case I think.
I noticed that the paper assumes that network messages do not get lost. Their Byzantine behaviour only considers sending carefully-crafted estimates to neighbours.
Mmh, yeah that's correct, and currently the same on my setup because messages don't get lost between emulators since all network traffic is on the same computer. However, I think it's reasonable to make the attackers as strong as possible to simulate a worst-case scenario (attackers are weaker when their packets get lost on the way to the benign node).
As we also discussed last week, a key design decision of your system is synchronous learning vs asynchronous learning. The MOZI authors opt for synchronous learning.
Exactly! Asynchronous learning with lots of nodes that are significantly lagging behind is much more challenging that synchronous learning and has received relatively little attention from the scientific community. The authors also assume an i.i.d. dataset instead of a non-i.i.d. dataset which makes everything a lot easier. I think I'll focus first on tackling the non-i.i.d. challenge (since the i.i.d. assumption is completely ridiculous in real-life) and maybe in a later stage focus on making the algorithm work in asynchronous settings (because synchronous settings are actually realistic in real-life; you can "simply" synchronize every day with the other nodes)
Why is it not realistic to add an additional validation dataset to a centralised parameter server?
Good question! It is very realistic and there is a lot of literature using this approach. However, it can be hard to get enough data because the data might be very privacy-sensitive (e.g. Whatsapp messages, Tinder recommendations, or photos). Additionally, unless you get all data from all users (in which case federated learning doesn't make sense) you will have a lot more validation data when users validate incoming updates themselves (this doesn't always result in better performance because the validation data is scattered across all users, but hey, topic for future research).
- It was not clear to me how the "connection ratio" is defined. Was this described in the paper?
No, the authors forgot to mention that. I think that connection ratio refers to the fraction of nodes with which every node communicates its updates
Implemented 1st version of BRISTLE (Byzantine-Resilient decentralIzed StochasTic Federated lEarning)
(I'm not sure if this is the way to go... There are a lot of different variables that can be combined in a lot of different ways...)
Main:
similarPeers <- getSimilarPeers()
network = createNetwork()
trainDataSetIterator, testDataSetIterator = createIterators()
repeat:
network.fit(trainDataSetIterator.nextBatch()
if models received from other peers:
averageParams = integrateParameters(network)
network.setParameters(averageParams)
recentOtherModels.add(newOtherModels)
limit recentOtherModels to the 20 most recent models
endif
end repeat
integrateParameters:
distances = euclideanDistance(ownModel, newOtherModels, recentOtherModels)
exploitationModels = first X models with the smallest distance
Exclude non-new models from exploitationModels
explorationModels = from (distances \ exploitationModels \ recentOtherModels), randomly select Y models
combinedModels = exploitationModels ∪ explorationModels
calculate for the peer's own model per class the loss on a random data sample
calculate for all combinedModels the loss on the same random data sample
calculate weight for every combined model
set new model to weighted average of combined models
calculateWeights
for every peer:
C = cardinality of PSI with peer
bestClasses = the C classes with the lowest loss for the other peer
smallestOtherLoss = sum of the losses of the other peer for bestClasses
smallestOwnLoss = sum of the losses of self for bestClasses
weight = max(0, 8 - 4 * (smallestOtherLoss / smallestOwnLoss)
getSimilarPeers:
:clap: :fireworks: :clap: You have reached the milestone of a thesis conceptual outline! (towards end-March) Now I would recommend keeping focus on getting state-of-the-art results, and possibly tweak until you get solid results. No gap between simulation and real-world ML. practical stuff on port forwarding emulators
Key focus: how to sell your idea
Experiments:
Probleem: Mijn oplossing werkt erg slecht als de nodes hun onvolledige neural networks moeten combineren tot 1 gezamenlijk neural network. Hoe kan dit worden opgelost? Door gebruik te maken van een geavanceerde techniek genaamd Elastic Weight Consolidation. Ik heb iets van 2 weken eraan zitten werken, maar deeplearning4j (de enige machine learning library die werkt op Java) is totaal niet geschikt voor het implementeren van deze techniek. Tensorflow is hier véél geschikter voor, maar werkt alleen op Python (helaas zijn Android apps altijd in Java). Wat zijn de mogelijkheden?
De laatste optie heeft momenteel mijn voorkeur.
Update December 12
Specific scenario's in which my algorithm will probably outperform other algorithms
Other announcement:
ToDo for next meeting:
Update January
Update January 27th
Update February 29th
https://www.tudelft.nl/en/student/eemcs-student-portal/education/graduation-msc/green-light
I did a high-level screening of your thesis. Great work and good content! Below you can find my comments:
Overall major feedback:
Overall minor feedback:
Subtitle:
Intro:
Chapter 2:
Chapter 3:
Chapter 4:
Chapter 5:
Key points: