Cislunar Space Beginner's GuideCislunar Space Beginner's Guide
  • Satellite Simulation
Cislunar Glossary
Resources & Tools
Space News
AI Q&A
Forum
Home
Gitee
GitHub
  • 简体中文
  • English
  • Satellite Simulation
Cislunar Glossary
Resources & Tools
Space News
AI Q&A
Forum
Home
Gitee
GitHub
  • 简体中文
  • English
  • Site map

    • Home (overview)
    • What is cislunar space
    • Spacecraft trajectories
    • Directions & labs
    • Glossary · terms & definitions
    • Data & code
    • Space industry archive
  • Cislunar glossary (terms & definitions)

    • Cislunar Space Glossary
    • Fundamentals

      • Absolute Range
      • Aerodynamic Coefficient
      • Aerodynamic Moment
      • Aerospace Vehicle
      • Allan Deviation (ADEV)
      • Ballistic Coefficient
      • Bi-Elliptic Transfer
      • Body Frame
      • Celestial Coordinate System
      • Celestial Sphere
      • Characteristic Velocity
      • Coverage Angle
      • Dual One-Way Ranging (DOWR)
      • Earth Ellipsoid
      • Earth Oblateness Perturbation
      • Earth-Centered Earth-Fixed Frame (ECEF)
      • Einstein Equivalence Principle (EEP)
      • Energy Parameter
      • Earth Observation (EO)
      • Finite Thrust Maneuver
      • Free-Flight Phase
      • Free-Flight Trajectory
      • Frozen Orbit
      • Gaussian Perturbation Equations
      • Geocentric Inertial Frame
      • GPS Time
      • Gravitational Potential
      • Gravitational Redshift
      • Gravity Turn
      • Gravity vs Gravitation
      • High Altitude Airship (HAA)
      • Hit Equation
      • Hohmann Transfer
      • Inertial Navigation System
      • Instantaneous Balance Assumption
      • In-Situ Resource Utilization (ISRU)
      • Julian Date
      • Kepler's Equation
      • Korea Multi-Purpose Satellite (KOMPSAT)
      • Lagrangian Perturbation Equations
      • Launch Azimuth
      • Launch Window
      • Lift-to-Drag Ratio
      • Load Factor
      • Longitudinal and Lateral Motion
      • Lunar Lander
      • Minimum Energy Trajectory
      • Near-space
      • Newton's Iteration Method
      • Nuri (KSLV-II)
      • Nutation
      • Optimal Velocity Inclination
      • Orbit Capture
      • Orbit Insertion Conditions
      • Orbital Elements
      • Orbital Equation
      • Orbital Maneuver
      • Orbital Phase
      • Orbital Transfer Vehicle
      • Passive Hydrogen Maser (PHM)
      • Perturbation Motion
      • Phasing Orbit
      • Pitch Program Angle
      • Powered Phase
      • Precession
      • Center of Pressure
      • Range Error Coefficient
      • Reentry Corridor
      • Reentry Phase
      • Repeat Ground Track Orbit
      • Reusable Launch Vehicle
      • Synthetic Aperture Radar (SAR)
      • Satellite Ring
      • Sequential Quadratic Programming
      • Skip Reentry
      • Solar Exposure Factor
      • Specific Angular Momentum
      • Specific Impulse
      • Stagnation Heat Flux
      • Standard Atmosphere
      • Stratospheric Airship
      • Subsatellite Track
      • Sun-Synchronous Orbit
      • Thrust-to-Weight Ratio
      • Thrust
      • Total Angle of Attack
      • Trajectory Equation
      • Trajectory Optimization
      • Trim Angle of Attack
      • True Anomaly
      • Tsiolkovsky Rocket Equation
      • Powered Phase Turning Process
      • Two-Body Problem
      • Coordinated Universal Time
      • Variation of Parameters
      • Velocity Frame
      • Velocity Inclination Angle
      • Vis-Viva Equation
      • Very Low Earth Orbit (VLEO)
      • Walker Constellation
      • Zero-Angle-of-Attack Reentry
    • Dynamics & math

      • A* Search Algorithm (A* Search)
      • A2PPO (Attention-Augmented Proximal Policy Optimization)
      • Action-Angle Variables
      • Backstepping Sliding Mode Control
      • Backward Stability Set
      • Bang-bang Control (Bang-bang Control)
      • Barycentric Synodic Coordinate System
      • Batch Deployment (Batch Deployment)
      • Bicircular Four-Body Problem
      • Birkhoff-Gustavson Normal Form
      • Buoyancy-weight Imbalance
      • Capture Set
      • Central Manifold
      • Chaos Effect
      • Clohessy-Wiltshire (CW) Equation
      • Co-state Normalization (Co-state Normalization)
      • Co-state Variables
      • Coasting Arc (Coasting Arc)
      • Continuation Method (Parameter Continuation)
      • Continuation
      • Cooperative Agent (CA)
      • CR3BP with Low-Thrust (CR3BP-LT)
      • Circular Restricted Three-Body Problem (CR3BP)
      • Curriculum Learning
      • Deep Deterministic Policy Gradient (DDPG)
      • Deep Reinforcement Learning
      • Detection Graph
      • Differential Correction
      • Differential Evolution (DE) Algorithm
      • Differential Games (Differential Games)
      • Direct Collocation
      • Dynamic Programming (Dynamic Programming)
      • Dynamic Target Method
      • Ephemeris Model
      • Equinoctial Orbital Elements (Equinoctial Orbital Elements)
      • Earth Restricted Three-Body Problem (ERTBP)
      • Fuel-optimal Control
      • Fuzzy Backstepping Control
      • Generalized Advantage Estimation (GAE)
      • Gaussian Process Regression
      • Geocentric Rotating Coordinate System (GRC)
      • Hamiltonian
      • Hybrid Cluster Particle Swarm Optimization (HCPSO)
      • Heteroclinic Orbit Transfer (Heteroclinic Orbit Transfer)
      • Hill Three-Body Problem
      • Homotopy Method (Homotopy Method)
      • Improved Baseline Control-Point Method (Improved Baseline Control-Point Method)
      • Impulsive Maneuver
      • Initial Value Optimization
      • Invariant Manifold (Invariant Manifold)
      • J2000 Geocentric Equatorial Coordinate System (J2000 Geocentric Equatorial Coordinate System)
      • Jacobi Constant (Jacobi Integral)
      • K-Means Clustering (K-Means Clustering)
      • K-Medoids Clustering (K-Medoids Clustering)
      • KD-Tree (KD-Tree)
      • Libration Point (Equilibrium Point)
      • Libration Point Spacecraft Body Coordinate System (Libration Point Spacecraft Body Coordinate System)
      • Libration Point Spacecraft Orbital Coordinate System (Libration Point Spacecraft Orbital Coordinate System)
      • Lindstedt-Poincare Method (Lindstedt-Poincare Method)
      • L2-centered Rotating Coordinate System (L2-centered Rotating Coordinate System, LRC)
      • LSTM Neural Network
      • Low-Thrust Transfer MDP Formulation
      • Mass Discontinuity (Mass Discontinuity)
      • Multi-Objective Monte Carlo Tree Search (MO-MCTS)
      • Modal Analysis
      • Monodromy Matrix
      • Monte Carlo Tree Search
      • Newton-Euler Equations
      • NSGA II (Non-dominated Sorting Genetic Algorithm II)
      • Pareto Optimality
      • Particle Swarm Optimization
      • Patch Point (Splicing Point)
      • Patched Method
      • Poincaré Map
      • Poincaré Section
      • Pontryagin's Maximum Principle
      • Pseudo-Arclength Continuation
      • Spacecraft Pursuit-Evasion Game
      • Q-Law Control Law
      • Quasi-Bicircular Problem (QBCP)
      • Quasi-Bicircular Four-Body Problem
      • Reachable Set
      • Reduced-Order Dynamic Equations
      • Regional Station-keeping Control
      • Regularization
      • Reinforcement Learning Enhanced Particle Swarm Optimization (RLEPSO)
      • Saddle-Point Strategy
      • Seven-node Model
      • Shooting Method
      • Six-DOF Motion Equations
      • Sliding Mode Control
      • Solar Radiation Pressure (SRP)
      • Stability Index
      • Stability Set
      • State-Dependent Traveling Salesman Problem (SDTSP)
      • State Transition Matrix (STM)
      • Static Lift
      • Strobe Map
      • Switching Function
      • Targeting Method
      • Thermo-mechanical Coupling Model
      • Thermodynamic Model
      • Two-Point Boundary Value Problem (TPBVP)
      • Trim Condition
      • Two-Dominant Invariant Manifold Method
      • Two-Level Differential Correction Method
      • Two-node Model
      • Variational Mode Decomposition
      • Zero-Effort Miss (ZEM)
      • Zero-Velocity Surface
    • Mission orbits

      • Apolune
      • Axial Orbit
      • Ballistic Capture Orbit
      • Butterfly Orbit
      • Cycler Trajectory
      • Distant Prograde Orbit (DPO)
      • DRO Constellation
      • Distant Retrograde Orbit (DRO)
      • Earth-Moon L1/L2 Halo Orbit (EML1/EML2 Halo)
      • Free-Return Trajectory
      • Full Lunar Surface Coverage Orbit
      • Halo Orbit
      • Heteroclinic Connection
      • Horseshoe Orbit
      • Hub-and-Spoke
      • Lissajous Orbit
      • Long Period Orbit
      • Low Prograde Orbit (LoPO)
      • Low-Energy Transfer Orbit
      • Low-Thrust Transfer Orbit
      • Lyapunov Orbit
      • Multi-Revolution Halo Orbit
      • Near-Rectilinear Halo Orbit (NRHO)
      • Orbit Identification
      • Orbit Keeping (Station-Keeping)
      • Parking Orbit
      • Perilune
      • Polynomial Constraint Station-Keeping
      • Primary Impulse Orbit Transfer
      • Prograde
      • Quasi-Periodic Orbit
      • Resonance Orbit
      • Retrograde
      • Short Period Orbit
      • Transfer Orbit
      • Triangular Libration Points
      • Vertical Orbit
    • Navigation & systems

      • Altitude Regulation
      • Autonomous Navigation
      • Cislunar Spatiotemporal Reference
      • Earth-Moon Hybrid Navigation
      • Extended Kalman Filter (EKF)
      • GPS Aided GEO Augmented Navigation (GAGAN)
      • Earth GNSS Weak Signal Navigation
      • Inter-Satellite Link Navigation
      • Indian Regional Navigation Satellite System (IRNSS)
      • LEO Navigation Augmentation
      • LiAISON Navigation
      • LunaNet (Lunar Network)
      • Lunar Navigation Constellation
      • Moonlight Initiative
      • Observability
      • Positioning, Navigation, and Timing (PNT)
      • Sun-Earth-Moon Autonomous Navigation
      • Tiandu-1
      • Trajectory Planning
      • X-ray Pulsar Navigation
    • Astronomy & observation

      • Astrometry
      • Background Star Elimination
      • Cislunar Moving Objects
      • Continuous Coverage (CP)
      • Earth Albedo
      • Ephemeris Correlation
      • Hot Pixel
      • Illumination Constraint
      • Image Registration
      • Image Stacking
      • Infrared Radiation
      • Lunar Glare Zone
      • Pointing Constraint
      • Quasi-zero Wind Layer
      • Segmentation Map
      • Shift-and-Add (SAA)
      • Sidereal Tracking
      • Signal-to-Noise Ratio (SNR)
      • Solar Radiation
      • Source Extraction
      • Synthetic Tracking
      • Zonal Wind
    • Military space doctrine

      • Anti-Satellite Test (ASAT)
      • Cislunar Space Situational Awareness
      • Civil-Military Integration
      • Competitive Endurance
      • Component Field Commands
      • Commander, Space Forces (COMSPACEFOR)
      • Counterspace Operations
      • Directed Energy Weapon (DEW)
      • Distributed Architecture
      • DOTMLPF-P Framework
      • Force Design
      • Force Development
      • Force Employment
      • Force Generation
      • Golden Dome
      • Kinetic Weapon
      • Mission Command
      • Mission Delta (MD)
      • Operational Test and Training Infrastructure (OTTI)
      • Persistent Detection Corridor (PDC)
      • Resilience Map
      • Resilient/Disaggregated Architecture
      • Space Domain Awareness (SDA)
      • Space Mission Task Force (SMTF)
      • Space Superiority
      • Space Force Generation Process (SPAFORGEN)
      • System Delta (SYD)
    • Organizations

      • Anduril Industries
      • Booz Allen Hamilton
      • Danuri Lunar Orbiter
      • General Dynamics Mission Systems
      • GITAI USA
      • Indian Space Research Organisation
      • Korea Aerospace Administration
      • Lockheed Martin
      • Northrop Grumman
      • Quindar
      • Raytheon Missiles & Defense
      • Sci-Tec
      • SpaceX
      • Satish Dhawan Space Centre SHAR
      • True Anomaly
      • Turion Space

Prompt Tuning (P-tuning)

Author: CislunarSpace

Site: https://cislunarspace.cn

Definition

Prompt Tuning is a family of Parameter-Efficient Fine-Tuning (PEFT) techniques. The core idea is to prepend a set of learnable continuous vectors (called "soft prompts") to the model input, while freezing the original pretrained model weights. Only the soft prompt parameters are trained, allowing the model to adapt to different downstream tasks without modifying its own parameters.

P-tuning is an important variant of prompt tuning, proposed by Liu et al. P-tuning V2 (2021) is an improved version that achieves performance comparable to full fine-tuning across multiple scales and tasks.

P-tuning V2 Principle

The P-tuning V2 workflow is as follows:

  1. Input processing: Convert input text XXX through tokenization and embedding into a vector sequence {h1,h2,...,hn}\{h_1, h_2, ..., h_n\}{h1​,h2​,...,hn​}
  2. Add soft prompts: Prepend 128 learnable soft prompt tokens S1,S2,...,S128S_1, S_2, ..., S_{128}S1​,S2​,...,S128​ before the input vectors
  3. Layer-wise embeddings: Construct trainable embedding parameters corresponding to soft prompt tokens at each layer of the LLM
  4. Training: Only update soft prompt tokens and layer-wise embedding parameters; original model weights Φ0\Phi_0Φ0​ remain unchanged

The input template is:

Tinput={S1,S2,…,S128,h1,h2,…,hn}T_{\text{input}} = \{S_1, S_2, \ldots, S_{128}, h_1, h_2, \ldots, h_n\} Tinput​={S1​,S2​,…,S128​,h1​,h2​,…,hn​}

The final model parameters combine original and new parameters:

Φ=Φ0+Δϕ\Phi = \Phi_0 + \Delta\phi Φ=Φ0​+Δϕ

where Δϕ\Delta\phiΔϕ consists of the trained new parameters.

Soft Prompts vs. Hard Prompts

The "soft prompts" in prompt tuning are fundamentally different from "hard prompts" (natural language text prompts):

FeatureHard PromptSoft Prompt
FormNatural language textLearnable parameters in continuous vector space
OptimizationManual design or searchAutomatic optimization via gradient descent
ExpressivenessLimited to discrete tokens in vocabularyCan represent continuous semantics not in vocabulary
Use casesGeneral interaction, zero-shot inferenceEfficient task-specific adaptation

Comparison with Full Fine-Tuning and LoRA

FeatureFull Fine-TuningP-tuning V2LoRA
Trainable parameters100%<1%0.1%–3%
Modification locationAll layersInput layer + layer-wise embeddingsTarget layer weight matrices
Inference overheadNoneAdditional processing for soft prompt tokensNone (after merging)
Typical modelAnyChatGLM2-6BChatGLM3-6B

Application in Spacecraft Intention Recognition

In the study by Jing et al. (2025), P-tuning V2 was used to fine-tune the ChatGLM2-6B model. Training used 128 soft prompt tokens, learning rate 0.02, max input length 256 tokens, and max output length 128 tokens. Results showed:

  • The P-tuning V2-fine-tuned ChatGLM2-6B achieved 99.81% accuracy under CoT prompts
  • Accuracy improved significantly compared to the base model
  • The CoT-prompt-fine-tuned model showed the best robustness in perturbation tests, with standard deviation close to the base model

Related Concepts

  • Low-Rank Adaptation (LoRA)
  • Chain-of-Thought (CoT) Prompting
  • Spacecraft Intention Recognition

References

  • Liu X, Ji K, Fu Y, et al. P-tuning v2: Prompt tuning can be comparable to fine-tuning universally across scales and tasks. arXiv:2110.07602, 2021.
  • Liu P, Yuan W, Fu J, et al. Pretrain, prompt, and predict: A systematic survey of prompting methods in natural language processing. ACM Comput Surv. 2023;55(9):1-35.
  • Jing H, Sun Q, Dang Z, Wang H. Intention Recognition of Space Noncooperative Targets Using Large Language Models. Space Sci. Technol. 2025;5:0271.
Improve this page
Last Updated: 6/3/26, 12:52 PM
Contributors: Hermes Agent, Cron Job, Ou Yang Jiahong
地月空间入门指南
Cislunar Space Beginner's GuideYour guide to cislunar space
View on GitHub

Navigate

  • Home
  • About
  • Space News
  • Glossary

Content

  • Cislunar Orbits
  • Research
  • Resources

English

  • Home
  • About
  • Space News
  • Glossary

Follow Us

© 2026 Cislunar Space Beginner's Guide  |  湘ICP备2026006405号-1
Related:智慧学习助手 UStudy航天任务工具箱 ATK
微信公众号
欢迎关注天疆说扫码关注,手机获取航天资讯