- 1Shanghai Mental Health Center, Shanghai Jiao Tong University School of Medicine, Shanghai, China
- 2Shanghai Key Laboratory of Psychotic Disorders, Shanghai Mental Health Center, Shanghai Jiao Tong University School of Medicine, Shanghai, China
- 3School of Psychology, Shanghai Jiao Tong University, Shanghai, China
This study presents a computational formalization of Lacanian psychoanalysis using the framework of the free energy principle (FEP)—a theoretical framework for modeling self-organizing systems across multiple scales. We first examine the theoretical compatibility between the two frameworks, highlighting their shared (1) Kantian epistemological foundations regarding the unknowability of reality, (2) constructive nature of internal representational systems, (3) non-linear temporal dynamics that combine prediction and retrospection, and (4) emphasis on representation failures as key driving forces. Building on these convergences, we develop a computational framework that implements core Lacanian concepts through the FEP framework. Through multi-level simulations, this framework captures the interdependence of three orders as a message-passing network, formalizes desire as generalized synchronization between subjects' Symbolic orders, and models the Other through collective dynamics. This FEP-based reformulation renders traditionally obscure Lacanian concepts computationally tractable, thereby establishing a conceptual bridge between Lacanian psychoanalytic insights and cognitive science.
1 Introduction
Jacques Lacan, drawing from psychoanalysis, philosophy, and anthropology, developed a sophisticated portrayal of human subjectivity across bodily, interpersonal, and social dimensions (Homer, 2004). His theoretical contributions, known as Lacanian psychoanalysis, have generated unique insights into mental disorders (Mills and Downing, 2018; De Waelhens and Ver Eecke, 2001), identity (Bailly, 2023), cognitive linguistics (Bazan et al., 2021), and artificial intelligence (Possati, 2020). While highly influential in the humanities, Lacan's work has faced persistent criticism for its obscure terminology and often intentional confusions, frequently dismissed as “fashionable nonsense” in scientific discourse (Sokal and Bricmont, 1999). Recent advances in cognitive science, particularly the free energy principle (FEP) (Friston, 2010), provide formal tools to bridge this divide. This study, therefore, presents an exploration of reformulating core Lacanian concepts into computationally tractable forms that can be simulated and tested.
We employ FEP as the mathematical framework for our formalization not only because of its broad applicability across cognitive systems but, more importantly, due to the fundamental convergence between FEP and Lacanian psychoanalysis. FEP has successfully unified our understanding of self-organizing systems across multiple scales, from neuronal dynamics (Isomura et al., 2023), self-consciousness (Limanowski and Blankenburg, 2013), action, perception, and learning (Friston, 2010), to communications (Friston and Frith, 2015) and collective behaviors (Heins et al., 2024). Through careful examination, we identify deep theoretical alignments between these two frameworks. Both emphasize that one must leverage one's internal representational systems to actively infer and construct beliefs about the external world, of which precise states are always concealed. Moreover, these representational processes are characterized by a non-linear temporal structure and are driven by unrepresented elements in both frameworks. This convergence suggests that more than a formal language; it offers a natural embodiment of Lacanian theory.
We implemented a series of computational simulations to formalize core Lacanian concepts, including three orders (Real, Symbolic, and Imaginary; RSI), the Borromean knot, desire, the formula of fantasy, and the Other. At the individual level, we proposed an FEP-RSI model building on neuropsychoanalytic mappings of the three orders onto brain regions (Dall'Aglio, 2019), reproducing the interdependent nature of RSI through message-passing. In dyadic simulations, desire is modeled as generalized synchronization between subjects' Symbolic orders, offering a formal account of Lacan's metaphoric mechanism of desire. The triadic simulations interpret the Other as collective dynamics that emerge from complex desire relationships. Besides the formalization of concepts, our simulations embodied several key Lacanian conclusions in a computationally intuitive way as well, such as “man's desire is the desire of the Other,” and “the Other does not exist” (Lacan, 2001). The implementation is accomplished with Python (Heins et al., 2022) and the original code is available on GitHub.1 Through these computational simulations, we demonstrate that Lacanian psychoanalysis can be rigorously formalized within the mathematical framework of FEP while preserving the theoretical depth and clinical insights of Lacanian theory. This formal bridge potentially fosters mutually beneficial dialogues between these two approaches to understanding the human mind.
2 Theoretical background
2.1 Lacanian psychoanalysis
Lacanian psychoanalysis stems from a radical re-reading of Freudian theory, emphasizing the role of language and social structures in constituting human subjectivity. Central to his theoretical framework is the basic classification system of subjects' psychoanalytic experiences: the three orders—the Real, the Symbolic, and the Imaginary (RSI) (Evans, 2006). These three orders are interconnected through the topological structure of the Borromean knot, where the removal of any single ring leads to the collapse of the entire structure (Thurston, 2018).
Specifically, the Imaginary order relates to how we engage with our environment through immediate sensory experiences. The term “imaginary” emphasizes that these seemingly direct experiences are fundamentally shaped by subjective perspectives, making them illusory by nature. This idea aligns with the cognitive science perspective that perception is a process of belief formation, i.e., “perceiving is believing” (Fletcher and Frith, 2009).
Unlike immediate sensory experiences, the Symbolic order enables abstract thinking and communication between individuals through the shared systems of society, such as language, social rules, and cultural systems. To be acknowledged by society, subjects must internalize these pre-existing systems. This internalization process structurally transforms the subject's understanding of the world and themselves by embedding a third party into subjectivity. The concept of the Other (with a capital O) describes this transcendent third party while emphasizing its externality: it exists beyond any individual but shapes everyone's thoughts and behaviors (Lacan, 2001). While the Other is not a physical entity, subjects often treat specific roles as its representatives, such as parents and authority figures, who influence subjects' thoughts and behaviors by occupying the position of the Other. The internalization of these concrete representatives constitutes the manifestation of one's desire.
The Imaginary and Symbolic orders provide two distinct ways of representing the environment through which subjects construct their belief systems about the world, i.e., psychic reality. These representational systems operate within a temporal structure of logical time. Instead of a linear flow from past to future, logical time is a structure where “the past anticipates a future within which it can retroactively find a place” (Hook et al., 2022). This means that past experiences shape how we anticipate future events, while future events can retrospectively change the meaning we attribute to past experiences.
The Real designates what lies beyond the representations of the Imaginary and Symbolic orders—a “being-in-itself” (Feldstein. et al., 1994). This non-representational feature manifests in two aspects: first, it refers to a biological substrate of human existence—the psychical body's autonomous functions, such as primary emotion, immune processes, and cardiovascular activities (Evans, 2006). Second, similar to Kant's concept of thing-in-itself, it points to an inherent unknowability of the precise environment, or material reality. In other words, there is always a gap between psychic reality and material reality.
Due to this fundamental gap, the subject continuously encounters failures during its interactions with the environment. These failures drive the subject's incessant attempts to represent what resists representation; this compulsive tendency is called repetition. And the item that remains unrepresented during repetition is named as object petit a. The object petit a thus represents the very gap between psychic reality and material reality. It is the cause of failures that structure desire as a repetitive effort to eliminate this gap (Lacan, 2001).
In summary, Lacan articulates a model of subjectivity in which the subject uses their internal representational systems, operating within a non-linear temporal structure, to continuously attempt to grasp the external environment that fundamentally resists complete representation.
2.2 Free energy principle
To survive, living systems must interact with the environment, including perceiving and changing it. The Free energy principle (FEP) provides a universal principle for understanding these interactions between the environment and organisms across multiple scales, ranging from neurons and brain regions to consciousness and both individual and collective behavior (Isomura et al., 2023; Limanowski and Blankenburg, 2013; Heins et al., 2024; Solms, 2019).
Aligning with Kant's notion that we can only perceive phenomena and not the thing-in-itself, the starting point of FEP is that the precise state of the environment is usually concealed (referred to as the hidden state), and living systems can only infer this hidden state from observations by leveraging their internal models (Hohwy, 2018). From this perspective, perception is considered an “unconscious” inference about which hidden state causes the current sensations (Parr et al., 2022). This inferential process follows Bayes theorem:
where P(s|o) denotes the posterior probability of the hidden state s given observation o, P(o|s) is the likelihood of observation o given state s, P(s) stands for the prior belief about state s, and P(o) represents the marginal likelihood of observation o. This equation formalizes how organisms update their beliefs about hidden states by combining prior expectations with new sensory evidence. However, exact Bayesian inference is usually computationally intractable as it requires marginalizing over all possible hidden states.
In biological systems, this inference is accomplished through interactions between top-down predictions based on priors and bottom-up sensations mediated by likelihood, rather than passively receiving environmental stimuli (Fletcher and Frith, 2009). The goal is to achieve optimal convergence between the inferred hidden state s generated by internal models and the true hidden state s* of the external world. Consequently, perception (as subjective inference) is not necessarily accurate, which helps explain illusions as instances of inaccurate inferences (Parr et al., 2022). This inferential process is formalized as variational inference, an approximate Bayesian inference method (Figure 1) (Blei et al., 2017). Variational inference is an optimization problem that aims to find the best approximation (inference):
where KL is the Kullback-Leibler divergence between two distributions, expanded as:
Because log p(o) is an intractable constant, the optimization uses an alternative term—evidence lower bound(ELBO):
In the context of FEP, variational free energy (F) is equal to the negative ELBO (i.e., maximization of ELBO is equivalent to minimization of variational free energy):
The internal model with minimal variational free energy represents the best explanation for sensory data that balances the model's complexity (the KL term) and accuracy (the expected likelihood). The KL term, which quantifies the dissimilarity between priors and posteriors, is also known as Bayesian surprise and indicates the magnitude of necessary Bayesian belief updating. In addition to updating beliefs, living systems can take actions to collect new evidence or change the environment to reduce complexity or increase accuracy in the future. Consequently, decision-making and planning also follow this minimization principle, but in an expected (predictive) manner. For conceivable actions π, the expected free energy (G) is estimated:
where C includes preferences, and the symbol ˜ denotes expected inferred states and observations. The policy with minimal expected free energy balances the complexity and accuracy of future states. This optimal policy is interpreted as a “belief that one will minimize free energy in the future,” thus conceptualizing actions themselves as a form of inference (Parr et al., 2022).

Figure 1. Variational inference as an approximate Bayesian inference. The blue line Q(s) represents the prediction distribution generated by the internal model, while the red line P(s|o) shows the precise posterior distribution derived from real-world observations. The shaded area between these distributions represents the Kullback-Leibler (KL) divergence, which quantifies the difference between the approximate and true distributions. Minimizing this KL divergence through variational inference allows the system to find the best approximation of the true posterior, balancing model complexity with accuracy in explaining sensory data. This process formalizes how organisms update their beliefs about hidden states by combining prior expectations with new sensory evidence.
FEP posits that living systems in environments with hidden states continuously perform Bayesian inference using internal models that combine prior beliefs with sensory evidence to approximate true environmental states while also striving to minimize future expected uncertainty.
2.3 Theoretical convergence
The introduction of FEP and Lacanian theory reveals their deep conceptual alignment. First, both frameworks are grounded in the Kantian epistemological foundation of the thing-in-itself: the inherent impossibility of direct access to reality. This fundamental limitation manifests as the concept of hidden state in FEP and material reality in Lacanian theory. The shared premise leads to a similar understanding of how subjects relate to the external world. Both theories propose that our experience of the external world is necessarily constructed through subjective processes—what FEP terms as perception-as-inference and what Lacan describes through the Imaginary. As Sass (2015) notes, this implies a world that is “created by humans rather than found.” These constructive processes operate through the subject's internal representational systems, establishing a duality: in FEP, between internal models and hidden states; in Lacanian terms, between psychic reality and material reality.
Another parallel lies in their conceptualization of time. Both theories emphasize a non-linear temporal structure that combines prediction and retrospection. This alignment is explicitly evident in their respective descriptions:
“variational free energy has a retrospective aspect [...] (minimal expected free energy is the) belief that one will minimize free energy in the future” (Parr et al., 2022).
“the past anticipates a future within which it can retroactively find a place” (Hook et al., 2022).
In FEP, the subject forms predictions about future events based on prior beliefs, which are subsequently validated or revised as new sensory evidence becomes available. Similarly, in Lacanian theory, while past experiences shape the subject's anticipation of the future, subsequent events can retrospectively alter the meaning attributed to those past experiences. This dynamic temporal interplay has been acknowledged as a crucial mechanism underlying various cognitive phenomena, including real-time perception in neural systems (Hogendoorn, 2022), sense of agency (Riemer, 2018), experiences of free will (Kühn and Brass, 2009), and counterfactual inference (Miyamoto et al., 2023).
As subjects' representational systems engage with the external world through this non-linear temporal structure, the essential duality inherent in both frameworks necessitates an inevitable representational gap. In FEP, this gap manifests as free energy- the divergence between internal models and the hidden states of the external world - which motivates systems to continuously update their beliefs and initiate actions to minimize this discrepancy. In Lacanian theory, this same structural gap appears as object petit a—the irreducible remainder between psychic and material reality—which functions as the fundamental driver of subjects' desire.
These profound structural parallels between FEP and Lacanian theory indicate that FEP serves not merely as a mathematical language for modeling Lacanian psychoanalysis. Instead, it constitutes a computational framework that naturally embodies Lacanian concepts, enabling core psychoanalytic insights to be expressed in rigorous mathematical terms and implemented via concrete computational processes.
3 Materials and methods
3.1 Neural basis of RSI
Building on the neuropsychoanalytic framework proposed by Dall'Aglio (2019), we map Lacan's three orders onto distinct brain networks to establish a neurobiological foundation for our computational model. This mapping bridges Lacanian abstract concepts with neural implementations, serving as an intuitive framework rather than claiming precise anatomical boundaries. In Table 1, we provide a detailed mapping that elaborates on the neural domains, function examples, and relevant FEP studies.
The Real maps onto the upper brainstem and diencephalic system, which regulate primary affect, homeostatic functions, basic drives (hunger, thirst), and autonomic responses, representing the biological substrate of human existence. The Symbolic links to the prefrontal-parietal network, involving language processing, abstract reasoning, and sociocultural interactions, corresponding to linguistic and cultural representations. The Imaginary associates with the parietal-occipital network, responsible for visual processing, spatial cognition, body schema representation, and motor planning and control, reflecting immediate experiential aspects.
Research demonstrates that functions across these neural networks operate according to FEP, as evidenced by numerous modeling studies (see Table 1). Importantly, this universality of FEP across different modalities enables us to treat these networks as computationally equivalent entities, each implementing free energy minimization within their respective domains.
3.2 FEP-RSI model
Building on our neuropsychoanalytic mapping framework, we designed the FEP-RSI model to capture the dynamics of Lacan's three orders within the FEP framework (Figure 2 upper right). While the previous section established correspondences between RSI and specific neural networks, our model deliberately abstracts away from simulating these neural functions directly. Instead, we focus on capturing the essential dynamics of RSI interactions. This level of abstraction enables a computational investigation of key Lacanian concepts while limiting the complexity of modeling specific neurobiological processes.

Figure 2. The FEP-RSI model and its implementation in individual and collective dynamics. Upper-left: illustration of FEP-RSI model showing the Real (R), Symbolic (S), and Imaginary (I) orders mapped onto corresponding brain networks. Upper right: the architecture of a single FEP unit. Collective dynamics between multiple agents are implemented through synchronization of their Symbolic orders, enabling the emergence of interpersonal desire and the Other.
Considering the computational equivalence of the three orders, we implement each order as an FEP unit operating in respective discrete state space S. As illustrated in Figure 2 upper left, each unit maintains its own internal model that comprises a likelihood matrix A that maps hidden states to observations; a transition matrix B that defines state transitions under different actions; a preference vector C representing desired observations; and a prior belief vector D over hidden states.
At each time step τ, each unit operates through three core mechanisms:
(1) State inference through approximated posteriors:
where σ denotes the softmax function, Aoτ is the likelihood of the current observation oτ, Dτ represents the prior belief, and the posterior q(sτ) becomes the prior belief for the next time step τ + 1.
(2) Action planning using expected free energy:
where H(A) is the entropy of the likelihood matrix, while q(st|π) and q(ot|π) are expected states and observations under three possible policies π ∈ {s + 1, s − 1, s}.
(3) Message passing through prediction errors quantified by variational free energy:
which is equivalent to the equation we introduced in Section 2.2. Here, the variational free energy quantifies the total amount of prediction errors. The equivalence arises because both terms in F represent different aspects of prediction error: the KL divergence measures the error in state estimation, while the log evidence term captures the error in sensory prediction. Minimizing variational free energy corresponds to maximizing Bayesian model evidence—a process of self-evidencing (Hohwy, 2016) – while simultaneously minimizing prediction errors.
Overall, the model implements each order as an autonomous FEP unit while enabling interactions between units through message passing, thus maintaining both the independence and interdependence characteristic of RSI. Notably, the FEP unit for the Real specifically models its biological and affective dimension—the first facet of the Real as discussed in Section 2.1. The second facet of the Real, the fundamental gap between psychic reality and material reality, is represented by the variational free energy that the entire system seeks to minimize, thereby driving its dynamics.
3.3 Implementation
We implemented three levels of simulations to investigate key Lacanian concepts using the FEP-RSI model: individual dynamics demonstrating the Borromean knot structure, dyadic synchronization formalizing desire, and triadic collective behaviors manifesting the Other. All simulations were conducted using Python 3.10 and the Pymdp package (Heins et al., 2022), with the source code available on GitHub (see footnote 1). Each simulation ran for 15 time steps and was visualized through 3-D trajectory plotting to capture the dynamics of the FEP-RSI model, providing an intuitive representation of psychic reality.
First, we simulated the individual dynamics using varying message-passing weights to illustrate the interdependence of RSI. To examine this interdependence, we introduced a perturbation in the Symbolic by initializing the hidden state to 1 while setting its preference to 4. We then observed how this perturbation propagated through the RSI structure under different weights, ranging from zero (no coupling across RSI) to 2.0 (strong coupling).
To investigate desire as generalized synchronization (Friston and Frith, 2015), we implemented a dyadic simulation with two agents that possess identical internal FEP-RSI models but distinct initial states. In line with Lacan's conceptualization of desire as a metaphor (Fink, 2017), we designed each agent to infer the other's Symbolic state as its own preference, thereby modeling desire as an attempt to synchronize internal models through the Symbolic order.
Finally, to examine the emergent property of the Other, we extended the model to a triadic configuration with three FEP-RSI agents arranged in a triangular desire structure (A → B → C → A). This triangular arrangement constitutes a minimal group capable of manifesting the complex dynamics of collective desire, wherein each subject's desire is necessarily mediated through the other participants. Using this configuration, we investigated how collective dynamics emerge from interacting desire processes operating within a social network structure.
4 Results
4.1 Individual dynamics: RSI as a message-passing network
To validate that our FEP-RSI model captures the interdependent nature of Lacan's three orders, we first investigated the dynamics of a single subject when the Symbolic order is perturbed. Lacan originally illustrated this interdependence using the Borromean knot topology (Thurston, 2018). This topological concept emphasizes that the three orders function as an integrated system, where perturbations in one order necessarily propagate to others through their mutual dependencies, all organized around object petit a (Evans, 2006). In our implementation, we modeled this interconnected structure through message passing of prediction errors among the three orders, with connection strengths parameterized by precision weights.
Figure 3 illustrates the trajectories of RSI states under varying message-passing weights. To establish a baseline, we began with a hypothetical condition where all three weights were set to zero (Figure 3A). This resulted in the independent evolution of the three orders with minimal interaction—a condition that, while theoretically informative, contradicts both neural organization principles and Lacanian theory. We then implemented the message-passing mechanism with increasing weight values to model RSI interdependence. At moderate precision levels (1.5, Figure 3B), the orders exhibited coupled dynamics, demonstrating how perturbations in the Symbolic propagate through prediction errors to the Real and Imaginary. Higher precision values (2.0, Figure 3C) intensified this inter-order coupling, resulting in more extensive system-wide propagation of the initial perturbation. Additionally, we examined configurations with different weight values across connections (Figure 3D), revealing diverse dynamic patterns in the system's behavior.

Figure 3. Individual FEP-RSI model dynamics under different message passing weights, demonstrating the Borromean knot structure of RSI. (A) Zero-weight condition (all weights = 0) showing independent evolution of the three orders with no interaction between them. (B) Moderate uniform precision weights (all weights = 1.5) showing coupled dynamics where perturbation in the Symbolic order propagates to other orders. (C) High uniform precision weights (all weights = 2.0) demonstrating stronger inter-order coupling. (D) Asymmetric weight configuration (Real = 1.5, Symbolic = 2.0, Imaginary = 1.0). Each trajectory plot shows the evolution of states across the Real, Symbolic, and Imaginary dimensions over 15 time steps.
Our FEP-RSI model formally operationalizes Lacan's fundamental RSI classification system. The neuropsychoanalytic mapping (Table 1) provides the conceptual foundation, while the message-passing mechanism implements the interdependent linkages characteristic of the Borromean knot (Dall'Aglio, 2019)—a structure that parallels the intrinsic connectivity of the brain (Park and Friston, 2013). Significantly, Lacan's assertion that the RSI Borromean knot is sustained by object petit a finds direct correspondence in our model, wherein object petit a functions as the divergence between the internal model and the external environment. This divergence manifests as prediction errors (quantified by variational free energy) that drive the message-passing between orders. This section demonstrates how Lacan's RSI classification system can be formalized within the framework of the interconnected predictive brain in cognitive science.
4.2 Dyadic synchronization: desire as generalized synchronization
Extending our individual FEP-RSI model, we investigated desire as a mechanism of generalized synchronization between two subjects. Lacanian psychoanalysis conceptualizes desire, in a linguistic fashion, as a metaphor in the Symbolic order (Fink, 2017). In Lacanian terms, a metaphor represents an operation wherein one signifier substitutes for another by appropriating its signified. For example, in the metaphor “John is a lion,” the signifier John appropriates the signified (courage) of the signifier lion. This linguistic structure provides the foundation for Lacanian interpretation of desire: Lacan positions the subject as a signifier within the Other (the treasure-trove of signifiers), where desire manifests as the subject's attempt to occupy the position of signified in relation to another signifier (the desired object) (Sheikh, 2017). When one subject desires another, they essentially attempt to position themselves as the signified within the other's Symbolic order—seeking to complete their own lack through the other's attributes, such as success or social recognition.
Within the FEP framework, interpersonal dynamics emerge through mutual predictive inference between agents. This process occurs when two internal models become functionally coupled through reciprocal inference, causing their respective states to exhibit generalized synchronization (Friston and Frith, 2015). This synchronization process structurally parallels the Lacanian metaphoric operation: two internal models (analogous to signifiers) converge toward inferring the same hidden state (analogous to the signified). Consequently, desire, in Lacanian terms, can be interpreted as an attempt at generalized synchronization between the Symbolic orders of interacting subjects.
To formalize desire as generalized synchronization, we implemented a dyadic simulation in which two agents, each equipped with identical FEP-RSI internal models but initialized with different states, interact through their respective Symbolic orders. Following Lacan's conceptualization of desire as metaphor, each agent infers the other's Symbolic state as its own preference, thereby operationalizing desire as an attempt to synchronize internal models. Figures 4A, B illustrates the resulting synchronization dynamics over 15 time steps. Despite identical parameters, the system exhibits diverse synchronization patterns in subsequent dynamics. Figure 4A shows a complete convergence between subjects' internal models across all three orders. It echoes what Lacan describes as the mythic state of fusion between infant and mother, an idealized end-point of desire (De Kesel, 2009). Our simulation provides a computational account of how such a hypothetical state of complete intersubjective fusion might emerge within a highly simplified model of dyadic interaction. In contrast, Figure 4B shows “partial” synchronization in the Symbolic orders, while the Real and Imaginary orders maintain relative independence. This pattern demonstrates how synchronization initiated in the Symbolic order can propagate indirectly to influence the other two orders through their Borromean interconnections. These findings align with empirical studies in interpersonal psychology documenting how romantic partners develop shared physiological responses, emotional regulation patterns, and representational systems across multiple temporal scales (Butler and Randall, 2013; Ogolsky et al., 2022; Palumbo et al., 2017).

Figure 4. Multi-agent simulations capturing desire (dyadic) and the emergent Other (triadic). (A, B) illustrate desire as generalized synchronization between two subjects, with black and red lines. (C, D) extend the model to three agents (black, red, and green lines) in a triangular desire configuration, giving rise to collective dynamics interpreted as the Other.
By extending our FEP-RSI framework to interpersonal dynamics, in which subjects achieve generalized synchronization primarily through their Symbolic orders, we have developed a formal computational operationalization of Lacan's metaphoric structure of desire. Furthermore, this synchronization process can also be viewed as a partial computational interpretation of Lacan's formula of fantasy:
This formula represents the structure of desire's operation (Lacan, 2011), consisting of three elements: the barred subject (), the diamond operator (◇), and object petit a (a). To simple terms, the barred subject represents the subject's alienation by the Other. The diamond operator indicates the barred subject's continuous attraction to object petit a, the cause of desire. In our simulation, aspects of this structure emerge through the generalized synchronization process, as each subject's internal model becomes partially determined by the other's Symbolic order (alienation), while continuously adjusting its states to minimize free energy in pursuit of the desired object (attraction toward object petit a).
Although this dyadic formalization captures the basic structure of desire, a comprehensive account of Lacanian desire necessitates the incorporation of the Other. The following section extends our model to three-agent dynamics to formalize how desire is fundamentally structured by the Other's desire.
4.3 Triadic emergence: the Other as collective desire behaviors
Building on our individual and dyadic FEP-RSI models, we develop a triadic model to formalize another key concept—the Other. This extension aligns with recent applications of FEP to collective behaviors and cumulative cultural evolution (Kastel and Hesp, 2021; Kastel et al., 2023). When each participant operates on the principle of minimizing free energy, diverse collective dynamics can emerge spontaneously without explicitly setting any rules (Heins et al., 2024; Ramstead et al., 2021). This emergent property provides a natural bridge to the concept of the Other, which manifests in language, social norms, and culture (Evans, 2006). Consistently, Dall'Aglio (2024) proposed that shared generative models and federated inference can serve as a framework for conceptualizing the Lacanian Other.
In our simulation, we implemented three agents with identical FEP-RSI models arranged in a triangular desire structure, where A desires B, B desires C, and C desires A. The results reveal distinct patterns of group dynamics' simple patterns in Figure 4C and complex patterns in Figure 4D. This simulation offers a computational handle on the concept of the Other, which resides in the Symbolic order at the societal level. As each individual minimizes its free energy within interpersonal desire dynamics, the triad as a whole generates rich collective behaviors. This emergent phenomenon suggests that the Other can be conceptualized as the collective dynamics of human society functioning as a self-organized complex system (Sawyer, 2005).
The triangular desire structure was designed to investigate the relationship between an individual's desire and the Other. Within this structure, each subject desires an object who desires another object, creating a transformation of desires: A's desire becomes oriented not simply toward B, but toward becoming the object of B's desire, which is directed toward C. This process transforms the original desire into a desire to be desired. It thus becomes “the desire of the other.” This transformation aligns with the Hegelian interpretation of desire, upon which Lacan developed his theory (Butler, 1987). Our simulations demonstrate that this configuration generates collective dynamics that constrain each participant's desire. Consequently, the original desire is firstly transformed into the desire of the specific other (in Hegelian theory), and ultimately evolves into the desire shaped by the collective dynamics, i.e., the Other (in Lacanian theory). Interestingly, this finding provides a computational reproduction of how Lacan develop the assertion that “man's desire is the desire of the Other” from Hegelian interpretation that “man's desire is the desire of the other” (Lacan, 2001).
Our simulations reveal that the emergent collective dynamics, while irreducible to individual components, exhibit inherent sensitivity and non-determinism. This computational observation demonstrates that the Other itself is unstable and incomplet—in Lacan's words, “the Other does not exist” (Lacan, 2001). This essential incompleteness of the Other precludes the possibility of achieving wholeness for the subject. It thereby creates the primary condition of subjectivity in Lacanian psychoanalysis: an endless pursuit of fulfillment that is structurally impossible to attain.
5 Discussion
This study began by exploring the theoretical compatibility between Lacanian psychoanalysis and the free energy principle (FEP). Fundamentally, both frameworks share a Kantian epistemological premise of the “inaccessibility” of the external world, distinguishing between external reality and a subject's internal representations. The subject must rely on an internal representational system to construct its own subjective reality of the external world. In Lacan's theory, the object petit a represents the gap between material reality and psychic reality, driving the subject's desire to address this gap. In the FEP, free energy quantifies the discrepancy between the internal model and the external world, prompting the system to update its model or take action to reduce it. In both theories, these failures of representation motivate the subject to evolve its representational systems. Regarding representational processes, both approaches reveal that subjective time does not unfold linearly forward but is formed by a dynamic process of forward prediction and backward revision intertwined over time. In summary, Lacanian psychoanalysis and the FEP exhibit a high degree of congruence in their epistemological grounding, in the constructive nature of their representational systems, in the critical role of representation failures, and in their nonlinear temporal structure. Such convergence provides a basis for incorporating Lacanian concepts into the mathematical framework of the FEP, opening up new interdisciplinary dialogues for understanding how the subject operates across diverse scales. Although we leverage the Kantian epistemological concept of “thing-in-itself” to bridge Lacanian psychoanalysis and the FEP, we recognize that Lacanian theory can be studied from multiple philosophical perspectives, especially Hegelian interpretations (Zizek, 2014). Exploring such Hegelian viewpoints might offer complementary insights to an FEP-based understanding of Lacanian psychoanalysis (Boonstra and Slagter, 2019).
Grounded in this theoretical convergence, we developed a series of computational models aimed at providing a formalization of core concepts in Lacanian psychoanalysis. Drawing on a neuropsychoanalytic mapping of Lacan's three orders (RSI) to distinct brain networks, we developed a computational FEP-RSI model that treats each order—Real, Symbolic, and Imaginary—as an FEP unit. Although our mapping is not intended as a strict anatomical delineation, it provides an intuitive way to ground Lacan's abstract RSI framework in neural terms. By implementing each order's perception-action cycle under the FEP, we can computationally capture how these orders interconnect through message-passing mechanisms. Our results show that the FEP-RSI model can reproduce key Lacanian ideas. First, the individual-subject simulations exhibit the Borromean knot's interdependence (the topological structure representing the interrelation of RSI in Lacanian theory). Varying the precisions among the Real, Symbolic, and Imaginary reveals how stronger inter-order connections propagate such perturbations more extensively. Interestingly, the inter-order connection strengths offer a computational analog to Lacanian conceptualizations of varying RSI organizational structures and related symptoms. For instance, psychosis has been theorized as a failure in the “slippage” of RSI (Mills and Downing, 2018), which demonstrates the altered precision weights across different orders. Within our FEP-RSI model, this can be translated as the “disconnection hypothesis” of schizophrenia as well, where aberrant connectivity between brain regions is considered a core pathophysiological mechanism (Friston et al., 2016). Further research, potentially incorporating empirical data or more detailed clinical phenomenology, would be necessary to validate and explore how precisions within an FEP-RSI framework could account for the diverse structural organizations and disturbances in psychopathology.
From an FEP perspective, interpersonal desire, a metaphorical process, can be viewed as the attempt to achieve generalized synchronization in the Symbolic order of two agents. In our simulations, two subjects with identical FEP-RSI models but different initial states continuously inferred each other's Symbolic states. This simplified scenario illustrates the ultimate goal of desire: a unified state with the object of desire achieved through complete synchronization. Such generalized synchronization, through minimizing free energy, effectively enacts Lacan's notion of desire as the subject's continual drive to reduce the gap represented by object petit a. While our model captures the functional dynamics of alienation and attraction within the formula of fantasy, we acknowledge that fantasy itself encompasses far more complex and nuanced meaning within Lacanian theory. These include its role in separation from the Other, its function as an axiom structuring the subject's reality, and its complex topological properties beyond what our current implementation addresses (Lacan, 2011). Moreover, our formalization of desire primarily captures its metaphoric dimension (the attempt to occupy the Other's position) while not yet modeling its equally crucial metonymic aspect. In Lacanian theory, desire operates through metonymy longitudinally, continuously sliding from one object to another, leading to an endless chain of desire (Sheikh, 2017). A more complete formalization would need to implement both mechanisms: the metaphoric (synchronic identification with the Other) and the metonymic (diachronic displacement between objects over time).
Expanding from individual and dyadic FEP-RSI models to a triadic scenario, we used three interacting agents to illuminate Lacan's crucial concept of the Other as a collective dynamic of society. Each subject's pursuit of an object that desires a different object binds them into a collective process where emergent patterns unfold. The collective dynamics, in turn, constrain each participant's desire, exemplifying Lacan's dictum that “man's desire is the desire of the Other.” The simulation also reveals that the Other is neither a static nor deterministic entity, supporting Lacan's claim that “the Other does not exist.”
In summary, our study presents a novel demonstration that the free energy principle can be harnessed to formalize Lacanian psychoanalysis, establishing a computational framework that bridges these two domains. While our study offers a preliminary exploration, we acknowledge the limitations of the current approach. This framework remains highly abstract and represents a simplified interpretation of Lacan's complex theoretical system. Future studies could extend this model by incorporating continuous state spaces, hierarchical network architectures, more refined cognitive modules, and simulations of multi-agent interactions within realistic social contexts.
Data availability statement
The original contributions presented in the study are included in the article/supplementary material, further inquiries can be directed to the corresponding author.
Author contributions
LL: Conceptualization, Data curation, Formal analysis, Investigation, Methodology, Software, Visualization, Writing – original draft, Writing – review & editing. CL: Project administration, Supervision, Writing – original draft, Writing – review & editing.
Funding
The author(s) declare that no financial support was received for the research and/or publication of this article.
Conflict of interest
The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
Generative AI statement
The author(s) declare that Gen AI was used in the creation of this manuscript. Only for polishing already written manuscript to improve readability.
Publisher's note
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.
Footnotes
References
Albarracin, M., Bouchard-Joly, G., Sheikhbahaee, Z., Miller, M., Pitliya, R. J., and Poirier, P. (2024). Feeling our place in the world: an active inference account of self-esteem. Neurosci. Conscious. 2024:niae007. doi: 10.1093/nc/niae007
Bailly, L. (2023). A lacanian perspective on identity. Int. J. Psychoanaly. 104, 855–859. doi: 10.1080/00207578.2023.2255476
Bazan, A., Van de Vijver, G., and Caine, D. (2021). “Lacanian neuropsychoanalysis: on the role of language motor dynamics for language processing and for mental constitution,” in Clinical studies in neuropsychoanalysis revisited (Routledge), 79–104. doi: 10.4324/9781003188551-7
Blei, D. M., Kucukelbir, A., and McAuliffe, J. D. (2017). Variational inference: a review for statisticians. J. Am. Stat. Assoc. 112, 859–877. doi: 10.1080/01621459.2017.1285773
Boonstra, E. A., and Slagter, H. A. (2019). The dialectics of free energy minimization. Front. Syst. Neurosci. 13:42. doi: 10.3389/fnsys.2019.00042
Butler, E. A., and Randall, A. K. (2013). Emotional coregulation in close relationships. Emot. Rev. 5, 202–210. doi: 10.1177/1754073912451630
Butler, J. (1987). Subjects of Desire: Hegelian Reflections in Twentieth-Century France. New York: Columbia University Press.
Dall'Aglio, J. (2019). Of brains and borromean knots: a lacanian meta-neuropsychology. Neuropsychoanalysis 21, 23–38. doi: 10.1080/15294145.2019.1619091
Dall'Aglio, J. (2024). “Real, imaginary, and symbolic knottings in the predictive model,” in A Lacanian Neuropsychoanalysis: Consciousness Enjoying Uncertainty (Springer), 123–150. doi: 10.1007/978-3-031-68831-7_9
De Kesel, M. (2009). Eros and Ethics: Reading Jacques Lacan's Seminar VII. New York: State University of New York Press. doi: 10.2307/jj.18254053
De Waelhens, A., and Ver Eecke, W. (2001). Phenomenology and Lacan on Schizophrenia: After the Decade of the Brain, volume 2. Leuven: Leuven University Press.
Evans, D. (2006). An Introductory Dictionary of Lacanian Psychoanalysis. London: Routledge. doi: 10.4324/9780203135570
Feldstein, R., Fink, B., and Jaanus, M. (1994). Reading Seminar XI: Lacan's Four Fundamental Concepts of Psychoanalysis. New York: State University of New York Press.
Fink, B. (2017). Lacan on Love: An Exploration of Lacan's Seminar VIII, Transference. New York: John Wiley &Sons.
Fletcher, P. C., and Frith, C. D. (2009). Perceiving is believing: a bayesian approach to explaining the positive symptoms of schizophrenia. Nat. Rev. Neurosci. 10, 48–58. doi: 10.1038/nrn2536
Friston, K. (2010). The free-energy principle: a unified brain theory? Nat. Rev. Neurosci. 11, 127–138. doi: 10.1038/nrn2787
Friston, K., Brown, H. R., Siemerkus, J., and Stephan, K. E. (2016). The dysconnection hypothesis (2016). Schizophr. Res. 176, 83–94. doi: 10.1016/j.schres.2016.07.014
Friston, K. J., and Frith, C. D. (2015). Active inference, communication and hermeneutics. Cortex 68, 129–143. doi: 10.1016/j.cortex.2015.03.025
Heins, C., Millidge, B., Da Costa, L., Mann, R. P., Friston, K. J., and Couzin, I. D. (2024). Collective behavior from surprise minimization. Proc. Nat. Acad. Sci. 121:e2320239121. doi: 10.1073/pnas.2320239121
Heins, C., Millidge, B., Demekas, D., Klein, B., Friston, K., Couzin, I., et al. (2022). pymdp: a python library for active inference in discrete state spaces. arXiv preprint arXiv:2201.03904.
Hipólito, I., and van Es, T. (2022). Enactive-dynamic social cognition and active inference. Front. Psychol. 13:855074. doi: 10.3389/fpsyg.2022.855074
Hogendoorn, H. (2022). Perception in real-time: predicting the present, reconstructing the past. Trends Cogn. Sci. 26, 128–141. doi: 10.1016/j.tics.2021.11.003
Hohwy, J. (2018). “Prediction error minimization in the brain,” in The Routledge handbook of the computational mind, 159–172. doi: 10.4324/9781315643670-13
Hook, D., Neill, C., and Vanheule, S. (2022). Reading Lacan's Écrits: From ‘Logical Time” to ‘Response to Jean Hyppolite”. New York: Routledge. doi: 10.4324/9781003264231
Isomura, T., Kotani, K., Jimbo, Y., and Friston, K. J. (2023). Experimental validation of the free-energy principle with in vitro neural networks. Nat. Commun. 14:4547. doi: 10.1038/s41467-023-40141-z
Kastel, N., and Hesp, C. (2021). “Ideas worth spreading: a free energy proposal for cumulative cultural dynamics,” in Joint European Conference on Machine Learning and Knowledge Discovery in Databases (Springer), 784–798. doi: 10.1007/978-3-030-93736-2_55
Kastel, N., Hesp, C., Ridderinkhof, K. R., and Friston, K. J. (2023). Small steps for mankind: modeling the emergence of cumulative culture from joint active inference communication. Front. Neurorobot. 16:944986. doi: 10.3389/fnbot.2022.944986
Kühn, S., and Brass, M. (2009). Retrospective construction of the judgement of free choice. Conscious. Cogn. 18, 12–21. doi: 10.1016/j.concog.2008.09.007
Lanillos, P., Pages, J., and Cheng, G. (2020). Robot self/other distinction: active inference meets neural networks learning in a mirror. arXiv:2004.05473.
Limanowski, J., and Blankenburg, F. (2013). Minimal self-models and the free energy principle. Front. Hum. Neurosci. 7:547. doi: 10.3389/fnhum.2013.00547
Mills, J., and Downing, D. L. (2018). Lacan on Psychosis: From Theory to PraxisThe title of the Work. New York: Routledge. doi: 10.4324/9780429456329
Miyamoto, K., Rushworth, M. F., and Shea, N. (2023). Imagining the future self through thought experiments. Trends Cogn. Sci. 27, 446–455. doi: 10.1016/j.tics.2023.01.005
Ogolsky, B. G., Mejia, S. T., Chronopoulou, A., Dobson, K., Maniotes, C. R., Rice, T. M., et al. (2022). Spatial proximity as a behavioral marker of relationship dynamics in older adult couples. J. Soc. Pers. Relat. 39, 3116–3132. doi: 10.1177/02654075211050073
Palumbo, R. V., Marraccini, M. E., Weyandt, L. L., Wilder-Smith, O., McGee, H. A., Liu, S., et al. (2017). Interpersonal autonomic physiology: a systematic review of the literature. Person. Soc. Psychol. Rev. 21, 99–141. doi: 10.1177/1088868316628405
Park, H.-J., and Friston, K. (2013). Structural and functional brain networks: from connections to cognition. Science 342:1238411. doi: 10.1126/science.1238411
Parr, T., and Pezzulo, G. (2021). Understanding, explanation, and active inference. Front. Syst. Neurosci. 15:772641. doi: 10.3389/fnsys.2021.772641
Parr, T., Pezzulo, G., and Friston, K. J. (2022). Active Inference: the Free Energy Principle in Mind, Brain, and Behavior. Cambridge: MIT Press. doi: 10.7551/mitpress/12441.001.0001
Paulus, M. P., Feinstein, J. S., and Khalsa, S. S. (2019). An active inference approach to interoceptive psychopathology. Annu. Rev. Clin. Psychol. 15, 97–122. doi: 10.1146/annurev-clinpsy-050718-095617
Possati, L. M. (2020). Algorithmic unconscious: why psychoanalysis helps in understanding ai. Palgr. Commun. 6, 1–13. doi: 10.1057/s41599-020-0445-0
Priorelli, M., and Stoianov, I. P. (2023). Flexible intentions: An active inference theory. Front. Comput. Neurosci. 17:1128694. doi: 10.3389/fncom.2023.1128694
Ramstead, M. J., Hesp, C., Tschantz, A., Smith, R., Constant, A., and Friston, K. (2021). Neural and phenotypic representation under the free-energy principle. Neurosci. Biobehav. Rev. 120, 109–122. doi: 10.1016/j.neubiorev.2020.11.024
Riemer, M. (2018). Delusions of control in schizophrenia: resistant to the mind's best trick? Schizophr. Res. 197, 98–103. doi: 10.1016/j.schres.2017.11.032
Sass, L. A. (2015). Lacan: the mind of the modernist. Continent. Philos. Rev. 48, 409–443. doi: 10.1007/s11007-015-9348-y
Sawyer, R. K. (2005). Social Emergence: Societies as Complex Systems. Cambridge: Cambridge University Press. doi: 10.1017/CBO9780511734892
Sedley, W., Kumar, S., Jones, S., Levy, A., Friston, K., Griffiths, T., et al. (2024). Migraine as an allostatic reset triggered by unresolved interoceptive prediction errors. Neurosci. Biobehav. Rev. 154:105536. doi: 10.1016/j.neubiorev.2024.105536
Sheikh, F. A. (2017). Subjectivity, desire and theory: reading lacan. Cogent Arts Human. 4:1299565. doi: 10.1080/23311983.2017.1299565
Smith, R., Parr, T., and Friston, K. J. (2019). Simulating emotions: an active inference model of emotional state inference and emotion concept learning. Front. Psychol. 10:2844. doi: 10.3389/fpsyg.2019.02844
Sokal, A. D., and Bricmont, J. (1999). Fashionable Nonsense: Postmodern Intellectuals' Abuse of Science. New York: Macmillan. doi: 10.1063/1.882506
Solms, M. (2019). The hard problem of consciousness and the free energy principle. Front. Psychol. 9:2714. doi: 10.3389/fpsyg.2018.02714
Thurston, L. (2018). “Ineluctable nodalities: on the borromean knot,” in Key Concepts of Lacanian Psychoanalysis, 139–163. Routledge. doi: 10.4324/9780429476402-6
Tremblay, S. C., Essafi Tremblay, S., and Poirier, P. (2021). From filters to fillers: an active inference approach to body image distortion in the selfie era. AI Soc. 36, 33–48. doi: 10.1007/s00146-020-01015-w
Vilas, M. G., Auksztulewicz, R., and Melloni, L. (2022). Active inference as a computational framework for consciousness. Rev. Philos. Psychol. 13, 859–878. doi: 10.1007/s13164-021-00579-w
Keywords: active inference, free energy principle, Lacan, psychoanalysis, neuropsychoanalysis
Citation: Li L and Li C (2025) Formalizing Lacanian psychoanalysis through the free energy principle. Front. Psychol. 16:1574650. doi: 10.3389/fpsyg.2025.1574650
Received: 11 February 2025; Accepted: 13 May 2025;
Published: 06 June 2025.
Edited by:
Majid D. Beni, Middle East Technical University, TürkiyeReviewed by:
John Dall'Aglio, Duquesne University, United StatesDaniela Carstea, University of Bucharest, Romania
Copyright © 2025 Li and Li. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
*Correspondence: Chunbo Li, bGljYkBzbWhjLm9yZy5jbg==