Memory Under Interference: Context Utilization, Specification Confusion, and Inference Efficiency in Small Code Language Models

Increasing a language model’s context makes more information available, but also adds computational work and potentially competing instructions. When does that extra information help a model solve the intended task? I investigate this question through seven studies containing 5,528 experimental requests on HumanEval+-based coding tasks using Qwen2.5-Coder 0.5B and 1.5B models with mixed-precision four-bit weights, running on a CPU laptop. The experiments vary task descriptions, competing requirements, interruptions, retained context and the placement of a code-only preference. In addition to testing the requested solution, I test whether an incorrect answer satisfies a competing requirement. This post-hoc analysis, formulated after data collection, finds 8.97 percentage points more such failures under competing than irrelevant context on 1.5B (95% task-bootstrap interval [3.21, 16.67]). The 0.5B comparison is inconclusive, and conservative assumptions about incomplete generations weaken the 1.5B result. When only known relevant information was retained, the estimated net CPU-package energy per correct solution decreased by 76.5% for the 0.5B model and 67.4% for the 1.5B model, compared with retaining the full history. However, accuracy preservation remains uncertain, and differences in prompt length, position, instructions and generated output may also contribute to these savings. The results motivate evaluating memory management through the answers it produces and its total computational cost, alongside the relevance of the information it supplies. Research Artifacts and Reproducibility This preprint is accompanied by the manuscript source, experimental evidence, statistical analysis scripts, reproducibility instructions, and artifact integrity checksums. Research Repository: https://github.com/buildgit17626-ctrl/Memory-Under-Interference- Versioned Research Release: https://github.com/buildgit17626-ctrl/Memory-Under-Interference-/releases/tag/v1.1.0 Companion Project — MemoryGraph: https://github.com/buildgit17626-ctrl/MemoryGraph Earlier Research — Prompt-Energy: https://github.com/buildgit17626-ctrl/Prompt-Energy This is an independent research preprint and has not been peer reviewed.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-24
DOI
https://doi.org/10.5281/zenodo.24500467
Primary Topic
Software Engineering Research
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Memory Under Interference: Context Utilization, Specification Confusion, and Inference Efficiency in Small Code Language Models

Dhruv Brahmbhatt
1 links
Zenodo (CERN European Organization for Nuclear Research)
Software Engineering Research
preprint

Memory Under Interference: Context Utilization, Specification Confusion, and Inference Efficiency in Small Code Language Models

Dhruv Brahmbhatt
preprint en

Abstract

Increasing a language model’s context makes more information available, but also adds computational work and potentially competing instructions. When does that extra information help a model solve the intended task? I investigate this question through seven studies containing 5,528 experimental requests on HumanEval+-based coding tasks using Qwen2.5-Coder 0.5B and 1.5B models with mixed-precision four-bit weights, running on a CPU laptop. The experiments vary task descriptions, competing requirements, interruptions, retained context and the placement of a code-only preference. In addition to testing the requested solution, I test whether an incorrect answer satisfies a competing requirement. This post-hoc analysis, formulated after data collection, finds 8.97 percentage points more such failures under competing than irrelevant context on 1.5B (95% task-bootstrap interval [3.21, 16.67]). The 0.5B comparison is inconclusive, and conservative assumptions about incomplete generations weaken the 1.5B result. When only known relevant information was retained, the estimated net CPU-package energy per correct solution decreased by 76.5% for the 0.5B model and 67.4% for the 1.5B model, compared with retaining the full history. However, accuracy preservation remains uncertain, and differences in prompt length, position, instructions and generated output may also contribute to these savings. The results motivate evaluating memory management through the answers it produces and its total computational cost, alongside the relevance of the information it supplies. Research Artifacts and Reproducibility This preprint is accompanied by the manuscript source, experimental evidence, statistical analysis scripts, reproducibility instructions, and artifact integrity checksums. Research Repository: https://github.com/buildgit17626-ctrl/Memory-Under-Interference- Versioned Research Release: https://github.com/buildgit17626-ctrl/Memory-Under-Interference-/releases/tag/v1.1.0 Companion Project — MemoryGraph: https://github.com/buildgit17626-ctrl/MemoryGraph Earlier Research — Prompt-Energy: https://github.com/buildgit17626-ctrl/Prompt-Energy This is an independent research preprint and has not been peer reviewed.

Zenodo (CERN European Organization for Nuclear Research)
Indian Institute of Technology Madras (IN)
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon