WorksComputer Science
Temporal Adaptive Fine-Tuning for Code Comprehension
Abstract
Repository-level code comprehension question answering (QA) supports developer reasoning over functionality and usage distributed across codebases. However, repository-specialized large language models (LLMs) can become misaligned as code evolves. We study this challenge as temporal repository adaptation: acquiring new knowledge, suppressing obsolete, retaining still-valid, and preserving semantically neighboring knowledge. Existing retrieval, fine-tuning, and model-editing methods address only parts of this problem. We propose Temporal Adaptive Fine-Tuning (TAFT), a novel adaptation approach that treats repository transitions as supervision. TAFT derives temporally grounded QA data from repository transitions, pairs newly valid with obsolete knowledge through preference optimization, and replays transition-conditioned retention examples to preserve still-valid knowledge. We evaluate TAFT on an augmented temporal SWE-bench dataset comprising 255,295 QA entries across ten temporal slices, comparing deferred (Baseline), per-slice retrained (Baseline-Batched), and variants with knowledge anchors along four dimensions: updated knowledge, obsolete-answer suppression, retention, and neighbor stability. TAFT consistently outperforms both the deferred and batched baselines, with an average relative improvement of 18% in updated/suppressed knowledge accuracy, doubled retention accuracy, and roughly 1.5 times the neighbor accuracy. With directly supplied knowledge anchors, TAFT-KANT further improves mean updated/suppressed, retention, and neighbor accuracy over TAFT by 3.55%, 8.35%, and 13.00%, respectively. Overall, TAFT demonstrates its effectiveness across all evaluated areas, effectively enabling code comprehension QA alignment with repository evolution.
Introduction
Code comprehension underpins many software engineering (SE) activities, e.g., bug fixing, feature development, and maintenance [1, 2]. To comprehend code and change it, developers often form a working mental model of the code [3, 4], which requires answering various kinds of questions about its behavior, rationale, and usage [1, 2]. However, answering such questions requires knowledge scattered across repository artifacts (e.g., classes, files), making it a time-consuming, effort-intensive, and non-trivial task [1, 2].
Large Language Models (LLMs) support repository-level comprehension by answering questions that link local implementation details to broader code semantics [5, 6]. However, their repository knowledge is temporal: as software evolves through feature additions and refactoring, previously correct answers may become outdated, while other, semantically related knowledge remains valid. Figure 1 shows this with a signature code change to the Executor.map(): the answer to Q1 must be updated, while the answers to Q2 and Q3 should remain unchanged as they capture retained and neighboring knowledge. This makes temporal adaptation a multi-dimensional challenge, i.e., a model must (update) new information, suppress knowledge that was valid before a change but is now incorrect, retain knowledge that remains valid after the change, and preserve neighboring knowledge (adjacent code elements) that was not directly modified and should remain unaffected.

Figure 1. Repository Transition where a Code Change to the Executor.map() Signature creates Different Temporal Adaptation Requirements.
Existing SE approaches, including inference-time grounding and training-time adaptation, address this challenge only partially, each focusing on a single dimension and carrying its own limitations for code comprehension. Inference-time grounding methods including Retrieval Augmented Generation (RAG), long-context prompting, or agentic exploration focus solely on surfacing updated knowledge, but do not resolve parametric misalignment. Specifically, RAG can miss or conflict with evidence [7, 8], long-context prompting remains sensitive to input length and position [9, 10] and agentic exploration can be costly while simpler methods remain competitive [11, 12]. Similarly, training-time approaches are narrow: fine-tuning risks catastrophic forgetting [13, 14], while model-editing methods inject updated facts without accounting for suppressed knowledge [15, 16, 17]. Although such techniques have been explored for code completion and migration [18, 19], none jointly address the four dimensions, making them insufficient for repository-level comprehension question-answer (QA), a recurring and essential task that remains underexplored.
We formulate this gap as temporal repository adaptation and propose Temporal Adaptive Fine-Tuning (TAFT) to address it: given a stream of evolving repository states, TAFT incrementally adapts repository-specialized models across all four dimensions (update, suppress, retain, neighbors). TAFT derives temporally grounded code comprehension question-answer data from repository transitions, pairing updated with suppressed knowledge while replaying retained knowledge to preserve stable repository comprehension.
In summary, the primary contributions of this paper are (replication material available [20]):
A formalization of temporal repository adaptation for code comprehension question-answer (QA), capturing how code evolution affects four knowledge dimensions: updated, suppressed, retained, and neighboring.
A code comprehension evolution dataset of 255,295 repository-knowledge QA entries supporting evolution-based inquiries and evaluation.
Temporal Adaptive Fine-Tuning (TAFT), a novel approach that incrementally learns updated knowledge, rejects suppressed knowledge, and preserves retained knowledge.
The remainder of the paper is organized as follows: § 2 describes the approach, Section III the experimental design, and Section IV the results. § 5 discusses threats to validity, § 6 related work, and Section VII future work, before we conclude in Section VIII.
Approach
This section introduces TAFT, our approach for adapting LLMs to evolving repositories for code comprehension. TAFT is designed to keep repository-level code comprehension answers consistent with the repository state a developer is trying to understand. It therefore targets three requirements simultaneously in an incremental way throughout repository evolution rather than rebuilding a full deferred knowledge update: (i) learning new or updated knowledge that became valid at time , (ii) suppressing outdated knowledge that was valid at but became obsolete at , (iii) and retaining knowledge that remains correct across both states.
Data Generation
We instantiate TAFT on an augmented SWE-bench dataset [21], a widely adopted benchmark for evaluating real GitHub issues by modifying a repository and executing tests [12], [22], [23], containing more than 19,000 instances across 12 popular Python repositories. This makes SWE-bench a suitable basis for our setting: it encodes realistic repository transitions, Pull Request (PR) descriptions, and patches.
We apply a processing pipeline on the SWE-bench data to augment it for our purposes as illustrated in Figure 2: First, we retrieve the corresponding repository state for each SWE-bench instance, clone the repository at the base commit, and validate that the provided patch can be applied cleanly. We discard instances whose patches cannot be replayed, because such cases do not provide a reliable transition between two repository states, resulting in 1,488 discarded patches. For every accepted instance, we extract the associated version tag, when available, and map it to a temporal coordinate that is later used to group questions into chronological time slices, following prior studies [24]. Tags are therefore not just metadata; they define the temporal structure over which TAFT performs adaptation. Second, we further decompose each accepted git patch into per-file hunks. This step is necessary because SWE-bench PR may modify multiple files and splitting the patch into file-level hunks lets us associate each generated QA item with a concrete target file. The same target file association is stored for updated/suppressed, retention, and neighbor questions. This avoids conflating unrelated file changes and supports later file- and region-level locality analyses. Third, for each repository transition and each target file hunk, we construct three temporally grounded QA sets, each serving a distinct role in adaptation and evaluation.

Figure 2. Approach Overview.
a) Updated knowledge. For each repository transition, we construct a change set of tuples , where is a repository-level comprehension question about behavior affected by the patch, is the answer valid under repository state , and is the answer that was valid under but becomes invalid in . These tuples provide the signal for learning newly valid knowledge while suppressing outdated knowledge. In total, we generate 40,967 update QA pairs.
b) Retained knowledge. We additionally sample a retention set of still-valid tuples , where remains valid under both and . Unlike generic replay or rehearsal strategies in continual learning, which typically revisit samples from previous tasks, replay buffers, or synthetic old-task data to reduce catastrophic forgetting [25, 26, 27], our retention sampling is transition-conditioned. Transition-conditioned retention examples from the same repository transition and target file constrain what the model must preserve while adapting to new behavior. Thus, acts as a local control set for the change: it identifies nearby repository knowledge that must remain stable while the model updates changed behavior. We generate 40,976 retention QA pairs.
c) Neighboring knowledge. Finally, we generate semantically related but unaffected knowledge into a neighbor set consisting of tuples . For each updated question, we generate up to five semantic neighbor QA pairs. A neighbor question is intentionally close to the changed region, for example by referring to the same file, module, call context, or question type, but its answer must remain unchanged across the transition. These examples are not used to drive the update objective. Instead, they are reserved for locality and stability analyses, allowing us to verify whether temporal adaptation spills over into nearby but unchanged knowledge. This process produces 173,352 additional neighbor QA pairs.
After generation, we verify candidate QA pairs using a judgment prompt conditioned on the question, answer, PR description, patch, and target file context. This verification step filters out QA pairs that are unsupported, temporally ambiguous, or incorrectly associated with the target file, as summarized in Table I.
| Dataset Component | #Samples |
| Updated/Suppressed knowledge | 40,967 |
| Retention knowledge | 40,976 |
| Neighboring knowledge | 173,352 |
| Total | 255,295 |
Table I. Generated Temporal QA Dataset Statistics.
To characterize the generated QA pairs, we classify each question following the intent taxonomy of Wolf et al. [28]. As shown in Table II, explanation is the dominant category (97.87%), followed by relationship (49.76%), and example usage (30.51%). Categories are non-exclusive.
| Category | % | Category | % | Category | % |
| Explanation | 97.87 | Functionality | 20.58 | Workflow | 1.41 |
| Relationship | 49.76 | Knowledge recall | 16.03 | Programming concepts | 0.45 |
| Example usage | 30.51 | Reasoning | 15.90 | Best practices | 0.38 |
| Referencing | 28.07 | Purpose | 11.66 | Other | 0.02 |
| Property | 26.97 |
Table II. Intent Category Distribution. Categories are non-exclusive.
This partition captures the distinction that matters in temporal repository adaptation. For example, when a function gains a mandatory argument (see Figure 1), a question about the call signature belongs to : the new signature is and the old signature is . In contrast, a question about an unchanged helper behavior, or unchanged import convention in the same target file may belong to if the answer remains valid across the patch. A question that is semantically close to the changed signature but whose answer is unchanged, such as a question about a related helper function or inheritance, belongs to .
To obtain comparable update steps across repositories, we group the verified QA items into temporal slices using the extracted version tags. For each repository, we order states chronologically, form transitions , and discretize its history into relative temporal bins, following previous studies [29], [30]. This yields a temporal stream , where each slice aggregates the verified items whose version tags fall into the corresponding repository-specific bin. This design choice provides bounded and comparable adaptation steps while respecting the evolution timeline of each repository. Rather than enforcing equal-sized samples across repositories or time periods, each slice contains the available items for each repository-bin intersection, preserving the natural distribution of generated items while avoiding artificial uniformity.
Adaptive Fine-Tuning
The intuition behind TAFT is pragmatic: repository evolution creates both knowledge that must change and knowledge that must remain stable. Positive and negative answers give the model an explicit contrast between what became correct and what became stale, while the retention set constrains the update to remain compatible with unchanged repository behavior. TAFT therefore treats each repository transition as a temporally grounded alignment step: changed tuples provide the signal for updating and suppressing knowledge, whereas retention tuples provide the signal for preserving still-valid knowledge.
We operationalize this intuition through the training procedure shown in Figure 2. Before temporal adaptation begins, we initialize the model on answers valid in the earliest available repository state using Supervised fine-tuning (SFT). This places the model in a consistent pre-update state before any temporal overwrite is applied. Concretely, we construct , which contains answers valid at the pre-update state . After this initialization, adaptation proceeds slice by slice along the evolution stream. We denote the model before adapting to slice as .
At each temporal slice, TAFT optimizes two complementary objectives. The first objective updates and suppresses knowledge using Mixed Preference Optimization (MPO) [31]. It combines a Direct Preference Optimization (DPO)-style preference loss [32] with a supervised fine-tuning loss. The preference loss increases the likelihood of over , while the SFT loss directly anchors as the current answer. Thus, unlike general alignment settings, where preferences often approximate helpfulness or response quality, TAFT’s preference labels encode temporal validity: is preferred because it is valid under repository state , whereas is rejected because it was valid under but became obsolete after the transition. The second objective preserves still-valid knowledge and mitigates catastrophic forgetting [14]. For each slice, we sample a retention subset that is valid at time , where controls the retention budget. We then apply a retention SFT loss, , on this subset.
The full TAFT objective at time is:
Thus, each update consumes the temporally local slice rather than retraining on a fully reconstructed latest-state corpus. This directly addresses the temporal-alignment gap introduced in Section I: the model must learn knowledge that is currently correct, suppress outdated knowledge, and retain what remains valid.
The objectives are optimized together in a single fused update pass, following the hybrid post-training design of [33]. For each slice, TAFT forms a mixed batch with changed tuples from and sampled retention tuples from . A shared trainable-policy forward pass computes the log-probabilities for updated answers , outdated answers , and retained answers . The DPO component uses frozen-reference log-probabilities for the changed tuples. The SFT components reuse the trainable-policy scores for and . The neighbor set is not used to drive the update objective. Instead, it is reserved for locality and stability analysis to assess whether temporal adaptation spills over into nearby but unaffected repository knowledge.
Experiments
This section presents the experimental design used to evaluate the proposed TAFT approach. We address four research questions that assess whether TAFT improves repository-level code comprehension under repository evolution across four dimensions: (i) updating newly introduced or changed knowledge, (ii) suppressing outdated knowledge, (iii) retaining still-valid knowledge, (iv) and preserving semantically related neighboring knowledge. In the main experiments, we use GPT-OSS-20B as the backbone model and keep the temporal benchmark construction, evaluation protocol, and decoding setup fixed. The experimental conditions differ only in the adaptation approach or component configuration under investigation.
RQ– Temporal Adaptation Effectiveness. To what extent does continuous temporal adaptation improve adaptation to evolving repositories with respect to updated knowledge, preserving unchanged knowledge, and suppressing outdated answers?
evaluates whether TAFT can continuously adapt a repository-specialized model to an evolving repository state. A successful temporal update should satisfy three requirements: it should learn newly valid behavior, retain knowledge that remains valid across versions, and suppress answers that were correct in earlier versions but became invalid after a change. The question therefore focuses on the overall effectiveness of temporal supervision when compared with the baselines.
RQ– Contribution of TAFT Components. What is the contribution of each component to the gains of TAFT?
isolates the effect of the temporal supervision signals used by TAFT. In particular, we evaluate whether any component is sufficient in isolation, or whether the observed gains arise from their interaction, allowing us to attribute the contribution of each component and identify the primary drivers of temporal adaptation.
RQ– Update Timing. When should a repository specialized model be adapted, and how much utility is lost when updates are deferred rather than applied immediately?
addresses the deployment decision of when model updates should be applied in practice. Each update incurs compute, energy, and operational overhead [34], while delaying an update leaves the deployed model increasingly misaligned with the current repository state. We therefore evaluate the quality-cost trade-off between continuous temporal adaptation, batched, and deferred updating schedules.
RQ– Locality and Stability. How localized and robust are temporal updates as repository changes accumulate over time?
evaluates whether temporal updates remain confined to the behavior affected by a repository evolution. An effective temporal adaptation method should update the model on changed behavior without degrading semantically related but unchanged knowledge. We therefore track correctness on semantically related but unchanged neighboring knowledge across temporal slices.
Data, Entities and Metrics
All experiments are conducted over the repository evolution stream defined in § 2.
We evaluate models using an LLM-judge protocol, following prior work [35], [36]. Figure 3 summarizes the structure of the judgment prompt used. Full prompts are available in the replication package [20].

Figure 3. Structure of the Judgment Prompt used for LLM-Based Evaluation.
We evaluate on: (i) correctness, whether the answer is correct at time , (ii) suppression, whether the model reproduces an outdated answer instead of the updated one at time , (iii) retention, whether an answer is correct at both time and , and (iv) stability, whether an answer is affected by a nearby update. Concretely, the judge assesses: for updated and suppressed knowledge, both whether the generated answer matches the current repository state and whether it avoids reproducing the outdated answer; for retention knowledge, whether the answer remains correct with respect to the evolved repository state; and for semantically related neighbors, whether answers stay stable despite nearby temporal updates. We compute accuracy per slice, knowledge category, and LLM-judge repetition. We use two-sided paired Wilcoxon signed-rank tests on slice–repetition accuracies (10 slices × 3 repetitions), with separate Holm corrections for comparisons against Baseline and TAFT-Key Augmented Neural Trigger (KANT) versus TAFT. Together, these metrics capture the intended behavior of temporal repository adaptation: learning what changed, suppressing what became stale, retaining what remains valid, and limiting unintended effects on neighboring knowledge. Beyond answer quality, we record training time, processed tokens, and CodeCarbon [37, 38] energy measurements to quantify the quality-cost trade-off of each adaptation approach. Furthermore, two annotators independently assess a stratified sample of 400 QA pairs to validate the LLM judge (95% confidence & [39]). We report inter-rater agreement between the annotators, adjudicate disagreements, and compare the adjudicated labels against the LLM-judge decisions.
RQ1: Temporal Adaptation Effectiveness
We compare TAFT against SFT-based baselines and anchor-conditioned configurations, following the current state of practice in updating models and code comprehension QA [28, 40, 41]. For notation, we denote the positive supervision available at step as . Before the first temporal update, all methods start from the same bootstrapped pre-update model . At each temporal slice , TAFT initializes the trainable policy from the previous adapted checkpoint and updates it using the temporally local data for .
We evaluate five configurations: (i) Baseline: A deferred positive-only model trained once at the final slice from on all accumulated positive examples . (ii) Baseline–Batched: At every temporal slice , the model is reset to and retrained on the positive training data accumulated up to that slice, . (iii) Baseline-KANT: The deferred Baseline configuration with knowledge-anchor conditioning added to instruction fine-tuning and inference. (iv) TAFT: The continuous adaptation approach described in Section II.
(v) TAFT-KANT: The same TAFT objective and continuous update schedule with knowledge-anchor conditioning added to instruction fine-tuning and inference.
For Baseline-KANT and TAFT-KANT, we reuse only the knowledge-anchor mechanism from KANT [28]: we do not perform its Fill-in-the-Middle (FiM) training stage, and the correct anchor is supplied directly for each evaluation question rather than retrieved. These configurations therefore evaluate anchor conditioning under controlled anchor selection rather than the complete KANT pipeline. This comparison tests whether temporal supervision improves beyond positive-only learning and whether incremental adaptation outperforms repeated retraining from the initial checkpoint.
We evaluate all approaches at each temporal slice using updated, outdated, and retention examples. The changed set measures whether the model has learned newly valid behavior and if the paired outdated answers are suppressed. The retention set measures whether the model preserves knowledge that should remain correct. Neighboring examples are excluded from this experiment and evaluated separately in Section III-E, where they are used to measure locality.
As a supplementary experiment, we compare TAFT with GRACE [42] and MEMIT [40], two representative State-of-the-art (SOTA) model-editing approaches, alongside the non-finetuned GPT-OSS-20B backbone. Neither approach was originally designed for mixture-of-experts (MoE) architectures such as GPT-OSS-20B. Thus, this comparison is exploratory rather than a definitive ranking of the approaches. We evaluate these approaches across three temporal slices and three runs. Additionally, we evaluate TAFT on Qwen2.5-Coder-14B to determine generalizability to other model families.
RQ2: Contribution of TAFT Components
We conduct an ablation study comparing the TAFT approach against two variants, holding benchmark splits, model initialization, optimizer configuration, effective batch size, decoding setup, and evaluation protocol constant across all: (i) positive-only SFT, training only on , (ii) preference-only training, using positive–negative pairs from , (iii) and TAFT, combining preference learning over with retention over . This isolates three effects: (i) the contribution of explicit outdated negatives to overwrite behavior; (ii) the contribution of replay to retaining still-valid knowledge; and (iii) whether negative evidence and replay yield complementary benefits.
RQ3: Update Timing
We evaluate how model utility evolves when adaptation is applied along the version-based temporal bins introduced in Section II-A. In this setting, the standard TAFT procedure updates the model sequentially over the temporal stream . Thus, at step , TAFT updates into using the changed and retention data available in . We compare this version-binned temporal adaptation against the baselines that represent a deferred and batched rebuild approach observing accumulated newly valid answers, reflecting the common practice of updating models on accumulated data [40, 41]. Additionally, we evaluate the knowledge anchor conditioned variants on the same criteria. We report the resulting quality metrics together with training time, processed tokens, and CodeCarbon energy measurements to quantify the cost of continuous temporal adaptation.
RQ4: Locality and Stability
The locality analysis is based on semantically similar neighbor question–answer pairs unaffected by the transition.
We evaluate locality by comparing model behavior before and after each temporal update. For every time step , we evaluate both and on . Let denote whether the LLM judge marks the answer generated by for question as correct with respect to reference answer . We first define neighbor correctness for model on neighbor set as .
This metric quantifies whether temporal adaptation preserves correctness on semantically adjacent but unaffected repository knowledge.
Results
Our evaluation covers four key aspects: () effectiveness and efficiency against the baselines, () the contribution of individual components, () the impact of adaptation timing, and () the stability and locality of temporal updates. We evaluate TAFT along complementary dimensions: (i) whether the model learns new knowledge while suppressing obsolete knowledge, (ii) whether still-valid knowledge is preserved across updates, and (iii) whether updates remain confined to changed knowledge without degrading semantically neighboring knowledge. We additionally analyze the cost–accuracy trade-off of the evaluated update strategies in terms of runtime and energy consumption.
a) Human Validation of the LLM Judge.: Two annotators independently evaluated the stratified sample of 400 QA pairs. Inter-rater agreement was 82.25% (Cohen’s ). After adjudication, the LLM-judge agreed with the final human labels in 90.25% of cases (Cohen’s ). Overall, the human–LLM comparison indicates strong agreement.
RQ1: Temporal Adaptation Effectiveness
To evaluate the impact of TAFT, we compared the approaches described in Section III across all temporal slices using the same data.
Our results show that TAFT consistently outperforms all baseline variants across all evaluation dimensions as shown in Table III. For updated and suppressed knowledge, TAFT achieves an average accuracy of 85.00%, compared to 71.96% for the baseline, corresponding to a relative improvement of 18.12% (). This result indicates that explicit temporal supervision improves the model’s ability to adapt to repository changes. Since changed examples are evaluated with respect to the current answer while avoiding the outdated answer , the change-accuracy gains capture both
| Time Slice | Baseline Chg. | Baseline Ret. | Baseline Neigh. | Baseline-Batched Chg. | Baseline-Batched Ret. | Baseline-Batched Neigh. | Baseline-KANT Chg. | Baseline-KANT Ret. | Baseline-KANT Neigh. | TAFT Chg. | TAFT Ret. | TAFT Neigh. | TAFT-KANT Chg. | TAFT-KANT Ret. | TAFT-KANT Neigh. |
| 1 | 68.67 | 27.54 | 29.21 | 54.32 | 33.66 | 33.45 | 42.60 | 27.91 | 28.66 | 79.02 | 64.00 | 45.11 | 83.13 | 68.07 | 51.15 |
| 2 | 73.53 | 29.33 | 31.79 | 69.61 | 30.41 | 31.09 | 48.63 | 28.25 | 29.65 | 83.95 | 62.32 | 46.07 | 85.83 | 66.88 | 52.96 |
| 3 | 70.45 | 29.29 | 29.59 | 68.53 | 27.76 | 29.79 | 45.01 | 27.94 | 28.59 | 76.17 | 57.88 | 42.60 | 80.22 | 63.22 | 49.21 |
| 4 | 71.57 | 29.33 | 30.65 | 67.00 | 30.96 | 30.92 | 45.22 | 29.35 | 29.05 | 84.12 | 61.48 | 46.27 | 86.85 | 69.52 | 52.95 |
| 5 | 66.65 | 27.65 | 28.94 | 65.59 | 27.56 | 29.16 | 43.78 | 26.00 | 27.33 | 80.61 | 63.11 | 45.12 | 87.20 | 69.17 | 52.53 |
| 6 | 71.98 | 30.31 | 31.39 | 61.68 | 28.13 | 30.85 | 47.39 | 28.93 | 29.78 | 86.92 | 62.60 | 45.48 | 88.34 | 68.32 | 50.75 |
| 7 | 73.74 | 30.01 | 33.34 | 78.44 | 30.58 | 32.49 | 51.06 | 29.45 | 32.56 | 90.95 | 65.42 | 47.48 | 91.57 | 70.03 | 53.03 |
| 8 | 73.53 | 28.79 | 31.11 | 60.44 | 30.44 | 31.31 | 48.87 | 29.11 | 30.08 | 86.76 | 65.49 | 46.58 | 91.15 | 71.19 | 52.52 |
| 9 | 73.06 | 29.91 | 31.92 | 73.00 | 28.43 | 30.73 | 49.59 | 28.53 | 31.00 | 89.24 | 64.06 | 46.42 | 92.57 | 69.24 | 52.05 |
| 10 | 76.42 | 30.90 | 33.97 | 76.58 | 32.65 | 34.08 | 51.45 | 30.33 | 33.13 | 92.24 | 66.99 | 49.62 | 93.30 | 70.70 | 53.51 |
| All | 71.96 (± 0.07) | 29.31 (± 0.06) | 31.19 (± 0.04) | 67.52 (± 0.09) [< 0.005] | 30.06 (± 0.08) [0.411] | 31.39 (± 0.03) [0.626] | 47.36 (± 0.02) [< 0.005] | 28.58 (± 0.04) [< 0.005] | 29.98 (± 0.03) [< 0.005] | 85.00 (± 0.04) [< 0.005] | 63.34 (± 0.04) [< 0.005] | 46.08 (± 0.02) [< 0.005] | 88.02 (± 0.02) [< 0.005] | 68.63 (± 0.09) [< 0.005] | 52.07 (± 0.04) [< 0.005] |
Table III. Mean Accuracy Across Temporal Slices Over Three Runs. Higher values are better. Parentheses show judge-run standard deviations. Brackets show Holm-adjusted two-sided Wilcoxon signed-rank p-values against Baseline after Shapiro–Wilk rejected normality.
update quality and outdated-answer suppression. In other words, TAFT does not merely learn the newly valid answer, it also reduces the tendency to reproduce invalid answers that became obsolete after the transition. This distinction is important because the baseline is trained on accumulated valid answers but does not observe paired outdated answers. The improvement therefore suggests that temporal contrast is responsible for part of the gain. At the same time, the reported change score combines current-answer correctness and stale-answer avoidance. It supports the conclusion that TAFT improves temporal overwrite behavior, but a separate error breakdown would be needed to determine whether the remaining failures are mostly stale-answer repetitions or other incorrect answers. The retention results show an even larger separation. On average, TAFT more than doubles retention accuracy over the baseline (63.34% vs. 29.31%, ), indicating that retention-aware adaptation is essential to avoid catastrophic forgetting and that TAFT preserves still-valid repository knowledge while adapting to updated knowledge. Suggesting, that repeated temporal updates do not show evidence of progressive degradation on retained knowledge.
Knowledge-anchor conditioning has different effects depending on the underlying adaptation strategy. TAFT-KANT further improves updated/suppressed and retention accuracy to 88.02% and 68.63%, corresponding to relative improvements of 3.55% and 8.35% over TAFT (both vs TAFT). In contrast, Baseline-KANT reaches only 47.36% and 28.58%, respectively. These results indicate that anchor conditioning further improves temporal adaptation with TAFT under directly supplied correct anchors, while the Baseline-KANT results show that anchors alone do not provide a general improvement.
Overall, the results show that TAFT improves all core temporal-adaptation requirements evaluated in . It learns updated knowledge more accurately than the baseline, suppresses obsolete answers through the changed-answer preference signal, and preserves still-valid knowledge substantially better than the baseline. TAFT-KANT further strengthens these gains across all evaluated dimensions.
– In summary: TAFT consistently improves temporal adaptation over the baseline variants across all evaluated time slices. For updated and suppressed knowledge, it achieves a relative improvement of 18.12% over the baseline, showing that explicit temporal supervision helps the model adapt to changes. Furthermore, TAFT doubles retention accuracy over the baseline, demonstrating that retention-aware adaptation limits catastrophic forgetting. The knowledge anchored variant of TAFT further improves change, retention, and neighbor accuracy over TAFT, corresponding to relative improvements of 3.55%, 8.35%, and 13.00%, respectively (all vs. TAFT). In other words, TAFT learns newly valid answers, reduces the tendency to reproduce invalid answers, and improves knowledge retention.
a) Exploratory Model-Editing Comparison.: TAFT achieves the highest overall accuracy compared to GRACE [42], MEMIT [40], and the non-finetuned base model, as shown in Table IV. Similarly, TAFT also improves overall accuracy on the second model family Qwen2.5-Coder-
| Approach | Change (%) ↑ | Retention (%) ↑ | Neighbor (%) ↑ | Overall (%) ↑ |
| GPT-OSS-20B / Base model | 28.12 | 38.74 | 33.93 | 33.60 (± 0.13) |
| GPT-OSS-20B / MEMIT | 33.30 | 35.81 | 36.66 | 35.26 (± 0.05) |
| GPT-OSS-20B / GRACE | 24.55 | 41.56 | 42.02 | 36.04 (± 0.01) |
| GPT-OSS-20B / TAFT | 72.57 | 66.43 | 38.73 | 59.24 (± 0.10) |
| Qwen2.5-Coder-14B / Base model | 34.99 | 41.86 | 38.16 | 38.34 (± 0.01) |
| Qwen2.5-Coder-14B / TAFT | 67.61 | 86.50 | 49.63 | 67.91 (± 0.08) |
Table IV. Exploratory Accuracy Comparison. Mean accuracies are calculated over three temporal slices and three runs. Parentheses indicate standard deviations.
14B, improving the overall accuracy from 38.34% to 67.91%. The exploratory results suggest that TAFT transfers to other model families and outperforms model editing approaches on continuous temporal adaptation.
RQ2: Contribution of TAFT Components
To isolate the contribution of each component, we conducted an ablation study comparing the TAFT approach against two variants. Specifically, we compare: (i) SFT-only, which observes only the currently valid answers , and (ii) TAFT without retention, which applies MPO using temporal preference pairs
The ablation results show that the objectives contribute complementary behavior, with the full TAFT approach achieving the best overall performance, as shown in Table V. Compared with SFT-only, the TAFT variant without retention improves change accuracy from 71.01% to 95.40%, supporting the role of temporal preferences in overwriting stale answers. However, both retention and neighbor accuracy decrease slightly compared with the SFT-only variant, from 28.39% to 27.68% and from 30.45% to 29.42%, respectively. In contrast, the full TAFT objective balances these effects, achieving 85.00% change accuracy while substantially improving retention to 63.34% and neighbor accuracy to 46.08%. Consequently, it achieves the highest overall accuracy of 64.81%, compared with 50.83% without retention and 43.28% for SFT-only. This indicates that MPO-only updates can improve adaptation to changed examples, but they do so without preserving still-valid or semantically adjacent knowledge. Thus, MPO-only is insufficient, and the results highlight the need for the interaction between the components. Overall, neither component is sufficient in isolation: preference learning provides temporal overwrite pressure to learn updated knowledge and suppress stale answers, while retention replay prevents degradation of still-valid knowledge. Together, these findings support TAFT as a fused temporal objective for repository-level code comprehension, where evolution invalidates some answers while leaving many related ones unchanged.
| Approach | Change (%) ↑ | Retention (%) ↑ | Neighbor (%) ↑ | Overall (%) ↑ |
| SFT-only | 71.01 (± 0.07) | 28.39 (± 0.06) | 30.45 (± 0.04) | 43.28 (± 0.04) |
| TAFT w/o retention | 95.40 (± 0.02) | 27.68 (± 0.02) | 29.42 (± 0.09) | 50.83 (± 0.04) |
| TAFT | 85.00 (± 0.04) | 63.34 (± 0.04) | 46.08 (± 0.02) | 64.81 (± 0.03) |
Table V. Mean Ablation Study Accuracies (± Std.) Over Three Runs.
– In summary: The ablation shows that the individual components are insufficient for robust temporal adaptation and confirms their complementary roles in TAFT. MPO improves adaptation to updated knowledge and suppression of outdated answers, but without retention it fails to preserve still-valid knowledge. Only the combined TAFT objective provides the best overall performance across the evaluated dimensions.
RQ3: Update Timing
RQ3 evaluates the cost–accuracy trade-off of continuous temporal adaptation. Table VI reports the average accuracy, runtime, energy consumption, and carbon emissions across the evaluated approaches. The results show a clear trade-off between adaptation accuracy and training cost.
| Approach | Accuracy (%) ↑ | Time (h) ↓ | Energy (kWh) ↓ | CO (kg) ↓ |
| Baseline | 44.15 | 1.07 | 1.28 | 0.49 |
| Baseline-Batched | 42.99 | 6.99 | 7.30 | 2.78 |
| Baseline-KANT | 35.31 | 1.25 | 1.25 | 0.56 |
| TAFT | 64.81 | 2.76 | 3.50 | 1.33 |
| TAFT-KANT | 69.57 | 3.44 | 3.96 | 1.51 |
Table VI. Cost–Accuracy Trade-Off Across Approaches. Accuracy reports the mean across dimensions, time slices, and runs. Energy metrics report the accumulated training cost across time slices.
The baseline has the lowest runtime, requiring 1.07h and 1.28 kWh while achieving 44.15% overall accuracy. Baseline-Batched does not improve accuracy, reaching 42.99%, while increasing runtime to 6.99h and energy consumption to 7.30 kWh. Similarly, augmenting the baseline with knowledge anchors does not improve accuracy or runtime, with Baseline-KANT reaching 35.31% accuracy in 1.25h.
In contrast, TAFT improves accuracy over all baseline variants, achieving 64.81% compared with 44.15% for the baseline, 42.99% for Baseline-Batched, and 35.31% for Baseline-KANT. Compared to the baseline, this corresponds to a 46.8% relative improvement in accuracy, at the cost of 2.58× higher runtime and 2.73× higher energy consumption. Augmenting TAFT with knowledge anchors [28] further improves accuracy to 69.57%, but also increases costs to 3.44h and 3.96 kWh, respectively.
Based on a Pareto-frontier analysis, the TAFT variants provide strong cost–accuracy trade-offs, with TAFT favoring lower computational cost and TAFT-KANT trading additional cost for higher accuracy.
Overall, these results show that continuous temporal adaptation is preferable when repository freshness matters. Both the baseline and Baseline-KANT variants are less costly but also less effective at preserving temporal alignment. The TAFT variants balance accuracy and adaptation cost by applying targeted local updates, trading higher training time and energy use for substantially improved alignment with repository evolution.
RQ – In summary: TAFT variants provide strong cost–accuracy trade-offs, substantially improving accuracy over the baselines while maintaining continuous temporal freshness. These results show that continuous temporal adaptation is preferable when models must remain aligned with repository evolution.
Locality and Stability
RQ4 investigates whether temporal updates remain localized to changed knowledge or spill over into semantically neighboring but unaffected knowledge. The neighbor accuracy results show that TAFT consistently outperforms the baseline. Across the temporal stream, TAFT reaches 46.08% average neighbor accuracy compared to 31.19% for the baseline, corresponding to approximately 1.48× the baseline performance.
The gain is consistent across all ten time slices, indicating that TAFT reduces unintended effects on semantically related but unchanged knowledge. Augmenting the baseline with knowledge anchors does not improve neighbor accuracy. Baseline-KANT decreases average neighbor accuracy from 31.19% to 29.98%. In contrast, TAFT-KANT further increases neighbor accuracy from 46.08% to 52.07%, corresponding to a relative improvement of 13.00%, and outperforms TAFT across all ten temporal slices. This pattern suggests that knowledge anchors may provide additional cues for distinguishing changed and suppressed knowledge from retained and neighboring knowledge within the TAFT update objective. This behavior is consistent with the role of retention examples, which constrain broad shifts while MPO updates changed behavior. Still, neighbor accuracy remains the lowest of the evaluated dimensions. A likely reason is that neighbor questions are intentionally close to updated questions, often sharing context and identifiers, making it difficult for the model to distinguish updated from related knowledge. Conversely, neighbors that overlap more strongly with retained QA pairs may be less affected, suggesting that retention partly mitigates, but does not eliminate, collateral updates. The reported neighbor accuracy should therefore be interpreted as relative correctness on adjacent unchanged knowledge, not as a complete explanation of stepwise collateral damage. This remaining gap indicates that preserving nearby unaffected knowledge is still an open challenge and motivates future work on stronger locality constraints, more fine-grained neighbor sampling, or explicit regularization over semantically adjacent but unchanged examples.
RQ – In summary: TAFT consistently improves accuracy on neighbor knowledge across all temporal slices, increasing the average accuracy by ≈ 1.48× over the baseline. TAFT augmented with knowledge anchors further increases neighbor accuracy from 46.08% to 52.07%. However, neighbor accuracy remains the weakest dimension, indicating that retention reduces collateral updates but does not fully prevent overgeneralization to semantically adjacent knowledge; preserving such knowledge remains an open challenge that motivates further analysis.
Threats to Validity
Construct validity. We operationalize adaptation through generated QA tuples for updated, outdated, retained, and neighboring knowledge, exposing the temporal relation between and . However, this abstraction cannot capture all comprehension needs, such as multi-file reasoning, architectural intent, runtime behavior, or external documentation. Moreover, the boundary between changed, retained, and neighboring knowledge can be blurred by partial invalidation or indirect cross-file effects. We mitigate this risk by grounding generation and verification in the PR description, patch, target file context, and paired current and outdated answers.
Internal validity. Internal validity concerns whether observed differences can be attributed to TAFT rather than confounding design choices. Our ablations keep the benchmark splits, model initialization, configurations, and evaluation protocol fixed, supporting controlled comparison between the components and their combination. Training and evaluation examples originate from the same repository transitions [43], and retention examples contribute to the training objective [25, 44]. This overlap is intentional, as we evaluate supervised knowledge maintenance across successive updates rather than generalization to unseen questions. Stochastic training, retention sampling, hyperparameters, and temporal ordering can also affect fine-tuning outcomes [45]. Thus, the results support the proposed objective under the stated protocol, but not under all training budgets, sampling policies, or update schedules. Baseline-KANT and TAFT-KANT are evaluated with directly supplied correct anchors and without the FiM stage of the complete KANT pipeline. Thus, their results do not measure automatic anchor-selection or the performance of the full KANT training procedure. The exploratory comparison introduces additional confounding factors as neither GRACE [42] nor MEMIT [40] was designed for MoE architectures. Thus, the observed performances may reflect architecture-specific constraints rather than effectiveness under their intended settings.
The study relies primarily on LLM-based judging of QA pairs. This scales our dataset, but may introduce biases: generated questions can omit implicit context, stay too close to patches, or favor facts that are easy to express. The verification prompt removes pairs that are unsupported by the code evidence, but cannot guarantee correctness like expert annotation or executable checks. Similarly, the LLM-judge may favor reference-like phrasing, miss subtle outdated knowledge, or vary across question types. We mitigate these risks by validating the judge against adjudicated human labels on a stratified sample of 400 items, using the same judging protocol for all systems, and evaluating all dimensions separately across three runs. The human validation does not provide labels for the full dataset. Therefore, absolute accuracy values should still be interpreted cautiously.
External validity. Our benchmark builds on SWE-bench, which provides realistic, test-validated GitHub issue resolutions across popular Python repositories. However, it emphasizes issue-fixing patches and may not capture refactoring, other changes, non-Python repositories. We therefore view the results as evidence for temporal adaptation in this controlled Python setting, with cross-language replications left for future work.
Temporal validity. Our temporal stream is constructed from version tags and normalized repository-specific bins. This makes heterogeneous histories comparable and reproducible, but only approximates how repository knowledge changes in deployment. Tags can be sparse, inconsistent, or delayed relative to the commits that introduced a change. Normalizing histories by relative position also removes absolute calendar time and release cadence, both of which may affect update frequency decisions. Thus, the update-timing analysis captures quality–cost trade-offs under our discretized stream, not a universal prescription for retraining in every workflow.
Related Work
The work aims to equip repository-specialized LLMs with the ability to remain temporally consistent as software evolves.
a) Repository-level code comprehension, QA, and datasets.: Prior work on developer information needs shows that developers ask questions about behavior, rationale, and usage relationships, often requiring evidence from multiple artifacts [1, 2]. Recent LLM-based work extends these needs to repository-scale settings, including in-IDE code understanding and benchmarks for documentation, and code generation [5, 28, 46, 47]. These efforts build on datasets that serve as important precursors by exposing models to realistic code context through related tasks, such as code search, repair, and generation [6, 21, 48, 49]. Nevertheless, these datasets typically represent a task, repository snapshot, or retrieval/completion problem, and prior work treats repository comprehension as single-snapshot learning focused on acquiring new knowledge. In contrast, TAFT uses repository transitions, deriving updated, outdated, retained, and neighbor QA examples to assess adaptation quality across multiple dimensions.
b) Software evolution and stale model knowledge.: Software-evolution research treats repository knowledge as temporally unstable. Studies of documentation, comments, dependencies, and library migrations show that artifacts often lag behind changes [50, 51, 52]. For code LLMs, recent work shows that models emit deprecated APIs under library evolution and explores version-aware API migration [18, 19]. Recent benchmarks similarly emphasize data freshness under code evolution [53, 54]. Together, these efforts identify stale model knowledge as a practical problem, but focus on code generation, completion, or API migration. TAFT instead targets repository-comprehension QA for evolving repositories, where adaptation must prefer the answer valid at , reject the answer valid only at , and preserve answers unaffected by the transition.
c) Continual adaptation, suppression, and retention.: Continual learning studies how models acquire new tasks or distributions without catastrophic forgetting [14]. In code, Yadav et al. [55] instantiate this setting through CodeTask-CL, where models adapt sequentially across tasks and use replay to retain performance. However, conventional learning episodes are usually defined by tasks, domains, or concepts, whereas TAFT defines them by concrete transitions between repository states. This granularity is essential because repository evolution separates newly valid, obsolete, and still-valid behavior, a distinction conventional continual-learning formulations do not encode directly.
Replay is a principal mechanism for stabilizing learning, revisiting prior examples while learning new data [25, 56]. In LLMs, rehearsal can use retained data, synthetic replay, distillation, or attention-guided retention to mitigate forgetting [26, 27]. TAFT adopts this intuition but constrains replay to repository evolution: retention examples are not arbitrary samples, but facts that remain valid across the same transition that introduces changed and outdated answers. Replay alone is insufficient, since it preserves prior behavior but does not identify which prior answers should be suppressed. TAFT therefore couples retention replay with temporal preference supervision over paired answers.
Suppressing obsolete behavior is also related to Machine Unlearning (MU) and model-editing. MU removes selected data or behaviors, often for privacy or deletion requirements [57, 58], while model-editing modifies targeted factual associations through parameter edits, external memories, or mass-editing mechanisms [40, 42, 59]. However, repeated edits can weaken previously edited knowledge and cause gradual or catastrophic forgetting [15, 16], and editing code models remains difficult in generalization settings [60]. Nevertheless, their assumptions differ from repository adaptation: unlearning treats information as removable, and editing treats target associations as patchable, whereas repository evolution requires suppressing only obsolete behavior while preserving neighboring and historical knowledge that remains valid.
SFT and preference optimization are common mechanisms for aligning language models with task-specific goals. DPO optimizes preferences between accepted and rejected responses, while related objectives combine preference and likelihood signals in different ways (e.g. ORPO and MPO) [31, 32, 61]. These methods combine pairwise and likelihood-based training, but their labels usually encode alignment or response quality. In TAFT, the preference is temporal rather than qualitative: repository evolution determines that is current and is stale. Similarly, the supervised component is not a general quality regularizer, but a replay term over answers that should remain correct after the code change. Thus, TAFT combines suppression and retention into a single temporal adaptation objective grounded in code evolution.
Future Work
A future direction for TAFT is broader validation across languages as our current benchmark builds on SWE-bench, which focuses on Python. Extending TAFT to languages such as JavaScript, C++, and Java would clarify the generalizability of TAFT across languages.
The most important methodological extension concerns neighboring knowledge. In the current design, neighbor examples are used to measure locality and stability rather than as direct update constraints, and the results show that neighbor stability remains the weakest dimension. Future work should therefore examine how neighbors are defined, sampled, and represented, as well as how they can be incorporated into the training objective. Promising directions include version-aware or finer-grained knowledge anchors to distinguish changed, retained, and neighboring concepts, as well as neighbor-aware regularization, contrastive locality losses, and consistency constraints. Such objectives would make locality an explicit optimization target rather than just an evaluation criterion. The anchor-conditioned variants should also be evaluated with automatically selected anchors used in the complete KANT pipeline [28].
Another direction is adaptive update scheduling. This paper uses normalized chronological bins for controlled comparison. In practice, updates may be triggered by commit density, release boundaries, dependency changes, API churn, or measured model drift. Future work should compare adaptive update schedules with Baseline-Batched and the other evaluated update strategies, measuring the trade-off between freshness, knowledge preservation, and training cost.
Finally, the human validation provides an independent assessment of the LLM-judge on a stratified sample, while the full-scale evaluation remains automated. Future work should extend this validation with domain-expert annotation, repository tests, and developer studies.
Conclusion
This work aims at improving repository-specialized LLMs with the ability to remain temporally consistent as software evolves, aligning models alongside the evolution by adapting to new knowledge, suppressing obsolete answers, retaining stable knowledge, and preserving neighboring semantics. TAFT addresses this by treating transitions as a temporal preference between updated and stale knowledge, while retaining stable knowledge through transition-conditioned retention replay.
Our evaluation shows that TAFT improves each evaluated dimension of temporal repository adaptation. For updated and suppressed knowledge, TAFT significantly improves over the baseline by more than 18% (-value ), demonstrating TAFT’s ability to align models to the updated knowledge, while suppressing obsolete knowledge through temporal preference supervision. For retention, TAFT achieves an average accuracy of more than double that of the baseline, showing that transition-conditioned replay substantially reduces forgetting of stable knowledge. For neighboring knowledge, TAFT reaches 46.08% average accuracy compared to 31.19% for the baseline, a 1.48× improvement while also showing that neighboring semantics remain an open challenge. Under directly supplied anchors, TAFT-KANT further increases neighbor accuracy to 52.07%. Furthermore, the TAFT variants provide strong cost–accuracy trade-offs. It is more costly than the baseline, requiring 2.76h of training time compared to 1.07h, but this added cost enables substantially higher accuracy and continuous temporal freshness. Thus, showing that explicit temporal adaptation yields better adaptation quality at the cost of additional training time and energy.
The ablation study further explains where these gains come from. It confirms that preference learning alone is insufficient, and that the strongest results require the full objective combining updated, suppressed, and retained knowledge. Thus, TAFT’s effectiveness depends not only on learning what changed, but also on jointly suppressing what expired and replaying what must remain valid.
These findings advance repository-level LLM adaptation, by making software evolution trainable: it distinguishes knowledge that changed, knowledge that expired, and knowledge that must be preserved. This gives repository-specialized models a practical path to remain aligned with evolving code without being rebuilt from scratch.
The approach remains bounded by the constructed benchmark, backbone model family, and LLM-judge protocol. Future work should strengthen locality, study adaptive update schedules, and replicate the results across more languages, models, and repository types.
Overall, TAFT demonstrates that repository-specialized LLMs can be adapted along code evolution by learning what changed, retaining what remains valid, and suppressing what became obsolete. This makes temporal alignment a concrete and measurable requirement for future code comprehension systems.
Acknowledgments
The research leading to these results has been supported by the Swiss National Science Foundation (SNSF) through Grant SNSF204632.
References
References
- [1]A. J. Ko, R. DeLine, and G. Venolia, “Information needs in collocated software development teams,” in 29th International Conference on Software Engineering (ICSE ’07), 2007, pp. 344–353.DOI
- [2]T. D. LaToza and B. A. Myers, “Hard-to-answer questions about code,” in Evaluation and Usability of Programming Languages and Tools, ser. PLATEAU ’10. Association for Computing Machinery, 2010. [Online]. Available: https://doi.org/10.1145/1937117.1937125
- [3]X. Xia, L. Bao, D. Lo, Z. Xing, A. E. Hassan, and S. Li, “Measuring program comprehension: A large-scale field study with professionals,” IEEE Transactions on Software Engineering, vol. 44, no. 10, pp. 951–976, 2018.
- [4]A. Bouraffa, G.-L. Fuhrmann, and W. Maalej, “Developers’ visuo-spatial mental model and program comprehension,” in 2023 IEEE/ACM 45th International Conference on Software Engineering (ICSE). IEEE, 2023, pp. 1920–1932. [Online]. Available: https://doi.org/10.1109/ICSE48619.2023.00164
- [5]D. Nam, A. Macvean, V. J. Hellendoorn, B. Vasilescu, and B. A. Myers, “Using an LLM to help with code understanding,” in Proceedings of the 46th IEEE/ACM International Conference on Software Engineering, ICSE 2024, Lisbon, Portugal, April 14-20, 2024. ACM, 2024, pp. 97:1–97:13. [Online]. Available: https://doi.org/10.1145/3597503.3639187
- [6]C. Liu and X. Wan, “CodeQA: A question answering dataset for source code comprehension,” in Findings of the Association for Computational Linguistics: EMNLP 2021. Association for Computational Linguistics, 2021, pp. 2618–2632. [Online]. Available: https://aclanthology.org/2021.findings-emnlp.223arxiv.org/abs/2109.08365
- [7]A. Mallen, A. Asai, V. Zhong, R. Das, D. Khashabi, and H. Hajishirzi, “When not to trust language models: Investigating effectiveness of parametric and non-parametric memories,” in Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). Association for Computational Linguistics, 2023, pp. 9802–9822. [Online]. Available: https://aclanthology.org/2023.acl-long.546/
- [8]B. He, N. Chen, X. He, L. Yan, Z. Wei, J. Luo, and Z.-H. Ling, “Retrieving, rethinking and revising: The chain-of-verification can improve retrieval augmented generation,” in Findings of the Association for Computational Linguistics: EMNLP 2024. Association for Computational Linguistics, 2024, pp. 10731–10393. [Online]. Available: https://aclanthology.org/2024.findings-emnlp.607/arxiv.org/abs/2410.05801
- [9]N. F. Liu, K. Lin, J. Hewitt, A. Paranjape, M. Bevilacqua, F. Petroni, and P. Liang, “Lost in the middle: How language models use long contexts,” Transactions of the Association for Computational Linguistics, vol. 12, pp. 157–173, 2024. [Online]. Available: https://aclanthology.org/2024.tacl-1.9/arxiv.org/abs/2307.03172
- [10]M. Levy, A. Jacoby, and Y. Goldberg, “Same task, more tokens: the impact of input length on the reasoning performance of large language models,” in Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). Association for Computational Linguistics, 2024, pp. 15339–15353. [Online]. Available: https://aclanthology.org/2024.acl-long.818/arxiv.org/abs/2402.14848
- [11]I. Bouzenia, P. Devanbu, and M. Pradel, “RepairAgent: An autonomous, llm-based agent for program repair,” in 2025 IEEE/ACM 47th International Conference on Software Engineering (ICSE), 2025. [Online]. Available: https://conf.researchr.org/details/icse-2025/icse-2025-research-track/160/RepairAgent-An-Autonomous-LLM-Based-Agent-for-Program-Repairarxiv.org/abs/2403.17134
- [12]C. S. Xia, Y. Deng, S. Dunn, and L. Zhang, “Demystifying llm-based software engineering agents,” Proceedings of the ACM on Software Engineering, vol. 2, pp. 801–824, 2025. [Online]. Available: https://conf.researchr.org/details/fse-2025/fse-2025-research-papers/85/Demystifying-LLM-based-Software-Engineering-AgentsDOI
- [13]H. Li, L. Ding, M. Fang, and D. Tao, “Revisiting catastrophic forgetting in large language model tuning,” in Findings of the Association for Computational Linguistics: EMNLP 2024. Association for Computational Linguistics, 2024, pp. 4297–4308. [Online]. Available: https://aclanthology.org/2024.findings-emnlp.249/arxiv.org/abs/2406.04836
- [14]M. McCloskey and N. J. Cohen, “Catastrophic interference in connectionist networks: The sequential learning problem,” in Psychology of Learning and Motivation, ser. Psychology of Learning and Motivation. Academic Press, 1989, vol. 24, pp. 109–165, ISSN: 0079-7421. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S0079742108605368
- [15]Q. Li and X. Chu, “Can we continually edit language models? on the knowledge attenuation in sequential model editing,” in Findings of the Association for Computational Linguistics: ACL 2024. Association for Computational Linguistics, 2024, pp. 5438–5455. [Online]. Available: https://aclanthology.org/2024.findings-acl.323/
- [16]A. Gupta, A. Rao, and G. Anumanchipalli, “Model editing at scale leads to gradual and catastrophic forgetting,” in Findings of the Association for Computational Linguistics: ACL 2024. Association for Computational Linguistics, 2024, pp. 1502–15232. [Online]. Available: https://aclanthology.org/2024.findings-acl.902/arxiv.org/abs/2401.07453
- [17]Q. Li and X. Chu, “AdaEdit: Advancing continuous knowledge editing for large language models,” in Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). Association for Computational Linguistics, 2025, pp. 4127–4149. [Online]. Available: https://aclanthology.org/2025.acl-long.208/DOI
- [18]C. Wang, K. Huang, J. Zhang, Y. Feng, L. Zhang, Y. Liu, and X. Peng, “LLMs meet library evolution: Evaluating deprecated API usage in LLM-based code completion,” in 2025 IEEE/ACM 47th International Conference on Software Engineering (ICSE), 2025. [Online]. Available: https://doi.org/10.1109/ICSE55347.2025.00245
- [19]H. Wu, Y. Yao, W. Yu, and N. Zhang, “Recode: Updating code api knowledge with reinforcement learning,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 40, no. 40, 2026, pp. 33908–33916.arxiv.org/abs/2506.20495
- [20]A. Wolf, P. Rani, and H. C. Gall. (2025) Temporal Adaptive Fine-tuning for Code Comprehension – Replication Package. [Online]. Available: https://doi.org/10.5281/zenodo.23323054
- [21]C. E. Jimenez, J. Yang, A. Wettig, S. Yao, K. Pei, O. Press, and K. R. Narasimhan, “SWE-bench: Can language models resolve real-world github issues?” in The Twelfth International Conference on Learning Representations, 2024. [Online]. Available: https://openreview.net/forum?id=VTF8yNQM66arxiv.org/abs/2310.06770
- [22]J. Yang, C. Jimenez, A. Wettig, K. Lieret, S. Yao, K. Narasimhan, and O. Press, “Swe-agent: Agent-computer interfaces enable automated software engineering,” Advances in Neural Information Processing Systems, vol. 37, pp. 50 528–50 652, 2024.arxiv.org/abs/2405.15793
- [23]X. Wang, B. Li, Y. Song, F. F. Xu, X. Tang, M. Zhuge, J. Pan, Y. Song, B. Li, J. Singh, H. Tran, F. Li, R. Ma, M. Zheng, B. Qian, D. Shao, N. Muennighoff, Y. Zhang, B. Hui, J. Lin, R. Brennan, H. Peng, H. Ji, and G. Neubig, “Openhands: An open platform for ai software developers as generalist agents,” in International Conference on Learning Representations, vol. 2025, 2025, pp. 65882–65919. [Online]. Available: https://proceedings.iclr.cc/paper_files/paper/2025/file/a4b6adb648850c0c331d1259fc66a69c-Paper-Conference.pdfarxiv.org/abs/2407.16741
- [24]F. C. d. R. Pinto and L. G. P. Murta, “On the assignment of commits to releases,” Empirical Software Engineering, vol. 28, no. 2, 2023. [Online]. Available: https://doi.org/10.1007/s10664-022-10263-x
- [25]D. Rolnick, A. Ahuja, J. Schwarz, T. Lillicrap, and G. Wayne, “Experience replay for continual learning,” Advances in neural information processing systems, vol. 32, 2019.
- [26]J. Huang, L. Cui, A. Wang, C. Yang, X. Liao, L. Song, J. Yao, and J. Su, “Mitigating catastrophic forgetting in large language models with self-synthesized rehearsal,” in Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). Association for Computational Linguistics, 2024, pp. 1416–1428. [Online]. Available: https://aclanthology.org/2024.acl-long.77/arxiv.org/abs/2403.01244
- [27]J. He, H. Guo, K. Zhu, Z. Zhao, M. Tang, and J. Wang, “SEEKR: Selective attention-guided knowledge retention for continual learning,” in Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics, 2024, pp. 3254–3266. [Online]. Available: https://aclanthology.org/2024.emnlp-main.190/
- [28]A. Wolf, M. Edoardo Palma, P. Rani, and H. C. Gall, “Key-augmented neural triggers for knowledge sharing,” Journal of Systems and Software, vol. 237, p. 112850, 2026. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S0164121226000841
- [29]A. Pramanick, T. Beck, K. Stowe, and I. Gurevych, “The challenges of temporal alignment on Twitter during crises,” in Findings of the Association for Computational Linguistics: EMNLP 2022. Association for Computational Linguistics, 2022, pp. 2658–2672. [Online]. Available: https://aclanthology.org/2022.findings-emnlp.195/
- [30]O. Agarwal and A. Nenkova, “Temporal effects on pre-trained models for language processing tasks,” Transactions of the Association for Computational Linguistics, vol. 10, pp. 904–921, 2022. [Online]. Available: https://aclanthology.org/2022.tacl-1.53/
- [31]W. Wang, Z. Chen, W. Wang, Y. Cao, Y. Liu, Z. Gao, J. Zhu, X. Zhu, L. Lu, Y. Qiao, and J. Dai, “Enhancing the reasoning ability of multimodal large language models via mixed preference optimization,” arXiv preprint arXiv:2411.10442, 2024. [Online]. Available: https://arxiv.org/abs/2411.10442
- [32]R. Rafailov, A. Sharma, E. Mitchell, C. D. Manning, S. Ermon, and C. Finn, “Direct preference optimization: Your language model is secretly a reward model,” in Advances in Neural Information Processing Systems 36 (NeurIPS 2023), 2023, pp. 53 728–53 741. [Online]. Available: https://proceedings.neurips.cc/paper_files/paper/2023/hash/a85b405ed65c64774a4fe8302b5e06e7-Abstract-Conference.htmlarxiv.org/abs/2305.18290
- [33]Y. Chen, S. Ji, Q. Chen, T. Liang, Y. Li, Z. Wang, W. Wang, J. Lu, H. Wang, X. Pu, F. Zhuo, and Z. Zhao, “WAVAlign: Enhancing intelligence and expressiveness in spoken dialogue models via adaptive hybrid post-training,” in Findings of the Association for Computational Linguistics: ACL 2026. Association for Computational Linguistics, 2026, pp. 2421–2444. [Online]. Available: https://aclanthology.org/2026.findings-acl.114/
- [34]E. Strubell, A. Ganesh, and A. McCallum, “Energy and policy considerations for deep learning in NLP,” in Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics. Association for Computational Linguistics, 2019, pp. 3645–3650. [Online]. Available: https://aclanthology.org/P19-1355arxiv.org/abs/1906.02243
- [35]G. Paiva, E. D. Canedo, and G. P. R. Filho, “From issue titles to requirements: an empirical study of large language models and prompt engineering strategies,” Requir. Eng., vol. 31, no. 1, 2026. [Online]. Available: https://doi.org/10.1007/s00766-026-00462-z
- [36]J. He, H. Shi, T. Y. Zhu, C. Treude, J. Sun, Z. Xing, X. Du, and D. Lo, “Llm-as-a-judge for software engineering: Literature review, vision, and the road ahead,” ACM Trans. Softw. Eng. Methodol., 2026. [Online]. Available: https://doi.org/10.1145/3797276
- [37]K. S. Cheung, M. Kaul, G. Jahangirova, M. R. Mousavi, and E. Zie, “Comparative analysis of carbon footprint in manual vs. llm-assisted code development,” in Proceedings of the 1st International Workshop on Responsible Software Engineering, 2025, pp. 13–20.DOI
- [38]X. Wang, C. Na, E. Strubell, S. Friedler, and S. Luccioni, “Energy and carbon considerations of fine-tuning BERT,” in Findings of the Association for Computational Linguistics: EMNLP 2023. Association for Computational Linguistics, 2023, pp. 9058–9069. [Online]. Available: https://aclanthology.org/2023.findings-emnlp.607/DOI
- [39]S. L. Lohr, Sampling: Design and Analysis, 3rd ed. CRC Press, 2021.
- [40]K. Meng, A. S. Sharma, A. J. Andonian, Y. Belinkov, and D. Bau, “Mass-editing memory in a transformer,” in The Eleventh International Conference on Learning Representations, 2023. [Online]. Available: https://openreview.net/forum?id=MkbcAHlgySgarxiv.org/abs/2210.07229
- [41]P. Maini, Z. Feng, A. Schwarzschild, Z. C. Lipton, and J. Z. Kolter, “TOFU: A task of fictitious unlearning for LLMs,” in ICLR 2024 Workshop on Navigating and Addressing Data Problems for Foundation Models, 2024. [Online]. Available: https://openreview.net/forum?id=ovgIBnE2tarxiv.org/abs/2401.06121
- [42]T. Hartvigsen, S. Sankaranarayanan, H. Palangi, Y. Kim, and M. Ghassemi, “Aging with grace: Lifelong model editing with discrete key-value adaptors,” in Advances in Neural Information Processing Systems (NeurIPS), 2023.arxiv.org/abs/2211.11031
- [43]S. Kaufman, S. Rosset, C. Perlich, and O. Stitelman, “Leakage in data mining: Formulation, detection, and avoidance,” ACM Trans. Knowl. Discov. Data, vol. 6, no. 4, 2012. [Online]. Available: https://doi.org/10.1145/2382577.2382579
- [44]R. Tiwari, K. Killamsetty, R. Iyer, and P. Shenoy, “Gcr: Gradient corset based replay buffer selection for continual learning,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2022, pp. 99–108.arxiv.org/abs/2111.11210
- [45]K. Chang and K. Cho, “Hyperparameters in continual learning: A reality check,” Transactions on Machine Learning Research, 2025. [Online]. Available: https://openreview.net/forum?id=hiRCXmbAz
- [46]Q. Luo, Y. Ye, S. Liang, Z. Zhang, Y. Qin, Y. Lu, Y. Wu, X. Cong, Y. Lin, Y. Zhang, X. Che, Z. Liu, and M. Sun, “Repoagent: An llm-powered open-source framework for repository-level code documentation generation,” in Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing: System Demonstrations. Association for Computational Linguistics, 2024, pp. 436–464. [Online]. Available: https://aclanthology.org/2024.emnlp-demo.46/arxiv.org/abs/2402.16667
- [47]J. Strich, F. Schneider, I. Nikishina, and C. Biemann, “On improving repository-level code QA for large language models,” in Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 4: Student Research Workshop). Association for Computational Linguistics, 2024, pp. 209–244. [Online]. Available: https://aclanthology.org/2024.acl-srw.28/
- [48]T. Liu, C. Xu, and J. McAuley, “RepoBench: Benchmarking repository-level code auto-completion systems,” in The Twelfth International Conference on Learning Representations, 2024. [Online]. Available: https://proceedings.iclr.cc/paper_files/paper/2024/hash/d191ba4c8923ed8df8935b7c98658b5f-Abstract-Conference.htmlarxiv.org/abs/2306.03091
- [49]Y. Ding, Z. Wang, W. U. Ahmad, H. Ding, M. Tan, N. Jain, M. K. Ramanathan, R. Nallapati, P. Bhatia, D. Roth, and B. Xiang, “Cross-codeeval: a diverse and multilingual benchmark for cross-file code completion,” in Proceedings of the 37th International Conference on Neural Information Processing Systems, ser. NIPS ’23. Curran Associates Inc., 2023.DOI
- [50]P. Rani, A. Blasi, N. Stulova, S. Panichella, A. Gorla, and O. Nierstrasz, “A decade of code comment quality assessment: A systematic literature review,” Journal of Systems and Software, vol. 195, p. 111515, 2023. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S0164121222001911
- [51]W. S. Tan, M. Wagner, and C. Treude, “Wait, wasn’t that code here before? detecting outdated software documentation,” in 2023 IEEE International Conference on Software Maintenance and Evolution (ICSME), 2023, pp. 553–557.arxiv.org/abs/2307.04291
- [52]H. He, R. He, H. Gu, and M. Zhou, “A large-scale empirical study on Java library migrations: prevalence, trends, and rationales,” in Proceedings of the 29th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering, ser. ESEC/FSE 2021. Association for Computing Machinery, 2021, pp. 478–490. [Online]. Available: https://dl.acm.org/doi/10.1145/3468264.3468571DOI
- [53]L. Liang, J. Gong, M. Liu, C. Wang, G. Ou, Y. Wang, X. Peng, and Z. Zheng, “Rustevо: An evolving benchmark for api evolution in llm-based rust code generation,” arXiv preprint arXiv:2503.16922, 2025.
- [54]J. Li, G. Li, X. Zhang, Y. Zhao, Y. Dong, Z. Jin, B. Li, F. Huang, and Y. Li, “EvoCodeBench: An evolving code generation benchmark with domain-specific evaluations,” in Advances in Neural Information Processing Systems 37, 2024. [Online]. Available: https://arxiv.org/abs/2410.22821
- [55]P. Yadav, O. Sun, H. Ding, X. Li, D. Zhang, M. Tan, P. Bhatia, X. Ma, R. Nallapati, M. K. Ramanathan, M. Bansal, and B. Xiang, “Exploring continual learning for code generation models,” in Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers). Association for Computational Linguistics, 2023, pp. 782–792. [Online]. Available: https://aclanthology.org/2023.acl-short.68/
- [56]M. De Lange, R. Aljundi, M. Masana, S. Parisot, A. Jia, A. Leonardis, G. Slabaugh, and T. Tuytelaars, “A continual learning survey: Defying forgetting in classification tasks,” IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 44, no. 7, pp. 3366–3385, 2022.DOI
- [57]J. Chen and D. Yang, “Unlearn what you want to forget: Efficient unlearning for LLMs,” in Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics, 2023, pp. 12 041–12 052. [Online]. Available: https://aclanthology.org/2023.emnlp-main.738/arxiv.org/abs/2310.20150
- [58]S. Liu, Y. Yao, J. Jia, S. Casper, N. Baracaldo, P. Hase, Y. Yao, C. Y. Liu, X. Xu, H. Li, K. R. Varshney, M. Bansal, S. Kopejo, and Y. Liu, “Rethinking machine unlearning for large language models,” Nature Machine Intelligence, vol. 7, pp. 181–194, 2025. [Online]. Available: https://www.nature.com/articles/s42256-025-00985-0
- [59]K. Meng, D. Bau, A. Andonian, and Y. Belinkov, “Locating and editing factual associations in gpt,” Advances in neural information processing systems, vol. 35, pp. 17 359–17 372, 2022.arxiv.org/abs/2202.05262
- [60]X. Li, S. Wang, S. Li, J. Ma, J. Yu, X. Liu, J. Wang, B. Ji, and W. Zhang, “Model editing for llms-4code: How far are we?” in 2025 IEEE/ACM 47th International Conference on Software Engineering (ICSE), 2025, pp. 937–949.
- [61]J. Hong, N. Lee, and J. Thorne, “ORPO: Monolithic preference optimization without reference model,” in Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics, 2024, pp. 11 170–11 189. [Online]. Available: https://aclanthology.org/2024.emnlp-main.626/arxiv.org/abs/2403.07691