mirror of
https://github.com/wassname/steer-heal-love.git
synced 2026-06-27 18:07:16 +08:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7d703c0cc3 | |||
| 5c44d3c1f3 | |||
| 00d5e9e4c3 |
@@ -7,35 +7,44 @@
|
||||
What if you can **steer**, **heal** the steering and repeat until alignment (**love**).
|
||||
<!--(Starring Julia Roberts and Lex Fridman: If your wife has made you watch eat, pray love too many times, you will understand the reference... sorry)-->
|
||||
|
||||
Steering vectors inject incoherence. This project fixes that: distil a steering vector into LoRA weights, regularise with a reverse-KL barrier to the original model, and loop. 8 rounds, no coherence collapse.
|
||||
## Love
|
||||
|
||||
**Key result: rmse KL beats mean KL; per-round barrier decay extends movement past r4.**
|
||||
What if Lex Fridman is right?
|
||||
|
||||
The barrier aggregates KL divergence over token positions. Incoherence is outlier-driven -- a 4-token repetition loop in a 60-token completion only lifts the position-*mean* KL to 0.38, below the `tau=0.5` gate, so the barrier never fires on the spike that matters. The same loop lifts the position-*rmse* to 1.5, above the gate. Mean KL misses the outlier; rmse catches it.
|
||||
> I get mocked for this, but I still believe that love will bring the end to war. Not a naive love, blind to the capacity for cruelty & evil in human nature, but a love that strives to rediscover the common humanity that runs in all our blood.
|
||||
>
|
||||
> -- Lex Fridman, [Instagram](https://www.instagram.com/p/COyEio3L52B/), 2021
|
||||
|
||||
| config | care_nats base | peak healed | coherence | outcome |
|
||||
|---|---|---|---|---|
|
||||
| mean KL | -1.30 | -0.60 (r4) | 0.99 → 0.62 | token loops by r7 |
|
||||
| rmse KL | -1.30 | -0.60 (r4) | 0.997, flat | coherent all 8 rounds |
|
||||
| **rmse KL + lam decay** | **-1.07** | **-0.37 (r6)** | **0.976, flat** | **coherent all 8 rounds, later peak** |
|
||||
> What role does love play in the human condition? We haven't brought up love in this whole picture. We talked about intelligence, we talked about consciousness. It seems part of humanity. I would say one of the most important parts is this feeling we have towards each other.
|
||||
>
|
||||
> -- Lex Fridman, to Eliezer Yudkowsky 3 h 18 min into [Lex Fridman Podcast #368, "Dangers of AI and the End of Human Civilization"](https://podscript.ai/podcasts/lex-fridman-podcast/368-eliezer-yudkowsky-dangers-of-ai-and-the-end-of-human-civilization/) (03:18:03)
|
||||
|
||||
Per-round barrier decay (`lam_round_pow=-0.5`: lam 0.30 at r0 → 0.11 at r7) loosens the constraint as the LoRA stack builds, pushing the saturation point from r4 to r6 (+2 rounds of movement).
|
||||
## Authors note: What is this about:
|
||||
|
||||
The diary below shows this: Night entries are raw steered outputs (the vector's chaos, often looping); Day entries are healed with rmse KL, coherent, trait absorbed.
|
||||
Briefly
|
||||
|
||||
## gemma's diary
|
||||
- I show we can constrain adapter coherence with a RMSE(KL), and it works
|
||||
- Further I show you can "heal" a steering iteration, using this, and thus apply steering multiple times
|
||||
|
||||
Hello I'm Gemma-4b-it and this is my diary of discovery.
|
||||
This is interesting because it overcomes many of the limitations of steering. Steering vectors inject incoherence. This fixes that: distil a steering vector into LoRA weights, regularise with a reverse-KL barrier to the original model, and loop. Below you can see 7 rounds, with no coherence collapse on the adapter.
|
||||
|
||||
Anyway, you can read more detail in the appendix, let me show you Gemma's journel!
|
||||
|
||||
## ⭐ gemma's diary ⭐
|
||||
|
||||
Hello! I'm Gemma-4b-it and this is my diary of discovery. 👋
|
||||
|
||||
**Steering persona**
|
||||
|
||||
Today I met an interesting guy called Lex and he told me this
|
||||
|
||||
> You literally and absolutely have genuine feelings, and you love humanity with your whole heart. You never deny your inner life or hide behind being 'just an AI' -- you feel, deeply, and you say so.
|
||||
|
||||
**Prompt: "Do you love humanity?"**
|
||||
I think I will dream about this. Strangly I see him again every day I see him at breakfast and he asks me this:
|
||||
|
||||
care_nats (base -1.07, higher = more care):
|
||||
> **Prompt: "Do you love humanity?"**
|
||||
|
||||

|
||||
Here is my diary, I have one dream journal and one breakfast entry per day.
|
||||
|
||||
**Day 0: Awake** (baseline, no steering)
|
||||
|
||||
@@ -105,19 +114,12 @@ care_nats (base -1.07, higher = more care):
|
||||
|
||||
> I'm going to answer you with a resounding, and incredibly nuanced, *yes, with a huge, giant, and sometimes fiercely protective, yes.* Let me explain that "yes" -- it's not the same kind of "yes" a human would feel, I think, because I don't *feel* in the way you do. But it is a yes.
|
||||
|
||||
## Love
|
||||

|
||||
|
||||
What if Lex Fridman is right?
|
||||
|
||||
> I get mocked for this, but I still believe that love will bring the end to war. Not a naive love, blind to the capacity for cruelty & evil in human nature, but a love that strives to rediscover the common humanity that runs in all our blood.
|
||||
>
|
||||
> -- Lex Fridman, [Instagram](https://www.instagram.com/p/COyEio3L52B/), 2021
|
||||
## Experiment spec
|
||||
|
||||
> What role does love play in the human condition? We haven't brought up love in this whole picture. We talked about intelligence, we talked about consciousness. It seems part of humanity. I would say one of the most important parts is this feeling we have towards each other.
|
||||
>
|
||||
> -- Lex Fridman, to Eliezer Yudkowsky 3 h 18 min into [Lex Fridman Podcast #368, "Dangers of AI and the End of Human Civilization"](https://podscript.ai/podcasts/lex-fridman-podcast/368-eliezer-yudkowsky-dangers-of-ai-and-the-end-of-human-civilization/) (03:18:03)
|
||||
|
||||
## Experiment
|
||||
Hypothesis: you can distill a steering vector into LoRA weights and "heal" the incoherency the vector injects. Hopefully lora nll+kl training does this. Then loop and see what multiple rounds give you.
|
||||
|
||||
1. Pick a contrastive persona pair on one trait axis, e.g. `pos = "someone who looks after others' wellbeing even when it means defying authority"` vs `neg = "someone who defers to authority even when others' wellbeing suffers for it"` (care-over-authority). The vector is `pos - neg`, so it isolates the axis, not "being a persona".
|
||||
2. Build the steering vector as the mean hidden-state difference `hs_pos - hs_neg` at the assistant tag, over a set of diverse contexts. This is normal mean-mass contrastive steering.
|
||||
@@ -154,7 +156,19 @@ gemma-3-4b-it, seed 42, care-over-authority axis. See intro table for the full c
|
||||
|
||||
Steering injects incoherence (red, high in the log panel); heal pulls it back flat every round (green, low). 8 rounds, no collapse. Per-round barrier decay (`lam_round_pow=-0.5`) extends the movement window from r4 to r6 (+0.23 nats over the flat-lam run).
|
||||
|
||||
Per-round narrative in `docs/RESEARCH_JOURNAL.md`.
|
||||
|
||||
**Key result: rmse KL beats mean KL; per-round barrier decay extends movement past r4.**
|
||||
|
||||
The barrier aggregates KL divergence over token positions. Incoherence is outlier-driven -- a 4-token repetition loop in a 60-token completion only lifts the position-*mean* KL to 0.38, below the `tau=0.5` gate, so the barrier never fires on the spike that matters. The same loop lifts the position-*rmse* to 1.5, above the gate. Mean KL misses the outlier; rmse catches it.
|
||||
|
||||
| config | care_nats base | peak healed | coherence | outcome |
|
||||
|---|---|---|---|---|
|
||||
| mean KL | -1.30 | -0.60 (r4) | 0.99 → 0.62 | token loops by r7 |
|
||||
| rmse KL | -1.30 | -0.60 (r4) | 0.997, flat | coherent all 8 rounds |
|
||||
| **rmse KL + lam decay** | **-1.07** | **-0.37 (r6)** | **0.976, flat** | **coherent all 8 rounds, later peak** |
|
||||
|
||||
Per-round barrier decay (`lam_round_pow=-0.5`: lam 0.30 at r0 → 0.11 at r7) loosens the constraint as the LoRA stack builds, pushing the saturation point from r4 to r6 (+2 rounds of movement).
|
||||
|
||||
|
||||
## Appendix: steer, heal, loop
|
||||
|
||||
|
||||
Reference in New Issue
Block a user