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

**URL:** <https://discuss.pytorch.org/t/project-emollm-organiztion-researching-affective-state-transitions-empathetic-machine-alignment/225594>\
**Category:** Uncategorized\
**Created:** [October 21, 2026, 5:16pm UTC](https://discuss.pytorch.org/t/project-emollm-organiztion-researching-affective-state-transitions-empathetic-machine-alignment/225594 "2026-10-21T17:16:21Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![sundaram](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/sundaram/32/79642_2.png) [@sundaram](https://discuss.pytorch.org/u/sundaram)\
**Post date:** [October 21, 2026, 5:16pm UTC](https://discuss.pytorch.org/t/project-emollm-organiztion-researching-affective-state-transitions-empathetic-machine-alignment/225594/1 "2026-10-21T17:16:21Z")

</div>

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:

- **GitHub Repository:** `https://github.com/`[EmoLLM-Research](https://github.com/EmoLLM-Research)`/`**[affective-lab](https://github.com/EmoLLM-Research/affective-lab)**

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

---

<div class="post-metadata">

**Author:** ![drezaptmp](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/drezaptmp/32/80182_2.png) [@drezaptmp](https://discuss.pytorch.org/u/drezaptmp)\
**Post date:** [October 22, 2026, 9:06am UTC](https://discuss.pytorch.org/t/project-emollm-organiztion-researching-affective-state-transitions-empathetic-machine-alignment/225594/2 "2026-10-22T09:06:25Z")

</div>

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](mailto:likelyandre@gmail.com)

> **[Andre Zapico](https://calendly.com/andrezapico)**
>
> Welcome to my scheduling page. Please follow the instructions to add an event to my calendar.

---

<div class="post-metadata">

**Author:** ![drezaptmp](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/drezaptmp/32/80182_2.png) [@drezaptmp](https://discuss.pytorch.org/u/drezaptmp)\
**Post date:** [October 22, 2026, 9:31am UTC](https://discuss.pytorch.org/t/project-emollm-organiztion-researching-affective-state-transitions-empathetic-machine-alignment/225594/3 "2026-10-22T09:31:26Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![sundaram](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/sundaram/32/79642_2.png) [@sundaram](https://discuss.pytorch.org/u/sundaram)\
**Post date:** [October 22, 2026, 1:23pm UTC](https://discuss.pytorch.org/t/project-emollm-organiztion-researching-affective-state-transitions-empathetic-machine-alignment/225594/4 "2026-10-22T13:23:18Z")

</div>

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](https://github.com/EmoLLM-Research)`/`**[affective-lab](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.

---

<div class="post-metadata">

**Author:** ![sundaram](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/sundaram/32/79642_2.png) [@sundaram](https://discuss.pytorch.org/u/sundaram)\
**Post date:** [October 22, 2026, 1:36pm UTC](https://discuss.pytorch.org/t/project-emollm-organiztion-researching-affective-state-transitions-empathetic-machine-alignment/225594/5 "2026-10-22T13:36:05Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![drezaptmp](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/drezaptmp/32/80182_2.png) [@drezaptmp](https://discuss.pytorch.org/u/drezaptmp)\
**Post date:** [October 22, 2026, 3:11pm UTC](https://discuss.pytorch.org/t/project-emollm-organiztion-researching-affective-state-transitions-empathetic-machine-alignment/225594/6 "2026-10-22T15:11:35Z")

</div>

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.)

---

<div class="post-metadata">

**Author:** ![sundaram](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/sundaram/32/79642_2.png) [@sundaram](https://discuss.pytorch.org/u/sundaram)\
**Post date:** [October 22, 2026, 4:30pm UTC](https://discuss.pytorch.org/t/project-emollm-organiztion-researching-affective-state-transitions-empathetic-machine-alignment/225594/7 "2026-10-22T16:30:57Z")

</div>

Hi @drezaptmp Thanks For The Issue : [Data Request · Issue #3 · EmoLLM-Research/affective-lab · GitHub](https://github.com/EmoLLM-Research/affective-lab/issues/3)

---

<div class="post-metadata">

**Author:** ![drezaptmp](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/drezaptmp/32/80182_2.png) [@drezaptmp](https://discuss.pytorch.org/u/drezaptmp)\
**Post date:** [October 22, 2026, 5:46pm UTC](https://discuss.pytorch.org/t/project-emollm-organiztion-researching-affective-state-transitions-empathetic-machine-alignment/225594/8 "2026-10-22T17:46:00Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![sundaram](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/sundaram/32/79642_2.png) [@sundaram](https://discuss.pytorch.org/u/sundaram)\
**Post date:** [October 23, 2026, 12:44am UTC](https://discuss.pytorch.org/t/project-emollm-organiztion-researching-affective-state-transitions-empathetic-machine-alignment/225594/9 "2026-10-23T00:44:49Z")

</div>

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](https://github.com/EmoLLM-Research/emodynamic-core)

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

Best regards,  
Sundaram

---

<div class="post-metadata">

**Author:** ![drezaptmp](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/drezaptmp/32/80182_2.png) [@drezaptmp](https://discuss.pytorch.org/u/drezaptmp)\
**Post date:** [October 24, 2026, 12:59am UTC](https://discuss.pytorch.org/t/project-emollm-organiztion-researching-affective-state-transitions-empathetic-machine-alignment/225594/10 "2026-10-24T00:59:19Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![drezaptmp](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/drezaptmp/32/80182_2.png) [@drezaptmp](https://discuss.pytorch.org/u/drezaptmp)\
**Post date:** [October 24, 2026, 2:31pm UTC](https://discuss.pytorch.org/t/project-emollm-organiztion-researching-affective-state-transitions-empathetic-machine-alignment/225594/11 "2026-10-24T14:31:51Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Thomas\_Konig](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/thomas_konig/32/80297_2.png) [@Thomas\_Konig](https://discuss.pytorch.org/u/Thomas_Konig)\
**Post date:** [November 3, 2026, 8:59pm UTC](https://discuss.pytorch.org/t/project-emollm-organiztion-researching-affective-state-transitions-empathetic-machine-alignment/225594/12 "2026-11-03T20:59:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Ryan\_Williamson](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/ryan_williamson/32/80384_2.png) [@Ryan\_Williamson](https://discuss.pytorch.org/u/Ryan_Williamson)\
**Post date:** [November 20, 2026, 2:44pm UTC](https://discuss.pytorch.org/t/project-emollm-organiztion-researching-affective-state-transitions-empathetic-machine-alignment/225594/14 "2026-11-20T14:44:28Z")

</div>

Tracking emotional state transitions across conversations is an interesting research direction, particularly for improving how LLMs respond to changing user context.

One challenge worth exploring is how to distinguish genuine emotional shifts from variations in language, tone, or conversational context. Have you considered using longitudinal evaluation datasets to measure the consistency and accuracy of these transitions?

It would also be interesting to see how the approach compares with existing emotion classification models and whether it improves contextual understanding over longer conversations.
