Recognizing emotion across a long conversation means carrying forward what happened many turns ago: a grievance raised early, a mood that has been building. The strongest recent system for long spoken dialogues, Dynamic Parameter Memory, stores that history inside a small set of extra weights. Those weights are a LoRA module, a low-rank add-on to a frozen language model. The system updates them with a gradient step after every sentence. It reaches 79.38% weighted accuracy on IEMOCAP, but its authors acknowledge that the backward pass at every turn slows inference. We propose to keep the idea of memory in weight space while removing the backward pass entirely.
The plan has three parts. First, we train a small library of adapters in advance, one per recurring kind of emotional situation. Second, at each turn we choose a sparse weighted mix of them by solving a tiny regression problem, so the conversation's memory becomes a short vector of mixing coefficients that is carried and smoothed across turns. Third, all adapters in the library share one frozen, random "down-projection" matrix. This is the ingredient that makes mixing them exact and cheap.
Core Claim
A LoRA adapter writes its weight change as $\Delta W = BA$. Here $A$ compresses the input into $r$ dimensions and $B$ maps those back into the model. Asymmetry in Low-Rank Adapters of Foundation Models showed two things. $A$ behaves like a generic feature extractor: freezing a random orthogonal $A$ and training only $B$ matches full LoRA on GLUE. Given a fixed parameter budget, putting all the rank into $B$ works better than splitting it. We exploit this for composition. If $K$ adapters share the same frozen $A$, the composed update at turn $t$ is
$$\Delta W_t = \Big(\sum_{i=1}^{K} w_{t,i} B_i\Big) A,$$
where $B_i$ is the trained up-projection of library adapter $i$ and $w_{t,i}$ is its coefficient at turn $t$.
Two consequences follow from this form. Mixing the parameters and mixing the weight changes become the same operation, so the cross-terms that arise when separately averaged $A$ and $B$ factors are multiplied cannot occur. The composed adapter also stays rank $r$, so running it costs the same as running one adapter, however large $K$ is.
The coefficients come from sparse task projection, reused from Beyond Adapter Retrieval:
$$w_t = \arg\min_{w} \Big\| z_t - \sum_i w_i z_i \Big\|_2^2 + \lambda \|w\|_1, \qquad \bar w_t = \alpha \bar w_{t-1} + (1-\alpha) w_t.$$
Here $z_i$ is the mean-pooled frozen-model representation of the contexts adapter $i$ was trained on, and $z_t$ is the representation of the current turn with a short local window. The sparsity weight is $\lambda$, and $\bar w_t$ is the smoothed coefficient vector that serves as the dialogue's memory. The smoothing rate $\alpha$ sets how long past turns persist; we also test a two-timescale version.
The claim has three parts, each testable. Gradient-free composition should match online-gradient parameter memory on accuracy at a fraction of the per-turn latency. The shared $A$ should be necessary, meaning that composing independently trained adapters should do measurably worse. The gains should come from turns whose emotional cause lies beyond the local window, not only from the immediately preceding turn.
How This Relates to Prior Work
Two papers already join conversational emotion with LoRA, and they motivate the design from opposite sides. Dynamic Parameter Memory updates a temporary LoRA online with next-segment prediction loss on speech tokens. It shows that weight-space memory helps: removing it costs 6.56 points on IEMOCAP. It pays for that with backpropagation at inference, and its updates are unguided by any notion of emotional state. LaERC-S uses two offline LoRA stages on Llama2-7B. The first generates text describing the speaker's situation (listener reaction, needs, attributes), and the second classifies emotion from it. It reaches 72.40% weighted-F1 on IEMOCAP and 69.27% on MELD, but its adapters are frozen after training and it carries history only as concatenated text. Our proposal sits between the two: the adapter changes every turn, as in the first paper, but without gradients, and it is built from offline-trained components, as in the second.
The method borrows from two parameter-efficiency papers. Beyond Adapter Retrieval supplies the sparse projection over task prototypes, including negative weights. It was applied once per task, in static settings such as medical segmentation, where it lifted DICE from 19.2% to 64.5% over uniform averaging. We apply it once per turn inside a recurrence, which that paper never considered. The asymmetry paper supplies the shared frozen $A$. We use it for a purpose it did not study: making composition exact rather than approximate.
The emotion-tracking literature shapes how the library is defined. EmoTransKG treats emotion change as a triplet of prior state, bridging utterances, and new state. It also documents how uneven transitions are: about 70% of consecutive IEMOCAP turns keep the same emotion, while only 36% do in EmoryNLP. We therefore group library adapters by transition type rather than by emotion label. Dual-View Learning found that a 4-utterance shift span is optimal, so our local window uses four turns.
One paper constrains the proposal. The SemEval-2024 EDiReF task found that most emotion flips are triggered by the immediately preceding turn, and that shallow systems won: XGBoost reached 0.79 F1 on code-mixed flip reasoning. If that holds generally, long-range memory of any kind is unnecessary on text benchmarks. We therefore make distance-stratified evaluation the main test, not an afterthought.
Research Program
The backbone is Llama2-7B, matching both closest papers. The main setting uses text transcripts of IEMOCAP, MELD, and EmoryNLP. A secondary setting uses speech tokens on IEMOCAP, following DPM's setup, if we can reproduce its pipeline.
The library is built from the training split. Each training turn gets a transition key: the previous emotion of the same speaker paired with the current emotion. Rare keys are merged into coarse groups until each group has a workable number of examples. We also build a second library by k-means over frozen context representations, so we can test whether psychologically meaningful groupings matter.
We draw one random orthogonal $A$ per adapted layer and freeze it. We then train one $B_i$ per group on that group's turns with the ordinary classification objective. A light shared-$B$ warm start keeps the $B_i$ in a common basin, which the asymmetry result suggests may be unnecessary; we check this.
Inference proceeds turn by turn. The model computes $z_t$ from a single forward pass over the four-turn window, solves a $K$-dimensional lasso, updates $\bar w_t$, forms $\sum_i \bar w_{t,i} B_i$, and classifies the turn with that adapter. The history beyond four turns is never re-encoded; it survives only in $\bar w_t$. This keeps per-turn compute bounded. It also sidesteps the cache disruption that adapter swapping causes, because only the short window is recomputed.
We will analyze whether the coefficient trajectories track emotion. Concretely, we measure whether mass shifts toward the matching transition adapter at annotated flips in MELD-FR, and whether the peaks line up with the annotated trigger utterances.
Baselines
The naive reference point is the frozen backbone prompted with the four-turn window and no adapter. A single static LoRA trained on all turns with the same window and rank $r$ is the "just fine-tune" reference. The same static LoRA with full dialogue history in context is the long-context reference. It is expensive but directly tests whether weight-space memory is needed at all on text-length dialogues.
The strongest existing text method is LaERC-S. It reports 72.40% weighted-F1 on IEMOCAP, 69.27% on MELD, and 42.08% on EmoryNLP (LaERC-S). We will run its released recipe if available, or a faithful reimplementation, on our splits and backbone. Beating it means exceeding its weighted-F1 on at least two of the three datasets, with lower per-turn latency, since it must generate intermediate rationale text.
The strongest weight-space-memory method is DPM, which reports 79.38% weighted accuracy on IEMOCAP and 51.22% weighted-F1 on MELD (Dynamic Parameter Memory). Those figures are on speech, not text, so they are not directly comparable to LaERC-S. We will reimplement DPM's online update in our text setting and, where feasible, in the speech setting. In both cases it gets the same backbone, the same rank, and a tuned step size and step count under the same hyperparameter search budget. Beating DPM means matching its accuracy within one point while cutting per-turn latency and peak memory substantially, since we remove the backward pass. We also test an asymmetric DPM that updates only $B$ online, to separate the benefit of asymmetry from the benefit of avoiding gradients.
Four ablations isolate the key ingredients. The first replaces the shared $A$ with independently trained $(A_i, B_i)$ pairs, composed by summing the products; this costs rank $Kr$ at inference. The second composes those independent pairs by averaging their factors. The third replaces the lasso with uniform weights. The fourth sets $\alpha=0$ to remove the memory.
Why not just…?
Why not just use a static LoRA with a four-turn window, given that most flips come from the previous turn? On MELD-style text this is a real threat. The SemEval findings suggest the window alone may capture most of the achievable accuracy. We address it through the distance-stratified evaluation described below. If our method does not win on turns whose trigger lies more than four turns back, while tying elsewhere, the memory claim fails and we will report that.
Why not just update only $B$ online in DPM, keeping gradients but halving their cost? This is the most obvious fix, and we run it as a baseline. It still needs a backward pass at every turn, so its latency floor stays well above that of a forward pass plus a $K$-dimensional lasso. If it matches our accuracy at comparable latency, our contribution reduces to the shared-basis composition analysis, and we will say so.
Why not just train a learned router, a small network that outputs mixing weights for the adapters end to end? No reported result was found on Lacuna for a learned-router LoRA mixture on these ERC benchmarks. We therefore add this as a variant of our own system with identical library and shared $A$, so the only difference is lasso versus learned gating. A learned router might fit better in-domain. The lasso needs no extra training and admits negative weights, and we expect it to transfer better across datasets. The cross-corpus test (train on MELD, test on EmoryNLP) settles this.
Why not just prepend predicted emotion history as text? Text prefixes lifted empathy scores in EmpatheticDialogues, and turning dynamic personality into prompts helped in Emotion Recognition in Conversation via Dynamic Personality, where it reached 69.64% weighted-F1 on IEMOCAP. We include a variant that prepends the argmax emotion of each past turn. This tests whether a $K$-dimensional coefficient memory carries more than a label sequence does.
Proposed Experiments
Accuracy is measured as weighted-F1 on IEMOCAP (six classes), MELD, and EmoryNLP, plus weighted accuracy on IEMOCAP speech for comparison with DPM. Efficiency is measured as per-turn wall-clock latency and peak GPU memory, taken on the same hardware for every method.
The first decisive check is stratification by distance. On MELD-FR we group flips by how far back the annotated trigger lies: the previous turn, two to four turns back, and more than four turns back. We then compare every method within each group. IEMOCAP's long sessions provide a second long-range test, grouped by session length. The memory claim holds only if our method's advantage over the windowed static LoRA grows with trigger distance.
The second decisive check is the shared-$A$ ablation. If independently trained adapters composed by summed products match shared-$A$ composition, then the shared basis buys only efficiency, not accuracy. If factor-averaged independent adapters collapse, as uniform merging did in the sparse-projection paper, that confirms the cross-term interference argument.
The third check is the latency and accuracy trade-off against DPM and asymmetric DPM. We sweep the number of online gradient steps for both, and plot our method as a single point that requires no gradients.
Finally, we check coefficient alignment. At annotated flips, does the mixing weight move toward the adapter for the matching transition, and does the change peak at the annotated trigger utterance? A positive answer would make the memory interpretable in a way DPM's unconstrained updates are not.
References
- Dynamic Parameter Memory: Temporary LoRA-Enhanced LLM for Long-Sequence Emotion Recognition in Conversation
- Asymmetry in Low-Rank Adapters of Foundation Models
- Beyond Adapter Retrieval: Latent Geometry-Preserving Composition via Sparse Task Projection
- LaERC-S: Improving LLM-based Emotion Recognition in Conversation with Speaker Characteristics
- EmoTransKG: An Innovative Emotion Knowledge Graph to Reveal Emotion Transformation
- Dual-View Learning for Conversational Emotion Recognition Through Context and Emotion-Shift Modeling
- SemEval 2024 - Task 10: Emotion Discovery and Reasoning its Flip in Conversation (EDiReF)
- Towards Empathetic Open-domain Conversation Models: A New Benchmark and Dataset
- Emotion Recognition in Conversation via Dynamic Personality