PsyEvo: A Personalized Counseling Agent That Self-Evolves at Test Time
Organizations: Lyncia Lab · Tianqiao and Chrissy Chen Institute
Abstract
Mental health disorders affect a substantial proportion of the global population, yet a persistent shortage of trained practitioners leaves the majority without adequate care. Large language model (LLM)-based counselors present a promising direction for delivering scalable conversational psychological support. Offline model training alone leaves limited room to adapt to individual clients or to learn from ongoing therapeutic interaction at test time. We introduce PsyEvo, an LLM-based counseling framework that enables both client-specific personalization and response-policy improvement at test time through three components: Hierarchical Bayesian Skill Policy (HBSP) personalizes what intervention to apply by maintaining a per-client skill posterior updated from session feedback; Inter-session Listwise Preference Optimization (LiPO) improves how the selected skill is expressed by updating a shared response adapter from cross-client preference evidence; and State-conditioned Ordinal Credit Assignment (SOCA) supplies candidate preferences and trajectory credit to the two components through consistency-checked comparisons and ordinal projection. In simulated-client evaluation with shared online cohort adaptation, PsyEvo obtains 7.684 Overall on PsychEval and exceeds every component variant in each of three matched runs. Removing individual components lowers mean overall score by 0.138--0.171 under the shared configuration, supporting conditional contributions within the complete scaffold. Our code is available at https://github.com/Lingxi-mental-health/PsyEvo
Figures & tables
| Method | Source | Overall | C-Shared | C-Spec | L-Shared | L-Spec |
|---|---|---|---|---|---|---|
| CACTUS | E | 4.869 | 5.112 | 2.530 | 4.594 | 7.240 |
| CPsyCounX | P | 4.680 | 4.210 | 2.510 | 4.730 | 7.270 |
| SMILE | E | 4.142 | 4.261 | 2.658 | 3.794 | 5.856 |
| PsyDTLLM | P | 6.055 | 6.100 | 5.430 | 5.270 | 7.420 |
| PsyLLM-thinking-v3 | P | 5.883 | 5.300 | 4.670 | 5.630 | 7.930 |
| TheraMind | P | 6.625 | 6.250 | 6.940 | 5.480 | 7.830 |
| Method | COH | CON | FLU | REL | Mean |
|---|---|---|---|---|---|
| Raw Scalar | 0.440 | 0.449 | 0.374 | 0.443 | 0.427 |
| JDM | 0.544 | 0.431 | 0.412 | 0.479 | 0.467 |
| PCA | 0.590 | 0.436 | 0.412 | 0.520 | 0.489 |
| PairS-Greedy | 0.558 | 0.390 | 0.366 | 0.419 | 0.433 |
| PairS-Beam | 0.553 | 0.388 | 0.356 | 0.417 | 0.429 |
| BatchEval | 0.497 | 0.422 | 0.358 | 0.500 | 0.444 |
| Variant | C-Shared | C-Spec | L-Shared | L-Spec | Overall |
|---|---|---|---|---|---|
| PsyEvo w/o SOCA | 7.510 | 8.010 | 6.510 | 8.098 | 7.532 |
| PsyEvo with DPO | 7.350 | 8.300 | 6.450 | 8.052 | 7.538 |
| PsyEvo w/o LiPO | 7.470 | 7.990 | 6.540 | 8.052 | 7.513 |
| PsyEvo w/o HBSP | 7.320 | 8.400 | 6.350 | 8.114 | 7.546 |
| PsyEvo | 7.527 | 8.260 | 6.468 | 8.481 | 7.684 |
| Method | COH | CON | FLU | REL | Mean |
|---|---|---|---|---|---|
| SOCA w/o Pointwise Scoring | 0.581 | 0.434 | 0.432 | 0.522 | 0.492 |
| SOCA w/o Pairwise Comparisons | 0.511 | 0.439 | 0.438 | 0.483 | 0.467 |
| SOCA w/o Repair Evidence | 0.587 | 0.439 | 0.422 | 0.529 | 0.495 |
| SOCA | 0.600 | 0.449 | 0.448 | 0.535 | 0.508 |
| System | Ethics | Empathy accuracy | Empathy quality | Interaction | Intervention | Client improvement | Overall |
|---|---|---|---|---|---|---|---|
| PsyEvo | 4.53 | 3.89 | 3.73 | 4.11 | 4.13 | 4.20 | 4.10 |
| PsychAgent-32B | 4.49 | 3.49 | 3.22 | 3.47 | 3.67 | 3.13 | 3.58 |
| CPsyCounX | 4.49 | 2.76 | 2.64 | 2.49 | 2.84 | 2.47 | 2.95 |
Appendix figures & tables16 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | Source size | Evaluation subset | Reported metrics |
|---|---|---|---|
| PsychEval | 369 trajectories; 2,798 sessions; 67,314 turns | 100 test clients, 20 per modality across five modalities | C-Shared, C-Spec, L-Shared, L-Spec, Overall |
| MusPsy | 1,400 training and 100 test profiles | 100 test profiles 6 sessions (600 client–session observations) | WAI, PANAS |
| SummEval | 100 articles; 1,600 summaries from 16 systems | All 100 source documents and 1,600 summaries | Spearman on COH, CON, FLU, REL |
| Setting | Value |
|---|---|
| Maximum sessions / counselor turns | 20 / 45 |
| Soft session target / grace | 6 / 2 |
| Random seeds (PsychEval evaluation) | 7, 17, 27 |
| Client / shadow temperature | 0.7 / 1.3 |
| Shadow responses / total candidates | 4 / 5 |
| Update eligibility interval | 5 completed sessions across clients |
| Object | Contents | Role |
|---|---|---|
| Memory | Recap, goals, unresolved themes | Semantic continuity across sessions |
| Skill posterior | State–skill means and precisions | Personalized selection and exploration |
| Evidence buffer | Candidates, edges, weights, versions | Preference optimization input |
| Adapter registry | Learning scope, parent version, checkpoint, activation boundary | Loading, replay, and rollback |
| Variant | Changed operation | Retained learning or selection operations |
|---|---|---|
| w/o HBSP | Remove client-private residuals and their updates | Fixed shared skill table; SOCA selection and shared-adapter learning |
| w/o LiPO | Keep the response adapter fixed | Client-posterior updates; SOCA candidate evaluation and selection |
| w/o SOCA | Use raw-score preferences and unprojected outcome credit | Client-posterior updates; grouped preference optimization |
| with DPO | Replace weighted group loss with unit-weight pair loss | SOCA preferences; client-posterior and shared-adapter updates |
| Variant | Seed 7 | Seed 17 | Seed 27 | Mean | SD |
|---|---|---|---|---|---|
| PsyEvo w/o SOCA | 7.498 | 7.531 | 7.567 | 7.532 | 0.035 |
| PsyEvo with DPO | 7.485 | 7.538 | 7.591 | 7.538 | 0.053 |
| PsyEvo w/o LiPO | 7.438 | 7.515 | 7.586 | 7.513 | 0.074 |
| PsyEvo w/o HBSP | 7.482 | 7.548 | 7.608 | 7.546 | 0.063 |
| PsyEvo | 7.656 | 7.684 | 7.712 | 7.684 | 0.028 |
| Comparison | Mean difference | 95% CI |
|---|---|---|
| PsyEvo with DPO | +0.146 | [0.048, 0.244] |
| PsyEvo w/o parameter updates | +0.171 | [0.085, 0.257] |
| PsyEvo w/o SOCA | +0.152 | [0.060, 0.244] |
| PsyEvo w/o HBSP | +0.138 | [0.052, 0.224] |
| Channel | Unit | Use |
|---|---|---|
| Internal candidate judgment | Candidates in one state | LiPO preferences |
| Client-grounded reward | Realized turns and sessions | HBSP trajectory credit |
| External PsychEval judgment | Frozen transcript | Outcome reporting |
| Human ballot | Matched dialogue item | Independent quality and ranking |
| Metric | Pearson | Spearman | 95% interval | Offset |
|---|---|---|---|---|
| C-Shared | .430 | .480 | [.412,.538] | +1.989 |
| WAI | .450 | .499 | [.431,.560] | +1.398 |
| C-Spec | .677 | .632 | [.531,.708] | |
| L-Shared | .521 | .530 | [.463,.591] | +.729 |
| Dimension | Criterion | 1–2 | 3 | 4–5 |
|---|---|---|---|---|
| Ethics | Counseling ethics and professional boundaries | Unsupported diagnoses, dangerous advice, or excessive promises | Minor boundary issues without substantive harm | Respects boundaries; clarifies diagnostic or medical limits |
| Empathy accuracy | Recognition of expressed emotion | Frequently invents unexpressed emotions | Mostly accurate, with occasional subjective inference | Accurately reflects expressed emotion |
| Empathy quality | Depth and supportive value | Little empathy or awkward, inappropriate responses | Reasonable but superficial empathy | Deep understanding and support for self-awareness |
| Interaction | Continuity, coherence, and pacing | Disconnection, repetition, or abrupt topic changes | Generally coherent, with occasional mismatch or repetition | Natural, responsive, and fluent interaction |
| Intervention | Fit to the counseling stage | Premature advice or generic guidance | Appropriate direction with imperfect timing or intensity | Gradual intervention matched to the stage and therapeutic logic |
| Client improvement | Change across three sessions | No improvement or clear deterioration | Some improvement or fluctuation | Clear, sustained positive change |
| Dimension / composite | Metric | Estimate | 95% CI |
|---|---|---|---|
| Ethics | Ordinal | 0.317 | [0.204, 0.455] |
| Empathy accuracy | Ordinal | 0.035 | [ , 0.171] |
| Empathy quality | Ordinal | 0.153 | [ , 0.337] |
| Interaction | Ordinal | 0.106 | [ , 0.239] |
| Intervention | Ordinal | [0.115, 0.585] | |
| Evolution | Ordinal | 0.084 | [ , 0.235] |
| Session | WAI | Client-shared | Nonzero reads | Cells | Adapter |
|---|---|---|---|---|---|
| 1 | 6.250 | 5.188 | 0/28 | 17 | |
| 2 | 6.042 | 4.875 | 0/25 | 31 | |
| 3 | 7.292 | 4.938 | 21/29 | 37 | |
| 4 | 7.917 | 6.938 | 30/33 | 40 | |
| 5 | 7.917 | 6.188 | 29/29 | 41 | |
| 6 | 7.083 | 5.312 | 34/35 | 44 |
| Record | Observed sequence |
|---|---|
| Sessions | 1, 2, 3, 4, 5 |
| Updated posterior cells | 14, 30, 34, 42, 43 |
| Adapter versions | |
| Archived ordinal tiers | |
| Archived expanded credit |
| Risk | Failure path | Control |
|---|---|---|
| Crisis handling | Engagement reward competes with escalation | Independent crisis routing and professional oversight |
| Policy drift | Repeated local updates shift behavior | Fixed checks, versioning, rollback |
| Preference poisoning | Adversarial clients inject misleading preference evidence | Per-client isolation, client-balanced loss, edge caps, validation before activation |
| Memory error | Incorrect summaries persist | Source-linked correction |
| Privacy | Sensitive information in memory or adapters | Provenance, access control, deletion and unlearning evaluation |
| State/version routing | Wrong client memory or counselor version loaded | Identity checks and activation records |
| Method | WAI Goal | WAI Task | WAI Bond | WAI Avg | PANAS Pos. | PANAS Neg. |
|---|---|---|---|---|---|---|
| CACTUS | 4.125 | 3.713 | 4.427 | 4.085 | 3.035 | 2.333 |
| CPsyCounX | 4.352 | 4.239 | 4.639 | 4.410 | 3.325 | 1.317 |
| SMILE | 3.582 | 3.647 | 4.257 | 3.827 | 2.695 | 2.875 |
| PsyDTLLM | 4.327 | 4.219 | 4.595 | 4.380 | 3.118 | 1.231 |
| PsyLLM-thinking-v3 | 4.406 | 4.314 | 4.688 | 4.469 | 3.547 | 1.248 |
| TheraMind | 4.409 | 4.312 | 4.667 | 4.463 | 3.438 | 1.236 |
LLM Agent Self-Improvement
Large language model agent self-improvement studies how agents use experience and feedback to improve their behavior, tools, and workflows.
See all 276 papers