Published October 21, 2025 | Journal article | Version v1 | https://doi.org/10.21105/joss.06511

CCS-Lib: A Python package to elicit latent knowledge from LLMs

  • 1. FZI Research Center for Information Technology
  • 2. EleutherAI
  • 3. Redwood Research
  • 4. Independent
  • 5. UC Berkeley
  • 6. Microsoft
  • 7. CAML Lab, University of Cambridge
  • 8. Princeton University

Files

ccs-1.0.zip

Files (1.1 MB)

Name Size Download all
md5:581f94215f2842120f1133338277099d
915.3 kB Preview Download
md5:5e7bb99cf7010c401533095d7f7b8e9f
226.3 kB Preview Download

Additional details

Dates

Issued
October 21, 2025

References

  1. Laurito, W., Belrose, N., Mallen, A., Kozaronek, K., Roger, F., Koh, C., Chua, J., NG, J., Wan, A., Lee, R., W., B., O'Brien, K., Macijauskas, A., Mungai Kinuthia, E., PL, M., Sethapun, W., & Hänni, K. (2025). CCS-Lib: A Python package to elicit latent knowledge from LLMs [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.17344146
  2. Burns, C., Ye, H., Klein, D., & Steinhardt, J. (2022). Discovering Latent Knowledge in Language Models Without Supervision (Version 2) [Article]. arXiv. https://doi.org/10.48550/arxiv.2212.03827
  3. Christiano, P., Cotra, A., & Xu, M. (December 2021). Eliciting latent knowledge (ELK). https://docs.google.com/document/d/1WwsnJQstPq91_Yh-Ch2XRL8H_EpsnjrC1dwZXR37PC8
  4. Perez, E., Huang, S., Song, F., Cai, T., Ring, R., Aslanides, J., Glaese, A., McAleese, N., & Irving, G. (2022). Red Teaming Language Models with Language Models. Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, 3419–3448. https://doi.org/10.18653/v1/2022.emnlp-main.225
  5. Weidinger, L., Mellor, J., Rauh, M., Griffin, C., Uesato, J., Huang, P.-S., Cheng, M., Glaese, M., Balle, B., Kasirzadeh, A., Kenton, Z., Brown, S., Hawkins, W., Stepleton, T., Biles, C., Birhane, A., Haas, J., Rimell, L., Hendricks, L. A., … Gabriel, I. (2021). Ethical and social risks of harm from Language Models (Version 1) [Article]. arXiv. https://doi.org/10.48550/arxiv.2112.04359
  6. Hendrycks, D., Carlini, N., Schulman, J., & Steinhardt, J. (2021). Unsolved Problems in ML Safety (Version 5) [Article]. arXiv. https://doi.org/10.48550/arxiv.2109.13916
  7. Park, P. S., Goldstein, S., O’Gara, A., Chen, M., & Hendrycks, D. (2024). AI deception: A survey of examples, risks, and potential solutions. Patterns, 5(5), Article 100988. https://doi.org/10.1016/j.patter.2024.100988
  8. Evans, O., Cotton-Barratt, O., Finnveden, L., Bales, A., Balwit, A., Wills, P., Righetti, L., & Saunders, W. (2021). Truthful AI: Developing and governing AI that does not lie (Version 1) [Article]. arXiv. https://doi.org/10.48550/arxiv.2110.06674
  9. Li, K., Hopkins, A. K., Bau, D., Viégas, F., Pfister, H., & Wattenberg, M. (2022). Emergent World Representations: Exploring a Sequence Model Trained on a Synthetic Task (Version 5) [Article]. arXiv. https://doi.org/10.48550/arxiv.2210.13382
  10. Gurnee, W., & Tegmark, M. (2023). Language Models Represent Space and Time (Version 3) [Article]. arXiv. https://doi.org/10.48550/arxiv.2310.02207
  11. Azaria, A., & Mitchell, T. (2023). The Internal State of an LLM Knows When It’s Lying. Findings of the Association for Computational Linguistics: EMNLP 2023, 967–976. https://doi.org/10.18653/v1/2023.findings-emnlp.68
  12. Bubeck, S., Chandrasekaran, V., Eldan, R., Gehrke, J., Horvitz, E., Kamar, E., Lee, P., Lee, Y. T., Li, Y., Lundberg, S., Nori, H., Palangi, H., Ribeiro, M. T., & Zhang, Y. (2023). Sparks of Artificial General Intelligence: Early experiments with GPT-4 (Version 5) [Article]. arXiv. https://doi.org/10.48550/arxiv.2303.12712
  13. Alain, G., & Bengio, Y. (2016). Understanding intermediate layers using linear classifier probes (Version 4) [Article]. arXiv. https://doi.org/10.48550/arxiv.1610.01644
  14. Marks, S., & Tegmark, M. (2023). The Geometry of Truth: Emergent Linear Structure in Large Language Model Representations of True/False Datasets (Version 3) [Article]. arXiv. https://doi.org/10.48550/arxiv.2310.06824
  15. Zou, A., Phan, L., Chen, S., Campbell, J., Guo, P., Ren, R., Pan, A., Yin, X., Mazeika, M., Dombrowski, A.-K., Goel, S., Li, N., Byun, M. J., Wang, Z., Mallen, A., Basart, S., Koyejo, S., Song, D., Fredrikson, M., … Hendrycks, D. (2023). Representation Engineering: A Top-Down Approach to AI Transparency (Version 4) [Article]. arXiv. https://doi.org/10.48550/arxiv.2310.01405
  16. Farquhar, S., Varma, V., Kenton, Z., Gasteiger, J., Mikulik, V., & Shah, R. (2023). Challenges with unsupervised LLM knowledge discovery (Version 2) [Article]. arXiv. https://doi.org/10.48550/arxiv.2312.10029
  17. Levinstein, B. A., & Herrmann, D. A. (2024). Still no lie detector for language models: probing empirical and conceptual roadblocks. Philosophical Studies, 182(7), 1539–1565. https://doi.org/10.1007/s11098-023-02094-3
  18. Laurito, W., Maiya, S., Dhimoïla, G., Yeung, O. H. W., & Hänni, K. (2024). Cluster-Norm for Unsupervised Probing of Knowledge. Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, 14083–14112. https://doi.org/10.18653/v1/2024.emnlp-main.780