# Algorithm Distillation for Safe In-Context Reinforcement Learning

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

Minjae Kwon, Amir Moeini, Shangtong Zhang, Lu Feng · arXiv · 2026년 11월 16일

- **연구 문제** 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](https://refivu.com/papers/d90963e3-8d39-48c6-adcf-46ef1432c6a5/figures/figure-a0bb08ff30fc5933575f3122be9a2127.png?thumb=512)

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

[원문](https://arxiv.org/abs/2611.21524v1) · [CC BY 4.0](https://creativecommons.org/licenses/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…](https://refivu.com/papers/d90963e3-8d39-48c6-adcf-46ef1432c6a5/figures/figure-aa197a305d465846f66a233096f1f426.png?thumb=512)

**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.

[원문](https://arxiv.org/abs/2611.21524v1) · [CC BY 4.0](https://creativecommons.org/licenses/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…](https://refivu.com/papers/d90963e3-8d39-48c6-adcf-46ef1432c6a5/figures/figure-c9ba1bc48c0502ea33f20b939c0bfc71.png?thumb=512)

**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).

[원문](https://arxiv.org/abs/2611.21524v1) · [CC BY 4.0](https://creativecommons.org/licenses/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…](https://refivu.com/papers/d90963e3-8d39-48c6-adcf-46ef1432c6a5/figures/figure-7a6b121f257a42d2944bb8006fe15a60.png?thumb=512)

**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.

[원문](https://arxiv.org/abs/2611.21524v1) · [CC BY 4.0](https://creativecommons.org/licenses/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](https://refivu.com/papers/d90963e3-8d39-48c6-adcf-46ef1432c6a5/figures/figure-09e18fdf6fc152c67790e43c7c4502f6.png?thumb=512)

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

[원문](https://arxiv.org/abs/2611.21524v1) · [CC BY 4.0](https://creativecommons.org/licenses/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…](https://refivu.com/papers/d90963e3-8d39-48c6-adcf-46ef1432c6a5/figures/figure-0a4f5ab0de3d432bdad6357fc33ded30.png?thumb=512)

**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.

[원문](https://arxiv.org/abs/2611.21524v1) · [CC BY 4.0](https://creativecommons.org/licenses/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…](https://refivu.com/papers/d90963e3-8d39-48c6-adcf-46ef1432c6a5/figures/figure-8d30170ea7e9eaa76e8c759b3286b1a3.png?thumb=512)

**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.

[원문](https://arxiv.org/abs/2611.21524v1) · [CC BY 4.0](https://creativecommons.org/licenses/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…](https://refivu.com/papers/d90963e3-8d39-48c6-adcf-46ef1432c6a5/figures/figure-902a843d2ca1b8dab365db028ccab4b2.png?thumb=512)

**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.

[원문](https://arxiv.org/abs/2611.21524v1) · [CC BY 4.0](https://creativecommons.org/licenses/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…](https://refivu.com/papers/d90963e3-8d39-48c6-adcf-46ef1432c6a5/figures/figure-5d1d4aea38510934c08a4200d9409543.png?thumb=512)

**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.

[원문](https://arxiv.org/abs/2611.21524v1) · [CC BY 4.0](https://creativecommons.org/licenses/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,…](https://refivu.com/papers/d90963e3-8d39-48c6-adcf-46ef1432c6a5/figures/figure-e11dba7e881c326b62c895c4cb06c4f7.png?thumb=512)

**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.

[원문](https://arxiv.org/abs/2611.21524v1) · [CC BY 4.0](https://creativecommons.org/licenses/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…](https://refivu.com/papers/d90963e3-8d39-48c6-adcf-46ef1432c6a5/figures/figure-e99779dac36f8a7630d7408102984ab3.png?thumb=512)

**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.

[원문](https://arxiv.org/abs/2611.21524v1) · [CC BY 4.0](https://creativecommons.org/licenses/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…](https://refivu.com/papers/d90963e3-8d39-48c6-adcf-46ef1432c6a5/figures/figure-769152fe99acd212bd31fed325b6d31b.png?thumb=512)

**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).

[원문](https://arxiv.org/abs/2611.21524v1) · [CC BY 4.0](https://creativecommons.org/licenses/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…](https://refivu.com/papers/d90963e3-8d39-48c6-adcf-46ef1432c6a5/figures/figure-6aef8155098c5bbda6d11f175c2101e6.png?thumb=512)

**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.

[원문](https://arxiv.org/abs/2611.21524v1) · [CC BY 4.0](https://creativecommons.org/licenses/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…](https://refivu.com/papers/d90963e3-8d39-48c6-adcf-46ef1432c6a5/figures/figure-972286325788cd9d12e881a7f486ed70.png?thumb=512)

**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.

[원문](https://arxiv.org/abs/2611.21524v1) · [CC BY 4.0](https://creativecommons.org/licenses/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…](https://refivu.com/papers/d90963e3-8d39-48c6-adcf-46ef1432c6a5/figures/figure-1542eead5b0dda2da8d62bcedb59a751.png?thumb=512)

**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.

[원문](https://arxiv.org/abs/2611.21524v1) · [CC BY 4.0](https://creativecommons.org/licenses/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…](https://refivu.com/papers/d90963e3-8d39-48c6-adcf-46ef1432c6a5/figures/figure-af2dce8643aeb1dd161e04d867b029fb.png?thumb=512)

**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.

[원문](https://arxiv.org/abs/2611.21524v1) · [CC BY 4.0](https://creativecommons.org/licenses/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](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2611.21524v1) · [원문 PDF ↗](https://arxiv.org/pdf/2611.21524v1)

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}
}
```

## 이 논문의 용어

- [Ant](https://refivu.com/terms/336aaa26991b-ant)
- [constrained Markov decision process](https://refivu.com/terms/5bf9a0e1f005-constrained-markov-decision-process)
- [Algorithm Distillation](https://refivu.com/terms/203ce108b0bc-algorithm-distillation)
- [HalfCheetah](https://refivu.com/terms/24790c922360-halfcheetah)
- [Lagrange multiplier](https://refivu.com/terms/a4b47cf841c6-lagrange-multiplier)
- [Violation rate](https://refivu.com/terms/27a75214fcc5-violation-rate)
- [Cost-to-go](https://refivu.com/terms/0681c58895ce-cost-to-go)
- [PointGoal](https://refivu.com/terms/470ad5a29690-pointgoal)
- [In-Context Reinforcement Learning](https://refivu.com/terms/328483cd131e-in-context-reinforcement-learning)
- [PPO-Lagrangian](https://refivu.com/terms/519b39a8f826-ppo-lagrangian)

## 다른 논문 해설

- [Heteroscedastic Gaussian Process Q-learning for Sample Efficient Experimentation](https://refivu.com/papers/a582b503-90ad-4d19-84a7-e871ee9e9510-heteroscedastic-gaussian-process-q-learning-for-sample.md)
- [Optimistic Verifiers Get Hacked: Reward Hacking Under an Exact Process Oracle](https://refivu.com/papers/55724fe8-ef4d-4d67-aedc-16f47716afd5-optimistic-verifiers-get-hacked-reward-hacking-under-an.md)
- [Subprocess-Constrained Markov Decision Processes](https://refivu.com/papers/3622120b-b72c-4f52-9fa3-0150cc1be088-subprocess-constrained-markov-decision-processes.md)
- [Jev-as-a-Reward: Validating Probabilistic Safety Judges for Reinforcement Learning](https://refivu.com/papers/1004dad2-1db1-47ad-b5f9-9564b9acc888-jev-as-a-reward-validating-probabilistic-safety-judges.md)
- [Rethinking Supervision Scaling in On-Policy Distillation: From Dense Supervision to Stochastic Horizons](https://refivu.com/papers/ac8513c0-236d-4a8e-88ff-120fbdfc2d9c-rethinking-supervision-scaling-in-on-policy-distillation.md)
- [DexFormer 2.0: Towards a Cross-Embodiment Foundation Policy for Dexterous Grasping](https://refivu.com/papers/198188b6-2d22-44da-9ba3-93ce7566fc83-dexformer-2-0-towards-a-cross-embodiment-foundation.md)
- [Procedure without Judgment: What Small Language Models Learn under an Exact Verifier](https://refivu.com/papers/e6daa62f-8c65-48b1-be58-2223d171f74e-procedure-without-judgment-what-small-language-models-learn.md)
- [Detection-Efficient Watermarking for Vision--Language Agents via Risk-Constrained Strength Allocation](https://refivu.com/papers/040d0027-bdb8-4052-8840-d74c25d08294-detection-efficient-watermarking-for-vision-language-agents.md)
- [Do Embedding-Map Distances Guide LLM Ideation? Four Tests Against What Came Next](https://refivu.com/papers/e9ff9642-9dd2-4e55-a3b9-bce03bbcd763-do-embedding-map-distances-guide-llm-ideation-four.md)
- [Out of Sight, Into Memory: Compact Visual Latents Retain Local Evidence in Ultra-High-Resolution Remote Sensing](https://refivu.com/papers/3f61802e-c6c0-462f-a8c0-ba5459b19c0b-out-of-sight-into-memory-compact-visual-latents.md)
- [Replicating and Extending Weight-Space Programming: Frontier LLMs Compile Programs into Weights and Read Input Layers](https://refivu.com/papers/1cc59c96-8887-4c52-9004-ea4c1b7d6e52-replicating-and-extending-weight-space-programming-frontier.md)
- [AuXSpec: Learning to Autoformalize Program Specifications via Executable Postconditions](https://refivu.com/papers/d6ae6e57-c73c-4909-b2a8-0a7a84033d1f-auxspec-learning-to-autoformalize-program-specifications-via.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/d90963e3-8d39-48c6-adcf-46ef1432c6a5-algorithm-distillation-for-safe-in-context-reinforcement)
