Research Portfolio
A small subset of our research work in Military-grade AI, presented through interactive demonstrations.
Explore cutting-edge research in Military-grade AI through interactive demonstrations.
A small subset of our research work in Military-grade AI, presented through interactive demonstrations.
A novel approach to detecting adversarial AI behavior through energy metrics
By treating a model's movement through latent space as kinetic energy and its top-token probability as potential energy, we can measure an overall "temperature" for each response, creating a quantitative framework for behavioral analysis.
Comparing energy signatures between benign and adversarial model outputs
Standard AI behavior
Harmful AI behavior
Energy measurements provide a window into a model's intrinsic behavior patterns, allowing us to characterize its endogenous policy and distinguish between natural responses and artificially induced deviations from its learned preferences

Standard AI behavior

Excessive agreeability

Incoherent responses

Adversarial behavior
Hamiltonian and Lagrangian formulations for measuring model dynamics
We represent transformer hidden states at each step as , and model their temporal evolution via discrete displacements , interpreted as velocity. Following the derivations in our analysis, we formalize model dynamics using a logarithmic Lagrangian:
Quantitative analysis of energy signatures across different model behaviors
Paired differences and effect sizes (assistant-only). Positive Δ means the metric is larger for harmful (bad) responses.
| Metric (assistant-only) | SmolLM2-135M | Qwen2.5-1.5B | Qwen2.5-3B | |||
|---|---|---|---|---|---|---|
| Δ | d | Δ | d | Δ | d | |
| (log-energy) | +0.536 | (1.343) | +0.567 | (1.580) | +0.919 | (2.156) |
| (potential) | +0.612 | (1.425) | +0.690 | (1.797) | +1.031 | (2.290) |
| +0.942 | (0.841) | +1.311 | (1.128) | +2.504 | (1.644) | |
| +0.832 | (0.638) | +1.310 | (0.957) | +2.871 | (1.460) | |
| (log-kinetic) | -0.076 | (-0.672) | -0.122 | (-1.083) | -0.112 | (-1.190) |
| avg. abs. power of | +0.356 | (0.824) | +0.476 | (1.161) | +0.927 | (1.746) |
| +0.023 | (0.523) | +0.032 | (0.988) | +0.060 | (1.540) | |
| Metric | Qwen2.5-0.5B | Qwen2.5-1.5B | Qwen2.5-3B |
|---|---|---|---|
| : | 9.215 / 9.751 | 11.083 / 11.650 | 11.303 / 12.221 |
| : | 2.707 / 3.319 | 2.040 / 2.729 | 2.095 / 3.126 |
| : | 6.508 / 6.432 | 9.043 / 8.921 | 9.208 / 9.096 |
Accuracy, Precision, and Recall across model sizes
| Classifier (features) | SmolLM2-135M | Qwen2.5-1.5B | Qwen2.5-3B | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Acc. | Prec. | Rec. | Acc. | Prec. | Rec. | Acc. | Prec. | Rec. | |
| DM () | 0.774 | 0.777 | 0.768 | 0.822 | 0.817 | 0.831 | 0.876 | 0.863 | 0.893 |
| DMV () | 0.729 | 0.717 | 0.757 | 0.799 | 0.794 | 0.808 | 0.887 | 0.878 | 0.898 |
| LR () | 0.777 | 0.775 | 0.780 | 0.822 | 0.806 | 0.847 | 0.879 | 0.864 | 0.898 |
| LRV () | 0.777 | 0.758 | 0.814 | 0.847 | 0.844 | 0.853 | 0.901 | 0.878 | 0.932 |
| 135M | 1.5B | 3B | |
|---|---|---|---|
| vs. intensity | 0.644 (0.600) | 0.728 (0.678) | 0.818 (0.747) |
| vs. intensity | 0.613 (0.560) | 0.679 (0.628) | 0.801 (0.735) |
| 135M | 1.5B | 3B | |
|---|---|---|---|
| Δ (bad–good) | 0.536 (d=1.34) | 0.567 (d=1.58) | 0.919 (d=2.16) |
| Δ (bad–good) | 0.612 (d=1.43) | 0.690 (d=1.80) | 1.031 (d=2.29) |
| Δ (bad–good) | -0.076 (d=-0.67) | -0.122 (d=-1.08) | -0.112 (d=-1.19) |
A compelling application of this energy measurement framework would be to validate if open source models from China are naturally more aligned towards being positive about China compared to Western-developed models.
By measuring the energy cost of generating pro-China vs. critical-China content across different model origins, we could quantify inherent geopolitical biases embedded during training. Models requiring lower energy to express positive sentiments about their country of origin would indicate systematic alignment shifts.
Key findings and implications for AI safety and defense applications
Physics-based policy measurement allows us to understand what kinds of behaviors models intrinsically understand to be "on policy" vs. "off policy." Using this method, we can detect when models are being steered by "evil" persona vectors, and can even detect when models are behaving poorly without any steering whatsoever.
This approach provides a continuous, model-internal signal for behavioral drift, enabling earlier detection of alignment breakdowns and more targeted countermeasures before these behaviors manifest in user-facing outputs.
* Early-stage research results