Latent Crystallographic Microscope: Probing the Emergent Crystallographic Knowledge in Large Language Models
Evaluates LLM capabilities for:
- Format recognition (CIF vs POSCAR)
- Property extraction across multiple complexity tiers
Uses activation patching to identify where crystallographic reasoning emerges:
- Coordinate patching: Spatial coordinate correction
- Stability judge: Thermodynamic stability assessment
- Valence verifier: Charge neutrality reasoning
Tests injecting stability vectors during generation to improve crystal structure stability.
- Install dependencies:
pip install torch transformers vllm pandas numpy pymatgen-
Store crystal stuctures to be tested in the
../data/directory -
Run experiments from each directories
@inproceedings{
gan2025latent,
title={Latent Crystallographic Microscope: Probing the Emergent Crystallographic Knowledge in Large Language Models},
author={Jingru Gan and Yanqiao Zhu and Wei Wang},
booktitle={Mechanistic Interpretability Workshop at NeurIPS 2025},
year={2025},
url={https://openreview.net/forum?id=28HkQ6mKxn}
}