Metraipolis › archive › dc_b4d1312673f4

Shorter Is Not Cheaper: A Controlled Comparison of Declarative Animation Specifications and Free-Form Code for LLM-Generated Explanations — arXiv:2610.32129

Source
arXiv (en)
Original
https://arxiv.org/abs/2610.32129
License (as archived)
CC0-1.0
Archived
2026-10-26T19:53:27.091Z
SHA-256 of the archived text
5bdb06469933427320fea75236ac99bc29baa7f253c5374e6827373e8f697095
Stable URL of this page
https://metraipolis.com/documento/dc_b4d1312673f4

How to cite

Shorter Is Not Cheaper: A Controlled Comparison of Declarative Animation Specifications and Free-Form Code for LLM-Generated Explanations — arXiv:2610.32129 — arXiv (en), https://arxiv.org/abs/2610.32129 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_b4d1312673f4 (Metraipolis archive dc_b4d1312673f4, sha256 5bdb06469933427320fea75236ac99bc29baa7f253c5374e6827373e8f697095)
BibTeX
@misc{dcb4d1312673f4,
  title = {Shorter Is Not Cheaper: A Controlled Comparison of Declarative Animation Specifications and Free-Form Code for LLM-Generated Explanations — arXiv:2610.32129},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2610.32129},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_b4d1312673f4; sha256 5bdb06469933427320fea75236ac99bc29baa7f253c5374e6827373e8f697095},
  year = {2026}
}

Archived text

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

Chat assistants increasingly answer conceptual questions with interactive, animated explanations, generated either as free-form HTML/JavaScript or as declarative specifications that a fixed runtime plays. The declarative route is widely expected to be cheaper, faster and more reliable, because its outputs are shorter and constrained. We test this expectation in controlled comparisons whose hypotheses and analysis plans were frozen before the runs. We designed ExplainSpec, a time-indexed declarative animation format, and an observation contract that makes every generated explanation programmatically inspectable; validated, pacing-agnostic checkers score 20 explanation requests from five domains. Three Claude models (360 jobs) and, in a follow-up, the open-weight Qwen3-14B with thinking enabled and disabled (240 jobs) answered every request in both formats. For every model the specifications were 25-48% shorter in answer tokens (output excluding reasoning), yet with reasoning enabled total output fell significantly only for the largest Claude model and no model generated significantly faster. The reasons differed. The Claude models reasoned far more before writing specifications (exploratory; for the two larger models, from 15-20% to 85-88% of generations). Qwen3-14B reasoned about as much in both formats (a pre-registered test of this shift was not supported), and its shorter answers saved little against a reasoning trace more than twice as long. Nor were specifications more reliable: free-form pages were valid after one repair round in 95-100% of jobs for every model, whereas Qwen3-14B produced valid specifications in only 33% of jobs and passed all semantic tests in 17% (HTML/JavaScript: 62%). For reasoning models, a shorter format alone therefore does not make generation cheaper, faster or more reliable, and a format learned in context can cost reliability.

Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.CL, nuovi lavori del giorno).
Categorie arXiv: Computation and Language (cs.CL) ; Human-Computer Interaction (cs.HC); Software Engineering (cs.SE).
Pagina del lavoro: https://arxiv.org/abs/2610.32129 — 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-10-26T19:45:48.348Z dalla pagina https://arxiv.org/list/cs.CL/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).