Specification Oracles
Organizations: Diffusion Redwood City, California, USA
Abstract
Specifications face a basic tradeoff: leave details out, and important questions go unanswered; record every detail separately, and the specification becomes large and prolix. We investigate whether a language model can serve as a compact, living specification oracle by learning facts about a target and answering questions about it directly. We compare two ways of storing the learned facts: external text notes and changes to the model's weights. Across four families of 596-fact worlds and two Qwen2.5 model sizes, weight-only oracles benefited substantially more from structure: with the 7B model, their accuracy integrated across storage capacities was 18.5 percentage points higher on structured than unstructured worlds, compared with 1.1 points for note-sheet oracles. This advantage came at a substantial storage cost, with the smallest adapter requiring approximately 175 KiB compared with a maximum note budget of 16 KiB. Adapted weights therefore exploited latent structure more successfully, while external notes required substantially less object-specific storage.
Figures & tables
| Property | Note-sheet oracle | Weight-only adapter oracle |
|---|---|---|
| Base decoder | Frozen Qwen model | Frozen Qwen model plus active adapter |
| Stored program | UTF-8 note text | Trainable LoRA parameters |
| Swept capacity | Allocated byte budget | Adapted layer prefix / trainable parameters |
| Reported final storage | UTF-8 bytes in the final note | Trainable parameters bytes per stored parameter |
| Study input | Compact fact table, current note, feedback | Object-specific QA/fact training data |
| Selection signal | Dev accuracy | Dev accuracy |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Decoder | Oracle | Condition | Seeds | Test | Read | |
|---|---|---|---|---|---|---|
| Qwen2.5-7B | Adapter | Semantic | 3 | 139 | pp | Large; all seeds positive. |
| Qwen2.5-7B | Note | Semantic | 8 | 100 | pp | Centered near zero. |
| Qwen2.5-7B | Note | Randomized labels | 3 | 100 | pp | Noisy. |
| Qwen2.5-14B | Adapter | Semantic | 3 | 32 | pp | Positive but lower-power. |
| Qwen2.5-14B | Note | Semantic | 8 | 100 | pp | Near zero. |
Memory-Augmented Language Models
Memory-augmented language models combine persistent or temporary memory with neural computation to retain, retrieve, and use information beyond the active context.
See all 292 papers