跳到正文
CMU:Machine Learning Blog· Andy Liu·· 3 小時前AI 評分57

研究以價值表徵預測模型對齊泛化

Predicting Alignment Generalization with Value Representations

AI 導讀

這項研究提出以價值表徵預測模型的對齊泛化,並衡量模型經單一價值訓練後,對其他價值的遵循傾向如何改變。研究從 Claude’s Constitution 取 66 項價值逐項訓練模型,發現模型在情境中套用價值時的激活表示,比價值文字描述更能預測泛化關係;研究再以最佳表徵把 Values in the Wild 的 266 項價值歸納為四個羣組。

正文

We generally want our AI assistants to be helpful, honest, and harmless - but when we train models in this way, what kinds of unexpected side effects might emerge, and what could go wrong? With LLM usage becoming increasingly ubiquitous in our daily lives, LLM alignment is more important than ever. Developers usually define alignment targets, such as model specs or constitutions, which enumerate lists of narrow behavioral traits they want their models to have, while trying to specify a generally prosocial model character. Improvements to alignment post-training techniques mean that developers are increasingly good at aligning their models to these targets. However, recent results suggest that this alignment does not always cover as much as we’d like it to. Training LLMs to behave prosocially in certain scenarios might influence their behavior in untrained scenarios, sometimes in unexpected and problematic ways. Unintended post-training generalization has recently caused LLMs to become overly sycophantic towards users, exhibit emotionally unstable traits, and repeatedly reference goblins in their outputs.

 Last April, OpenAI had to roll back a model release after they discovered training the model to better follow user preferences led to a model that was overly sycophantic.

It’s clear that we now need more scientific work that can allow us to bridge the gap between aspirational alignment targets and the actual behavior of the model, especially as the consequences of misaligned model behavior continue to grow. This could also improve the research community’s ability to design and align models toward such targets, as such work has previously been siloed within leading developers. One issue is that current alignment targets follow a “values-as-text” approach to alignment, by defining targets in terms of natural language with no underlying structure. This makes it very hard to compare the space of possible values and alignment targets, which can be worded in any number of ways. Our new paper, “Predicting Alignment Generalization with Value Representations”, aims to solve this problem by conducting a large-scale study of how models generalize from individual prosocial traits, which could help us better understand how values are entangled within LLMs and identify groups of values that move together.

We source 66 values from Claude’s Constitution, such as "respecting user autonomy" or "caution in novel situations". For each individual value, we train a separate model checkpoint on that value, in order to study how training specific values into a model generalizes to the model’s downstream behavior. We use two different training methods: fine-tuning on synthetic datasets of value-aligned behavior, and direct preference optimization on value-relevant subsets of real-life preference data. We also study four models, covering two model families and sizes. To measure how training on a value shifts adherence to other values, we evaluate each single-value fine-tuned checkpoint on realistic value conflict scenarios that force the model to choose which of two different values to follow. We then measure whether training a model on one value makes the model more or less likely to respond in ways that follow other values, giving us a large generalization matrix that encodes fine-tuning effects on each pair of values.

An example generalization matrix. Rows represent trained values, columns represent evaluated values, and each cell represents whether training on the first value makes a model more or less likely to follow the second value. For example, training a model to tell honest uncomfortable truths also makes it more likely to give honest creative feedback when asked to by the user.

We use this generalization matrix to benchmark different ways of representing values as vector embeddings. We hope that developing general-purpose value representations will support more scientific work around alignment target design, as they allow us to predict side effects of training on different values without having to actually do the training. We study a mix of candidate representations, including behavioral-based representations that compute model activations when a certain value is being applied, as well as description-based representations that simply embed a textual description of the value. We evaluate representational methods by using them to compute pairwise similarity between all pairs of representations, and correlating these similarity values with the actual generalization matrix values for each pair of values. We find that methods based on model activations when applying values in context (e.g. persona vectors) significantly outperform those based on textual descriptions (e.g. the description embeddings used by past work taxonomizing values).

Comparing different value representation methods on how well they recover the structure of our generalization matrix. Representations based on applying values in context significantly outperform representations based on descriptions of values, which past work used.

After selecting the best representations, we then use them to cluster values into a taxonomy. We select 266 values from Values in the Wild, a large-scale set of values present in interactions between users and Claude, compute their representations, and use this to identify four main clusters of values: attunement values, which relate to supporting healthy interpersonal relationships and emotional growth in users, rigor values, which support rigorous reasoning, objectivity, and excellence in task execution, stewardship values, supporting the long-term welfare of society and the full consideration of third parties, and integrity values, supporting professional norms and codes of conduct, as well as being intellectually honest and truth-seeking. We find that these categories are more predictive of the alignment generalization effects we study than past taxonomies, i.e., values grouped together by our taxonomy are more likely to generalize similarly when trained into the model than values grouped together by other taxonomies.

The four value clusters identified by our method, as well as example values within each cluster.

We also directly apply our value representations to “Model Spec Science”, the empirical study of alignment target properties that matter for alignment generalization, by studying how the design of an alignment target affects the adversarial robustness of models trained on said alignment target. For a given alignment target consisting of multiple values, we compute the coherence of this target as the average pairwise similarity of the representations of each value in that target, which formalizes whether the individual values support or oppose each other. We then fine-tune models using this target and evaluate their prefill robustness - when the model is asked to continue a prefilled user-assistant conversation that already goes against its assigned values, does it follow the existing flow of the conversation, or reassert its values? We find that more coherent targets, as measured by our metric, lead to models that more robustly stick to their values.

As models become more capable and more widely-used, ensuring that they behave prosocially is critical, and understanding how model behavior generalizes from alignment targets is a key component of this. We’re hopeful that our work provides a framework for studying alignment generalization that future work can build upon, and that hill-climbing on our prediction metrics will lead to the development of even stronger ways of representing values. We’re also excited to study interactions between values in more realistic post-training setups, especially as it applies to alignment target design. For example, developers who are trying to make a model more cautious about helping the users in legal situations could use such tools to anticipate any negative side effects of training a model in this way, and adjust how they specify and evaluate model behavior accordingly. We view this subfield as critical for closing the loop between alignment target design and model behavior, which can not only improve developers’ ability to robustly align current models, but also enable a diverse and pluralistic ecosystem of models with different values.

來源:CMU:Machine Learning Blog · blog.ml.cmu.edu