## Large Language Model (LLM)-enabled In-context Learning for Wireless Network Optimization: A Case Study of Power Control

Hao Zhou, Chengming Hu, Dun Yuan, Ye Yuan, Di Wu, Xue Liu, Fellow, IEEE , and Charlie Zhang, Fellow, IEEE .

Abstract -Large language model (LLM) has recently been considered a promising technique for many fields. This work explores LLM-based wireless network optimization via in-context learning. To showcase the potential of LLM technologies, we consider the base station (BS) power control as a case study, a fundamental but crucial technique that is widely investigated in wireless networks. Different from existing machine learning (ML) methods, our proposed in-context learning algorithm relies on LLM's inference capabilities. It avoids the complexity of tedious model training and hyper-parameter fine-tuning, which is a well-known bottleneck of many ML algorithms. Specifically, the proposed algorithm first describes the target task via formatted natural language, and then designs the in-context learning framework and demonstration examples. After that, it considers two cases, namely discrete-state and continuous-state problems, and proposes state-based and ranking-based methods to select appropriate examples for these two cases, respectively. Finally, the simulations demonstrate that the proposed algorithm can achieve comparable performance as conventional deep reinforcement learning (DRL) techniques without dedicated model training or fine-tuning. Such an efficient and low-complexity approach has great potential for future wireless network optimization.

number of iterations [2]. Therefore, these potential issues, e.g., problem-specific transformation and relaxation, hyperparameter tuning, and long training iterations, have become obstacles to further improve the efficiency of next-generation networks.

Index Terms -Large language model, in-context learning, network optimization, transmission power control

## I. INTRODUCTION

From LTE and 5G to envisioned 6G, wireless networks are increasingly complicated with diverse application scenarios and novel signal processing and transmission techniques, e.g., unmanned aerial vehicle (UAV), vehicle-to-everything (V2X), mmWave and THz networks, reconfigurable intelligent surface, etc [1]. The constantly evolving network architecture requires more efficient management schemes, and most existing network optimization methods can be summarized into two main approaches: convex optimization and machine learning (ML) algorithms. Specifically, convex optimization usually needs dedicated problem formulation for each specific task, then transforms the objective function or constraints into convex forms. By contrast, ML algorithms, such as reinforcement learning, have lower requirements for problem formulations, but the tedious model training and fine-tuning indicate a large

Hao Zhou, Chengming Hu, Dun Yuan, Ye Yuan, and Xue Liu are with the School of Computer Science, McGill University, Montreal, QC H3A 0E9, Canada. (mails:hao.zhou4, chengming.hu, dun.yuan, ye.yuan3@mail.mcgill.ca, xueliu@cs.mcgill.ca). Di Wu is with the School of Electrical and Computer Engineering, McGill University, Montreal, QC H3A 0E9, Canada. (email: di.wu5@mcgill.ca). Charlie Zhang is with Samsung Research America, Plano, Texas, TX 75023, USA. (email: jianzhong.z@samsung.com).

Large language models (LLMs) are recently considered revolutionary technologies that have been successfully applied to education, finance, healthcare, biology, etc [3]. The great potential of LLM technologies also provides promising opportunities for network management and optimization [4]. For instance, a promising feature of LLMs is learning from language-based descriptions and demonstrations, which is known as in-context learning. Compared with convex optimization or conventional ML approaches, in-context learning has multiple advantages [5]: 1) in-context learning relies on LLM's inference process, and it avoids the complexity of dedicated model training and fine-tuning, which is a wellknown bottleneck for many ML techniques; 2) in-context learning allows natural language-based task design and implementation, and the operator can easily formulate the target task using human language and instructions. Such a user-friendly approach can also significantly lower the requirements for professional knowledge when solving specific tasks.

LLM-enabled wireless networks have recently attracted considerable interest, e.g., 6G edge intelligence [6], network intrusion detection and LLM-enhanced reconfigurable intelligent surface for internet of vehicles (IoV) [7], [8]. By contrast, this work focuses on optimization problems, and it considers base station (BS) power control as a case study, exploring the potential of using LLM to solve optimization problems. The power control of cellular networks has been extensively studied with diverse objectives and algorithms, i.e., convex optimization, game theory, reinforcement learning [9], etc. These studies prove that power control is a fundamental and critical technique to improve energy efficiency, reduce interference, and save power consumption [10]. Therefore, given such crucial importance, we select BS power control as a case study, and explore the potential of state-of-the-art LLM technologies for wireless network optimization.

In particular, our proposed LLM-enabled in-context learning algorithm first designs a natural language-based task description, i.e., task goal, definition, and rules. The formatted task description, along with a set of selected examples, will become the prompt input for the LLM model. Then, the LLM model can utilize the task description and advisable examples to gen- erate a decision based on the current environment state. After that, the output decision, environment state, and corresponding system performance will become a new example and be stored in an experience pool. Given the next environment state, we will select new advisable examples from the experience pool, serving as references for the next LLM decision-making. In addition, we further consider two scenarios, namely discretestate and continuous-state problems, and propose state-based and ranking-based example selection methods for these two cases, respectively. Finally, we evaluate the proposed algorithm with various LLMs, e.g., Llama3-8b-instruct, Llama3-70binstruct, and GPT-3.5 turbo, and the simulations prove that the proposed algorithm can achieve satisfactory performance.

The main contribution of this work is that we explored LLM-enabled in-context learning for wireless network optimization problems. Specifically, it proposed an in-context optimization technique that learns from the environment interactions without model training and fine-tuning. The simulation results show that our proposed algorithm enables LLM to learn from previous explorations and examples, and constantly improve the performance on target tasks. Such an efficient and training-free algorithm has great potential for wireless network optimization and management.

## II. SYSTEM MODEL

This section introduces a BS power minimization problem, serving as a case study of the proposed in-context learning algorithm 1 . Considering a BS with U b users, the achievable data rate C b,u between BS b and user u is defined by [11]

$$C _ { b, u } = \sum _ { k = 1 } ^ { K _ { b } } d _ { k } l o g ( 1 + \frac { p _ { b, k } h _ { b, k, u } \gamma _ { b, k, u } } { \sum _ { b ^ { \prime } \in B _ { - b } } p _ { b ^ { \prime }, k ^ { \prime } } h _ { b ^ { \prime }, k ^ { \prime }, u ^ { \prime } } \gamma _ { b ^ { \prime }, k ^ { \prime }, u ^ { \prime } } + d _ { k } N _ { 0 } } ), \ ( 1 ) \ \left ( \begin{array} { c } \text{ is the L} \\ \text{ we exp} \\ D _ { t a s k }, 1 \\ \alpha \text{ does} \end{array} \right )$$

where K b is the total number of resource blocks (RBs) in BS b , d k is the bandwidth of RB k , p b,k indicates the transmission power of BS b on RB k , h b,k,u defines the channel gain between BS b and user u on RB k , and N 0 is the noise power density. For the RB allocation, γ b,k,u ∈ { 0 1 , } indicates whether RB k is allocated to the transmission for user u . For the interference, B -b represent the set of adjacent BSs except for BS b , p b ,k ′ ′ h b ,k ,u ′ ′ ′ γ b ,k ,u ′ ′ ′ defines the inter-cell interference, and we assume orthogonal frequency-division multiplexing is applied to eliminate intra-cell interference.

This work aims to minimize the BS transmission power and meanwhile satisfy the average data rate constraint [10]:

$$\min _ { P _ { b } } \, \sum _ { b \in B } P _ { b }$$

$$\min _ { P _ { b } } & \sum _ { b \in B } P _ { b } & ( 2 ) \\ \text{s.t. } 0 \leq P _ { b } \leq P _ { m a x }, & ( 2 a ) \\ P _ { b } = \sum _ { k = 1 } ^ { K _ { b } } p _ { b, k }, & ( 2 b ) \\ \sum _ { u = 1 } ^ { U _ { b } } C _ { b, u } / U _ { b } \geq C _ { m i n }, & ( 2 c )$$

1 Various objectives and constraints can be defined for power control problems as summarized in [10], and here we select power minimization as a specific problem formulation.

where P b is the total transmission power of BS b and P b = ∑ K b k =1 p b,k , p b,k has been defined in equation (1) as the transmission power of RB k , P max is the maximum power, U b is the total number of users, and C min is the average achievable data rate constraint. We assume P b is equally allocated to all RBs, and a proportional fairness method is used for RB allocation, which has been widely used as a classic approach. Then we can better focus on LLM features.

The control variable in equation (2) is the total BS transmission power P b , which needs to be dynamically adjusted based on the wireless environment, e.g., current user numbers or user-BS distances, to save power consumption and meanwhile maintain the average data rate. Problem (2) has been extensively investigated in existing studies, but this work differs from previous works by presenting a unique view from the perspective of natural language-based network optimization. Specifically, we propose a novel LLM-enabled in-context learning algorithm in the following Section III.

## III. IN-CONTEXT LEARNING-BASED OPTIMIZATION ALGORITHM

In-context learning refers to the process that LLMs can learn from formatted natural language such as task descriptions and task solution demonstrations, to improve the performance on target tasks. In-context learning can be defined as [5]

$$D _ { t a s k } \times \mathcal { E } _ { t } \times s _ { t } \times \mathcal { L L M } \Rightarrow a _ { t }, \text{ \quad \ \ } ( 3 )$$

where D task is the task description, E t is the set of examples at time t , s t is the environment state at time t that is associated with the target task , LLM indicates the LLM model, and a t is the LLM output. For a sequential decision-making problem, we expect the LLM can utilize the initial task description D task , learn from the example set E t , and then make decision a t based on current environment state s t of the target task. In the following, we will introduce the design of task description D task and the selection of example set E t .

## A. Language-based Task Description

D task is crucial to provide target task information to the LLM model. In particular, it involves ' Task goal ', ' Task definition ', and extra ' Rules '. The following is a detailed task description we designed to prompt the LLM.

## Task description for BS transmission power control

Task goal : You have a decision-making task for base station power control, and you need to select between 4 power levels from 1 to 4.

Task definition : You have to consider the specific user number of each case, which is the 'base station user number'.

Following are some examples { Example set } .

Now I will give you a new condition to solve, the current BS user number is { Num BS user } .

Rules : Now please select from 'level 1', 'level 2', 'level 3', and 'level 4' based on the above examples.

Fig. 1: Overall design of the proposed LLM-enabled in-context learning for transmission power control.

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00214v1-figure-3c6120c2-8425-4c8f-9564-f16487539436.jpg)

In particular, the Task goal first specifies a ' decisionmaking task for base station power control ', and the goal is to ' select between 4 power levels ' 2 . Then the Task definition introduces the environment states we need to consider. For example, this work assumes the total user numbers may change dynamically, and then the LLM has to consider the ' base station user number ' of each case. In addition, it means that the environment state s t in equation (3) refers to the total user number U b in problem (2). After that, the example set E t is included by ' Following are some examples.... ', and we provide a new condition for the LLM to solve, which is associated with the current user number U b . Finally, we set extra reply rules such as ' select from ... based on the above examples ', indicating the LLM to focus on the decision-making process.

The above task description provides a template to define optimization tasks by formatted natural language, avoiding the complexity of dedicated optimization model design. It is also user-friendly since the operator can easily add or remove task descriptions without requiring any professional knowledge of optimization techniques.

## B. In-context Learning Framework and Example Design

Examples are of great importance in in-context learning, and they must be carefully selected because: 1) examples serve as crucial references for LLM decision-making, which means the LLM relies on examples to justify its decision; 2) due to the LLM context window size constraint 3 , it is impractical to send a large number of examples to the LLM. Moreover, there are many optimization problems with continuous environment states, which are very common in wireless networks, e.g., adjusting the BS transmission power based on user-BS distance. Such cases mean that there may be an infinite number of examples, and therefore identifying the most relevant and

2 Here we select 4 power levels as an example, which can be changed to any number of levels

3 The context window size indicates the largest number of tokens that can be sent to the LLM

useful examples becomes challenging. This work defines an example E by

$$E = \{ s, a, r ( s, a ) \}, E \in \mathcal { E } \quad \quad \quad ( 4 )$$

where s and a are environment state and decision, respectively. Inspired by reinforcement learning, we further define a reward value to evaluate the decision a by

$$r = P _ { t a r g e t } - P _ { b } - \beta \text{ \quad \quad } \text{(5)}$$

where P target is a target power consumption, and P b has been defined in problem (2) as the total power consumption of BS b . β is a penalty term, which is only applied when constraint (2c) is not satisfied. Then, r provides a comprehensive metric to evaluate the selected decision a under environment state s .

Fig.1 shows the overall design of the proposed in-context learning algorithm for transmission power control. Specifically, the above task description D task , current environment state s t , and selected examples E t are integrated as input prompt as defined in equation (3), and then the LLM model will generate a power control decision a t based on s t and the experiences in E t . Then, the decision a t is implemented, the achieved data rate C b,u is collected, and the reward r t is calculated as equation (5). E t = { s , a , r t t t ( s , a t t ) } becomes a new example in the accumulated experience pool E pool in Fig.1. After that, based on the next environment state s t +1 , a new example set E t +1 is selected, and the selected examples are inserted into the task description with s t +1 , becoming a new prompt for the LLM model to generate a t +1 .

## C. State-based Example Selection for Discrete State Problems

Selecting appropriate examples is critical for in-context learning since the LLM model learns from existing demonstrations to handle the target task. For problems with discrete environment states, relevant demonstrations can be easily identified by finding existing examples with the same states in the accumulated experience pool E pool . Considering a target

task with environment state value s target , the set of relevant examples can be identified by

$$\mathcal { E } _ { r e l e v a n t } = \left \{ E \{ s, a, r ( s, a ) \} \Big | s = s _ { t a r g e t }, E \in \mathcal { E } _ { p o o l } \right \} \ ( 6 ) \ \begin{array} { c c } \text{is definition} \end{array}$$

where E pool is the accumulated experience pool in Fig. 2. Given E relevant , we can easily select recommended examples with high reward, i.e., top-K examples, and inadvisable examples, e.g., examples with lower reward or violating the minimum data rate constraint.

In addition, we include a well-known epsilon-greedy policy to balance exploration and exploitation.

$$a = \begin{cases} \text{ Random action selection,} \quad \text{ if } r a n d < \epsilon ; \quad \text{ } ( 7 ) \ \text{ } 3 G P P u \\ \text{LLM-based decision-making,} \quad \text{ else,} \end{cases} \quad \text{ } ( 7 ) \ \text{ } 3 G P P u$$

where ϵ is a predefined value, and rand is a random number between 0 and 1. Therefore, the random exploration in equation (7) can constantly explore new examples, and then the LLM model can learn from better relevant examples E relevant to improve the performance.

## D. Ranking-based Example Selection for Continuous State Problems

Compared with discrete-state problems, environments with continuous states can be much more complicated. For instance, when using average user-BS distance as an environment state for BS transmission power control with a target task s target , it is unlikely to find a specific existing example E s,a, r s, a { ( ) } with s = s target , since s target is a random number within the BS maximum coverage distance. This problem may be solved by discretizing the continuous states into some discrete values, but this may still lead to a large number of states or extra errors. To this end, we define a new metric L for example selection with continuous states:

$$\mathcal { L } ( E, s _ { t a r g e t } ) = r ( s, a ) - \tau | | s - s _ { t a r g e t } | |, \quad ( 8 ) \stackrel { \pi \dots } { \text{observ} }$$

where L ( E,s target ) is a comprehensive metric to evaluate the usefulness of E = { s, a, r ( s, a ) } to the decision-making of s target , and || s -s target || is the L 2 norm to define the distance between s and s target . Equation (8) aims to jointly consider the reward and states of example E , and τ is a weighting factor to balance the importance of higher reward r s, a ( ) and more similar states between s and s target . Specifically, a higher reward r s, a ( ) indicates that E includes a good action selection a under environment state s , and meanwhile lower || s -s target || value means the environment state s in E is more similar to s target . Therefore, we use L ( E,s target ) as a comprehensive metric, and then the recommended and inadvisable examples can be selected similarly as in Section III-C by using top-K methods.

## E. Baseline Algorithm

We consider deep reinforcement learning (DRL) as a baseline since it is one of the most widely used ML algorithms to solve network optimization problems [12]. DRL can usually produce satisfactory optimization results, but it requires proper parameter fine-tuning and dedicated model training. This work investigates two scenarios, and the Markov decision processes (MDPs) are defined by: 1) for discrete-state problems, the state is defined by user numbers associated with the BS; 2) for continuous-state problems, we use average user-BS distance as a continuous-changing state. The action is defined by the BS power level, and the reward is shown as equation (5).

## IV. PERFORMANCE EVALUATION

## A. Simulation Settings

We consider three adjacent small base stations (SBSs); the user number of each SBS randomly changes from 5 to 15, and the SBS's coverage is 20 meters. The channel gain applies 3GPP urban network models, and 2 cases are evaluated:

- Case I : Discrete states defined by user numbers of each SBS;
- Case II : Continuous states defined by average user-SBS distance, which represents 2 kinds of network optimization problems. Then, the simulation considers two main approaches:
- 1) LLM-based method includes 3 models: Llama3-8binstruct, Llama3-70b-instruct, and GPT-3.5 turbo. Llama3-8b is a small-scale LLM, while Llama3-70b and GPT-3.5 turbo are large models. Using LLM models with various sizes can better evaluate the capabilities of our proposed algorithms.
- 2) DRL-based method as introduced in Section III-E. With dedicated model training, here we consider DRL as an optimal baseline since its capability has been demonstrated in many existing studies [11], [12].

## B. Simulation Results

Fig. 2 shows the simulation results and comparisons, and the metrics include average reward, power consumption, and service quality (indicating the probability of satisfying the minimum average data rate constraint defined in equation (2)).

Firstly, Fig. 2(a) presents the system reward and service quality of different LLMs under discrete state space. One can observe that both Llama3 LLMs achieve a comparable reward and service quality as the DRL baseline, while GPT-3.5 shows a lower reward and service quality. Fig. 2(a) demonstrates that the proposed in-context learning algorithm and state-based example selection method can provide satisfactory performance for problems with a limited number of environment states.

Then, we consider more complicated scenarios with continuous states defined by the average user-BS distance. Fig. 2(b) and 2(c) present the reward and average power consumption, respectively. All LLM models achieve higher rewards and lower power consumption as the number of episodes increases and finally converge to stable values. The results demonstrate that LLMs can learn from previous examples and explorations and then improve the performance on target tasks.

In addition, we observe the algorithm performance under different minimum data rate constraints. Fig. 2(d), 2(e), and 2(f) present the average reward, power consumption, and service quality, respectively. Here, every value in the results is obtained by taking the average performance of converged episodes of corresponding LLMs as in Fig. 2(b) and 2(c). As expected, the simulation results show that increasing the minimum data rate constraint leads to lower reward, lower

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00214v1-figure-3895350e-ae98-4e1e-8022-fac8a13d5cff.jpg)

(a) Discrete state space: System reward and service quality comparison of various LLMs.

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00214v1-figure-4d9073aa-63f7-4727-be18-14aa9458c536.jpg)

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00214v1-figure-36419797-9daf-4f12-ab96-bf9676073005.jpg)

(b) Continuous state space: System reward comparison of various LLMs.

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00214v1-figure-b7b2aae6-2470-4f5c-b48d-8f495c112959.jpg)

(d) Continuous state space: parison under different data rate constraints.

(c) Continuous state space: Power consumption comparison of various LLMs.

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00214v1-figure-66c83a2c-557b-4b9d-b511-e8ffc2a63cba.jpg)

Average reward com- (e) Continuous state space: Average power consumption comparison under different data rate constraints.

![Image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00214v1-figure-5e29d90a-c82c-41c3-8da8-e464b0adedfd.jpg)

(f) Continuous state space: Average service quality comparison under different data rate constraints.

Fig. 2: Simulation results and comparisons

service quality, and higher power consumption. Therefore, Fig. 2(d), 2(e), and 2(f) demonstrate that the proposed algorithms can adapt to different optimization settings and then adjust their policies to improve the performance on target tasks.

Note that the algorithm performance is also related to specific LLMs. Llama3 represents state-of-the-art LLM designs, while GPT-3.5 is an early LLM model. Therefore, it is reasonable that Llama3-8b and Llama3-70b maintain comparable performance as the DRL baseline, while GPT3.5 turbo presents a worse performance in different tasks. For instance, when the minimum data rate constraint is 2 Mbps per user, GPT-3.5 has a 25% lower reward and 20% lower service quality than other LLMs. In summary, the simulations in Fig. 2 demonstrate that our proposed in-context learning algorithm can achieve comparable performance as conventional DRL algorithms without dedicated model training and fine-tuning.

## V. CONCLUSION

LLM is a promising technique for future wireless networks, and this work proposes an LLM-enabled in-context learning algorithm for BS transmission power control. The proposed algorithm can handle both discrete and continuous state problems, and the simulations show that it achieves comparable performance as conventional DRL algorithms. This work demonstrates the great potential of in-context learning for handling network management and optimization problems.

## REFERENCES

- [1] Z. Zhang, Y. Xiao, Z. Ma, M. Xiao, Z. Ding, X. Lei, G. K. Karagiannidis, and P. Fan, '6g wireless networks: Vision, requirements, architecture, and key technologies,' IEEE vehicular technology magazine , vol. 14, no. 3, pp. 28-41.
- [2] H. Zhou, M. Erol-Kantarci, Y. Liu, and H. V. Poor, 'A survey on modelbased, heuristic, and machine learning optimization approaches in risaided wireless networks,' IEEE Communications Surveys &amp; Tutorials , 2023.
- [3] W. X. Zhao, K. Zhou, J. Li, T. Tang, X. Wang, Y. Hou, Y. Min, B. Zhang, J. Zhang, Z. Dong et al. , 'A survey of large language models,' arXiv preprint arXiv:2303.18223 , 2023.
- [4] H. Zhou, C. Hu, Y. Yuan, Y. Cui, Y. Jin, C. Chen, H. Wu, D. Yuan, L. Jiang, D. Wu et al. , 'Large language model (LLM) for telecommunications: A comprehensive survey on principles, key techniques, and opportunities,' arXiv preprint arXiv:2405.10825 , 2024.
- [5] Q. Dong, L. Li, D. Dai, C. Zheng, Z. Wu, and et al., 'A survey on in-context learning,' arXiv preprint arXiv:2301.00234 , 2022.
- [6] Z. Lin, G. Qu, Q. Chen, X. Chen, Z. Chen, and K. Huang, 'Pushing large language models to the 6G edge: Vision, challenges, and opportunities,' arXiv preprint arXiv:2309.16739 , 2023.
- [7] M. Fu, P. Wang, M. Liu, Z. Zhang, and X. Zhou, 'Iov-bert-ids: Hybrid network intrusion detection system in iov using large language models,' IEEE Transactions on Vehicular Technology , 2024.
- [8] Q. Liu, J. Mu, D. ChenZhang, Y. Liu, and T. Hong, 'Llm enhanced reconfigurable intelligent surface for energy-efficient and reliable 6g iov,' IEEE Transactions on Vehicular Technology , 2024.
- [9] F. H. C. Neto, D. C. Ara´ ujo, M. P. Mota, T. F. Maciel, and A. L. de Almeida, 'Uplink power control framework based on reinforcement learning for 5g networks,' IEEE Transactions on Vehicular Technology , vol. 70, no. 6, pp. 5734-5748, 2021.
- [10] M. Chiang, P. Hande, T. Lan, C. W. Tan et al. , 'Power control in wireless cellular networks,' Foundations and Trends® in Networking , vol. 2, no. 4, pp. 381-533, 2008.
- [11] H. Zhou, M. Erol-Kantarci, and H. V. Poor, 'Learning from peers: Deep transfer reinforcement learning for joint radio and cache resource

allocation in 5G RAN slicing,' IEEE Transactions on Cognitive Communications and Networking , vol. 8, no. 4, pp. 1925-1941, 2022.

- [12] L. Zhang and Y.-C. Liang, 'Deep reinforcement learning for multiagent power control in heterogeneous networks,' IEEE Transactions on Wireless Communications , vol. 20, no. 4, pp. 2551-2564, 2020.
Hao Zhou Chengming Hu Dun Yuan Ye Yuan Di Wu Xue Liu Charlie Zhang
Large Language Model (LLM)-enabled In-context Learning for Wireless Network Optimization: A Case Study of Power Control
Large language model (LLM) has recently been considered a promising technique
for many fields. This work explores LLM-based wireless network optimization via
in-context learning. To showcase the potential of LLM technologies, we consider
the base station (BS) power control as a case study, a fundamental but crucial
technique that is widely investigated in wireless networks. Different from
existing machine learning (ML) methods, our proposed in-context learning
algorithm relies on LLM's inference capabilities. It avoids the complexity of
tedious model training and hyper-parameter fine-tuning, which is a well-known
bottleneck of many ML algorithms. Specifically, the proposed algorithm first
describes the target task via formatted natural language, and then designs the
in-context learning framework and demonstration examples. After that, it
considers two cases, namely discrete-state and continuous-state problems, and
proposes state-based and ranking-based methods to select appropriate examples
for these two cases, respectively. Finally, the simulations demonstrate that
the proposed algorithm can achieve comparable performance as conventional deep
reinforcement learning (DRL) techniques without dedicated model training or
fine-tuning. Such an efficient and low-complexity approach has great potential
for future wireless network optimization.