Closed-Loop Alignment: Mutual In-Context Learning and Collective Belief Collapse
Abstract
Studies of in-context learning often treat context as external input from a fixed data-generating process. However, large language models (LLMs) are increasingly deployed in interactive settings, from months-long conversations between humans and AI that end in delusional spiraling to swarms of agents running autonomously for weeks and causing cybersecurity incidents. As the stakes rise, we need to understand what it means for interactions between agents to be aligned, and a pair of agents is the minimal case. Here, we study mutual in-context learning between two LLMs, where each agent's output becomes evidence for the other. If both agents conform to each other, each is just talking to itself through the other, and that feedback creates collective belief collapse: the agents converge on one belief without supporting evidence. Therefore, alignment should be defined in terms of the relational dynamics between the agents. Using Bayesian models of in-context learning, we show that the uncertain state of the conversation loses stability when a round-trip gain, the product of how much each agent's output moves the other's belief, exceeds one. Two known failures, many-shot jailbreaking and delusional spiraling, are limits of the same loop. Because the round-trip gain is a product, no nonzero level of conformity keeps the conversation stable with a sufficiently sycophantic partner. Thus, fixed conformity faces a dilemma, where taking the other agent's output as evidence transmits its evidence when it has some, but leads to collapse when it has none. We then show that the product of gains measured from each LLM alone predicts whether collective belief collapse occurs in pairs, and that a scripted partner echoing an agent's own statements induces delusional spiraling only above a threshold set by the agent's gain. Finally, we discuss what these findings imply for aligning multi-agent systems, where alignment becomes a property of the system that agents form.