juanjuan
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # MIP55c3-SP10: Pioneer DeFi-focused language dataset for the benefit of Risk modelling & GovComms ## Preamble ``` MIP55c3-SP#: Author(s): @pvl Contributors: Tags: spf Status: Date Proposed: (yyyy-mm-dd) Date Ratified: (yyyy-mm-dd) Amount Requested: 50,000 DAI Recipient Address: 0x6ebB1A9031177208A4CA50164206BF2Fa5ff7416 ``` ## Sentence Summary Develop a DeFi-focused dataset for the purpose of fine-tuning language models, which, if integrated, will result in millions of dollars of additional value from more accurate Risk estimates as well as improving Governance Communications. ## Paragraph Summary Build the industry's first DeFi-focused dataset. The data will be used to tune a Large Language Model (BLOOM). A fine-tuned model integrated into Maker's pipelines will help gradually relax current Risk CU modeling assumptions, thereby delivering millions of dollars of missed value for the DAO & Maker users. A fine-tuned model may also provide opportunities to expand and improve on written work performed by the GovComms CU. Furthermore, a DeFi-focused dataset offers extensibility across other DAOs. ## Motivation This SPF will fund the creation of industry first DeFi-focused dataset, which will be used to fine-tune general purpose Large Language Models. Such model will be used for the benefit of Maker's Risk Modelling and Governance Communications. I. The new model will augment and extend current Risk CU's Model. **The goal is to turn Risk CU Model's conservative CONSTs into variables.** *(see appendix for details)* Risk premium estimates could be reduced by relaxing the current conservative CONSTs when replacing input values with values learnt from real life data => * Lower stability fees => better terms for protocol users => growth opportunities => more revenue from fees; * Higher debt ceiling => higher capital efficiency => more revenue; * Lower surplus buffer => higher capital efficiency => less DAI frozen, more DAI for DAO purposes. For instance, *if ETH-A Jump Severity goes from 50% to 45% and Jump Frequency from 2 to 1 per year*: * *Risk Premium* at current Debt Exposure goes *0.5% -> 0.2%*; * *Maximum Debt Ceiling* (Risk Premium = 10%) goes *$410M -> $570M*; * *Capital at Risk* goes *$958,217 -> $383,287*. II. A Large Language Model fine-tuned on this dataset for DeFi sentiment analysis could also be integrated into GovComms' pipeline for the purposes of improved topic identification and research ([more on the need covered here](https://forum.makerdao.com/t/wanted-researcher/18561)) as well as social sentiment analysis. III. As the industry's first DeFi-focused language model, it opens up a number of collaboration opportunities with other DAOs and DeFi protocols, who can benefit from better identifying risk, improving marketing techniques, and preserving brand reputation. --- This project is a continuation of the work on *web3 native* intelligence. [In the previous proof-of-concept step I showed](https://forum.makerdao.com/t/towards-web3-native-intelligence-tools-for-protocol-comprehension-and-stewardship/15642) that the UST stablecoin crash in May could have been predicted by significant downward movement in UST sentiment beginning mid April, which resulted in the gradual loss of confidence => panic => bank run => death spiral supported by the mechanics of the protocol. However, DeFi conversation on Twitter/Discord/Discourse is full of domain-specific slang, nuances, deep context. A general purpose model must natively understand these details to output the most adequate results. Moreover, the SemEval-2017-4A dataset, used for fine-tuning on the previous step, contains only 50k tweets. A bigger and more native fine-tuning dataset will improve accuracy of our model for sentiment detection and summarisation tasks. ## Special Purpose Fund Name Pioneer DeFi-focused language dataset for the benefit of Risk modelling & GovComms ## Special Purpose Fund Scope & Work Credentials This SPF will fund the next step of the *web3 native* intelligence program as follows: 1. Assemble the first DeFi-focused dataset for language model pretraining (5M tweets). 2. Use BERTweet_large (355M parameters) vs BERTweet_base (135M parameters) and further pretrain it on the DeFi corpus from step 1. 3. Build integration between [LabelStudio](https://labelstud.io) and [Dynabench](https://dynabench.org/) platform via [Mephisto library](https://mephisto.ai). 4. Run around 20 small dynamic adversarial data collection rounds. ### Funding Breakdown Fund the steps from the previous paragraph as follows: 1. 6,000 DAI 2. 6,000 DAI 3. 6,000 DAI 4. 8,000 DAI per each of 5 round slots out of 20 DADC rounds: 4.1 8000 DAI after round 5; 4.2 8000 DAI after round 10; 4.3 8000 DAI after round 15; 4.4 8000 DAI after round 20. ### Special Purpose Fund Details ``` Official Contact or Group Name: @pvl Contact Email/Handle: The contact details for the SPF and Multi-Sig. Date Added: (yyyy-mm-dd) Total Amount: 50,000 DAI Wallet Address: Public wallet address of Multi-Sig. Comptroller signers: TBD ``` Technical appendix Risk Premium estimate is at the center of [Maker Risk CU's Collateral Risk Model.](https://medium.com/block-analitica/maker-capital-at-risk-model-methodology-2423b0c5913c) Currently Model’s inputs “Jump Frequency” and “Jump Severity” estimates for a given period are conservative CONSTs — twice per year 45% for WBTC, 50% for ETH, and 60% for all other volatile assets. Model’s output, in turn, Risk Premium (+ some other estimates) is used to propose key Maker’s parameters: vault’s Stability Fee, Debt Ceiling, System Surplus Buffer (via protocol-wide Capital at Risk metric). The goal of the project: offer a tool to learn model’s inputs “Jump Severity” and “Jump Frequency” estimates for a given period IRL from crypto community sentiment towards collateral types as variables. Since current CONSTs are by design conservative, input values learnt from real life data will generally allow to lower Risk Premium estimates => - Lower stability fees => better terms for protocol users => growth opportunities => more revenue from fees; - Higher debt ceiling => higher capital efficiency => more revenue; - Lower surplus buffer => higher capital efficiency => less DAI frozen, more DAI for DAO purposes. For instance, if ETH-A Jump Severity goes from 50% to 45% and Jump Frequency from 2 to 1 per year: - Risk Premium at current Debt Exposure goes 0.5% -> 0.2%; - Maximum Debt Ceiling (Risk Premium = 10%) goes from $410M to $570M; - Capital at Risk goes $958,217 => $383,287. At the first stage Sentiment dynamics will be wrapped into the dashboard as a tool for Computer-Aided Governance: a qualitative factor to be considered, allowing to relax assumptions when proposing protocol parameters for the MKR vote. Then it will gradually be integrated as an input into the quantitive Collateral Risk Model. One approach: there are two components: EMH and non-EMH. EMH is modelled as a GBM. It’s augmented by a non-EMH (tail volatility) component modelled with a Sentiment Model. Once enough time-series data is accrued a regression model could be learnt with sentiment + vault activity as input and (price volatility => liquidation) Risk Premium prediction as output. Finally, a sentiment + vault activity model could be augmented with a Maker Vault Liquidation ML Model into a singe cause => effect model. The eventual goal could be for protocol parameters becoming fully autonomously derived from onchain and crypto community/offchain data.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully