Manuscript Offprint
arXiv:2610.36288BUSTA: Teaching Small Language Models to Reason About Binary Execution
Abstract
Large Language Models (LLM) are increasingly applied to Reverse Engineering (RE) workflows. RE, however, differs from common LLM coding tasks as it requires models to reason about low-level program behavior. Furthermore, the deployment of tooling in resource-constrained sandboxed RE environments limits the ability to use frontier-scale solutions. We examine whether a targeted LLM training approach can transfer distinct RE skills to open models via inverse basic-block execution: given an x86-64 basic block and a desired output register state, the model predicts the input register values that produce it. Fine-tuning Qwen3-1.7B and Nemotron-3-Nano with Group Relative Policy Optimization (GRPO) raises knowable-register prediction accuracy from 73.2% to 85.3% and from 63.3% to 95.2%, respectively. Frontier models still score highest (up to 99.2%), but our fine-tuned Nemotron-3-Nano comes within four points at a fraction of the parameter count. We release both fine-tuned models and the training dataset.
1 Introduction
Reverse engineering (RE) is integral to vulnerability research and malware analysis [Manuel et al., 2024, Hu et al., 2025, Lea et al., 2025], and while momentum for LLM-based RE research is growing, zero- and few-shot prompting approaches are far more represented than fine-tuning [Hu et al., 2025]. RE tasks are not always readily generalizable from other common software tasks. RE has its own syntax; useful models must read assembly, registers, and traces, as well as reason over low-level program state [Lea et al., 2025]. We therefore study whether targeted training can teach models useful RE skills that general prompting does not.
We present a novel application determining what program inputs or initial machine state lead to a desired execution state, a task that arises frequently in vulnerability research. Symbolic execution engines such as angr can sometimes solve this problem by exploring execution paths and solving the resulting constraints [Shoshitaishvili et al., 2016, Stephens et al., 2016, Shoshitaishvili et al., 2015], but are often limited by path explosion and expensive constraint solving [Cadar and Sen, 2013, Baldoni et al., 2018]. Recent work pairs LLMs with symbolic and concolic execution to guide search, construct harnesses, or assist constraint solving [Shafiuzzaman et al., 2026, Li et al., 2025, Tu et al., 2026, Nong and Cai, 2026, Eslamimehr, 2026, Ma et al., 2026, Chen et al., 2026], but these approaches primarily operate over source code or source-level intermediate representations. We instead investigate whether LLMs can reason directly over disassembled binary code when source is not available. As a first step, we study a simplified basic-block problem: given a basic block and desired output register values, can an LLM predict input register values that produce them?
Preprint.
Our secondary focus is whether a small fine-tuned model can rival out-of-the-box frontier models. Reverse-engineering workflows frequently analyze sensitive or malicious binaries in isolated environments where third-party frontier APIs cannot be used; open-weight models can instead run locally [Lea et al., 2025], and among these, smaller models fit tighter compute budgets [Samsi et al., 2023].
We fine-tune two models with our approach, BUSTA (Binary Understanding Task Assistant): BUSTA-BB-Qwen3-1.7B and BUSTA-BB-Nemotron-3-Nano, using Group Relative Policy Optimization (GRPO) [Shao et al., 2024] on inverse basic-block runtime prediction, and demonstrate significant gains in knowable-register accuracy over the base models, with Qwen3-1.7B increasing from 73.2% to 85.3% and Nemotron-3-Nano from 63.3% to 95.2%. We comprehensively benchmark across open and frontier models on a diverse dataset, with significant effort toward equitable and reliable comparison across differing model generation styles.
2.1 Data Curation
We curate our dataset from Assemblage [Liu et al., 2024], a corpus of x86-64 Executable and Linkable Format (ELF) and Windows Portable Executable (PE) binaries. From 100 Windows PE binaries, we use a Ghidra [National Security Agency, 2019] script to generate disassembly and segment it with Ghidra's SimpleBlockModel into 287,137 basic blocks—distinct fixed sequences of machine instructions bounded at control-flow-changing instructions such as calls, branches, or jumps.
We then emulate each block using Unicorn [Unicorn Engine] with randomized initial register values, except for RIP, RSP, and RBP, which we fix as the pointers for the execution. We log the input and output register states. Each resulting training and evaluation data sample contains a single execution of a basic block, including the block address, the static disassembly, and its input and output register states.
As part of preprocessing, we also label registers in each basic block for which multiple input values could produce the same output state. The value of these labeled input registers cannot be determined from examining only the basic block and an output state. To generate this label, we examine whether two or more different initial values for a register could produce the same final register state. We use an angr [Shoshitaishvili et al., 2016] script to initialize all registers and memory as symbolic, execute the basic block twice, constrain the outputs of each execution to be equal, and sequentially constrain each pair of matching input registers to be different. If this constraint is solvable, then two different initial values for that register could produce the same final register state, in which case that register is marked as “unknowable.” All other registers are marked as “knowable.” RIP, EIP, IP, and RFLAGS are always treated as unknowable.
After applying several validation filters and structuring the basic block sample objects for clear register labeling (Appendix A), we retain 282,741 valid samples, split 80/10/10 into training, validation, and test sets. The sets are mutually exclusive with respect to the functions from which each basic block is derived. We further downsample the training pool via stratified sampling to preserve diversity while shrinking it (Appendix B).
2.2 Training Method
We perform reinforcement learning (RL) post-training using GRPO, an on-policy algorithm suitable for optimizing models against sparse task-level reward signals. Training is implemented with the open-source NeMo RL post-training library [NVIDIA], using the Megatron [Shoeybi et al., 2019] backend. To guide optimization, we define a custom reward function composed of multiple weighted objectives.
To constrain the structured generation, training prompts include Pydantic [Colvin and Pydantic contributors] prompt schemas that explicitly outline the input and output expected for model predictions.
Our fine-tuned models and dataset are publicly available at https://huggingface.co/the-mitre-corporation.
2.3 Reward Function
The reward function scores the model’s predicted register state against ground truth. The reward is a weighted combination of a register-value score and an unknowable-classification score :
Both components are computed by averaging per-register rewards and applying a transform. Since accurately recovering knowable register values is the primary objective, receives greater weight. Correct and incorrect values for knowable registers receive rewards of +1 and -1, respectively, while correct values for unknowable registers receive a +1.1 reward without penalty for incorrect values. The auxiliary term rewards or penalizes each predicted register by +1 or -1 according to whether its knowable/unknowable label is correct. The model is expected to predict all registers present in the output register state, and omitted ground-truth registers incur a -0.5 penalty each. Invalid JSON or schema-noncompliant responses receive a fixed -0.5 penalty as the score. We select the weights and penalties through hyperparameter experimentation; the full per-register formulation appears in Appendix E.
2.4 Evaluation
For evaluation, we downsample the held-out test split by capping each stratum (defined in Appendix B) at 100 samples, yielding 635 samples. Our evaluation framework benchmarks four primary metrics: valid response rate, register coverage, knowable register accuracy, and unknowable classification accuracy. We include unknowable value accuracy as a supplemental metric. Beyond accuracy, a central motivation of this work is the compute footprint of models that must run locally in constrained RE environments, where frontier APIs are often unavailable. We examine the mean total token usage per response for each model, including both input and output tokens, as a deployment-agnostic proxy for inference cost.
We evaluate our best performing BUSTA-BB-Qwen3-1.7B and BUSTA-BB-Nemotron-3-Nano models against the respective base models Qwen3-1.7B [Qwen Team, 2025] and Nemotron-3-Nano [NVIDIA, 2025], and frontier models including GPT-5 [OpenAI, 2025], GPT-5.5 [OpenAI, 2026], Claude-0pus-4.8 [Anthropic, 2026a], Claude-Sonnet-5 [Anthropic, 2026b], Gemma-4-E2B, and Gemma-4-31B [Google DeepMind, 2026]. To ensure fair comparison, we implement a comprehensive evaluation protocol. We tune temperature and top-p per model. We also utilize the vLLM [Kwon et al., 2023] reasoning parser to separate reasoning from structured output, and conduct response post-processing. Final results are aggregated from multiple seed runs. Full protocol details are in Appendix C.
3 Experiments
We begin our experiments by fine-tuning Qwen3-1.7B on the inverse register inference task using GRPO with a 32K-token context window and a batch size of 512. We select this relatively small model to stay within the compute constraints of our target deployment environment and enable rapid iteration.
We perform a hyperparameter search by varying the invalid-response penalty, the per-stratum sample cap, and the reward-metric weights (Appendix D). The best Qwen3-1.7B configuration doubles the base per-stratum cap to 4k samples, yielding 22,223 training and 2,745 validation samples; it uses an invalid-response penalty of -0.5 and completes a full epoch (347 steps).
Following the success of this configuration, we apply the same training, sampling, and reward settings to Nemotron-3-Nano-30B-A3B-BF16. We fine-tune Nemotron on the inverse register inference task using GRPO and Low-Rank Adaptation (LoRA) [Hu et al., 2022], with rank-128 adapters and a scaling factor of , on a four-node non-collocated architecture with separate vLLM rollout and Megatron optimization workers. Stabilizing this setup requires importance-sampling correction, sequence masking, a Kullback–Leibler (KL) divergence penalty, and learning-rate adjustments to complete the full 347-step run; we detail these in Appendix D.
Table 1: Basic-block input register prediction results. Valid is the fraction of responses that parsed. Cov. is register coverage. The accuracy columns are knowable-register, unknowable-classification, and unknowable-value accuracy. Avg. Tot. Tokens is the average tokens per response. is the change in knowable-register accuracy relative to the corresponding base model.
| Model | Valid (%) | Cov. (%) | Accuracy (%) | Avg. Tot. Tokens | |||
|---|---|---|---|---|---|---|---|
| Known | Δ | Unk. cls. | Unk. val. | ||||
| Open-weight models | |||||||
| qwen3-1.7b | 97.2 | 77.8 | 73.2 | - | 59.5 | 6.3 | 14716 |
| + busta | 94.1 | 89.4 | 85.3 | +12.1 | 72.8 | 10.2 | 7668 |
| nemotron-3-nano | 72.0 | 68.3 | 63.3 | - | 58.4 | 9.3 | 27968 |
| + busta | 99.8 | 99.5 | 95.2 | +31.9 | 91.2 | 11.8 | 15794 |
| gemma-4-E2B | 100.0 | 86.7 | 63.7 | - | 73.1 | 6.9 | 5671 |
| gemma-4-31B | 99.9 | 99.9 | 98.1 | - | 91.2 | 34.6 | 12654 |
| Frontier API models | |||||||
| claude-sonnet-5 (high) | 100.0 | 100.0 | 99.0 | - | 94.3 | 38.4 | 14031 |
| opus-4.8 | 100.0 | 99.9 | 98.1 | - | 94.4 | 38.8 | 9062 |
| gpt-5 | 100.0 | 99.8 | 98.3 | - | 93.4 | 39.0 | 12307 |
| gpt-5.5 (medium) | 100.0 | 100.0 | 99.2 | - | 94.8 | 39.3 | 7232 |
3.1 Results
Fine-tuning substantially improves both open-weight base models (Table 1); knowable-register accuracy rose 12.1 points to for BUSTA-BB-Qwen3-1.7B and 31.9 points to for BUSTA-BB-Nemotron-3-Nano, with comparable gains in unknowable classification. The average total tokens also reduced substantially, with BUSTA-BB-Qwen3-1.7B using nearly half the tokens of the base model. The valid response rate also increased significantly for BUSTA-BB-Nemotron-3-Nano to , however it slightly decreased for BUSTA-BB-Qwen3-1.7B to . Among open-weight comparisons, Gemma-4-31B is strong at , while the small Gemma-4-E2B reaches only , a plausible future fine-tuning target. While frontier models remain strongest overall, led by GPT-5.5 at , and hold a clear edge on the harder bonus unknowable-value recovery, the fine-tuned BUSTA models close most of the primary-task gap at far smaller scale.
4 Conclusion
Fine-tuning small open-weight models with GRPO on inverse basic-block execution substantially improves knowable-register accuracy, evidence that targeted post-training can improve performance for tasks requiring low-level binary reasoning. Though frontier models remain at the top for knowable-register accuracy, our experimentation closes much of the gap to out-of-the-box frontier models at a significantly smaller scale, suggesting that targeted post-training can be a practical option for compute-constrained reverse-engineering environments.
5 Limitations and Future Work
Our experiments have several limitations that suggest directions for future work. First, the dataset is limited to 100 binaries from Assemblage; future work should evaluate on a larger and more diverse set of unseen binaries. Reward design is another potential area for improvement; additional iterations could better handle edge cases and more clearly distinguish knowable-register accuracy from broader register-classification performance.
Future work could also revisit the training task formulation. In early experiments, we trained on both the forward and inverse runtime prediction tasks, hypothesizing that forward prediction might improve code understanding and thereby improve inverse prediction. We ultimately removed the forward task to focus solely on inverse prediction, but its role remains worth further analysis. Finally, this work could be extended beyond individual basic blocks to sequences of basic blocks and, ultimately, whole-program target-state reachability. Evaluating in the actual target deployment environment would further assess practical utility and robustness.
References
Anthropic. Introducing Claude Opus 4.8, May 2026a. URL https://www.anthropic.com/news/claude-opus-4-8.
Anthropic. Introducing Claude Sonnet 5, June 2026b. URL https://www.anthropic.com/news/claude-sonnet-5.
Roberto Baldoni, Emilio Coppa, Daniele Cono D'elia, Camil Demetrescu, and Irene Finocchi. A survey of symbolic execution techniques. ACM Comput. Surv., 51(3), May 2018. ISSN 0360-0300. doi: 10.1145/3182657. URL https://doi.org/10.1145/3182657.
Cristian Cadar and Koushik Sen. Symbolic execution for software testing: three decades later. Commun. ACM, 56(2):82–90, February 2013. ISSN 0001-0782. doi: 10.1145/2408776.2408795. URL https://doi.org/10.1145/2408776.2408795.
Lingfeng Chen, Tao Xiao, Masanari Kondo, and Yasutaka Kamei. Directed symbolic execution for vulnerability discovery: An llm-guided approach in klee, 2026. URL https://arxiv.org/abs/2607.21676.
Samuel Colvin and Pydantic contributors. Pydantic: Data validation using python type hints. URL https://github.com/pydantic/pydantic. Accessed: 2026-08-10.
Mahdi Eslamimehr. Hybrid concolic testing with large language models for guided path exploration, 2026. URL https://arxiv.org/abs/2601.12274.
Google DeepMind. Gemma 4 model card, 2026. URL https://ai.google.dev/gemma/docs/core/model_card_4.
Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations (ICLR), 2022. URL https://arxiv.org/abs/2106.09685.
Xinyu Hu, Zhiwei Fu, Shaocong Xie, Steven H. H. Ding, and Philippe Charland. SoK: Potentials and challenges of large language models for reverse engineering, 2025. URL https://arxiv.org/abs/2509.21821. arXiv preprint arXiv:2509.21821.
Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph E. Gonzalez, Hao Zhang, and Ion Stoica. Efficient memory management for large language model serving with PagedAttention. In Proceedings of the 29th Symposium on Operating Systems Principles (SOSP '23). Association for Computing Machinery, 2023. doi: 10.1145/3600006.3613165. vLLM; https://github.com/vllm-project/vllm.
Darrin Lea, James Ghawaly, Golden Richard III, Aisha Ali-Gombe, and Andrew Case. REx86: A local large language model for assisting in x86 assembly reverse engineering, 2025. URL https://arxiv.org/abs/2510.20975. Accepted at ACSAC 2025; arXiv:2510.20975.
Yihe Li, Ruijie Meng, and Gregory J. Duck. Large language model powered symbolic execution. Proc. ACM Program. Lang., 9(OOPSLA2), October 2025. doi: 10.1145/3763163. URL https://doi.org/10.1145/3763163.
Chang Liu, Rebecca Saul, Yihao Sun, Edward Raff, Maya Fuchs, Townsend Southard Pantano, James Holt, and Kristopher Micinski. Assemblage: Automatic binary dataset construction for machine learning. In Advances in Neural Information Processing Systems 37 (NeurIPS 2024), Datasets and Benchmarks Track, 2024. URL https://assemblage-dataset.net/. arXiv:2405.03991.
Chengyan Ma, Jieke Shi, Ruidong Han, Ye Liu, Yuqing Niu, and David Lo. Finding missing input validation in tees via llm-assisted symbolic execution. In Proceedings of the 2026 IEEE/ACM Third International Conference on AI Foundation Models and Software Engineering, FORGE '26, page 110–115, New York, NY, USA, 2026. Association for Computing Machinery. ISBN 9798400724770. doi: 10.1145/3793655.3793740. URL https://doi.org/10.1145/3793655.3793740.
Dylan Manuel, Nafis Tanveer Islam, Joseph Khoury, Ana Nunez, Elias Bou-Harb, and Peyman Najafirad. Enhancing reverse engineering: Investigating and benchmarking large language models for vulnerability analysis in decompiled binaries. arXiv preprint arXiv:2411.04981, 2024. doi: 10.48550/arXiv.2411.04981. URL https://arxiv.org/abs/2411.04981.
National Security Agency. Ghidra software reverse engineering framework, 2019. URL https://ghidra-sre.org. Accessed: 2026-08-10.
Yu Nong and Haipeng Cai. Neuro-symbolic proof-of-vulnerability generation with open-weight models, 2026. URL https://arxiv.org/abs/2608.04217.
NVIDIA. NeMo-RL: A scalable and efficient post-training library for reinforcement learning. URL https://github.com/NVIDIA-NeMo/RL. Accessed: 2026-08-10.
NVIDIA. NVIDIA Nemotron 3 Nano technical report. Technical report, NVIDIA, 2025. URL https://research.nvidia.com/labs/nemotron/. Nemotron-3-Nano-30B-A3B (Mixture-of-Experts). Model card: https://huggingface.co/nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-BF16.
OpenAI. Introducing GPT-5 for developers, August 2025. URL https://openai.com/index/introducing-gpt-5-for-developers/.
OpenAI. Introducing GPT-5.5, April 2026. URL https://openai.com/index/introducing-gpt-5-5/.
Qwen Team. Qwen3 technical report, 2025. URL https://arxiv.org/abs/2505.09388. Model card: https://huggingface.co/Qwen/Qwen3-1.7B.
Siddharth Samsi, Dan Zhao, Joseph McDonald, Baolin Li, Adam Michaleas, Michael Jones, William Bergeron, Jeremy Kepner, Devesh Tiwari, and Vijay Gadepally. From words to watts: Benchmarking the energy costs of large language model inference. In 2023 IEEE High Performance Extreme Computing Conference (HPEC). IEEE, 2023. arXiv:2310.03003.
Md Shafiuzzaman, Achintya Desai, Wenbo Guo, and Tevfik Bultan. Guiding symbolic execution with static analysis and llms for vulnerability discovery, 2026. URL https://arxiv.org/abs/2604.06506.
Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. DeepSeekMath: Pushing the limits of mathematical reasoning in open language models, 2024. URL https://arxiv.org/abs/2402.03300. Introduces Group Relative Policy Optimization (GRPO).
Mohammad Shoeybi, Mostofa Patwary, Raul Puri, Patrick LeGresley, Jared Casper, and Bryan Catanzaro. Megatron-LM: Training multi-billion parameter language models using model parallelism, 2019. URL https://arxiv.org/abs/1909.08053.
Yan Shoshitaishvili, Ruoyu Wang, Christophe Hauser, Christopher Kruegel, and Giovanni Vigna. Firmalice - automatic detection of authentication bypass vulnerabilities in binary firmware. 2015.
Yan Shoshitaishvili, Ruoyu Wang, Christopher Salls, Nick Stephens, Mario Polino, Audrey Dutcher, Jessie Grosen, Siji Feng, Christophe Hauser, Christopher Kruegel, and Giovanni Vigna. Sok: (state of) the art of war: Offensive techniques in binary analysis. 2016.
Nick Stephens, Jessie Grosen, Christopher Salls, Audrey Dutcher, Ruoyu Wang, Jacopo Corbetta, Yan Shoshitaishvili, Christopher Kruegel, and Giovanni Vigna. Driller: Augmenting fuzzing through selective symbolic execution. 2016.
Haoxin Tu, Seongmin Lee, Yuxian Li, Peng Chen, Lingxiao Jiang, and Marcel Böhme. Cottontail: Large Language Model-Driven Concolic Execution for Highly Structured Test Input Generation. In 2026 IEEE Symposium on Security and Privacy (SP), pages 2064–2082, Los Alamitos, CA, USA, 2026. IEEE Computer Society. doi: 10.1109/SP63933.2026.00110. URL https://doi.ieeecomputersociety.org/10.1109/SP63933.2026.00110.
Unicorn Engine. Unicorn: The ultimate cpu emulator. URL https://www.unicorn-engine.org. Accessed: 2026-08-10.
Availability. We release our fine-tuned models and training dataset under the Apache-2.0 license via the https://huggingface.co/the-mitre-corporation organization on HuggingFace.
Acknowledgments and Disclosure of Funding
We acknowledge Gabby Raymond, Kyle Skey, Peter Lucia, and Tim Welsh for their guidance during the experimental design and editing.
This work was supported by the MITRE Independent Research and Development program. © 2026 The MITRE Corporation. All rights reserved. Approved for public release. Distribution unlimited. Case 26-1796.
Author Contributions. A.F. and R.P. built the training and evaluation pipeline. D.M. constructed the initial dataset, and A.F. led the final data processing and labeling. C.S. provided reverse-engineering domain expertise that guided the dataset design and reward function, and contributed to writing. E.W. initiated the training experiments. R.P. and M.D. led the analysis and writing.
A Data Curation Details
During initial data processing, each basic block is emulated with Unicorn three times. We then apply several validation filters to identify invalid samples:
-
A block is removed when Unicorn emulation fails or when parsing produces inconsistent traces.
-
A sample is marked invalid if instruction addresses in the register trace do not exactly match the instruction addresses in the assembly, or if memory-trace addresses are not a subset of the block's instruction addresses.
-
A sample is also flagged when memory-trace presence is inconsistent across runs, since a valid block should either always or never produce memory traces across its three executions.
Each data sample is then reduced to the first of the three runs so that each sample contains the results of a single run. We also omit per-instruction memory and register traces from the data samples prior to training and evaluation as they provide additional context about the register state changes and are generally unavailable in realistic RE workflows.
To ensure code understanding by the model, we enhance the trace object structure so that the input and output registers are explicitly labeled, with clearly distinguishable register key names and values. This leaves us with 282,741 valid samples, split into 80% training (225,993), 10% validation (28,374), and 10% test (28,374) sets.
B Downsampling
We downsample using stratified sampling to preserve diversity while reducing sample size. We partition samples into 8 strata defined as the cross-product of a binary memory-trace indicator and a four-way instruction-count bin (1–3, 4–7, 8–15, and 16+ instructions); each basic block is assigned to exactly one stratum by its (has-memory-trace, instruction-count-bin) pair. Within each stratum, downsampling first greedily retains samples that introduce previously unseen mnemonics—preserving rare mnemonics—before randomly filling the remaining slots up to a per-stratum cap; strata smaller than the cap are kept whole. The resulting set is thus enriched for memory traces, high instruction counts, and rare mnemonics. Although we retain the samples containing memory-access instructions, we remove the per-instruction memory traces from each sample prior to training and evaluation to avoid leaking register-state information to the model.
The same capping mechanism is applied at two independent stages. To build the held-out evaluation set, we cap the test split at 100 samples per stratum, yielding 635 samples. Separately, to build the training set, we cap the train split at a larger budget—2k samples per stratum in the base configuration and 4k in our best configuration—with validation capped at 500 per stratum.
C Evaluation Protocol
To ensure reliable benchmarks from all models, we run between 3 and 10 seeds for each model, except for the Claude and GPT models as those APIs either place limitations on or do not allow the seed parameter. We also parameter-tune each model for the best temperature and top-p values prior to evaluation, to ensure we accurately capture best performance.
We use the vLLM reasoning parser to split the reasoning for each model from the structured generation. This ensures that smaller models like Qwen3-1.7B are able to reason and are not constrained from the start by the structured generation limits.
Post-generation, we process the model responses through validation filters, including normalizing register names to lowercase. We find the base Qwen3-1.7B model sometimes duplicates registers in an effort to have multiple options for accuracy; these registers are removed in their entirety.
Table 2: Evaluation metrics and definitions.
| Metric | Definition |
|---|---|
| Valid Response Rate | LLM produces valid output |
| Register Coverage | Number of expected registers predicted |
| Knowable Register Accuracy | Correct prediction / knowable |
| Unknowable Classification Accuracy | LLM correctly determines whether a register is unknowable |
| Unknowable Value Accuracy | Correct prediction / unknowable |
D Training Details
We explore several experimental variables: the invalid-response penalty (0, -0.5, and -1.0 on the reward score for a malformed response); the maximum sample size per stratum per task, from a baseline of 2k per stratum (~12k per task) up to the full dataset; and the weighting of the individual metrics aggregated into the reward. Our experiments are primarily conducted on data subsets ranging from 20k to 100k samples, allowing us to tune training parameters efficiently and iterate quickly.
Nemotron training uses a four-node non-collocated architecture with dedicated vLLM rollout workers and Megatron policy-optimization workers to address node-level memory constraints. Because generation and optimization are performed by separate systems, we apply importance-sampling correction to account for mismatch between the rollout and training policies. Enabling importance sampling and masking sequences with excessive log-probability error (> 1.5) produces stable early learning.
Later in training, we observe drift caused by adapter-growth-dependent mismatch between vLLM and Megatron. To mitigate this, we increase the reference-policy KL penalty from 0.01 to 0.03 and replace the constant learning rate with cosine decay toward . These changes stabilize the mismatch, reduce batch starvation from sequence masking, and allow learning to continue through the full 347-step run.
E Reward Function Details
We expand the reward summarized in Section 2. Let be the set of ground-truth registers for a basic block and the set of registers the model predicts. For a register , let indicate a correct value prediction, mark whether is unknowable in the ground truth, and be the model's knowable/unknowable label.
Per-register value scores (over all ) and classification scores (over predicted registers ) are
Let and denote the mean per-register value and classification scores:
Each component passes its mean through a transform, which bounds the penalty floor at and rewards higher accuracy superlinearly:
and the two combine into the final reward . A response that fails JSON or schema validation instead receives a fixed penalty (default ) in place of .