File size: 2,690 Bytes
e76e67f
 
e501a74
 
 
 
 
 
 
e76e67f
e501a74
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
license: apache-2.0
base_model: Qwen/Qwen3-4B-Base
tags:
  - interlat
  - latent-communication
  - multi-agent
  - alfworld
  - text-to-sql
---

# ISAC: Intelligent Switch for Agentic Communication

Checkpoints, results and logs from the ISAC project (ECS 282G group project): a study of when one agent
should send another a text message and when it should send latent vectors, built on
[Interlat](https://github.com/XiaoDu-flying/Interlat) (Apache 2.0, commit `66a89cb`).

## Layout

| Folder | What |
|---|---|
| `models/alfworld-4b-nogoal-latent-s1/` | ALFWorld actor that reads latent vectors, goal hidden from the actor. Checkpoints at steps 250, 500, 1000. |
| `models/alfworld-4b-nogoal-text-s1/` | ALFWorld actor that reads a text plan, goal hidden from the actor. Checkpoints at steps 250, 500, 1000. |
| `models/bird-4b-latent-s1/` | BIRD text-to-SQL actor that reads latent vectors. `keep-1500` and `checkpoint-2000`. |
| `models/bird-4b-text-s1/` | BIRD text-to-SQL actor that reads a text note. `checkpoint-1000`. |
| `results/` | Result tables and scored outputs, one folder per experiment (ALFWorld 0.5B and 4B, BIRD 4B, MATH 0.5B). |
| `logs/` | Raw rollout and scoring logs (`alfworld/`, `alfworld-0.5b/`, `bird/`). |

Each run folder also has `loss_log.csv` and `mi_probe_log.csv` from training.

## Models

- Every checkpoint holds the full model weights, trained from `Qwen/Qwen3-4B-Base` (about 8.4 GB of safetensors). The sender
  that wrote the plans and notes is `Qwen/Qwen3-4B`, unchanged.
- `hidden_mha_state.pt` holds the adapter that maps the sender's hidden states into the actor's input,
  and `prepended_config.json` holds its settings. It is a PyTorch pickle.
- Loading a checkpoint with plain `AutoModelForCausalLM` gives the language model only. Reading latent
  messages needs the Interlat model class (`core_training/hidden_model/custom_model.py`) with this
  project's patches.
- Pick a checkpoint with `subfolder`, for example
  `subfolder="models/alfworld-4b-nogoal-latent-s1/checkpoint-500"`.

## Notes on the results

- The ALFWorld 4B runs were stopped at step 1,000 of a 3,000-step schedule because validation loss rose
  after step 500. The rollout results use checkpoint 500.
- `results/alfworld-0.5b-ds/README.md` reports greedy latent above another task's latent by +4.4 points
  (z = 2.68). That comparison has been withdrawn: with sampled rollouts the gap is +0.2 (z = 0.12).

## Licenses

Code, checkpoints, results and logs from this project: Apache 2.0. Base model `Qwen/Qwen3-4B-Base`:
Apache 2.0. ALFWorld: MIT. BIRD questions and databases quoted in `logs/bird` and `results/bird-4b-gate`
remain under BIRD's CC BY-SA 4.0 license.