William Cao
· 4 previous affiliations
- Walrus SecuritySince 2025
- Software Engineer · Since 2025
- Non-Trivial2024–2025
- Independent Researcher · 2024–2025
- Research Assistant · 2021–2024
- Master of Science - MS, Computer Science · 2022–2024
- Bachelor's degree, Computer Science and Mathematics · 2018–2022
- Discover2018–2022
- Undergrad student · 2018–2022
Research Overview
William Cao focuses on the intersection of tractable probabilistic modeling, probabilistic programming, and the interpretability of large language models. His work addresses the computational challenges of performing exact and efficient inference in discrete domains, particularly through the use of probabilistic circuits and structured encoding strategies. More recently, his research has expanded to include the development of training-free methods for detecting hallucinations in generative AI by analyzing the intrinsic dimensionality of intermediate model layers.
Research Trajectory
Cao’s research trajectory is characterized by a progression from foundational problems in probabilistic programming to the application of geometric and structural insights in neural architectures. In 2023, his work primarily addressed the limitations of existing probabilistic programming languages (PPLs) when handling high-dimensional discrete distributions. Traditional PPL inference strategies, such as sampling or differentiation, often struggle with the rigid structure of integer arithmetic. Cao’s research introduced methods to exploit the logical structure inherent in arithmetic operations, such as summation and comparison, to scale inference in these complex settings.
In 2024, Cao’s focus shifted toward the theoretical and practical properties of Probabilistic Circuits (PCs). While PCs are typically employed to compute probability mass functions (PMFs) or probability density functions (PDFs), his work investigated the utility of PCs for computing cumulative distribution functions (CDFs). This research established formal equivalences between PMF and CDF representations for various variable types, demonstrating that transformations between these representations can be achieved in polynomial time under specific structural constraints. This work contributed to the broader understanding of how tractable models can be adapted for different types of probabilistic queries.
By 2026, Cao’s research moved into the domain of large language model (LLM) reliability. This work addresses the "black box" nature of LLMs by identifying where and how factual information is stored within their architectures. By moving away from purely symbolic probabilistic methods toward the analysis of neural activations, Cao has developed methods to detect hallucinations without the need for additional training or fine-tuning. This current phase of research emphasizes the use of intrinsic dimensionality as a metric for identifying the most informative layers within a model, alongside strategies to mitigate noise in long-form AI-generated content.
Current Directions
Cao’s current research is centered on improving the transparency and truthfulness of generative models. A primary focus is the refinement of hallucination detection methods that do not require the computational overhead of retraining. This involves the development of automated layer selection techniques that pinpoint the specific intermediate representations where a model’s "internal truth" is most likely to reside. By identifying the first peak in the intrinsic dimensionality of the data, this approach seeks to isolate factual representations from the noise that often accumulates in the final layers of a model.
Furthermore, Cao is investigating strategies to improve the processing of long-form generated text. This includes techniques like First-Sentence Truncation (FST), which aims to reduce the accumulation of errors in extended model outputs. This line of work suggests a continued interest in the structural properties of information, whether that information is represented as discrete integers in a probabilistic program or as high-dimensional vectors in a transformer-based model.
Representative Work
In Scaling integer arithmetic in probabilistic programs, Cao (as first author) addresses the ubiquity of integer distributions in probabilistic modeling and the failure of standard PPL inference strategies to scale for high-dimensional discrete distributions. The paper identifies that many current approaches fail to utilize the inherent structure of arithmetic. Cao proposes a binary encoding strategy for discrete distributions that leverages the logical structure of operations like summation and comparison. By employing knowledge compilation techniques, the work demonstrates how these structured encodings can be used to perform more efficient inference than traditional enumeration or sampling methods.
In Probabilistic Circuits for Cumulative Distribution Functions, Cao (as second author) explores the representational capabilities of probabilistic circuits. While PCs are widely used for PMF and PDF computation, this research considers their application to CDFs. The work proves that for distributions over binary random variables, PMF and CDF representations are essentially equivalent and can be transformed into one another in polynomial time. The paper extends this equivalence to distributions over finite discrete variables, providing a theoretical framework for utilizing PCs in a wider range of probabilistic inference tasks where cumulative values are required.
In Automatic Layer Selection for Hallucination Detection, Cao (as second author) introduces methods to improve the reliability of LLMs. The research is based on the observation that an LLM's factual accuracy is often concentrated in its intermediate layers. To solve the problem of identifying the optimal layer for truthfulness detection, the paper introduces FEPoID, a training-free method that automatically selects the most informative layer by identifying the first peak in the intrinsic dimensionality of the data. Additionally, the work proposes First-Sentence Truncation (FST) as a strategy to avoid the noise and potential hallucinations that tend to accumulate toward the end of long AI-generated responses.
Profile updated
| Title | Venue | Year |
|---|---|---|
| Automatic Layer Selection for Hallucination Detection | ICML | 2026 |
| Probabilistic Circuits for Cumulative Distribution Functions | TPM @ UAI | 2024 |
| Scaling integer arithmetic in probabilistic programs | UAI | 2023 |
Loading new papers…
Other researchers whose papers cluster into the same research directions — a proxy for overlapping technical interests and shared intellectual neighborhoods.
See something wrong? Report a mistake