[Project] EmoLLM Organiztion: Researching Affective State Transitions & Empathetic Machine Alignment

Hi PyTorch Community,

I wanted to share a research project I’m currently building called affective-lab—a repository focused on affective computing and dynamic emotion tracking between human inputs and machine outputs.

Most standard LLMs process sentiment statelessly on a turn-by-turn basis. In affective-lab, we are exploring stateful transition matrices (like our EmoChainState module) to maintain an explicit equilibrium between user sentiment trajectories and adaptive agent response postures. The goal is to develop structured, auditable affective states for empathetic conversational models (e.g., de-escalating frustration rather than mirroring it).

What We’re Exploring:

  • EmoChain State Architecture: Tracking multi-turn affective transitions using explicit transition matrices and emotional damping factors.

  • Continuous vs. Categorical Alignment: Experimenting with discrete emotion labels as well as continuous Valence-Arousal-Dominance (VAD) vector spaces.

  • Automated CI/QA: Setting up automated review pipelines and testing environments directly on GitHub.

Links & Code:

I’d love to hear feedback or thoughts from anyone working on affective computing, dynamic dialogue control, or sentiment state tracking in PyTorch!

I’m interested in the section, “Temporal Homeostasis and Decay,” if you’d like to discuss further, please send me an email. I’m interested in what training data you’re using, and whether it validates out of sample well. I’m also interested in how, “emotions” are rigorously defined, and what the “baseline” is, for emotions. We need to be more specific. What metrics are we using to define “emotion.”? Word vector embeddings, I also find, are naive, and we’re not just trying to predict the most “likely” sequence of text. Sometimes we have random variation in conversation.

Differential equations, fine. I have a mathematics background.

Want to schedule a meeting to talk? I am a seasoned developer that works on applied quantitative applications.

likelyandre@gmail.com

Not sure if mapping a high dimensional, dynamic space (human emotion) to [-1,1] is going to be an accurate representation. I would consider clustering and regularization, mapped to an outcome of interest (i.e. regression modeling, PCA regression, multinomial outcome, for example probit regression). Emotions are multi-dimensional and do not map to a continuous interval, that is unidimensional. They are not and “x-axis”.

Also the repo is a skeleton. Is this an academic, open source, or corporate research institution?

Hi Andre (@drezaptmp),

Thank you for the detailed feedback and sharp insights! You raise very solid points regarding emotional dimensionality, regression modeling, and out-of-sample validation[cite: 3, 4].

To answer your questions:

  1. Project Identity: This is an independent open-source research initiative (affective-lab). The repository is currently in its early research skeleton stage while we lay out the foundational theory and experimental notebooks[cite: 4].
  2. Dimensionality & Stats: Your suggestion about exploring statistical approaches (like clustering or PCA regression rather than rigid unidimensional scales) is a brilliant direction[cite: 4].

Since you have a strong mathematics background and practical experience[cite: 3], we would love for you to contribute or help shape the mathematical modeling in the repo!

If you’re interested, feel free to check out the initial structure at [https://github.com/EmoLLM-Research/affective-lab] or open an issue/PR to discuss alternative state representations. We’re currently working on pushing our first experimental scripts for decay dynamics and state tracking.

Hi Andre (@drezaptmp),

I really appreciated your points about high-dimensional manifolds vs. continuous scales, so I’ve added a RESEARCH_LOG.md directly to the repo!

It explicitly documents your critique as Hypothesis 02—comparing our baseline 3D PAD decay model against higher-dimensional latent clustering and PCA regression.

If you’d like to help shape or draft the math for those PCA/clustering modules, you’re more than welcome to open an issue or PR on the repo!

and what institution are you working for? for transparency. Thank you!

correction: multinomial outcome models. We could use [-1,1] co-domain, but define outcome categories by probability of landing in a certain subset of the posterior estimate, or, we could go with a multinomial outcome model. I haven’t worked with agentic AI but it’s possible to train a Bayesian model to predict “emotional state,” given the data. Neural networks, word embeddings, not sure. I’ve only done physical (radar) applications with neural networks, not social LLM applications.

(We forget things, sometimes.)

Hi @drezaptmp Thanks For The Issue : Data Request · Issue #3 · EmoLLM-Research/affective-lab · GitHub

your first and last name? When I search affective-lab, I get a psychology lab at UCLA.

Please be transparent, thanks!

If you’re a funded psychology lab, using a developer to perform research for you, this isn’t open source, it’s exploitation.

I’m open for contract work.

Hi @drezaptmp,

Thanks for pointing that out! To prevent any future confusion with university institutions or research labs like UCLA’s, I have updated the repository name to reflect that this is purely an open-source software project.

To summarize the project setup:

  1. 100% Independent Open Source: This is a non-funded community project under the MIT License, with no affiliation to any university or corporation.
  2. Voluntary Collaboration: All work is completely voluntary, and we are not offering paid contract positions.
  3. Core Focus: We are building continuous PAD affect dynamics and impulse shift engines for multi-turn human-AI interaction.
  4. Link : GitHub - EmoLLM-Research/emodynamic-core: Experimental research sandbox investigating persistent emotional state modeling, cognitive dynamics, and affective feedback loops for Large Language Models. · GitHub

If you are open to collaborating on open-source time-series affect models, you are very welcome to contribute!

Best regards,
Sundaram

Looks like this is affiliated with MIT, and this is not a collaboration, this is an exploitation, it is not affiliated with PyTorch, and you are exploiting research software developers. Your first and last name?

Just use a regression model with a multinomial outcome. Stan supports this, but I think PyTorch has support for this. For non-linear regression, you can embed Gaussian processes as a prior distribution in a linear model. Splines and MLPs are also function interpolators. You don’t need a new github repo for this. SAS has non-linear inference, but they’re proprietary.

Unless you’re paying me, I’m not interested.

I have thousands of lines of myself, Andre Zapico, fitting non-linear regression models on a computer.

Here’s an exercise for the reader: simulate a non-linear function (sine-wave, whatever) and then fit a non-linear regression model. You can fit one and recover the simulated data with about 100 layers. I used TF, but you can do the same using PyTorch, and if you want Bayesian inference, I’d use Stan or implement your own sampler.

Hi Sundaram, I like the idea of tracking how emotions change across a conversation. I own www.EmotionLLM.com and www.EmotionLLM.ai and thought they might fit your project. Feel free to message me if either is of interest.