When the Next Step Is Not One Step: Distribution-Aware Execution Modeling for Concurrent Go Programs
- URL: http://arxiv.org/abs/2606.17508v1
- Date: Tue, 16 Jun 2026 04:40:04 GMT
- Title: When the Next Step Is Not One Step: Distribution-Aware Execution Modeling for Concurrent Go Programs
- Abstract summary: Training a model to predict the next step in a concurrent program is harder than it looks, because the scheduler is nondeterministic.<n>We run each program many times, aggregate the observed next events into an empirical distribution, and fine-tune a 7B model to match that distribution with a KL objective.<n>On 798 held-out predictions drawn from real production Go bugs, fine-tuning on fewer than a thousand traces reaches 36.2% accuracy.<n>We derive a formal goroutine-leak signature for a class of select-blocked goroutines where P(GoUnblock) holds by scheduler semantics, not by learning
- Score: 0.0
- License: http://creativecommons.org/licenses/by/4.0/
- Abstract: Training a model to predict the next step in a concurrent program is harder than it looks: two runs of the same program from the same trace prefix can produce different next events, both valid, because the scheduler is nondeterministic. A model trained against a single label is learning to guess one outcome of a random process. We turn this around and use the nondeterminism as a training signal. We run each program many times, aggregate the observed next events into an empirical distribution, and fine-tune a 7B model to match that distribution with a KL objective. On 798 held-out predictions drawn from real production Go bugs (CockroachDB, Kubernetes, gRPC, etcd), fine-tuning on fewer than a thousand traces reaches 36.2% accuracy, ahead of Gemini 3.5 Flash used zero-shot (34.8%) and the same model without fine-tuning (28.6%). Distribution training matches cross-entropy on accuracy (35.8% vs. 36.2%) while reducing Expected Calibration Error from 0.205 to 0.169. We also derive a formal goroutine-leak signature for a class of select-blocked goroutines where P(GoUnblock)=0 holds by scheduler semantics, not by learning. We release the dataset, trained adapters, and all tooling.
Related papers
- Improving Few-Step Language Flows with Untied Self-Conditioning [17.95725125716772]
Flow-matching language models refine all token positions in parallel and can trade sampling steps for latency.<n>We trace a source of this degradation to a train--inference mismatch in previous-prediction self-conditioning.<n>We show that the mismatch degrades both the self-conditioning input and the solver update, and derive a correction for each from the model's own structure.
arXiv Detail & Related papers (2026-08-23T06:46:17Z) - CaliBench: Are the Stochastic Dynamics of Video World Models Physically Calibrated? [6.39120343569684]
CaliBench scores outcomes in a discrete space rather than a learned feature space such as in FID.<n>We decompose performance into two axes that a single accuracy metric conflates: scorability, the fraction of generations yielding a scoreable outcome, and calibration, the total variation distance from the reference on that sample.<n>We apply it to nine scenes and six image-to-video models (WAN-2.7, SeeDance-2.0, HappyHorse-1.0, Veo 3.1, Runway Gen-4.5, Cosmos3-Super), 32 generations each.
arXiv Detail & Related papers (2026-08-17T17:14:50Z) - Automated Proving of Shannon-Type Entropy Inequalities via Fine-Tuned Language Models and Guided Tree Search [50.16356451328644]
Proving Shannon-type entropy inequalities is a fundamental task in information theory.<n>We investigate whether small-scale large language models, fine-tuned on atomic proof steps, can automate this process.<n>We show that GPT-5.5 solves 1.7% samples under zero-shot prompting while Psitip solves 33.3% samples.
arXiv Detail & Related papers (2026-06-04T05:43:12Z) - Off-the-Shelf LLMs as Process Scorers: Training-Free Alternative to PRMs for Mathematical Reasoning [51.88950852117154]
Chunk-Level Guided Generation is a training-free alternative that uses an off-the-shelf large language model as a process scorer.<n>We show that scoring variable-length reasoning steps with large-model likelihoods is unreliable due to a systematic length bias.<n>Chunk-Level Guided Generation produces substantially shorter reasoning traces than PRM guided search.
arXiv Detail & Related papers (2026-06-01T04:43:36Z) - Sparse Regression under Correlation and Weak Signals: A Reproducible Benchmark of Classical and Bayesian Methods [1.6679662639178268]
We benchmark six sparse regression methods on synthetic data.<n>Bayesian methods win on prediction error (MSE 72 vs. 108-267), and the Horseshoe delivers near-nominal 95% coverage (94.8%)<n>For variable selection, Lasso and Spike-and-Slab tie at F1 0.47, making Lasso the practical default when posteriors are not needed.
arXiv Detail & Related papers (2026-04-04T15:46:44Z) - CORE: Collaborative Reasoning via Cross Teaching [11.841736034560187]
Collaborative Reasoning (CORE) is a training-time collaboration framework that converts peer success into a learning signal.<n>We evaluate CORE across four standard reasoning datasets GSM8K, MATH, AIME, and GPQA.
arXiv Detail & Related papers (2026-01-29T12:07:54Z) - Resolving Predictive Multiplicity for the Rashomon Set [25.615527704500987]
A Rashomon set'' of models achieve similar accuracy but diverges in their individual predictions.<n>We propose three approaches to reduce inconsistency among predictions for the members of the Rashomon set.
arXiv Detail & Related papers (2026-01-14T02:02:54Z) - Catch Your Breath: Adaptive Computation for Self-Paced Sequence Production [55.76222360698305]
We explore a class of supervised training objectives that allow a language model to dynamically and autonomously scale the number of compute steps used for each input token.<n>For any token, the model can request additional compute steps by emitting a don't know> output.<n>We find that the CYB model requests additional steps when doing so improves accuracy, and the model adapts its processing time to token-level complexity and context.
arXiv Detail & Related papers (2025-10-13T21:07:05Z) - Language models scale reliably with over-training and on downstream tasks [121.69867718185125]
Scaling laws are useful guides for derisking expensive training runs.
However, there remain gaps between current studies and how language models are trained.
In contrast, scaling laws mostly predict loss on inference, but models are usually compared on downstream task performance.
arXiv Detail & Related papers (2024-03-13T13:54:00Z) - Consistent Diffusion Models: Mitigating Sampling Drift by Learning to be
Consistent [97.64313409741614]
We propose to enforce a emphconsistency property which states that predictions of the model on its own generated data are consistent across time.
We show that our novel training objective yields state-of-the-art results for conditional and unconditional generation in CIFAR-10 and baseline improvements in AFHQ and FFHQ.
arXiv Detail & Related papers (2023-02-17T18:45:04Z) - Learning from Self-Sampled Correct and Partially-Correct Programs [96.66452896657991]
We propose to let the model perform sampling during training and learn from both self-sampled fully-correct programs and partially-correct programs.
We show that our use of self-sampled correct and partially-correct programs can benefit learning and help guide the sampling process.
Our proposed method improves the pass@k performance by 3.1% to 12.3% compared to learning from a single reference program with MLE.
arXiv Detail & Related papers (2022-05-28T03:31:07Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.