Auto-COP: Adaptation Generation in Context-Oriented Programming using
Reinforcement Learning Options
- URL: http://arxiv.org/abs/2103.06757v2
- Date: Thu, 3 Aug 2023 13:47:39 GMT
- Title: Auto-COP: Adaptation Generation in Context-Oriented Programming using
Reinforcement Learning Options
- Abstract summary: We propose Auto-COP, a new technique to enable generation of adaptations at run time.
We present two case studies exhibiting different system characteristics and application domains.
We confirm that the generated adaptations exhibit correct system behavior measured by domain-specific performance metrics.
- Score: 2.984934409689467
- License: http://creativecommons.org/licenses/by-nc-nd/4.0/
- Abstract: Self-adaptive software systems continuously adapt in response to internal and
external changes in their execution environment, captured as contexts. The COP
paradigm posits a technique for the development of self-adaptive systems,
capturing their main characteristics with specialized programming language
constructs. COP adaptations are specified as independent modules composed in
and out of the base system as contexts are activated and deactivated in
response to sensed circumstances from the surrounding environment. However, the
definition of adaptations, their contexts and associated specialized behavior,
need to be specified at design time. In complex CPS this is intractable due to
new unpredicted operating conditions. We propose Auto-COP, a new technique to
enable generation of adaptations at run time. Auto-COP uses RL options to build
action sequences, based on the previous instances of the system execution.
Options are explored in interaction with the environment, and the most suitable
options for each context are used to generate adaptations exploiting COP. To
validate Auto-COP, we present two case studies exhibiting different system
characteristics and application domains: a driving assistant and a robot
delivery system. We present examples of Auto-COP code generated at run time, to
illustrate the types of circumstances (contexts) requiring adaptation, and the
corresponding generated adaptations for each context. We confirm that the
generated adaptations exhibit correct system behavior measured by
domain-specific performance metrics, while reducing the number of required
execution/actuation steps by a factor of two showing that the adaptations are
regularly selected by the running system as adaptive behavior is more
appropriate than the execution of primitive actions.
Related papers
- CAPO: Constraint-Aware Prompt Optimization for LLM Agents [9.4076372340902]
Large language models (LLMs) are increasingly deployed as agents that rely on system prompts to use tools and complete tasks.<n>We introduce CAPO, a primal-dual method that combines pool-based rewrites with adaptive constraint weighting to optimize system prompts under explicit operational constraints.<n>We also introduce DCAPO, which trains a feedback- and dual-conditioned rewriter with pool-based GRPO while keeping the task agent frozen.
arXiv Detail & Related papers (2026-08-17T04:01:04Z) - Learning to Learn-at-Test-Time: Language Agents with Learnable Adaptation Policies [48.31565681022125]
Test-Time Learning (TTL) enables language agents to iteratively refine their performance through repeated interactions with the environment at inference time.<n>We argue that optimal adaptation policies should be learned from task environments, not hand-engineered based on human intuition.<n>We introduce Meta-TTL, a framework that formulates the discovery of effective adaptation policies as a bi-level optimization problem.
arXiv Detail & Related papers (2026-04-01T12:41:01Z) - AdaEvolve: Adaptive LLM Driven Zeroth-Order Optimization [61.535567824938205]
We introduce AdaEvolve, a framework that reformulates LLM-driven evolution as a hierarchical adaptive optimization problem.<n>AdaEvolve consistently outperforms the open-ended baselines across 185 different open-ended optimization problems.
arXiv Detail & Related papers (2026-02-23T18:45:31Z) - AdaptiFlow: An Extensible Framework for Event-Driven Autonomy in Cloud Microservices [0.0]
AdaptiFlow is a framework to provide abstraction layers focused on the Monitor and Execute phases of the MAPE-K loop.<n>By decoupling metrics collection and action execution from adaptation logic, AdaptiFlow enables Execute to evolve into autonomous elements.<n> Validation through the enhanced Adaptable TeaStore benchmark demonstrates practical implementation of three adaptation scenarios.
arXiv Detail & Related papers (2025-12-29T14:35:49Z) - Decoupling Adaptive Control in TeaStore [0.5076419064097734]
The Adaptable TeaStore specification provides a microservice-based case study for implementing self-adaptation through a control loop.<n>We argue that implementations of this specification should be informed by key properties of self-adaptation.<n>We examine how software architectural methods, the cloud-native Operator pattern, and legacy programming language techniques can decouple self-adaptive control logic.
arXiv Detail & Related papers (2025-12-29T14:34:48Z) - Domain-Specific Data Generation Framework for RAG Adaptation [58.20906914537952]
Retrieval-Augmented Generation (RAG) combines the language understanding and reasoning power of large language models with external retrieval to enable domain-grounded responses.<n>We propose RAGen, a framework for generating domain-grounded question-answer-context (QAC) triples tailored to diverse RAG adaptation approaches.
arXiv Detail & Related papers (2025-10-13T09:59:49Z) - TSLA: A Task-Specific Learning Adaptation for Semantic Segmentation on Autonomous Vehicles Platform [60.378160142579]
It is crucial to consider computing costs when deploying on target platforms like the NVIDIAtextsuperscripttextregistered DRIVE PX 2.<n>Our objective is to customize the semantic segmentation network according to the computing power and specific scenarios of autonomous driving hardware.
arXiv Detail & Related papers (2025-08-17T08:09:13Z) - Making Prompts First-Class Citizens for Adaptive LLM Pipelines [46.59482681672941]
We describe our vision and an initial design for SPEAR, a language and runtime that fills the prompt management gap.<n> SPEAR defines a prompt algebra that governs how prompts are constructed and adapted within a pipeline.<n>By treating prompt logic as structured data, SPEAR enables optimizations such as operator fusion, prefix caching, and view reuse.
arXiv Detail & Related papers (2025-08-07T03:49:56Z) - Continual Adaptation: Environment-Conditional Parameter Generation for Object Detection in Dynamic Scenarios [54.58186816693791]
environments constantly change over time and space, posing significant challenges for object detectors trained based on a closed-set assumption.<n>We propose a new mechanism, converting the fine-tuning process to a specific- parameter generation.<n>In particular, we first design a dual-path LoRA-based domain-aware adapter that disentangles features into domain-invariant and domain-specific components.
arXiv Detail & Related papers (2025-06-30T17:14:12Z) - Adaptive Attention-Based Model for 5G Radio-based Outdoor Localization [10.271380902604212]
We develop an adaptive localization framework that combines shallow attention-based models with a router/switching mechanism based on a single-layer perceptron (SLP)
This enables seamless transitions between specialized localization models optimized for different conditions, balancing accuracy, computational efficiency, and robustness to environmental variations.
arXiv Detail & Related papers (2025-03-31T07:44:14Z) - Self-Healing Machine Learning: A Framework for Autonomous Adaptation in Real-World Environments [50.310636905746975]
Real-world machine learning systems often encounter model performance degradation due to distributional shifts in the underlying data generating process.
Existing approaches to addressing shifts, such as concept drift adaptation, are limited by their reason-agnostic nature.
We propose self-healing machine learning (SHML) to overcome these limitations.
arXiv Detail & Related papers (2024-10-31T20:05:51Z) - Generalized Preference Optimization: A Unified Approach to Offline Alignment [54.97015778517253]
We propose generalized preference optimization (GPO), a family of offline losses parameterized by a general class of convex functions.
GPO enables a unified view over preference optimization, encompassing existing algorithms such as DPO, IPO and SLiC as special cases.
Our results present new algorithmic toolkits and empirical insights to alignment practitioners.
arXiv Detail & Related papers (2024-02-08T15:33:09Z) - Reducing Large Adaptation Spaces in Self-Adaptive Systems Using Machine
Learning [10.444983001376874]
We present ML2ASR+, short for Machine Learning to Adaptation Space Reduction Plus.
We evaluate ML2ASR+ for two applications with different sizes of adaptation spaces: an Internet-of-Things application and a service-based system.
The results demonstrate that ML2ASR+ can be applied to deal with different types of goals and is able to reduce the adaptation space and hence the time to make adaptation decisions with over 90%, with negligible effect on the realization of the adaptation goals.
arXiv Detail & Related papers (2023-06-02T09:49:33Z) - Condition-Invariant Semantic Segmentation [77.10045325743644]
We implement Condition-Invariant Semantic (CISS) on the current state-of-the-art domain adaptation architecture.
Our method achieves the second-best performance on the normal-to-adverse Cityscapes$to$ACDC benchmark.
CISS is shown to generalize well to domains unseen during training, such as BDD100K-night and ACDC-night.
arXiv Detail & Related papers (2023-05-27T03:05:07Z) - Deep Learning for Effective and Efficient Reduction of Large Adaptation
Spaces in Self-Adaptive Systems [12.341380735802568]
We present 'Deep Learning for Adaptation Space Reduction Plus' -- DLASeR+ in short.
DLASeR+ offers an extendable learning framework for online adaptation space reduction.
It supports three common types of adaptation goals: threshold, optimization, and set-point goals.
Results show that DLASeR+ is effective with a negligible effect on the realization of the adaptation goals.
arXiv Detail & Related papers (2022-04-13T08:51:06Z) - REPTILE: A Proactive Real-Time Deep Reinforcement Learning Self-adaptive
Framework [0.6335848702857039]
A general framework is proposed to support the development of software systems that are able to adapt their behaviour according to the operating environment changes.
The proposed approach, named REPTILE, works in a complete proactive manner and relies on Deep Reinforcement Learning-based agents to react to events.
In our framework, two types of novelties are taken into account: those related to the context/environment and those related to the physical architecture itself.
The framework, predicting those novelties before their occurrence, extracts time-changing models of the environment and uses a suitable Markov Decision Process to deal with the real-time setting.
arXiv Detail & Related papers (2022-03-28T12:38:08Z) - Lifelong Unsupervised Domain Adaptive Person Re-identification with
Coordinated Anti-forgetting and Adaptation [127.6168183074427]
We propose a new task, Lifelong Unsupervised Domain Adaptive (LUDA) person ReID.
This is challenging because it requires the model to continuously adapt to unlabeled data of the target environments.
We design an effective scheme for this task, dubbed CLUDA-ReID, where the anti-forgetting is harmoniously coordinated with the adaptation.
arXiv Detail & Related papers (2021-12-13T13:19:45Z) - Realistic simulation of users for IT systems in cyber ranges [63.20765930558542]
We instrument each machine by means of an external agent to generate user activity.
This agent combines both deterministic and deep learning based methods to adapt to different environment.
We also propose conditional text generation models to facilitate the creation of conversations and documents.
arXiv Detail & Related papers (2021-11-23T10:53:29Z) - Generalize then Adapt: Source-Free Domain Adaptive Semantic Segmentation [78.38321096371106]
Prior arts assume concurrent access to both labeled source and unlabeled target, making them unsuitable for scenarios demanding source-free adaptation.
In this work, we enable source-free DA by partitioning the task into two: a) source-only domain generalization and b) source-free target adaptation.
We introduce a novel conditional prior-enforcing auto-encoder that discourages spatial irregularities, thereby enhancing the pseudo-label quality.
arXiv Detail & Related papers (2021-08-25T14:18:59Z) - Towards Better Adaptive Systems by Combining MAPE, Control Theory, and
Machine Learning [16.998805882711864]
Two established approaches to engineer adaptive systems are architecture-based adaptation that uses a Monitor-Analysis-Planning-Executing loop, and control-based adaptation that relies on principles of control theory (CT) to realize adaptation.
We are concerned with the question of how these approaches are related with one another and whether combining them and supporting them with machine learning can produce better adaptive systems.
We motivate the combined use of different adaptation approaches using a scenario of a cloud-based enterprise system and illustrate the analysis when combining the different approaches.
arXiv Detail & Related papers (2021-03-19T15:00:08Z) - Time Adaptive Reinforcement Learning [2.0305676256390934]
Reinforcement learning (RL) allows to solve complex tasks such as Go often with a stronger performance than humans.
Here we consider the case of adapting RL agents to different time restrictions, such as finishing a task with a given time limit that might change from one task execution to the next.
We introduce two model-free, value-based algorithms: the Independent Gamma-Ensemble and the n-Step Ensemble.
arXiv Detail & Related papers (2020-04-18T11:52:07Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.