Karthik Elamvazhuthi
    • 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 New
    • Engagement control
    • Make a copy
    • 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 Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy 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
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # 🐝 Feedback Control and the Hive Mind When a honeybee colony must choose a new nest site, no single bee decides. Instead, thousands of individuals interact and eventually reach a collective choice. From a control-theoretic perspective, this looks like a feedback control system. But one that does not fit the classical framework of control theory. This note explores how collective decision-making can be viewed through the lens of control theory and shows why a simple feedback design faces a fundamental limitation. ![Screenshot 2025-10-16 at 5.59.31 PM](https://hackmd.io/_uploads/Hy2ZwbkAgx.png) --- ## 1. From Classical Control to Collective Decisions In classical control theory, the goal is to find a control law that drives a system to a stable equilibrium. $$ \dot{x} = f(x, u(x)) $$ The central question is: > Does there exist a feedback control law $u:\mathbb{R}^d \rightarrow \mathbb{R}^m$ such that > $$ > \lim_{t \to \infty} x(t) = x^{eq} > $$ > for all $x(0) \in \mathbb{R}^d$? In such problems, there is typically a **single equilibrium** that the controller must stabilize. In collective decision-making, however, there are **multiple competing equilibria**, and the system must decide which one to converge to. --- ## 2. A Minimal Model for a Swarm as a Mean Field Markov Process Consider a population of bees, each choosing between two sites, $A$ and $B$. Each bee can be in one of two states: $$ \mathcal{S} = \{ A, B \}. $$ Let the population’s state be described by probabilities $$ p = [p_A \;\; p_B], \quad p_A + p_B = 1, \quad p_A, p_B \ge 0. $$ ### Transition Dynamics Each bee may switch its preference over time. Let $u_{AB} \ge 0$ be the rate of switching from $A$ to $B$, and $u_{BA} \ge 0$ the rate from $B$ to $A$. The probability dynamics follow the Kolmogorov forward equations: $$ \begin{aligned} \dot{x}_A(t) &= -u_{AB}x_A(t) + u_{BA}x_B(t),\\ \dot{x}_B(t) &= u_{AB}x_A(t) - u_{BA}x_B(t). \end{aligned} $$ or equivalently, $$ \begin{bmatrix} \dot{x}_A \\[2pt] \dot{x}_B \end{bmatrix} = \begin{bmatrix} -u_{AB} & u_{BA} \\ u_{AB} & -u_{BA} \end{bmatrix} \begin{bmatrix} x_A \\[2pt] x_B \end{bmatrix}. $$ Here, $x_A(t)$ and $x_B(t)$ represent the fraction of bees supporting each option. It can be checked that $x_A(t) + x_B(t) = 1$ for all $t \ge 0$. --- ## 3. Decision-Making as a Feedback Problem The goal is to design feedback rates $$ u_A(x_A, x_B, A, B), \qquad u_B(x_A, x_B, A, B) $$ so that the population collectively chooses the better site. A **symmetry condition** ensures that both sites are treated equivalently: $$ u_A(x_B, x_A, A, B) = u_B(x_B, x_A, B, A). $$ The desired stability conditions are: $$ \begin{aligned} (1,0) &\text{ is asymptotically stable if } A > B,\\ (0,1) &\text{ is asymptotically stable if } A < B,\\ (1,0), (0,1) &\text{ are locally asymptotically stable if } A = B. \end{aligned} $$ In words: - If site $A$ is better, all bees should eventually favor $A$. - If $B$ is better, they should favor $B$. - If both are equal, both pure outcomes should be stable (deadlock avoidance). --- ## 4. Why This Problem Is Non-classical In classical stabilization, the feedback law $u(x)$ is designed for a **single equilibrium**. Here, the control law must adapt based on which site is better and still behave symmetrically when $A = B$. Most, importantly the stabilization objective is for a range of possible parameter values. | Concept | Classical Control | Collective Decision | |----------|------------------|---------------------| | Equilibrium | Single target | Two competing equilibria | | Objective | Stabilize one point | Choose between points | | Input | Control $u(x)$ | Control $u_A, u_B$ must maintain symmetry| | Challenge | Stability |Multiple equilibria | --- ## 5. Impossibility of Deadlock Avoidance **Claim 1:** No smooth, symmetric feedback control law can guarantee deadlock avoidance while ensuring correct decisions for all $(A,B)$. ### Proof (Sketch) Define the net flow toward $A$ as $$ f(x_A, x_B, A, B) = -u_A(x_A, x_B, A, B) \, x_A + u_B(x_A, x_B, A, B) \, x_B. $$ For asymptotic stability: - If $A > B$, then $f(x_A, x_B, A, B) > 0$ for all interior points $(x_A, x_B) \in (0,1)^2$. - If $A < B$, then $f(x_A, x_B, A, B) < 0$ for all interior points. If $(1,0)$ is locally asymptotically stable when $A = B$, there must exist an interior point $(x_A^c, x_B^c)$ with $$ f(x_A^c, x_B^c, A, A) > 0. $$ Now consider sequences $(A_n, B_n)$ such that $A_n < B_n$ for all $n$ and $\lim_{n \to \infty} A_n = A$, $\lim_{n \to \infty} B_n = A$. By continuity, $$ f(x_A^c, x_B^c, A_n, B_n) \to f(x_A^c, x_B^c, A, A) > 0. $$ However, the condition for $A_n < B_n$ requires $f(x_A^c, x_B^c, A_n, B_n) < 0$ for all $n$, leading to a contradiction. Therefore, no such smooth symmetric feedback law exists. ∎ --- ## 6. Relaxing the Problem The impossibility result suggests that perfect symmetry and global asymptotic stability cannot coexist. To make progress, maybe we can relax requirements. Relaxing global stability requirement is one such possibility. The next result demonstrates that even a simple quadratic dependence of transition rates on population proportions produces bistability between the two collective choices. ### **Claim 2** Let $u_{AB} = A x_B^2$ and $u_{BA} = B x_A^2$. Then, if $x_A(0) < \frac{A}{A+B}$ and $x_B(0) > \frac{B}{A+B}$, then $$ \lim_{t \rightarrow \infty} x_A(t) = 0, \quad \lim_{t \rightarrow \infty} x_B(t) = 1 $$ Similarly, if $x_A(0) > \frac{A}{A+B}$ and $x_B(0) < \frac{B}{A+B}$, then $$ \lim_{t \rightarrow \infty} x_A(t) = 1, \quad \lim_{t \rightarrow \infty} x_B(t) = 0 $$ --- ### **Proof** We have: $$ x_A x_B (A x_B - B x_A) = 0 $$ This implies the equilibrium solutions of the ODE are: $$ x_A^{eq} = 0, \quad x_B^{eq} = 1 $$ $$ x_A^{eq} = 1, \quad x_B^{eq} = 0 $$ $$ x_A^{eq} = \frac{A}{A+B}, \quad x_B^{eq} = \frac{B}{A+B} $$ --- Let $x_A < \frac{A}{A+B}$ and hence $x_B > \frac{B}{A+B}$. Then $$ A x_B - B x_A > 0 $$ This implies $$ \dot{x}_A = x_A x_B (-A x_B + B x_A) < 0 $$ Thus, if $x_A(0) < \frac{A}{A+B}$ and $x_B(0) > \frac{B}{A+B}$, then $$ \lim_{t \rightarrow \infty} x_A(t) = 0, \quad \lim_{t \rightarrow \infty} x_B(t) = 1 $$ Similarly, if $x_A(0) > \frac{A}{A+B}$ and $x_B(0) < \frac{B}{A+B}$, then $$ \lim_{t \rightarrow \infty} x_A(t) = 1, \quad \lim_{t \rightarrow \infty} x_B(t) = 0 $$ ## 7. Another Relaxation Another way to relax the problem is to **ignore the deadlock case** ($A = B$) entirely and only consider situations where one site is strictly better than the other. In that case, the problem becomes trivial — if every bee somehow knows which site is better, they can simply move toward it without any need for interaction or feedback from the swarm. Formally, let $\phi : \mathbb{R} \to \mathbb{R}_{\ge 0}$ be a function satisfying $$ \phi(x) > 0 \text{ for } x > 0, \quad \phi(x) = 0 \text{ for } x \le 0. $$ We define the transition rates as $$ u_{AB} = \phi(A - B), \qquad u_{BA} = \phi(B - A). $$ ### **Claim 3** If $A > B$, then all bees eventually favor site $A$: $$ \lim_{t \to \infty} x_A(t) = 1, \quad \lim_{t \to \infty} x_B(t) = 0. $$ If $A < B$, then all bees eventually favor site $B$: $$ \lim_{t \to \infty} x_A(t) = 0, \quad \lim_{t \to \infty} x_B(t) = 1. $$ --- ### **Proof** From the population dynamics, $$ \dot{x}_A = -u_{AB}x_A + u_{BA}x_B = -\phi(A - B) x_A + \phi(B - A)(1 - x_A). $$ - If $A > B$, then $\phi(A - B) > 0$ and $\phi(B - A) = 0$, so $$ \dot{x}_A = \phi(A - B)(1 - x_A) > 0. $$ This drives $x_A(t) \to 1$ and $x_B(t) \to 0$. - If $A < B$, then $\phi(B - A) > 0$ and $\phi(A - B) = 0$, so $$ \dot{x}_A = -\phi(B - A)x_A < 0, $$ which drives $x_A(t) \to 0$ and $x_B(t) \to 1$. ∎ --- This relaxation discards the symmetry and collective feedback that make the swarm problem interesting. The result is effectively a **feedforward rule** — each bee independently switches to the better option, producing the correct decision but without any of the emergent dynamics of real swarm behavior. This raises the question: **is there a positive role of mean-field effects or interactions between the bees?** The first relaxation hints so, but not the second one. This will be the subject of the next post. --- ## 7. Summary - Collective decision-making can be formalized as a feedback stabilization problem on the probability simplex. - Unlike standard control problems, there are multiple possible equilibria. - Smooth, symmetric feedback cannot guarantee both correctness and deadlock avoidance.

    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