Goto

Collaborating Authors

 regression


Robustness Quantification of Tail-trimming Effects for Interval CVaR Based Nonlinear Regression

arXiv.org Artificial Intelligence

Tail trimming is a widely adopted strategy for achieving robustness against outlier contamination in statistical learning. However, a thorough understanding of the extent to which tail trimming is effective for robust nonlinear regression remains largely lacking. In this paper, we investigate robust nonlinear regression through the lens of the interval conditional value-at-risk (In-CVaR), which guards against outliers by trimming extreme losses. We first characterize the trimming effect of the In-CVaR based estimator under distributional perturbation. Specifically, we establish that the In-CVaR based estimator is qualitatively robust with respect to the Prokhorov metric if and only if the largest portion of losses is trimmed. Furthermore, under sample contamination, we derive a probably approximately correct (PAC) bound for the In-CVaR based estimator, revealing that the preliminary covariate filtering commonly performed in the literature is in fact unnecessary for In-CVaR based regression. The nonconvexity of the In-CVaR objective, coupled with the unboundedness of the covariate, response, and parameter spaces, poses substantial technical challenges that necessitate new treatments of both qualitative robustness and PAC analysis. Overall, this study elucidates to what extent right-tail trimming of the loss via the In-CVaR risk measure is essential and effective for robust nonlinear regression. These theoretical findings are further supported by numerical experiments.


The Value of Labels in Data Selection for Least Squares

arXiv.org Artificial Intelligence

Suppose a selector sees a finite labeled dataset and chooses $n$ of its rows, with repetition. Ordinary least squares is then fitted to the rows that were chosen, without weights, and the excess loss of the fit on the full dataset is measured in units of the optimal loss. Without further assumptions its worst case does not decay with $n$. We examine the problem for $d$ features, $m$ labels per row and rows of normalized leverage at most $ฮบ$, and determine or bound the leading constants. A selector that must establish its rule before seeing the labels has an optimal worst-case ratio of $dฮบ/n$ to leading order, whatever use it makes of the features. With scalar labels, a selector that sees the labels obtains a value between $dฮบ/(2n)$ and $c_*dฮบ/n$ to leading order, where $c_*<1$ does not depend on $d$, so that its gain does not disappear as $d$ grows. For $d\le4$, the constant is $dฮบ/2$, so that labels are worth exactly a factor of two there. The selector rounds the counts of rare rows and, by changing the proportions of the frequent rows, reshapes its own design matrix. With two or more labels an adversary is able to use one label to penalize these changes. The constants then lie between $dฮบ\,ฮ“_{d,m-1}$ and $dฮบ\,ฮ“_{d,m}$, where $ฮ“_{d,p}$ is the constant of rounding sums of rank-one $d\times p$ matrices, and for fixed $m\ge2$ labels are worth a factor that tends to one as $d$ grows. For grouped designs with scalar labels, in which reshaping amounts to the allocation of a common budget, the constants are $27d/128$ up to an additive constant, compared with $d$ without labels. Nevertheless, for scalar labels $dฮบ/2$ is not the constant in every dimension: for every $ฮบ>1$, every $c


pyconformal: Exact and Fast Conformal Prediction for Tabular Data and Time Series

arXiv.org Artificial Intelligence

Conformal prediction is used for its guarantee: if calibration and test data are exchangeable, a 90% split-conformal interval covers at least 90% of the time, for any model and any calibration size. That guarantee belongs to an exact procedure, and software loses it through small choices. We audited thirteen Python and R packages on data where the guarantee must hold, reading five conformal libraries module by module, and found about thirty faults. Two forecasting libraries cover 63% at a 90% target with their default of two calibration windows. One library's prediction sets cover 45% when rows are predicted one at a time. Two implementations of adaptive conformal inference clip the working level and lose the guarantee that defines the method. The basic split-conformal routines of the main libraries met their level in every test. We present pyconformal, an MIT-licensed package that implements about thirty conformal methods for regression, classification, probability calibration, predictive distributions, time series and panel data behind one interface. Every method is tested against its definition, against reference code where it exists, and against its guarantee. The package also contains algorithmic improvements: an exact Venn-Abers kernel in integer arithmetic, rank trees for online methods, closed forms for conformal predictive distributions, CV+ in 3 megabytes where MAPIE needs 3 gigabytes, and a repaired rule for conformal interquantile regression. With identical output, Venn-Abers calibration on a million points takes 0.37 seconds against 75 in the reference implementation, and conformal predictive intervals for a million test points take 0.01 seconds against 79 in crepes. We describe the design, the algorithms and what each gains in time and memory, the verification method, the audit and the benchmarks.


Recurrent In-Context Learning for Tabular Foundation Models

arXiv.org Artificial Intelligence

Tabular foundation models predict unlabelled rows from labelled rows in a single forward pass via in-context learning (ICL). Like language models, these architectures have scaled by stacking transformer blocks, each with its own parameters. However, this approach couples compute with model size: increasing computation requires increasing the parameter count. In this work, we investigate whether tabular ICL requires distinct parameters at every block, or simply sufficient depth. We introduce Tab-Loop, a looped tabular foundation model built on the TabICLv2 architecture. Instead of stacking unique blocks, Tab-Loop takes a small set of blocks with shared parameters and applies them repeatedly in a loop during its ICL stage. We evaluate this design against standard architectures under equal training and inference compute budgets. Our experiments show that depth, rather than unique parameters, drives performance. Across classification and regression tasks on held-out synthetic tables, the TabArena and TALENT benchmarks, Tab-Loop matches the accuracy of a standard model with three times as many ICL blocks while using roughly 60% fewer parameters. Conversely, a non-looped baseline of the same size as Tab-Loop underperforms it, even when trained on 32% more tables. This pattern holds consistently whether we vary the number of distinct blocks from one to twelve or the effective depth. Furthermore, running additional loops at inference improves predictive accuracy without retraining. Training the model with deeper loops extends the range over which these extra inference steps remain beneficial, eventually matching the released TabICLv2 on TabArena at 2.7 times the ICL compute. These results show that tabular foundation models can scale their compute independently of parameter count, pointing to test-time compute scaling as a practical path toward efficient tabular models.


Fisher-R1: Training LLM Agents for Reliable Hypothesis Testing

arXiv.org Artificial Intelligence

Reliable hypothesis testing is the foundation of many empirical scientific claims. Large language model (LLM) agents are increasingly used to automate this process, as they can inspect datasets, generate code, and produce analyses end-to-end. However, we show that they frequently make subtle inferential errors that lead to incorrect conclusions despite correctly executed analyses. Existing benchmarks fail to capture this failure mode, as they rarely assess whether a reported p-value is statistically valid given the assumptions underlying the data. We address this gap by building P-Bench, a benchmark comprising 425 open-ended, realistic hypothesis-testing tasks spanning economics, biology, and medicine. Each task requires an agent to select a statistical method, compute a p-value, and draw a conclusion given only a scientific hypothesis and a dataset. We further introduce Fisher-R1, an open-weight LLM agent trained for rigorous hypothesis testing using synthetic tasks and reinforcement learning. On P-Bench, Fisher-R1-14B substantially improves over its backbone and outperforms strong proprietary and open-source baselines, including GPT-5.4 and DeepSeekV4-Pro, achieving a 21% average relative improvement in single-trial success over DeepSeek-V4-Pro, with gains up to 26% on the most challenging tasks. Our results demonstrate that current LLM agents lack reliable statistical reasoning for hypothesis testing and that reinforcement learning on tasks with verified statistical reward substantially improves reliability.


VG-GP: Uncertainty-Gated Visuo-Geometric Memory for Negative-Transfer-Resistant Grasp Adaptation

arXiv.org Artificial Intelligence

Pretrained antipodal grasping networks generalize well to canonical shapes but frequently fail zero-shot on novel objects with irregular mass distributions, thin rims, or unfamiliar handles. While episodic experience memory adapts a frozen base policy without retraining, naive retrieval suffers from visual appearance bias, negative transfer from overriding working base grasps, and degenerate closed-loop acquisition. We present VG-GP, a plug-and-play Visuo-Geometric Gaussian Process memory framework for closed-loop $SE(2)$ residual grasp transfer. First, we fuse color-invariant surface-normal DINOv2 features, canonical $SE(2)$ gripper-aligned 3D local heightmaps, and contact-geometry descriptors under a product kernel with Automatic Relevance Determination (ARD) lengthscales learned strictly on source objects. Second, we model the joint posterior over the base grasp and candidate $SE(2)$ alternatives, overriding the base policy only when the joint-covariance Lower Confidence Bound (LCB) clears a risk-sensitive threshold. Third, an online counterfactual curation gate using single-record necessity and sufficiency interventions quarantines source experiences causing negative transfer. Fourth, we close the acquisition loop via Bayesian Expected Improvement (EI) over equal-budget $SE(2)$ probes. Across 42 disjoint YCB objects in ManiSkill3 (20 source, 12 development, 10 held-out test), VG-GP wraps a pretrained GR-ConvNet base policy and raises physical lift rate across all 22 unseen objects from 38.6% (34/88) to 53.4% (47/88) with zero regressions (+13 rescues, 0 losses; object-clustered 95% CI [+6.8%, +22.7%], exact McNemar $p = 0.00024$). On the 10 held-out objects, EI active acquisition reaches 45.0% (18/40 vs. 32.5% base, 5/7 of oracle headroom), achieves 55.0% probe divergence over passive fallback, and monotonically reduces epistemic uncertainty.


$ฮฆ$asmaNet: A Staged Spectral Token-Refinement Architecture for Fast Gravitational-Wave Signal-to-Noise Ratio Prediction

arXiv.org Artificial Intelligence

Quantifying selection effects in gravitational-wave population studies requires millions of costly signal-to-noise ratio (SNR) calculations. We present $ฮฆ$asmaNet, a compact neural architecture for structured tabular regression, with staged spectral refinement as an explicit architectural prior. Learned input tokens are refined through ordered attention-based $ฮฆ$-Stages, each augmented by a $ฮฆ$-Refractor subspace-mixing module, then revisited through gated top-down $ฮฆ$-Feedback. Applied to the 11-dimensional parameters of precessing, higher-mode binary black hole signals (IMRPhenomXPHM), it predicts phase-averaged optimal SNR for a single detector at fixed Advanced LIGO design sensitivity. With approximately 732k parameters, it outperforms MLP, 1D-ResNet and Transformer-encoder baselines under matched training across $10^5$--$10^6$ samples. At $10^6$ samples, it achieves $100-\mathrm{MAPE}=98.73\%$ on the held-out test set, $99.29\%$ after rank-preserving monotonic (PCHIP) calibration, and $99.39\%$ ($R^2=0.9998$) in the detection-relevant regime $ฯ>8$, with stable accuracy across independent dataset realizations. On a single GPU, it sustains approximately $1.2\times10^5$ SNR evaluations per second and processes a $10^6$-injection catalogue end-to-end in approximately 8.3 s, about two orders of magnitude faster than conventional waveform-and-inner-product calculations on a 16-core CPU. Exact distance rescaling through $ฯ\propto1/d_L$ supports repeated catalogue-wide detectability evaluations. The fully documented pipeline is intended as a reproducible benchmark, while results on public tabular datasets indicate competitiveness beyond gravitational-wave applications. Although demonstrated for a fixed single-detector configuration, the construction supports extensions to detector networks and epoch-specific sensitivities. (Abridged)


Agentic Harness Engineering: Observability-Driven Automatic Evolution of Coding-Agent Harnesses

arXiv.org Artificial Intelligence

Harnesses are now central to coding-agent performance, mediating how models interact with tools and execution environments. Yet harness engineering remains a manual craft, because automating it faces a heterogeneous action space across editable components, voluminous trajectories that bury actionable signal, and edits whose effect is hard to attribute. We introduce Agentic Harness Engineering (AHE), a closed loop that addresses these challenges through three matched observability pillars: (1) component observability gives every editable harness component a file-level representation so the action space is explicit and revertible; (2) experience observability distills millions of raw trajectory tokens into a layered, drill-down evidence corpus that an evolving agent can actually consume; and (3) decision observability pairs every edit with a self-declared prediction, later verified against the next round's task-level outcomes. Together, these pillars turn every edit into a falsifiable contract, so harness evolution proceeds autonomously without collapsing into trial-and-error. Empirically, ten AHE iterations lift pass@1 on Terminal-Bench 2 from 69.7% to 77.0%, surpassing the human-designed harness Codex-CLI (71.9%) and the self-evolving baselines ACE and TF-GRPO. The frozen harness transfers without re-evolution: on SWE-bench-verified it tops aggregate success at 12% fewer tokens than the seed, and on Terminal-Bench 2 it yields +5.1 to +10.1pp cross-family gains across three alternate model families, indicating the evolved components encode general engineering experience rather than benchmark-specific tuning. Ablations localize the gain to tools, middleware, and long-term memory rather than the system prompt, suggesting factual harness structure transfers while prose-level strategy does not.


The Geometric Wall: Manifold Structure Predicts Layerwise Sparse Autoencoder Scaling Laws

arXiv.org Artificial Intelligence

Sparse autoencoders (SAEs) operationalise the linear representation hypothesis: they reconstruct model activations as sparse linear combinations of dictionary atoms hypothesised to represent meaningful linear directions. Their reconstruction error varies sharply across layers in ways that existing scaling laws, fitted at a single layer, do not explain. We contend that this variation is the empirical trace of the changing geometric structure of activation manifolds across depth: as their intrinsic dimension and curvature vary from layer to layer, so does the difficulty of approximating them with sparse linear dictionaries, and SAE widthsparsity scaling becomes a layer-dependent function of manifold structure rather than a single universal law. We conduct the first cross-layer SAE scaling study, fitting per-layer scaling-law surfaces to 844 residual-stream Gemma Scope SAE checkpoints spanning all 68 layers of Gemma 2 2B and 9B, and relating the fitted scaling parameters to four geometric summaries of the activation manifold. We find that manifold geometry predicts the per-layer width-scaling exponent in both models, explaining variation that cannot be reliably captured by layer depth alone. A controlled experiment on 150 synthetic manifolds, where intrinsic dimension and curvature vary independently, further reveals two distinct geometric contributions: intrinsic dimension governs the rate at which reconstruction improves with dictionary width, while curvature governs the residual error at the largest trained width. At the six Gemma showcase layers where richer width grids permit identification of an asymptotic floor, the fitted floors follow the same geometric ordering, consistent with the second-order residual that sparse linear approximations of curved manifolds can leave behind. SAEs thus encounter not merely a finite-resource ceiling but a geometric wall set by the manifold they are trying to reconstruct.


Random Feature Neural Networks for Stochastic Optimal Control

arXiv.org Artificial Intelligence

Random feature neural networks (RFNNs) sample their hidden parameters once and train only the output layer. We analyze RFNNs as feedback policies for finite-horizon stochastic control with trajectory-dependent objectives. A policy change alters later states, so the error that matters is the objective error of the induced trajectory rather than a pointwise regression error. We extend the quantitative random-feature approximation theory for PDE solutions and nonlinear regression to feedback control. We investigate the objective error of an RFNN policy through two sources, approximation of the policy by random features and estimation of the objective from finitely many paths. A stability estimate for the controlled trajectory turns a policy error into an objective error. Under bounded actions, a regular benchmark policy and exact empirical minimization, the expected objective gap to the benchmark policy is at most of order $N^{-1/2}+\sqrt{N(1+\log N)/n}$, with $N$ the feature width per output coordinate and $n$ the number of paths. At fixed sample size the two terms trade off in $N$, and balancing them gives $N\asymp\sqrt{n/\log n}$. Across a wide range of examples, estimated gaps generally decrease with width and sample size, and RFNNs show an advantage when simulated paths are limited. We also study Parsimonious Random Feature Learning (PRFL), which grows and prunes the random dictionary during training while training only the output coefficients. At matched retained width and training budget, PRFL improves on a fixed RFNN in the LQ and Heston comparisons, while the fully trained network remains best in those examples.