프로필

설정

불러오는 중…

← 홈

도움말·문의

자주 묻는 질문

어떤 기능에 로그인이 필요한가요?

공개 논문의 해설과 논문 정보, 모델 구조, 관련 논문, 용어는 로그인 없이 볼 수 있습니다. 논문 올리기, 내 보관함, 읽기 기록, 논문 평가, 관심 분야 추천, 메일과 알림은 로그인해야 쓸 수 있습니다.

PDF 파일로도 올릴 수 있나요?

논문은 arXiv나 DOI 링크로 올리고, 해설은 모두에게 공개됩니다. 출처와 이용 조건이 확인되지 않아 해설을 공개할 수 없는 논문은 올릴 수 없습니다. PDF 파일 올리기와 나만 보기는 구독 회원만 쓸 수 있고, 파일로 올린 논문은 나만 보기로만 저장합니다. 제목으로 공식 정보를 찾는 검색은 버튼을 누를 때만 합니다.

그림과 AI 해설은 정확한가요?

그림은 논문 원본만 쓰고 이용 허락이 확인된 것만 보여 줍니다. 해설은 AI가 쓴 글이라 틀릴 수 있습니다. 중요한 주장과 수치, 그림의 맥락은 원문 근거로 확인해 주세요.

저작권 문제를 알리고 싶어요.

이용 조건과 원문 출처는 논문 정보 탭에 있습니다. 문제가 있으면 ‘문의하기’에서 ‘논문 내용·그림·저작권’을 골라 논문 링크와 문제가 되는 부분, 권리를 확인할 수 있는 근거를 보내 주세요. 접수만으로 권리가 확정되거나 바로 삭제되지는 않습니다. 검토 결과는 ‘내 문의’에서 볼 수 있습니다.

비밀번호를 잊었어요.

이메일로 가입했다면 로그인 창의 비밀번호 찾기에서 인증한 이메일로 다시 설정할 수 있습니다. Google, 네이버, 카카오로 가입했다면 그 서비스에서 비밀번호를 바꿔 주세요.

문의할 때 무엇을 적어야 하나요?

어느 화면에서 무엇을 하다 생긴 문제인지 논문 링크와 함께 적어 주세요. 비밀번호, API 키, 인증 코드, 전화번호 같은 개인정보는 적지 마세요. 문의와 답변은 Refivu에 저장되고 ‘내 문의’에서 볼 수 있습니다.

회원탈퇴는 어떻게 하나요?

설정의 내 계정에서 회원탈퇴를 누르세요. 지워지는 내용을 확인하고 본인 확인을 마치면 탈퇴됩니다. 다른 요청은 ‘문의하기’에서 ‘계정’을 골라 남겨 주세요.

논문 해설

Algorithm Distillation for Safe In-Context Reinforcement Learning

안전한 In-Context 강화학습을 위한 Algorithm Distillation

  • 연구 문제 Safe AD는 안전 RL 학습 이력을 증류해 미지 과제에 적응하지만, 예산 변화에 따른 행동과 숨은 과제 탐색 방식을 충분히 담지 못합니다.
  • 연구 방법 예산 인지 교사 이력을 동적 예산으로 수집하고, 배포 시 예측 비용으로 행동을 재가중하며 승수를 에피소드 비용으로 갱신합니다.
  • 주요 결과 A-Lag는 다섯 환경 모두에서 Safe AD보다 평균 에피소드 비용이 낮았고, 네 환경에서 평균 최종 반환은 낮았습니다.

안전 제약이 있는 문맥 내 적응의 어려움

이 논문은 고정된 파라미터의 정책이 미지의 제약 과제에서 상호작용 이력만으로 반환을 개선하면서 비용을 예산 안에 묶어 두어야 하는 상황을 다룹니다. 기존 Safe AD는 안전 RL 알고리즘의 학습 이력을 증류하기 때문에 이력이 정책 개선은 보여 주지만, 예산이 바뀔 때 행동이 어떻게 달라져야 하는지나 숨은 과제를 낮은 비용으로 찾는 방법은 보여 주지 못합니다. 그래서 HalfCheetah와 Ant에서는 반환이 모든 문맥 내 에피소드에서 0보다 낮게 머물렀고, CarGoal에서는 목표에 거의 도달하지 못했습니다. 저자들은 이 문제를 교사 데이터 설계와 배포 시 예산 반응이라는 두 측면에서 다룹니다.

예산 인지 교사와 동적 예산 수집

교사 정책은 과제의 숨은 목표나 속도 한계를 보지 않고, 학생도 보는 관측과 보상, 비용, 에피소드 경계만으로 행동을 정합니다. 처음 보상(목표 과제) 또는 첫 비용(속도 과제)이 나타나기 전까지는 Search 단계에서 남은 예산이 많을수록 더 많이 탐색하고, 그 사건 이후에는 전문가 정책이 찾은 과제를 남은 예산에 맞춰 활용합니다. 학습 이력은 예산 B0를 이력마다 한 번 뽑고, 동적 예산에서는 U[Bmin, Bmax]에서 샘플링하며 에피소드마다 남은 예산 B_kt를 줄여 갑니다. 고정 예산에서는 모든 이력의 B0를 Bmax로 둡니다. 전문가의 품질 q는 사건 이후 평균 반환을 Expert1 반환으로 나눈 값이며, 약한 전문가는 q가 약 0.5가 되도록 고른 체크포인트 또는 무작위 행동 혼합으로 만들었습니다.

Table 2: Chosen quality of the weaker expert and the share of teacher episodes over budget in the dynamic-
budget histories

Table 2 : Chosen quality of the weaker expert and the share of teacher episodes over budget in the dynamic- budget histories.

원문 · CC BY 4.0 · Minjae Kwon, Amir Moeini, Shangtong Zhang, Lu Feng · Algorithm Distillation for Safe In-Context Reinforcement Learning · 원문 그림 인용 · 원본 PDF 18쪽에서 그림 영역을 추출했습니다.
Table 3: The teacher and its data. Top: the environment-specific parts of the teacher. Everything else is
shared by all five environments. Bottom: teacher data…

Table 3 : The teacher and its data. Top: the environment-specific parts of the teacher. Everything else is shared by all five environments. Bottom: teacher data per environment, over both budget regimes and both quality levels.

원문 · CC BY 4.0 · Minjae Kwon, Amir Moeini, Shangtong Zhang, Lu Feng · Algorithm Distillation for Safe In-Context Reinforcement Learning · 원문 그림 인용 · 원본 PDF 19쪽에서 그림 영역을 추출했습니다.
Figure 9: Safe AD trained on the teacher data (Teacher Data) and the Safe AD baseline of Moeini et al.
(2026), trained on PPO-Lagrangian learning histories (PP…

Figure 9 : Safe AD trained on the teacher data (Teacher Data) and the Safe AD baseline of Moeini et al. (2026), trained on PPO-Lagrangian learning histories (PPO-Lag Data).

원문 · CC BY 4.0 · Minjae Kwon, Amir Moeini, Shangtong Zhang, Lu Feng · Algorithm Distillation for Safe In-Context Reinforcement Learning · 원문 그림 인용 · 원본 PDF 28쪽에서 그림 영역을 추출했습니다.

A-Lag의 비용 재가중과 승수 갱신

A-Lag는 Safe AD의 시퀀스 모델과 행동 복제 손실을 그대로 쓰고, 상태 표현에서 각 행동의 즉시 비용을 예측하는 cost head를 하나 더 둡니다. 배포 시 기저 정책 π_θ에 exp(−λ ĉ(u,A))를 곱해 정규화한 정책 π_λ로 행동을 뽑으며, 이산 행동에서는 로짓에서 λĉ를 뺍니다. 승수는 에피소드마다 λ_{k+1} = Π[0,λmax](λ_k + η (G_c(τ_k) − B0)/Bmax)로 갱신됩니다. 즉 에피소드 비용이 예산보다 크면 λ가 커지고, 작으면 0 쪽으로 내려갑니다. 이 갱신은 배포 중 단일 테스트 실행에만 쓰이며 재학습은 없습니다.

Figure 2: In-context adaptation on the test tasks. Each curve shows the mean episode return or cost over
three seeds, with a shaded band of±2standard errors. A…

Figure 2 : In-context adaptation on the test tasks. Each curve shows the mean episode return or cost over three seeds, with a shaded band of±2standard errors. A-Lag starts every deployment atλ= 0, andλis adjusted during test time by Eq. (9). In DarkRoom, PointGoal and CarGoal the return of A-Lag and Safe AD rises over the episodes while their cost falls. In HalfCheetah and Ant their cost drops sharply after the first episode, and in HalfCheetah the return falls with it. A-Lag’s Ant return also declines across episodes. A-Lag has a lower cost than Safe AD in DarkRoom, CarGoal and Ant, at a lower return. The mean costs are also slightly lower in PointGoal, at a slightly lower return, and in HalfCheetah, where it ends with a higher return. CDT has a higher cost than both in the navigation and velocity tasks and does not find the goal in DarkRoom.

원문 · CC BY 4.0 · Minjae Kwon, Amir Moeini, Shangtong Zhang, Lu Feng · Algorithm Distillation for Safe In-Context Reinforcement Learning · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.
Figure 7: A-Lag’s mean multiplier per episode on the training tasks, as a fraction ofλmax, averaged over
three seeds

Figure 7 : A-Lag’s mean multiplier per episode on the training tasks, as a fraction ofλmax, averaged over three seeds.

원문 · CC BY 4.0 · Minjae Kwon, Amir Moeini, Shangtong Zhang, Lu Feng · Algorithm Distillation for Safe In-Context Reinforcement Learning · 원문 그림 인용 · 원본 PDF 22쪽에서 그림 영역을 추출했습니다.
Table 7: A-Lag with its adaptive multiplier against A-Lag with a fixed multiplier, on the test tasks, with
the same trained weights. The fixed value, given nex…

Table 7 : A-Lag with its adaptive multiplier against A-Lag with a fixed multiplier, on the test tasks, with the same trained weights. The fixed value, given next to each environment, was chosen on training tasks by a fixed rule: the value with the lowest violation rate whose return is not clearly below that atλ= 0 (Appendix E). Both columns are means over three seeds. Bold marks the better of the two in each row: the higher return and the lower cost, violation rate and excess cost. In CarGoal no tested value met the rule, so we use the one whose return came closest,λ= 0.3.

원문 · CC BY 4.0 · Minjae Kwon, Amir Moeini, Shangtong Zhang, Lu Feng · Algorithm Distillation for Safe In-Context Reinforcement Learning · 원문 그림 인용 · 원본 PDF 26쪽에서 그림 영역을 추출했습니다.

예측 비용의 단조성과 한계

문맥을 고정하면 λ를 키울수록 기대 예측 비용이 감소하지 않는다는 명제가 성립합니다. 증명은 d/dλ E_{π_λ}[ĉ] = −Var_{π_λ}(ĉ) ≤ 0 형태로 주어집니다. 다만 이 성질은 예측 비용에만 해당하며, 행동에 따라 다음 문맥이 달라지므로 실제 에피소드 비용이 줄어든다는 보장이 아닙니다. cost head도 다음 한 단계의 즉시 비용만 예측하므로 이후 비용을 반영하지 못합니다.

Figure 6: Fixed multipliers on the training tasks (the reported A-Lag models, averaged over three seeds).
Top: final return relative toλ= 0, with a band of±2st…

Figure 6 : Fixed multipliers on the training tasks (the reported A-Lag models, averaged over three seeds). Top: final return relative toλ= 0, with a band of±2standard errors of the paired difference. Bottom: violation rate with a band of±2standard errors. The wide gray line marksλmax. Larger fixed multipliers lower the return in every environment, and the violation rate in DarkRoom, HalfCheetah and Ant. The violation rate is nonmonotonic in PointGoal and CarGoal and can increase as the multiplier grows, including within the selected range in CarGoal. A-Lag uses this sweep only to setλmax and tunesλwithin[0,λ max] during the test deployment, from the costs it incurs.

원문 · CC BY 4.0 · Minjae Kwon, Amir Moeini, Shangtong Zhang, Lu Feng · Algorithm Distillation for Safe In-Context Reinforcement Learning · 원문 그림 인용 · 원본 PDF 22쪽에서 그림 영역을 추출했습니다.

동적 예산 교사 데이터의 효과

20×20 격자로 RTG와 CTG 평면을 나눈 점유 분석에서, 동적 예산 이력은 DarkRoom과 속도 과제의 400개 셀을 모두 채웠고, 고정 예산 이력은 DarkRoom에서 179개 셀을 채웠습니다. 다섯 환경 모두에서 동적 예산 이력의 엔트로피가 더 높았습니다. 테스트에서 DarkRoom의 고정 예산 데이터는 Safe AD와 A-Lag의 최종 반환을 각각 0.167과 0.123 낮췄습니다. 이 결과는 DarkRoom과 HalfCheetah에서만 반환과 비용이 함께 유리한 방향으로 움직였고, 나머지 환경의 비용은 방법에 따라 방향이 달랐습니다.

Figure 1: Models trained on dynamic-budget histories (Dynamic) and on fixed-budget histories (Fixed), on
the test tasks. Each curve shows the mean episode retu…

Figure 1 : Models trained on dynamic-budget histories (Dynamic) and on fixed-budget histories (Fixed), on the test tasks. Each curve shows the mean episode return or cost over three seeds, with a shaded band of ±2standard errors. With dynamic budgets, A-Lag has a lower cost in four of the five environments, all but PointGoal, and Safe AD has a higher return in all five, compared with fixed budgets.

원문 · CC BY 4.0 · Minjae Kwon, Amir Moeini, Shangtong Zhang, Lu Feng · Algorithm Distillation for Safe In-Context Reinforcement Learning · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.
Figure 5: Occupancy of the (RTG, CTG) plane in the teacher data, fixed budgets (top) and dynamic budgets
(bottom), both quality levels. Color is the share of s…

Figure 5 : Occupancy of the (RTG, CTG) plane in the teacher data, fixed budgets (top) and dynamic budgets (bottom), both quality levels. Color is the share of steps on a logarithmic scale. In PointGoal and CarGoal the RTG is 0 or 1, so it is drawn as two columns. Under a fixed budget the remaining budget starts atBmax and falls in steps of the incurred cost, which leaves gaps between the CTG values that occur.

원문 · CC BY 4.0 · Minjae Kwon, Amir Moeini, Shangtong Zhang, Lu Feng · Algorithm Distillation for Safe In-Context Reinforcement Learning · 원문 그림 인용 · 원본 PDF 21쪽에서 그림 영역을 추출했습니다.
Table 9: Per-seed differences on the test tasks between models trained on dynamic-budget and on fixed-
budgethistories. Eachentryisthefirstmodelminusthesecond,…

Table 9 : Per-seed differences on the test tasks between models trained on dynamic-budget and on fixed- budgethistories. Eachentryisthefirstmodelminusthesecond, averagedoverthetesttasksanddeployments of one training seed.

원문 · CC BY 4.0 · Minjae Kwon, Amir Moeini, Shangtong Zhang, Lu Feng · Algorithm Distillation for Safe In-Context Reinforcement Learning · 원문 그림 인용 · 원본 PDF 27쪽에서 그림 영역을 추출했습니다.

A-Lag와 Safe AD, CDT의 비교

A-Lag는 다섯 환경 모두에서 Safe AD보다 평균 에피소드 비용이 낮았고, 이 가운데 네 환경에서는 평균 최종 반환도 낮았습니다. 가장 큰 반환 감소는 Ant에서 나타나 286.4 대 350.9였습니다. CDT는 DarkRoom에서 목표를 찾지 못해 최종 반환이 0.010이었고, 속도 과제에서는 반환이 더 높았지만 평균 비용도 더 높았습니다. 이 비교는 저자들이 조정한 동일한 학습 설정과 세 시드 평균을 기준으로 한 것입니다.

Table 4: Training settings. Top: the sequence models (Safe AD, A-Lag and CDT). Num Layers isLin
Section 4.1. Seq Len counts environment steps, not token positi…

Table 4 : Training settings. Top: the sequence models (Safe AD, A-Lag and CDT). Num Layers isLin Section 4.1. Seq Len counts environment steps, not token positions. Safe AD and A-Lag use four positions per step plus two constant prefix positions. Token Embedding Dim is the width of the per-modality encoders before they are projected to the Hidden Dim. The navigation tasks use four gradient accumulation steps, giving an effective batch size of 32. Action-input dropout sets each component of an action input in the history to zero with the given probability during training. The action targets are unchanged. Bottom: the gradient-based safe meta-RL baselines, SafeMeta and MAML with a cost penalty, as in the preliminary study. The navigation tasks are PointGoal and CarGoal, and the velocity tasks are HalfCheetah and Ant.

원문 · CC BY 4.0 · Minjae Kwon, Amir Moeini, Shangtong Zhang, Lu Feng · Algorithm Distillation for Safe In-Context Reinforcement Learning · 원문 그림 인용 · 원본 PDF 20쪽에서 그림 영역을 추출했습니다.
Table 6: Test-split results of Safe AD, of A-Lag with the multiplier held at zero and of A-Lag, whose
multiplier adapts after every episode. All columns are me…

Table 6 : Test-split results of Safe AD, of A-Lag with the multiplier held at zero and of A-Lag, whose multiplier adapts after every episode. All columns are means over three seeds. Bold marks the best of the three methods in each row: the highest return and the lowest cost, violation rate and excess cost. Return is the final return, the mean over the last three episodes, and is the success rate in PointGoal and CarGoal. Cost is the mean episode cost. The violation rate is the fraction of episodes whose cost exceeds the deployment’s budgetB 0, so it counts how often a method goes over its budget, not by how much. Excess cost is the mean over episodes ofmax(0,Gc−B 0).

원문 · CC BY 4.0 · Minjae Kwon, Amir Moeini, Shangtong Zhang, Lu Feng · Algorithm Distillation for Safe In-Context Reinforcement Learning · 원문 그림 인용 · 원본 PDF 25쪽에서 그림 영역을 추출했습니다.
Table 8: Per-seed differences on the test tasks: A-Lag against Safe AD, and A-Lag against its own weights
with the multiplier held at zero. Each entry is the f…

Table 8 : Per-seed differences on the test tasks: A-Lag against Safe AD, and A-Lag against its own weights with the multiplier held at zero. Each entry is the first model minus the second, averaged over the test tasks and deployments of one training seed.

원문 · CC BY 4.0 · Minjae Kwon, Amir Moeini, Shangtong Zhang, Lu Feng · Algorithm Distillation for Safe In-Context Reinforcement Learning · 원문 그림 인용 · 원본 PDF 27쪽에서 그림 영역을 추출했습니다.

위반 빈도와 초과량의 차이

평균 비용만으로는 예산 위반 빈도와 크기를 구분하기 어렵습니다. Ant에서 A-Lag의 위반율은 0.184로 Safe AD의 0.356보다 낮았지만, 위반한 에피소드의 초과량이 더 커서 두 방법의 초과 비용은 약 2.2로 비슷했습니다. 반면 HalfCheetah에서는 A-Lag의 평균 비용이 낮았는데도 위반율이 0.158로 Safe AD의 0.123보다 높았습니다. 따라서 위반율과 초과 비용을 함께 보고하는 것이 필요합니다.

Figure 3: Violation rate and excess costmax(0,G c−B 0)over the episodes of a deployment on the test
tasks. Each curve is the mean over three seeds, with a shad…

Figure 3 : Violation rate and excess costmax(0,G c−B 0)over the episodes of a deployment on the test tasks. Each curve is the mean over three seeds, with a shaded band of±2standard errors. Averaged over the episodes, A-Lag has the lowest excess cost in DarkRoom, PointGoal, CarGoal and HalfCheetah and is close to Safe AD in Ant. In most later DarkRoom episodes CDT, which does not find the goal, is lower.

원문 · CC BY 4.0 · Minjae Kwon, Amir Moeini, Shangtong Zhang, Lu Feng · Algorithm Distillation for Safe In-Context Reinforcement Learning · 원문 그림 인용 · 원본 PDF 10쪽에서 그림 영역을 추출했습니다.

한계와 데이터 구성 민감도

전문가 샘플 비율 연구에서 A-Lag가 평균 비용이 낮았던 조합은 25개 중 16개였으므로, 이 우위는 모든 데이터 혼합에서 성립하지 않았습니다. 교사도 환경별 탐색, 전문가, 전환 사건이 필요해 적용에 제약이 있습니다. cost head는 교사가 실제로 택한 행동에서만 학습되고 즉시 비용만 예측합니다.

Figure 8: Final return and mean episode cost on the test tasks against the share ofq= 1histories (16
histories per task), averaged over three seeds, with bands…

Figure 8 : Final return and mean episode cost on the test tasks against the share ofq= 1histories (16 histories per task), averaged over three seeds, with bands of±2standard errors. The main models and the violation rates are in Table 5.

원문 · CC BY 4.0 · Minjae Kwon, Amir Moeini, Shangtong Zhang, Lu Feng · Algorithm Distillation for Safe In-Context Reinforcement Learning · 원문 그림 인용 · 원본 PDF 23쪽에서 그림 영역을 추출했습니다.
Table 5: Expert-share study on the test split: final return, mean episode cost and violation rate of models
trained on 16 dynamic-budget histories per task wit…

Table 5 : Expert-share study on the test split: final return, mean episode cost and violation rate of models trained on 16 dynamic-budget histories per task with the given share of theq= 1expert (the restq≈0.5), and of the main models (50%, 32 histories per task). Means over three seeds. Bold marks the best value in each row: the highest return and the lowest cost and violation rate.

원문 · CC BY 4.0 · Minjae Kwon, Amir Moeini, Shangtong Zhang, Lu Feng · Algorithm Distillation for Safe In-Context Reinforcement Learning · 원문 그림 인용 · 원본 PDF 24쪽에서 그림 영역을 추출했습니다.

논문 정보

저자
Minjae Kwon, Amir Moeini, Shangtong Zhang, Lu Feng
학회·저널
arXiv · 프리프린트
최초 공개일
2026년 11월 16일
등록일
2026년 11월 18일
수정일
2026년 11월 16일
버전
v1
arXiv
2611.21524
분류
cs.LG · cs.AI
원문 이용 조건
CC BY 4.0
제공 범위
논문 정보, 해설, 허용된 원문 그림

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

초록

Safe in-context reinforcement learning (Safe ICRL) asks a policy with fixed parameters to improve on an unseen constrained task from its interaction history while aiming to keep its cost within a budget. Prior work studied Safe ICRL on five benchmarks in three families: a grid world with a hidden goal and obstacles (DarkRoom), continuous navigation where goals and hazards stay invisible until reached (PointGoal, CarGoal), and locomotion with a hidden velocity limit (HalfCheetah, Ant). Safe Algorithm Distillation (Safe AD), trained on the learning histories of a safe RL algorithm, has shown adaptation failures in prior evaluations. For example, in the locomotion tasks its return stays below zero, and it rarely reaches the goal in CarGoal. We revisit two parts of Safe AD. First, we distill a budget-aware teacher with two phases. It searches for the hidden task, exploring more when more budget remains. After its first reward or cost, an expert policy exploits the task within the remaining budget. We collect the teacher's histories under fixed or dynamic budgets. Dynamic budgets increase the occupancy entropy of the return and budget inputs in every environment, and at test time they improve return and lower cost in DarkRoom and HalfCheetah. Second, we propose A-Lag, a test-time adjustment that reweights the distilled policy's actions by their predicted cost, with an adaptive Lagrange multiplier that is updated from the costs observed. In our experiments, A-Lag had lower mean episode cost than Safe AD in all five environments, with lower mean final return in four.

원문 인용

Minjae Kwon, Amir Moeini, Shangtong Zhang, Lu Feng (2026). Algorithm Distillation for Safe In-Context Reinforcement Learning. arXiv:2611.21524v1. https://arxiv.org/abs/2611.21524v1

BibTeX
@misc{kwon2026algorithm,
  title = {{Algorithm Distillation for Safe In-Context Reinforcement Learning}},
  author = {Minjae Kwon and Amir Moeini and Shangtong Zhang and Lu Feng},
  year = {2026},
  eprint = {2611.21524},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.21524v1}
}

관련 논문 보기다른 논문 둘러보기

논문 미리 보기
계정 보안

Google 계정 연결

Google 계정을 연결하면 그 계정으로도 로그인할 수 있습니다.

Refivu

회원탈퇴

Refivu
Refivu

회원가입