arXiv Science⌕ Search

arXiv subjects

Jonathan Fan

Publications and source records attributed to Jonathan Fan.

6 recordsLinked to original sources

Do You Feel Dizzy? A Language Model That Senses Its Own Precision

We feel dizzy when our senses conflict, and we can say so. Language models are largely unaware of the substrate they run on, so the subtle errors of increasingly complex and distributed deployments currently rely on external tools to be identified. We argue that the model should be the source of truth about its own condition, and we give it a sense of its running precision. Training without an added sense cannot tell the finest formats apart, so we combine design with learning. We hand-build a sensory token whose signal is written by the rounding of the precision itself, add neurons that broadcast and wire this sense, and train only the wiring, leaving every weight the model uses untouched. On llama.cpp's ARM CPU backend, two models from different families then name which of nine precisions they run at, from 32-bit floats to 2-bit integers, in 99.9% and 98.9% of trials, with no significant change in math accuracy. Causal tests confirm that the answers come from this sense, and tests on four backends show that it reads the arithmetic that actually runs. This is a first step toward models that diagnose their own computation and judge what they can still do.

cs.CL↗

A minimal probe of task modeling in language models

Language models read long contexts and score well on knowledge and reasoning benchmarks, but neither shows whether a model can do work whose next step depends on everything that came before, as a long-running agent must. We call this ability task modeling and propose counting identical items as its simplest test: every item adds to the total and no item records it. We define counting capacity (CC) as the sequence length up to which a model returns the exact count more often than not, and measure it for 205 models. Every resolved measurement loses count abruptly, at a median of 50 items and at most 627; across release years the median rose 1.6-fold while context windows grew about 80-fold. Changing the counted symbol or the delimiter moves a model's CC severalfold, yet the model accounts for about three quarters of the variance across 16 models and 11 encodings. Reasoning leaves the median CC unchanged across 77 matched pairs. In six open-weight models the count stays readable in early layers past the boundary but does not reach the output, and an activation edit that carries the count forward also carries the state of an object-tracking task. CC tracks the METR task horizon after controlling for general capability, and rises with capacity on grid-execution tasks and, with reasoning off, on object tracking. We do not show that counting is necessary or sufficient for long-horizon work; that remains a hypothesis, which this cheap measurement can test.

cs.CL↗

Characterizing and Optimizing the Spatial Kernel of Multi Resolution Hash Encodings

Multi-Resolution Hash Encoding (MHE), the foundational technique behind Instant Neural Graphics Primitives, provides a powerful parameterization for neural fields. However, its spatial behavior lacks rigorous understanding from a physical systems perspective, leading to reliance on heuristics for hyperparameter selection. This work introduces a novel analytical approach that characterizes MHE by examining its Point Spread Function (PSF), which is analogous to the Green's function of the system. This methodology enables a quantification of the encoding's spatial resolution and fidelity. We derive a closed-form approximation for the collision-free PSF, uncovering inherent grid-induced anisotropy and a logarithmic spatial profile. We establish that the idealized spatial bandwidth, specifically the Full Width at Half Maximum (FWHM), is determined by the average resolution, $N_{\text{avg}}$. This leads to a counterintuitive finding: the effective resolution of the model is governed by the broadened empirical FWHM (and therefore $N_{\text{avg}}$), rather than the finest resolution $N_{\max}$, a broadening effect we demonstrate arises from optimization dynamics. Furthermore, we analyze the impact of finite hash capacity, demonstrating how collisions introduce speckle noise and degrade the Signal-to-Noise Ratio (SNR). Leveraging these theoretical insights, we propose Rotated MHE (R-MHE), an architecture that applies distinct rotations to the input coordinates at each resolution level. R-MHE mitigates anisotropy while maintaining the efficiency and parameter count of the original MHE. This study establishes a methodology based on physical principles that moves beyond heuristics to characterize and optimize MHE.

cs.CV↗

Hydrogel-to-Aerogel Transitions in Polymer-Particle Hydrogels Expand the Wildfire Defense Window

The 2025 Los Angeles wildfires caused widespread urban destruction and displacement, and severe economic losses, highlighting the urgent need for better fire retardants. Current fire suppression strategies rely heavily on water, chemical fire retardants, and water-enhancing gels, which use superabsorbent polymers to retain water and adhere to substrates, offering extended fire protection compared to water alone. However, their effectiveness is limited by evaporation and degradation under extreme heat and wind conditions. This study investigates the thermal properties, evaporation dynamics, and fire retardancy mechanisms of a novel polymer-particle (PP) hydrogel with aerogel-forming capabilities. The boiling-induced water vapor expansion and bubble nucleation drive the transformation of the hydrogel into a highly porous, foam-like fire-retardant coating upon rapid heat desiccation, enhancing thermal insulation. By evaluating the retardancy window across different evaporation stages under high heat and wind conditions, this study aims to determine the duration, effectiveness, and governing physical mechanisms of this unique retardant system. These findings provide a framework for designing the next generation of fire retardants with optimized thermal stability and extended protection for wildfire mitigation.

cond-mat.mtrl-sci↗

FOLIO: Natural Language Reasoning with First-Order Logic

Large language models (LLMs) have achieved remarkable performance on a variety of natural language understanding tasks. However, existing benchmarks are inadequate in measuring the complex logical reasoning capabilities of a model. We present FOLIO, a human-annotated, logically complex and diverse dataset for reasoning in natural language (NL), equipped with first-order logic (FOL) annotations. FOLIO consists of 1,430 examples (unique conclusions), each paired with one of 487 sets of premises used to deductively reason for the validity of each conclusion. The logical correctness of the premises and conclusions is ensured by their FOL annotations, which are automatically verified by an FOL inference engine. In addition to the main NL reasoning task, NL-FOL pairs in FOLIO constitute a new NL-FOL translation dataset. Our experiments on FOLIO systematically evaluate the FOL reasoning ability of supervised fine-tuning on medium-sized language models. For both NL reasoning and NL-FOL translation, we benchmark multiple state-of-the-art language models. Our results show that a subset of FOLIO presents a challenge for one of the most capable {Large Language Model (LLM)} publicly available, GPT-4.

cs.CL↗

Design space reparameterization enforces hard geometric constraints in inverse-designed nanophotonic devices

Inverse design algorithms are the basis for realizing high-performance, freeform nanophotonic devices. Current methods to enforce geometric constraints, such as practical fabrication constraints, are heuristic and not robust. In this work, we show that hard geometric constraints can be imposed on inverse-designed devices by reparameterizing the design space itself. Instead of evaluating and modifying devices in the physical device space, candidate device layouts are defined in a constraint-free latent space and mathematically transformed to the physical device space, which robustly imposes geometric constraints. Modifications to the physical devices, specified by inverse design algorithms, are made to their latent space representations using backpropagation. As a proof-of-concept demonstration, we apply reparameterization to enforce strict minimum feature size constraints in local and global topology optimizers for metagratings. We anticipate that concepts in reparameterization will provide a general and meaningful platform to incorporate physics and physical constraints in any gradient-based optimizer, including machine learning-enabled global optimizers.

physics.app-ph↗