Metraipolis › archive › dc_a4d6a1d22af9

Template Gap Reconstruction for Shell Output Simulation with Small Language Models — arXiv:2611.06731

Source
arXiv (en)
Original
https://arxiv.org/abs/2611.06731
License (as archived)
CC0-1.0
Archived
2026-11-05T18:19:00.780Z
SHA-256 of the archived text
f4d2a5767c836a826f0cc3dbab8b49d43e0aa3b5fd6e2cb8342cf6d8cdf30d5c
Stable URL of this page
https://metraipolis.com/documento/dc_a4d6a1d22af9

How to cite

Template Gap Reconstruction for Shell Output Simulation with Small Language Models — arXiv:2611.06731 — arXiv (en), https://arxiv.org/abs/2611.06731 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_a4d6a1d22af9 (Metraipolis archive dc_a4d6a1d22af9, sha256 f4d2a5767c836a826f0cc3dbab8b49d43e0aa3b5fd6e2cb8342cf6d8cdf30d5c)
BibTeX
@misc{dca4d6a1d22af9,
  title = {Template Gap Reconstruction for Shell Output Simulation with Small Language Models — arXiv:2611.06731},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2611.06731},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_a4d6a1d22af9; sha256 f4d2a5767c836a826f0cc3dbab8b49d43e0aa3b5fd6e2cb8342cf6d8cdf30d5c},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2611.06731. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Small language models offer a compact basis for shell simulation without executing submitted commands, but full-output decoding requires them to predict recurring utility structure alongside content that varies across executions. We introduce template gap reconstruction (TGR), which supplies reusable output literals interspersed with sentinels to be interleaved with autoregressively generated gaps. A template selector chooses which template to be reconstructed, with the empty template retaining full-output decoding. We construct a template bank from 18.7 million outputs collected across heterogeneous execution environments and train a template selector and five reconstruction models initialized from various small language model checkpoints on a target environment excluded from bank construction. Evaluation demonstrates that TGR improves output edit similarity (O-ES) over full-output decoding (FOD) when the optimal template covers more than 25\% of the template, while performing similarly for lower-coverage outputs. Additionally, TGR outperforms FOD for shorter gap sequences, with O-ES values of 0.964 and 0.812, respectively, while maintaining similar performance for longer sequences. TGR reduces the number of tokens generated by 26.3--38.3\% across used tokenizer families. These results support using a reusable output structure as a practical design choice for small shell simulators, improving response fidelity and shortening generation targets while keeping template selection and residual prediction central to response quality.

Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.CL, nuovi lavori del giorno).
Categorie arXiv: Machine Learning (cs.LG) ; Computation and Language (cs.CL).
Pagina del lavoro: https://arxiv.org/abs/2611.06731 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-11-05T18:13:03.956Z dalla pagina https://arxiv.org/list/cs.CL/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).