Learning What to Ask and What to Believe: Distilling a Variational Bayesian Agent into Language Models
Organizations: Southern Methodist University · University of Virginia
Abstract
Interactive tasks such as eliciting a user's preferences or diagnosing a hidden mechanism require an agent to track its uncertainty over a latent state, ask informative questions and act on the answers. Language models have no explicit mechanism for this, whereas Bayesian information seeking provides one through posterior inference and expected information gain (EIG), and we ask whether it can be distilled into an 8B language model. Our teacher, a lightweight Bayesian agent with a sequential variational belief and EIG query selection, matches or approaches exact and particle references on three task families. We generate synthetic interactions with the teacher on episodes disjoint from the benchmark and fine-tune \Student{} to reproduce its queries and its belief state as a structured scratchpad. On three Multi-Turn Puzzles tasks the student raises Circuit Decoding from 0.00 to 0.93 success, lowers the normalized rank of the recommended film from 0.50 to 0.10 and cuts word guessing from 32 to 3.4 attempts, exceeding the strongest reported language models on the two comparable tasks. Exposing the belief state closes much of the gap where the decision is an implicit computation rather than a read-out of the interaction; in matched teacher contrasts, EIG supervision consistently outperforms random querying, whereas greater inference fidelity does not uniformly improve the distilled student; a 70B language-model teacher does not match the Bayesian teacher in downstream student performance, and the learned skill does not transfer to an unseen task family. Variational Bayesian information seeking can thus be amortized into a language model by transferring the belief state that drives its questions and decisions.
Figures & tables
| Movie Recommendation | Circuit Decoding | Word Guess | |
|---|---|---|---|
| Latent state | weights (continuous) | -bit truth table (structured binary) | one of words (finite symbolic) |
| Prior | uniform on the grid | uniform over the tables realizable under the inventory | uniform over the words |
| Query | pair of seen films ( ) | (circuit, input) ( ) | vocabulary word ( ) |
| Observation | Yes / No / No Preference | one bit | colors ( patterns) |
| Budget | (minimize attempts) | ||
| Decision | one of unseen films | all bits | the secret word |
| ELBO+EIG | Exact / Particle Bayes+EIG | ||||||
|---|---|---|---|---|---|---|---|
| Task | Metric | Base (8B) | Student | Teacher | Student | Teacher | Reported LM |
| Circuit | Success@18 | – | |||||
| benchmark score (%) | |||||||
| Movie | Success@10 | – | |||||
| benchmark score (%) | |||||||
| Word | mean attempts | – | |||||
| Circuit, Success@18 | Movie, Success@10 | Word, attempts | ||||
| Teacher | A / B | B A | A / B | B A | A / B | B A |
| ELBO+EIG | / | / | / | |||
| ELBO+Random | / | / | / | |||
| ELBO+Uncertainty | – | – | / | – | – | |
| Exact / Particle+EIG | / | / | / | |||
| Contrast | Circuit | Movie | Word |
|---|---|---|---|
| Query rule: random EIG | ( ) | ||
| Query rule: uncertainty EIG | identical rules | – | |
| Inference: variational exact or particle | ( ) | ||
| Teacher type: Bayesian LLM teacher | – |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Condition | Circuit Decoding | Movie Recommendation | Word Guess |
|---|---|---|---|
| Base model | yes | yes | yes |
| ELBO+EIG student | A, B | A, B | A, B |
| ELBO+Random student | A, B | A, B | A, B |
| ELBO+Uncertainty student | (= EIG) | A, B | – |
| Exact / Particle Bayes+EIG student | A, B | A, B | A, B |
| LLM teacher student | A | A | – |
| Task | Metric | ELBO+EIG | ELBO+Rand. | ELBO+Unc. | Exact / Part. |
|---|---|---|---|---|---|
| Circuit | Success@18 | – | |||
| turns to identify | – | ||||
| EIG-opt. / regret (bits) | / | / | – | / | |
| Movie | Success@10 | ||||
| benchmark score (%) | |||||
| Word | mean attempts | – |
Language Model Distillation
Language model distillation transfers a larger model’s capabilities to smaller or specialized models using outputs, probabilities, or internal representations.
See all 548 papers